blob: 18d6374e1d1c7ec8a6ce43af2e9d9de880a8efe2 (
plain)
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
|
# $NetBSD: Makefile,v 1.58 2012/10/03 21:56:00 wiz Exp $
DISTNAME= xemacs-packages
PKGNAME= xemacs-packages-1.16
PKGREVISION= 3
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_XEMACS:=packages/}
DISTFILES= \
Sun-1.15-pkg.tar.gz \
ada-1.14-pkg.tar.gz \
apel-1.32-pkg.tar.gz \
auctex-1.36-pkg.tar.gz \
bbdb-1.24-pkg.tar.gz \
build-1.14-pkg.tar.gz \
c-support-1.19-pkg.tar.gz \
calc-1.24-pkg.tar.gz \
calendar-1.23-pkg.tar.gz \
cc-mode-1.42-pkg.tar.gz \
clearcase-1.08-pkg.tar.gz \
cookie-1.15-pkg.tar.gz \
crisp-1.14-pkg.tar.gz \
debug-1.17-pkg.tar.gz \
dictionary-1.12-pkg.tar.gz \
dired-1.15-pkg.tar.gz \
docbookide-0.07-pkg.tar.gz \
ecb-1.14-pkg.tar.gz \
ecrypto-0.16-pkg.tar.gz \
edebug-1.20-pkg.tar.gz \
edict-1.16-pkg.tar.gz \
ediff-1.49-pkg.tar.gz \
edit-utils-2.43-pkg.tar.gz \
edt-1.13-pkg.tar.gz \
efs-1.32-pkg.tar.gz \
egg-its-1.27-pkg.tar.gz \
eieio-1.05-pkg.tar.gz \
elib-1.11-pkg.tar.gz \
emerge-1.11-pkg.tar.gz \
erc-0.05-pkg.tar.gz \
eshell-1.06-pkg.tar.gz \
ess-1.07-pkg.tar.gz \
eterm-1.15-pkg.tar.gz \
eudc-1.39-pkg.tar.gz \
footnote-1.16-pkg.tar.gz \
forms-1.15-pkg.tar.gz \
fortran-modes-1.03-pkg.tar.gz \
frame-icon-1.11-pkg.tar.gz \
fsf-compat-1.14-pkg.tar.gz \
games-1.15-pkg.tar.gz \
general-docs-1.01-pkg.tar.gz \
gnats-1.16-pkg.tar.gz \
gnus-1.79-pkg.tar.gz \
haskell-mode-1.06-pkg.tar.gz \
hm--html-menus-1.23-pkg.tar.gz \
hyperbole-1.15-pkg.tar.gz \
ibuffer-1.09-pkg.tar.gz \
idlwave-1.31-pkg.tar.gz \
igrep-1.12-pkg.tar.gz \
ilisp-1.33-pkg.tar.gz \
ispell-1.29-pkg.tar.gz \
jde-1.46-pkg.tar.gz \
latin-unity-1.09-pkg.tar.gz \
leim-1.22-pkg.tar.gz \
liece-1.13-pkg.tar.gz \
locale-1.21-pkg.tar.gz \
lookup-1.14-pkg.tar.gz \
mail-lib-1.64-pkg.tar.gz \
mailcrypt-2.14-pkg.tar.gz \
mew-1.18-pkg.tar.gz \
mh-e-1.28-pkg.tar.gz \
mine-1.16-pkg.tar.gz \
misc-games-1.18-pkg.tar.gz \
mmm-mode-1.01-pkg.tar.gz \
mule-base-1.46-pkg.tar.gz \
mule-ucs-1.05-pkg.tar.gz \
net-utils-1.38-pkg.tar.gz \
ocaml-0.05-pkg.tar.gz \
oo-browser-1.04-pkg.tar.gz \
os-utils-1.35-pkg.tar.gz \
pc-1.26-pkg.tar.gz \
pcl-cvs-1.65-pkg.tar.gz \
pcomplete-1.03-pkg.tar.gz \
perl-modes-1.05-pkg.tar.gz \
pgg-1.04-pkg.tar.gz \
prog-modes-1.94-pkg.tar.gz \
ps-print-1.09-pkg.tar.gz \
psgml-1.42-pkg.tar.gz \
psgml-dtds-1.03-pkg.tar.gz \
python-modes-1.03-pkg.tar.gz \
reftex-1.33-pkg.tar.gz \
riece-1.14-pkg.tar.gz \
rmail-1.14-pkg.tar.gz \
ruby-modes-1.02-pkg.tar.gz \
sasl-1.14-pkg.tar.gz \
scheme-1.14-pkg.tar.gz \
semantic-1.18-pkg.tar.gz \
sgml-1.11-pkg.tar.gz \
sh-script-1.18-pkg.tar.gz \
sieve-1.15-pkg.tar.gz \
skk-1.23-pkg.tar.gz \
slider-1.15-pkg.tar.gz \
sml-mode-0.11-pkg.tar.gz \
sounds-au-1.12-pkg.tar.gz \
sounds-wav-1.12-pkg.tar.gz \
speedbar-1.27-pkg.tar.gz \
strokes-1.10-pkg.tar.gz \
supercite-1.20-pkg.tar.gz \
texinfo-1.25-pkg.tar.gz \
text-modes-1.73-pkg.tar.gz \
textools-1.15-pkg.tar.gz \
time-1.14-pkg.tar.gz \
tm-1.37-pkg.tar.gz \
tooltalk-1.15-pkg.tar.gz \
tpu-1.14-pkg.tar.gz \
tramp-1.17-pkg.tar.gz \
vc-1.38-pkg.tar.gz \
vc-cc-1.22-pkg.tar.gz \
vhdl-1.18-pkg.tar.gz \
view-process-1.13-pkg.tar.gz \
viper-1.37-pkg.tar.gz \
vm-7.18-pkg.tar.gz \
w3-1.29-pkg.tar.gz \
x-symbol-1.09-pkg.tar.gz \
xemacs-base-1.84-pkg.tar.gz \
xemacs-devel-1.61-pkg.tar.gz \
xslide-1.09-pkg.tar.gz \
xslt-process-1.11-pkg.tar.gz \
zenirc-1.15-pkg.tar.gz
### DISTFILES
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.xemacs.org/
COMMENT= Common elisp packages for xemacs 21
DEPENDS+= xemacs{,-nox11}>=21.1.14:../../editors/xemacs
PKG_DESTDIR_SUPPORT= destdir
WRKSRC= ${WRKDIR}
DIST_SUBDIR= ${PKGBASE}
EXTRACT_ONLY= # empty
NO_BUILD= yes
USE_TOOLS+= printf gtar gawk
FONTS_DIRS.x11+= ${PREFIX}/lib/xemacs/xemacs-packages/etc/x-symbol/fonts
FONTS_DIRS.x11+= ${PREFIX}/lib/xemacs/xemacs-packages/etc/x-symbol/origfonts
FONTS_DIRS.x11+= ${PREFIX}/lib/xemacs/xemacs-packages/etc/x-symbol/pcf
REQD_DIRS+= ${PREFIX}/lib/xemacs/xemacs-packages/etc/x-symbol/fonts
REQD_DIRS+= ${PREFIX}/lib/xemacs/xemacs-packages/etc/x-symbol/origfonts
REQD_DIRS+= ${PREFIX}/lib/xemacs/xemacs-packages/etc/x-symbol/pcf
# we have to put them here, because the ones above are removed after the PLIST entries
REQD_DIRS+= ${PREFIX}/lib/xemacs/xemacs-packages/etc/x-symbol
REQD_DIRS+= ${PREFIX}/lib/xemacs/xemacs-packages/etc
REQD_DIRS+= ${PREFIX}/lib/xemacs/xemacs-packages
REPLACEMENTS.perl= ${PREFIX}/lib/xemacs/xemacs-packages/etc/bbdb/bbdb-areacode-split.pl
REPLACEMENTS.perl+= ${PREFIX}/lib/xemacs/xemacs-packages/etc/bbdb/bbdb-cid.pl
REPLACEMENTS.perl+= ${PREFIX}/lib/xemacs/xemacs-packages/etc/bbdb/bbdb-srv.pl
REPLACEMENTS.perl+= ${PREFIX}/lib/xemacs/xemacs-packages/etc/bbdb/bbdb-unlazy-lock.pl
REPLACEMENTS.perl+= ${PREFIX}/lib/xemacs/xemacs-packages/etc/erc/servers.pl
REPLACEMENTS.perl+= ${PREFIX}/lib/xemacs/xemacs-packages/etc/idlwave/idlwave_catalog
REPLACEMENTS.perl+= ${PREFIX}/lib/xemacs/xemacs-packages/etc/x-symbol/fonts/makesub
REPLACEMENTS.perl+= ${PREFIX}/lib/xemacs/xemacs-packages/lisp/hyperbole/file-newer
REPLACEMENTS.python+= ${PREFIX}/lib/xemacs/xemacs-packages/lisp/python-modes/pydoc_lisp.py
REPLACEMENTS.zsh= ${PREFIX}/lib/xemacs/xemacs-packages/lisp/erc/mkChangeLog.upstream
REPLACEMENT_PROGS= perl python zsh
.include "../../editors/xemacs/Makefile.pkg"
.if defined(MANZ)
PLIST_SUBST+= ELSUFX=.gz
.else
PLIST_SUBST+= ELSUFX=
.endif
# XXX For package maintainance
#
# Usage: run `make PKG_DEVELOPER=1 xemacs-update-package'. Makefile.work is
# generated. If any package is updated, bump this package version, and commit.
.include "../../mk/bsd.prefs.mk"
.if defined(PKG_DEVELOPER) && ${OPSYS} == "NetBSD"
ED= /bin/ed
FTP= /usr/bin/ftp
# Make a list of packages from a directory list output
.PHONY: xemacs-make-package-list
xemacs-fetch-package-list:
@${ECHO} ls | ${FTP} ftp://ftp.xemacs.org/pub/xemacs/packages/ | \
${AWK} '/-pkg\.tar\.gz/ { print $$9; }' \
>${PKGDIR}/packages.list
# Merge package list data into Makefile
.PHONY: xemacs-merge-package-list
xemacs-merge-package-list:
{ \
${SED} '/^DISTFILES/q' ${PKGDIR}/Makefile; \
${SED} 's|^| |' ${PKGDIR}/packages.list; \
${SED} -n '/^### DISTFILES/,$$p' ${PKGDIR}/Makefile; \
} >${PKGDIR}/Makefile.work
{ \
${PRINTF} '/^DISTFILES\n+1\nka\n/^### DISTFILES\n-2\nkb\n'; \
${PRINTF} "'a,'b"'s/$$/ \\\\/\nw\nq\n'; \
} | ${ED} - ${PKGDIR}/Makefile.work
.PHONY: xemacs-update-package
xemacs-update-package: xemacs-fetch-package-list xemacs-merge-package-list
.endif # PKG_DEVELOPER && OPSYS == "NetBSD"
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/xemacs/xemacs-packages
.for DISTFILE in ${DISTFILES}
@${ECHO_MSG} -n "Extracting ${DISTFILE} ... "
${GTAR} xCzf ${DESTDIR}${PREFIX}/lib/xemacs/xemacs-packages \
${DISTDIR}/${DIST_SUBDIR}/${DISTFILE}
@${ECHO_MSG} "done"
.endfor
@${ECHO_MSG} -n "Fixing file ownerships ... "
${CHOWN} -R ${BINOWN}:${BINGRP} \
${DESTDIR}${PREFIX}/lib/xemacs/xemacs-packages
@${ECHO_MSG} "done"
@${ECHO_MSG} -n "Fixing file permissions ... "
${CHMOD} -R g-w,o-w ${DESTDIR}${PREFIX}/lib/xemacs/xemacs-packages
@${ECHO_MSG} "done"
.for PROG in ${REPLACEMENT_PROGS}
@${ECHO_MSG} "Fixing ${PROG} paths"
for f in ${REPLACEMENTS.${PROG}}; do \
cp ${DESTDIR}$$f ${DESTDIR}$$f.pre; \
${SED} -e 's|#!.*${PROG}|${PREFIX}/bin/${PROG}|' \
${DESTDIR}$$f.pre > ${DESTDIR}$$f; \
rm ${DESTDIR}$$f.pre; \
done
.endfor
.if defined(MANZ)
@${ECHO_MSG} -n "Compressing \".el\" files ... "
cd ${DESTDIR}${PREFIX} && \
${GREP} '\$${ELSUFX}$$' ${PLIST_SRC} | \
${SED} -e 's#\$${ELSUFX}$$##' | \
${XARGS} ${GZIP_CMD}
@${ECHO_MSG} "done"
.endif
.include "../../mk/bsd.pkg.mk"
|