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 | 543328633d021da3e9c447c522d885d4eb315ea6 (patch) | |
tree | b4e04800efdd11fd549fadf3a482094d822ff75e | |
parent | a856ec03a1ef4bedc6c18e570e8d9d89526960e9 (diff) | |
download | pkgsrc-543328633d021da3e9c447c522d885d4eb315ea6.tar.gz |
Added REPLACE_PYTHON as an alias to PYTHON_PATCH_SCRIPTS, to have more
consistent names. (See REPLACE_PERL, REPLACE_AWK, REPLACE_SH, ...)
-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 |