diff options
Diffstat (limited to 'lang')
-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 |