pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/python



Module Name:    pkgsrc
Committed By:   riastradh
Date:           Sat Jan 27 02:08:28 UTC 2024

Modified Files:
        pkgsrc/lang/python: application.mk

Log Message:
lang/python: New REPLACE_TOOL_PYTHON.

Like REPLACE_PYTHON but for scripts that run at build-time, rather
than scripts that get installed in the package.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/lang/python/application.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/python/application.mk
diff -u pkgsrc/lang/python/application.mk:1.14 pkgsrc/lang/python/application.mk:1.15
--- pkgsrc/lang/python/application.mk:1.14      Tue Jun 27 10:31:21 2023
+++ pkgsrc/lang/python/application.mk   Sat Jan 27 02:08:28 2024
@@ -1,4 +1,4 @@
-# $NetBSD: application.mk,v 1.14 2023/06/27 10:31:21 riastradh Exp $
+# $NetBSD: application.mk,v 1.15 2024/01/27 02:08:28 riastradh Exp $
 #
 # Replace the #! interpreter for Python scripts.
 #
@@ -13,15 +13,25 @@
 #      A list of filename patterns for Python scripts to be installed,
 #      relative to ${WRKSRC}.
 #
+# REPLACE_TOOL_PYTHON
+#      A list of filename patterns for Python scripts to be run at
+#      build time, relative to ${WRKSRC}.
+#
 # Keywords: python
 #
 
 .include "../../lang/python/pyversion.mk"
 
-# XXX Handle TOOL_PYTHONBIN replacement too.
 .if defined(REPLACE_PYTHON)
 REPLACE_INTERPRETER+=  python
 REPLACE.python.old=    .*python3\{0,1\}[^ ]*
 REPLACE.python.new=    ${PYTHONBIN}
 REPLACE_FILES.python=  ${REPLACE_PYTHON}
 .endif
+
+.if defined(REPLACE_TOOL_PYTHON)
+REPLACE_INTERPRETER+=          tool-python
+REPLACE.tool-python.old=       .*python3\{0,1\}[^ ]*
+REPLACE.tool-python.new=       ${TOOL_PYTHONBIN}
+REPLACE_FILES.tool-python=     ${REPLACE_TOOL_PYTHON}
+.endif



Home | Main Index | Thread Index | Old Index