diff options
author | drochner <drochner@pkgsrc.org> | 2004-03-02 15:26:02 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2004-03-02 15:26:02 +0000 |
commit | 2aadeff11c410f6bf035ea8555117ca43d284dcc (patch) | |
tree | 6f772e87bcb3541eb661bebc23a5fc2dd7dd25cd /lang/python/application.mk | |
parent | 630848934b5c3b703d92f590ba1969e4cb351567 (diff) | |
download | pkgsrc-2aadeff11c410f6bf035ea8555117ca43d284dcc.tar.gz |
use REPLACE_INTERPRETER instead of our private implementation
Diffstat (limited to 'lang/python/application.mk')
-rw-r--r-- | lang/python/application.mk | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/lang/python/application.mk b/lang/python/application.mk index ae02bae7c0c..6f6da2879d8 100644 --- a/lang/python/application.mk +++ b/lang/python/application.mk @@ -1,4 +1,4 @@ -# $NetBSD: application.mk,v 1.5 2004/01/14 03:22:47 xtraeme Exp $ +# $NetBSD: application.mk,v 1.6 2004/03/02 15:26:02 drochner Exp $ .include "../../lang/python/pyversion.mk" @@ -6,21 +6,9 @@ # PYTHON_PATCH_SCRIPTS is a list of Python scripts to be installed, # relative to ${WRKSRC} -_PYTHON_PATCH_SCRIPT_SED= -e "1s;^\#!.*python[^ ]*;\#!${PYTHONBIN};" -_PYTHON_PATCH_SCRIPT_SED+= ${PYTHON_PATCH_SCRIPT_SED} - .if defined(PYTHON_PATCH_SCRIPTS) -python-patch-scripts: -.for FILE in ${PYTHON_PATCH_SCRIPTS} - cd ${WRKSRC}; for file in ${FILE}; do \ - ${SED} ${_PYTHON_PATCH_SCRIPT_SED} \ - $${file} > $${file}.fixed; \ - if [ -x $${file} ]; then \ - ${CHMOD} +x $${file}.fixed; \ - fi; \ - ${MV} -f $${file}.fixed $${file}; \ - done -.endfor - -post-patch: python-patch-scripts +REPLACE_INTERPRETER+= python +_REPLACE.python.old= .*python[^ ]* +_REPLACE.python.new= ${PYTHONBIN} +_REPLACE_FILES.python= ${PYTHON_PATCH_SCRIPTS} .endif |