62a0adf4a6
There are several places in pkgsrc where the files to be patched are listed individually instead of just saying util/*/*.sh. This is unnecessarily detailed. Encourage package authors to use filename patterns more often. An example is REPLACE_PYTHON in lang/clang, which currently fails because some of the listed files don't exist anymore.
26 lines
768 B
Makefile
26 lines
768 B
Makefile
# $NetBSD: application.mk,v 1.13 2020/03/24 04:40:34 rillig Exp $
|
|
#
|
|
# Replace the #! interpreter for Python scripts.
|
|
#
|
|
# This mk fragment should be included in all python packages that
|
|
# install python scripts, or at least those that don't use setuptools
|
|
# or some other mechanism to set the real path. Specifically, it is
|
|
# reasonable to include both egg.mk and application.mk.
|
|
#
|
|
# Package-settable variables:
|
|
#
|
|
# REPLACE_PYTHON
|
|
# A list of filename patterns for Python scripts to be installed,
|
|
# relative to ${WRKSRC}.
|
|
#
|
|
# Keywords: python
|
|
#
|
|
|
|
.include "../../lang/python/pyversion.mk"
|
|
|
|
.if defined(REPLACE_PYTHON)
|
|
REPLACE_INTERPRETER+= python
|
|
REPLACE.python.old= .*python3\{0,1\}[^ ]*
|
|
REPLACE.python.new= ${PYTHONBIN}
|
|
REPLACE_FILES.python= ${REPLACE_PYTHON}
|
|
.endif
|