summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authoragc <agc>2008-01-01 20:22:36 +0000
committeragc <agc>2008-01-01 20:22:36 +0000
commit41614db79579965b31472cf5396ee99d81c3b25a (patch)
tree158fa254cfea7235350c046fe63cb2c5f7a268ec /editors
parentca3da765c68702fdffa1ef3b08a464b683681a6e (diff)
downloadpkgsrc-41614db79579965b31472cf5396ee99d81c3b25a.tar.gz
Make this package pass the check-interpreters part of the installation
process on NetBSD. XXX - more work required on other platforms.
Diffstat (limited to 'editors')
-rw-r--r--editors/xemacs-packages/Makefile23
1 files changed, 22 insertions, 1 deletions
diff --git a/editors/xemacs-packages/Makefile b/editors/xemacs-packages/Makefile
index 0b3e807c5f0..4b2d1065448 100644
--- a/editors/xemacs-packages/Makefile
+++ b/editors/xemacs-packages/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.52 2006/09/06 15:38:32 tron Exp $
+# $NetBSD: Makefile,v 1.53 2008/01/01 20:22:36 agc Exp $
DISTNAME= xemacs-packages
PKGNAME= xemacs-packages-1.16
@@ -150,6 +150,19 @@ 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.zsh= ${PREFIX}/lib/xemacs/xemacs-packages/lisp/erc/mkChangeLog.upstream
+
+REPLACEMENT_PROGS= perl zsh
+
.include "../../editors/xemacs/Makefile.pkg"
.if defined(MANZ)
@@ -203,6 +216,14 @@ do-install:
@${ECHO_MSG} -n "Fixing file ownerships ... "
@${CHOWN} -R ${BINOWN}:${BINGRP} ${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 $$f $$f.pre; \
+ sed -e 's|#!.*${PROG}|${PREFIX}/bin/${PROG}|' $$f.pre > $$f;\
+ rm $$f.pre; \
+ done
+.endfor
.if defined(MANZ)
@${ECHO_MSG} -n "Compressing \".el\" files ... "
@cd ${PREFIX} && \