diff options
author | drochner <drochner> | 2002-01-18 14:16:19 +0000 |
---|---|---|
committer | drochner <drochner> | 2002-01-18 14:16:19 +0000 |
commit | e7d026c9213fc0ceb9d8294104bf17f9638cf138 (patch) | |
tree | 5331c557d0bf2bc1b03da12b41b227f1973f72e2 /lang/python | |
parent | 25bb51a7e4f27dae80291cec1c59beb8152ac739 (diff) | |
download | pkgsrc-e7d026c9213fc0ceb9d8294104bf17f9638cf138.tar.gz |
do the script patching pre-install rather than post-build,
to make it work is NO_BUILD is set
Diffstat (limited to 'lang/python')
-rw-r--r-- | lang/python/application.buildlink.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lang/python/application.buildlink.mk b/lang/python/application.buildlink.mk index 3cca1bc4fdf..972429b51c0 100644 --- a/lang/python/application.buildlink.mk +++ b/lang/python/application.buildlink.mk @@ -1,13 +1,15 @@ -# $NetBSD: application.buildlink.mk,v 1.3 2002/01/18 11:00:56 drochner Exp $ +# $NetBSD: application.buildlink.mk,v 1.4 2002/01/18 14:16:19 drochner Exp $ .include "../../lang/python/pyversion.mk" # replace shell magic by python version specific path +# PYTHON_PATCH_SCRIPTS is a list of Python scripts to be installed, +# relative to ${WRKSRC} _PYTHON_PATCH_SCRIPT_SED= -e "1s;^\#!.*python;\#!${PYTHONBIN};" .if defined(PYTHON_PATCH_SCRIPTS) -post-build: +pre-install: .for s in ${PYTHON_PATCH_SCRIPTS} ${SED} ${_PYTHON_PATCH_SCRIPT_SED} <${WRKSRC}/$s >${WRKSRC}/$s.patched ${MV} -f ${WRKSRC}/$s.patched ${WRKSRC}/$s |