From 3591c076e219fa554844e06e9bf29007a838b897 Mon Sep 17 00:00:00 2001 From: uebayasi Date: Tue, 23 Dec 2008 15:59:08 +0000 Subject: Fix interpreter paths. Patch provided by David Brownlee, thanks! --- shells/zsh/Makefile | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'shells') diff --git a/shells/zsh/Makefile b/shells/zsh/Makefile index 5e6f5a67c11..79ee13b1947 100644 --- a/shells/zsh/Makefile +++ b/shells/zsh/Makefile @@ -1,8 +1,30 @@ -# $NetBSD: Makefile,v 1.54 2008/12/21 16:53:31 uebayasi Exp $ +# $NetBSD: Makefile,v 1.55 2008/12/23 15:59:08 uebayasi Exp $ .include "../../shells/zsh/Makefile.common" +PKGREVISION= 1 ZSH_VERSION= 4.2.7 ZSH_MAINTAINER= uebayasi@NetBSD.org +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" -- cgit v1.2.3