2014-05-30 01:35:13 +02:00
|
|
|
# $NetBSD: Makefile,v 1.61 2014/05/29 23:36:32 wiz Exp $
|
1999-07-05 18:26:40 +02:00
|
|
|
|
|
|
|
DISTNAME= xemacs-packages
|
2006-07-04 19:50:22 +02:00
|
|
|
PKGNAME= xemacs-packages-1.16
|
2014-05-30 01:35:13 +02:00
|
|
|
PKGREVISION= 5
|
2008-04-30 08:35:01 +02:00
|
|
|
|
1999-07-05 18:26:40 +02:00
|
|
|
CATEGORIES= editors
|
2003-06-30 02:42:33 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_XEMACS:=packages/}
|
2003-02-22 10:57:07 +01:00
|
|
|
DISTFILES= \
|
2003-12-22 09:14:26 +01:00
|
|
|
Sun-1.15-pkg.tar.gz \
|
|
|
|
ada-1.14-pkg.tar.gz \
|
2006-07-04 19:50:22 +02:00
|
|
|
apel-1.32-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
auctex-1.36-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
bbdb-1.24-pkg.tar.gz \
|
|
|
|
build-1.14-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
c-support-1.19-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
calc-1.24-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
calendar-1.23-pkg.tar.gz \
|
|
|
|
cc-mode-1.42-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
clearcase-1.08-pkg.tar.gz \
|
|
|
|
cookie-1.15-pkg.tar.gz \
|
|
|
|
crisp-1.14-pkg.tar.gz \
|
|
|
|
debug-1.17-pkg.tar.gz \
|
2003-06-30 02:42:33 +02:00
|
|
|
dictionary-1.12-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
dired-1.15-pkg.tar.gz \
|
|
|
|
docbookide-0.07-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
ecb-1.14-pkg.tar.gz \
|
|
|
|
ecrypto-0.16-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
edebug-1.20-pkg.tar.gz \
|
|
|
|
edict-1.16-pkg.tar.gz \
|
|
|
|
ediff-1.49-pkg.tar.gz \
|
2012-04-24 17:43:32 +02:00
|
|
|
edit-utils-2.43-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
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 \
|
2004-02-15 04:42:31 +01:00
|
|
|
erc-0.05-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
eshell-1.06-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
ess-1.07-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
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 \
|
2004-02-15 04:42:31 +01:00
|
|
|
fsf-compat-1.14-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
games-1.15-pkg.tar.gz \
|
|
|
|
general-docs-1.01-pkg.tar.gz \
|
|
|
|
gnats-1.16-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
gnus-1.79-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
haskell-mode-1.06-pkg.tar.gz \
|
|
|
|
hm--html-menus-1.23-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
hyperbole-1.15-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
ibuffer-1.09-pkg.tar.gz \
|
|
|
|
idlwave-1.31-pkg.tar.gz \
|
|
|
|
igrep-1.12-pkg.tar.gz \
|
|
|
|
ilisp-1.33-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
ispell-1.29-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
jde-1.46-pkg.tar.gz \
|
|
|
|
latin-unity-1.09-pkg.tar.gz \
|
|
|
|
leim-1.22-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
liece-1.13-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
locale-1.21-pkg.tar.gz \
|
|
|
|
lookup-1.14-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
mail-lib-1.64-pkg.tar.gz \
|
|
|
|
mailcrypt-2.14-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
mew-1.18-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
mh-e-1.28-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
mine-1.16-pkg.tar.gz \
|
|
|
|
misc-games-1.18-pkg.tar.gz \
|
|
|
|
mmm-mode-1.01-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
mule-base-1.46-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
mule-ucs-1.05-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
net-utils-1.38-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
ocaml-0.05-pkg.tar.gz \
|
|
|
|
oo-browser-1.04-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
os-utils-1.35-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
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 \
|
2004-02-15 04:42:31 +01:00
|
|
|
prog-modes-1.94-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
ps-print-1.09-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
psgml-1.42-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
psgml-dtds-1.03-pkg.tar.gz \
|
|
|
|
python-modes-1.03-pkg.tar.gz \
|
|
|
|
reftex-1.33-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
riece-1.14-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
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 \
|
2004-02-15 04:42:31 +01:00
|
|
|
sgml-1.11-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
sh-script-1.18-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
sieve-1.15-pkg.tar.gz \
|
2002-11-12 22:11:13 +01:00
|
|
|
skk-1.23-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
slider-1.15-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
sml-mode-0.11-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
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 \
|
2004-02-15 04:42:31 +01:00
|
|
|
text-modes-1.73-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
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 \
|
2004-02-15 04:42:31 +01:00
|
|
|
tramp-1.17-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
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 \
|
2004-02-15 04:42:31 +01:00
|
|
|
x-symbol-1.09-pkg.tar.gz \
|
|
|
|
xemacs-base-1.84-pkg.tar.gz \
|
|
|
|
xemacs-devel-1.61-pkg.tar.gz \
|
2003-12-22 09:14:26 +01:00
|
|
|
xslide-1.09-pkg.tar.gz \
|
2002-11-12 22:11:13 +01:00
|
|
|
xslt-process-1.11-pkg.tar.gz \
|
2004-02-15 04:42:31 +01:00
|
|
|
zenirc-1.15-pkg.tar.gz
|
2003-02-22 10:57:07 +01:00
|
|
|
### DISTFILES
|
1999-07-05 20:13:34 +02:00
|
|
|
|
2006-09-06 17:38:32 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
1999-07-05 20:13:34 +02:00
|
|
|
HOMEPAGE= http://www.xemacs.org/
|
2001-02-16 15:38:16 +01:00
|
|
|
COMMENT= Common elisp packages for xemacs 21
|
1999-07-05 20:13:34 +02:00
|
|
|
|
2005-03-04 15:54:56 +01:00
|
|
|
DEPENDS+= xemacs{,-nox11}>=21.1.14:../../editors/xemacs
|
1999-07-05 18:26:40 +02:00
|
|
|
|
2008-03-03 19:25:52 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= destdir
|
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2003-07-07 14:51:44 +02:00
|
|
|
DIST_SUBDIR= ${PKGBASE}
|
1999-07-05 20:13:34 +02:00
|
|
|
EXTRACT_ONLY= # empty
|
1999-07-05 18:26:40 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
2012-04-24 17:43:32 +02:00
|
|
|
USE_TOOLS+= printf gtar gawk
|
2005-05-16 03:15:30 +02:00
|
|
|
|
2006-02-17 20:21:53 +01:00
|
|
|
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
|
|
|
|
|
2008-01-01 21:22:36 +01:00
|
|
|
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
|
|
|
|
|
2011-07-05 00:23:12 +02:00
|
|
|
REPLACEMENTS.python+= ${PREFIX}/lib/xemacs/xemacs-packages/lisp/python-modes/pydoc_lisp.py
|
|
|
|
|
2008-01-01 21:22:36 +01:00
|
|
|
REPLACEMENTS.zsh= ${PREFIX}/lib/xemacs/xemacs-packages/lisp/erc/mkChangeLog.upstream
|
|
|
|
|
2011-07-05 00:23:12 +02:00
|
|
|
REPLACEMENT_PROGS= perl python zsh
|
2008-01-01 21:22:36 +01:00
|
|
|
|
2002-04-26 11:35:06 +02:00
|
|
|
.include "../../editors/xemacs/Makefile.pkg"
|
2002-04-26 09:24:14 +02:00
|
|
|
|
2000-11-25 12:00:11 +01:00
|
|
|
.if defined(MANZ)
|
|
|
|
PLIST_SUBST+= ELSUFX=.gz
|
|
|
|
.else
|
|
|
|
PLIST_SUBST+= ELSUFX=
|
|
|
|
.endif
|
|
|
|
|
2003-02-22 10:57:07 +01:00
|
|
|
# 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:
|
2012-04-24 17:43:32 +02:00
|
|
|
{ \
|
2003-02-22 10:57:07 +01:00
|
|
|
${SED} '/^DISTFILES/q' ${PKGDIR}/Makefile; \
|
|
|
|
${SED} 's|^| |' ${PKGDIR}/packages.list; \
|
|
|
|
${SED} -n '/^### DISTFILES/,$$p' ${PKGDIR}/Makefile; \
|
|
|
|
} >${PKGDIR}/Makefile.work
|
2012-04-24 17:43:32 +02:00
|
|
|
{ \
|
2003-02-22 10:57:07 +01:00
|
|
|
${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"
|
|
|
|
|
1999-07-05 18:26:40 +02:00
|
|
|
do-install:
|
2008-03-03 19:25:52 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/xemacs/xemacs-packages
|
2013-04-06 15:24:18 +02:00
|
|
|
.for distfile in ${DISTFILES}
|
|
|
|
@${ECHO_MSG} -n "Extracting ${distfile} ... "
|
2012-04-24 17:43:32 +02:00
|
|
|
${GTAR} xCzf ${DESTDIR}${PREFIX}/lib/xemacs/xemacs-packages \
|
2013-04-06 15:24:18 +02:00
|
|
|
${DISTDIR}/${DIST_SUBDIR}/${distfile}
|
2000-11-25 12:00:11 +01:00
|
|
|
@${ECHO_MSG} "done"
|
1999-07-05 20:13:34 +02:00
|
|
|
.endfor
|
2000-11-25 12:00:11 +01:00
|
|
|
@${ECHO_MSG} -n "Fixing file ownerships ... "
|
2012-04-24 17:43:32 +02:00
|
|
|
${CHOWN} -R ${BINOWN}:${BINGRP} \
|
2008-03-03 19:25:52 +01:00
|
|
|
${DESTDIR}${PREFIX}/lib/xemacs/xemacs-packages
|
2000-11-25 12:00:11 +01:00
|
|
|
@${ECHO_MSG} "done"
|
2008-04-30 08:35:01 +02:00
|
|
|
@${ECHO_MSG} -n "Fixing file permissions ... "
|
2012-04-24 17:43:32 +02:00
|
|
|
${CHMOD} -R g-w,o-w ${DESTDIR}${PREFIX}/lib/xemacs/xemacs-packages
|
2008-04-30 08:35:01 +02:00
|
|
|
@${ECHO_MSG} "done"
|
2013-04-06 15:24:18 +02:00
|
|
|
.for prog in ${REPLACEMENT_PROGS}
|
|
|
|
@${ECHO_MSG} "Fixing ${prog} paths"
|
|
|
|
for f in ${REPLACEMENTS.${prog}}; do \
|
2008-03-03 19:25:52 +01:00
|
|
|
cp ${DESTDIR}$$f ${DESTDIR}$$f.pre; \
|
2013-04-06 15:24:18 +02:00
|
|
|
${SED} -e 's|#!.*${prog}|${PREFIX}/bin/${prog}|' \
|
2008-03-03 19:25:52 +01:00
|
|
|
${DESTDIR}$$f.pre > ${DESTDIR}$$f; \
|
|
|
|
rm ${DESTDIR}$$f.pre; \
|
2008-01-01 21:22:36 +01:00
|
|
|
done
|
|
|
|
.endfor
|
2000-11-25 12:00:11 +01:00
|
|
|
.if defined(MANZ)
|
|
|
|
@${ECHO_MSG} -n "Compressing \".el\" files ... "
|
2012-04-24 17:43:32 +02:00
|
|
|
cd ${DESTDIR}${PREFIX} && \
|
2003-05-05 19:38:02 +02:00
|
|
|
${GREP} '\$${ELSUFX}$$' ${PLIST_SRC} | \
|
|
|
|
${SED} -e 's#\$${ELSUFX}$$##' | \
|
|
|
|
${XARGS} ${GZIP_CMD}
|
2000-11-25 12:00:11 +01:00
|
|
|
@${ECHO_MSG} "done"
|
|
|
|
.endif
|
1999-07-05 20:13:34 +02:00
|
|
|
|
1999-08-27 22:25:55 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|