summaryrefslogtreecommitdiff
path: root/editors/xemacs-packages
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2008-01-01 20:22:36 +0000
committeragc <agc@pkgsrc.org>2008-01-01 20:22:36 +0000
commit0cc999c0432d8e20160ecd6d5725c2b837aa946d (patch)
tree158fa254cfea7235350c046fe63cb2c5f7a268ec /editors/xemacs-packages
parent8b8b72823354b2016e41ca588af02c44a5aa983f (diff)
downloadpkgsrc-0cc999c0432d8e20160ecd6d5725c2b837aa946d.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/xemacs-packages')
-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} && \