diff options
author | drochner <drochner@pkgsrc.org> | 2002-01-19 13:39:58 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2002-01-19 13:39:58 +0000 |
commit | a23b4940ea4f27e55ab2573459c109ffa663af45 (patch) | |
tree | dabaea61356b0a0a67f7a6cdb4dad7baf3321bec /lang | |
parent | ec37856b782eaed6fefb691df4c3ba1e6bfc1358 (diff) | |
download | pkgsrc-a23b4940ea4f27e55ab2573459c109ffa663af45.tar.gz |
some changes for scripts which get run during build:
-rearrange sed call so that an execute permission doesn't get lost
-correct python path earlier (post-patch)
Diffstat (limited to 'lang')
-rw-r--r-- | lang/python/application.buildlink.mk | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lang/python/application.buildlink.mk b/lang/python/application.buildlink.mk index 972429b51c0..bf73274d305 100644 --- a/lang/python/application.buildlink.mk +++ b/lang/python/application.buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: application.buildlink.mk,v 1.4 2002/01/18 14:16:19 drochner Exp $ +# $NetBSD: application.buildlink.mk,v 1.5 2002/01/19 13:39:58 drochner Exp $ .include "../../lang/python/pyversion.mk" @@ -9,9 +9,12 @@ _PYTHON_PATCH_SCRIPT_SED= -e "1s;^\#!.*python;\#!${PYTHONBIN};" .if defined(PYTHON_PATCH_SCRIPTS) -pre-install: +python-patch-scripts: .for s in ${PYTHON_PATCH_SCRIPTS} - ${SED} ${_PYTHON_PATCH_SCRIPT_SED} <${WRKSRC}/$s >${WRKSRC}/$s.patched - ${MV} -f ${WRKSRC}/$s.patched ${WRKSRC}/$s + ${CP} ${WRKSRC}/$s ${WRKSRC}/$s.tmp + ${CHMOD} +w ${WRKSRC}/$s + ${SED} ${_PYTHON_PATCH_SCRIPT_SED} <${WRKSRC}/$s.tmp >${WRKSRC}/$s .endfor + +post-patch: python-patch-scripts .endif |