summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authoruebayasi <uebayasi@pkgsrc.org>2007-10-01 04:16:07 +0000
committeruebayasi <uebayasi@pkgsrc.org>2007-10-01 04:16:07 +0000
commit445e230543567e5652e2c123efca69e6b0205622 (patch)
tree5d61aec8e33af6b421901afb6d483c0eab52dd44 /shells
parent2bf917f9ea6abb8785b7d7049ce83453f39411e3 (diff)
downloadpkgsrc-445e230543567e5652e2c123efca69e6b0205622.tar.gz
Fix embedded paths to /bin/env and /usr/local/bin/zsh. Reported by joerg.
Diffstat (limited to 'shells')
-rw-r--r--shells/zsh-current/Makefile25
1 files changed, 24 insertions, 1 deletions
diff --git a/shells/zsh-current/Makefile b/shells/zsh-current/Makefile
index 8701b773b6d..9c8c07dfa26 100644
--- a/shells/zsh-current/Makefile
+++ b/shells/zsh-current/Makefile
@@ -1,8 +1,31 @@
-# $NetBSD: Makefile,v 1.11 2007/09/21 05:24:43 uebayasi Exp $
+# $NetBSD: Makefile,v 1.12 2007/10/01 04:16:07 uebayasi Exp $
.include "../../shells/zsh/Makefile.common"
ZSH_VERSION= 4.3.4
ZSH_MAINTAINER= uebayasi@NetBSD.org
+USE_TOOLS+= env
+
+SUBST_CLASSES+= prefix-fixup
+SUBST_STAGE.prefix-fixup= pre-configure
+SUBST_FILES.prefix-fixup= \
+ Misc/globtests \
+ Misc/globtests.ksh \
+ Test/ztst.zsh \
+ Util/reporter \
+ Functions/Calendar/calendar_add \
+ Functions/Misc/run-help \
+ Functions/Misc/checkmail \
+ Functions/Misc/zcalc \
+ Functions/Misc/zkbd \
+ Functions/Example/cat
+SUBST_SED.prefix-fixup= \
+ -e 's|^\#\!/bin/env|\#\!${TOOLS_PATH.env}|g' \
+ -e 's|^\#\! /bin/env|\#\! ${TOOLS_PATH.env}|g' \
+ -e 's|^\#\!/bin/zsh|\#\!${PREFIX}/bin/zsh|g' \
+ -e 's|^\#\! /bin/zsh|\#\! ${PREFIX}/bin/zsh|g' \
+ -e 's|^\#\!/usr/local/bin/zsh|\#\!${PREFIX}/bin/zsh|g' \
+ -e 's|^\#\! /usr/local/bin/zsh|\#\! ${PREFIX}/bin/zsh|g'
+
.include "../../mk/bsd.pkg.mk"