1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
# New ports collection makefile for: Wanderlust
# Date created: 7 Apr 1999
# Whom: MANTANI Nobutaka <nobutaka@nobutaka.com>
#
# $FreeBSD$
#
PORTNAME= wanderlust
PORTVERSION= 2.10.1
CATEGORIES= mail elisp
MASTER_SITES= ftp://ftp.gohome.org/wl/stable/ \
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,text/elisp/wl/stable/&,} \
ftp://ftp.jaist.ac.jp/pub/GNU/elisp/ftp.gohome.org/wl/stable/ \
http://www.jpl.org/elips/wl/stable/
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
DISTNAME= wl-${PORTVERSION}
MAINTAINER= nobutaka@FreeBSD.org
COMMENT?= Yet another message interface on Emacsen
EMACS_PORT_NAME?= emacs21
MIMEUI_PORT_NAME?= ${MIMEUI_PRODUCT}
.if (${EMACS_PORT_NAME} == "emacs21")
BITMAP_PORT_NAME= bitmap
.endif
EMACS_W3M_PORT_NAME?= emacs-w3m
EMACS_W3M_LISP_FILE?= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/w3m/shimbun.el
MIMEUI_PRODUCT= semi
MIMEUI_VERSION= 1.14
MIMEUI_COOKIE= ${MIMEUI_PRODUCT}-${EMACS_PORT_NAME}-${MIMEUI_VERSION}.FreeBSD-packages
BUILD_DEPENDS= ${LOCALBASE}/share/semi/${MIMEUI_COOKIE}:${PORTSDIR}/editors/${MIMEUI_PORT_NAME}
RUN_DEPENDS= ${LOCALBASE}/share/semi/${MIMEUI_COOKIE}:${PORTSDIR}/editors/${MIMEUI_PORT_NAME}
.if !defined(WITHOUT_X11) && !defined(WITHOUT_BITMAP) && defined(BITMAP_PORT_NAME)
RUN_DEPENDS+= ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/bitmap/bitmap.el:${PORTSDIR}/editors/${BITMAP_PORT_NAME}
.endif
.include <bsd.port.pre.mk>
.if exists(${EMACS_W3M_LISP_FILE})
BUILD_DEPENDS+= ${EMACS_W3M_LISP_FILE}:${PORTSDIR}/www/${EMACS_W3M_PORT_NAME}
RUN_DEPENDS+= ${EMACS_W3M_LISP_FILE}:${PORTSDIR}/www/${EMACS_W3M_PORT_NAME}
SHIMBUN= ""
.else
SHIMBUN= "@comment "
.endif
ALL_TARGET?= all info
INSTALL_TARGET?= install install-info
INFODIR= ${PREFIX}/info
UTILSDIR?= ${EMACS_VERSION_SITE_LISPDIR}/wl
WL_LISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/wl
WL_ICONDIR= ${EMACS_LIBDIR_WITH_VER}/etc/wl/icons
STARTUPDIR?= ${EMACS_VERSION_SITE_LISPDIR}
DIRSECTION= "The Emacs editor and associated tools"
PORTDOCDIR= share/doc/wanderlust
PORTDOCDIR_JA= share/doc/ja/wanderlust
DOCS= README NEWS doc/wl.texi
DOCS_JA= README.ja NEWS.ja doc/wl-ja.texi
SAMPLESDIR= share/examples/wanderlust
SAMPLESLANG= en ja
SAMPLES= dot.addresses dot.folders dot.wl
UTILS= bbdb-wl.el im-wl.el ssl.el
PLIST_SUB+= EMACS_PACKAGESDIR=${EMACS_PACKAGESDIR} \
DIRSECTION=${DIRSECTION} \
STARTUPDIR=${STARTUPDIR} \
WL_LISPDIR=${WL_LISPDIR} \
WL_ICONDIR=${WL_ICONDIR} \
SHIMBUN=${SHIMBUN}
PLIST= ${PKGDIR}/pkg-plist.${EMACS_PORT_NAME}
MAKE_ARGS+= EMACS=${EMACS_CMD} XEMACS=${EMACS_CMD} \
LISPDIR=${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} \
FLAGS="-batch -q -no-site-file -l ${WRKDIR}/wanderlust-startup.el"
.if defined(EMACS_PACKAGESDIR)
MAKE_ARGS+= PACKAGEDIR=${PREFIX}/${EMACS_PACKAGESDIR}
.else
MAKE_ARGS+= INFODIR=${INFODIR}
.endif
post-extract:
@${CP} ${FILESDIR}/WL-CFG ${WRKSRC}
post-configure:
@${SED} \
-e "s,%%PREFIX%%,${PREFIX},g" \
-e "s,%%EMACS_LIBDIR%%,${EMACS_LIBDIR},g" \
-e "s,%%EMACS_LIBDIR_WITH_VER%%,${EMACS_LIBDIR_WITH_VER},g" \
-e "s,%%EMACS_PACKAGESDIR%%,${EMACS_PACKAGESDIR},g" \
< ${FILESDIR}/wanderlust-startup.${EMACS_PORT_NAME}.el.tmpl > ${WRKDIR}/wanderlust-startup.el
pre-build:
.if defined(EMACS_PACKAGESDIR)
@${CP} ${FILESDIR}/_pkg.el ${WRKSRC}
.endif
post-install:
.if !exists(${EMACS_W3M_LISP_FILE})
.if defined(EMACS_PACKAGESDIR)
${INSTALL_DATA} ${WRKSRC}/elmo/elmo-shimbun.el ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/wl
.else
${INSTALL_DATA} ${WRKSRC}/elmo/elmo-shimbun.el ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/wl
.endif
.endif
.if !defined(EMACS_PACKAGESDIR)
@${MAKE} install-info
.endif
.if !defined(NOPORTDOCS)
@${MAKE} install-docs
.endif
@${MAKE} install-samples
@${MAKE} install-utils
.if defined(EMACS_PACKAGESDIR)
@${MAKE} install-manifest
.endif
@${CAT} ${PKGMESSAGE}
# local targets
install-info:
@install-info --section=${DIRSECTION} ${WRKSRC}/doc/wl.info ${INFODIR}/dir
@install-info --section=${DIRSECTION} ${WRKSRC}/doc/wl-ja.info ${INFODIR}/dir
install-docs:
@${MKDIR} ${PREFIX}/${PORTDOCDIR}
@${MKDIR} ${PREFIX}/${PORTDOCDIR_JA}
.for i in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${PORTDOCDIR}
.endfor
.for i in ${DOCS_JA}
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${PORTDOCDIR_JA}
.endfor
install-samples:
.for l in ${SAMPLESLANG}
${MKDIR} ${PREFIX}/${SAMPLESDIR}/$l
for i in ${SAMPLES} ; do \
${INSTALL_DATA} ${WRKSRC}/samples/$l/$$i ${PREFIX}/${SAMPLESDIR}/$l; \
done
.endfor
${MKDIR} ${PREFIX}/share/wanderlust
${INSTALL_DATA} ${WRKSRC}/etc/ja.Emacs ${PREFIX}/share/wanderlust
install-utils:
@${MKDIR} ${PREFIX}/${UTILSDIR}
.for i in ${UTILS}
${INSTALL_DATA} ${WRKSRC}/utils/${i} ${PREFIX}/${UTILSDIR}
.endfor
@${MKDIR} ${PREFIX}/${STARTUPDIR}
@${INSTALL_DATA} ${WRKDIR}/wanderlust-startup.el ${PREFIX}/${STARTUPDIR}
install-manifest:
@${CAT} ${PKGDIR}/pkg-plist.${EMACS_PORT_NAME} | ${GREP} -e "^%%EMACS_PACKAGESDIR%%" | \
${SED} -e "s!^%%EMACS_PACKAGESDIR%%!!" > ${WRKDIR}/${MANIFEST}
@${INSTALL_DATA} ${WRKDIR}/${MANIFEST} ${PREFIX}/${EMACS_PACKAGESDIR}/pkginfo/
@${INSTALL_DATA} ${FILESDIR}/_pkg.el ${PREFIX}/${EMACS_PACKAGESDIR}/lisp/wl
.include <bsd.port.post.mk>
|