diff options
author | rillig <rillig@pkgsrc.org> | 2007-02-20 11:30:43 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-02-20 11:30:43 +0000 |
commit | 936e3ce1c2e00e497c0b21ed235ee8a9331dae67 (patch) | |
tree | b4e04800efdd11fd549fadf3a482094d822ff75e /lang/python | |
parent | a35b3ef54a3994ce4ef9c4e5e90309d1ab63966d (diff) | |
download | pkgsrc-936e3ce1c2e00e497c0b21ed235ee8a9331dae67.tar.gz |
Added REPLACE_PYTHON as an alias to PYTHON_PATCH_SCRIPTS, to have more
consistent names. (See REPLACE_PERL, REPLACE_AWK, REPLACE_SH, ...)
Diffstat (limited to 'lang/python')
-rw-r--r-- | lang/python/application.mk | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/lang/python/application.mk b/lang/python/application.mk index 9e25f1c2d47..b9b63be244c 100644 --- a/lang/python/application.mk +++ b/lang/python/application.mk @@ -1,18 +1,23 @@ -# $NetBSD: application.mk,v 1.8 2007/01/24 09:59:02 rillig Exp $ - -.include "../../lang/python/pyversion.mk" - -# replace shell magic by python version specific path +# $NetBSD: application.mk,v 1.9 2007/02/20 11:30:43 rillig Exp $ +# +# Replace the #! interpreter for Python scripts. # -# PYTHON_PATCH_SCRIPTS is a list of Python scripts to be installed, -# relative to ${WRKSRC} +# Package-settable variables: +# +# REPLACE_PYTHON +# A list of Python scripts to be installed, relative to ${WRKSRC}. +# +# PYTHON_PATCH_SCRIPTS +# The same as REPLACE_PYTHON. # # Keywords: python # -.if defined(PYTHON_PATCH_SCRIPTS) +.include "../../lang/python/pyversion.mk" + +.if defined(PYTHON_PATCH_SCRIPTS) || defined(REPLACE_PYTHON) REPLACE_INTERPRETER+= python REPLACE.python.old= .*python[^ ]* REPLACE.python.new= ${PYTHONBIN} -REPLACE_FILES.python= ${PYTHON_PATCH_SCRIPTS} +REPLACE_FILES.python= ${PYTHON_PATCH_SCRIPTS} ${REPLACE_PYTHON} .endif |