pkgsrc/lang/python/application.mk
rillig 543328633d Added REPLACE_PYTHON as an alias to PYTHON_PATCH_SCRIPTS, to have more
consistent names. (See REPLACE_PERL, REPLACE_AWK, REPLACE_SH, ...)
2007-02-20 11:30:43 +00:00

23 lines
584 B
Makefile

# $NetBSD: application.mk,v 1.9 2007/02/20 11:30:43 rillig Exp $
#
# Replace the #! interpreter for Python scripts.
#
# 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
#
.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_PYTHON}
.endif