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: hauke
Date: Wed Jul 17 09:57:13 UTC 2024
Modified Files:
pkgsrc/lang/python: pyversion.mk
Log Message:
During PLIST generation, only substitute PYINC, PYLIB, PYSITELIB paths
relative to PREFIX, but do allow for ${PLIST.*} prefixed lines from
the package Makefile.
While here, wrap long line.
To generate a diff of this commit:
cvs rdiff -u -r1.160 -r1.161 pkgsrc/lang/python/pyversion.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/pyversion.mk
diff -u pkgsrc/lang/python/pyversion.mk:1.160 pkgsrc/lang/python/pyversion.mk:1.161
--- pkgsrc/lang/python/pyversion.mk:1.160 Wed Jun 5 22:44:57 2024
+++ pkgsrc/lang/python/pyversion.mk Wed Jul 17 09:57:13 2024
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.160 2024/06/05 22:44:57 wiz Exp $
+# $NetBSD: pyversion.mk,v 1.161 2024/07/17 09:57:13 hauke Exp $
# This file should be included by packages as a way to depend on
# python when none of the other methods are appropriate, e.g. a
@@ -247,11 +247,12 @@ PYINC= include/python${PYVERSSUFFIX}
PYLIB= lib/python${PYVERSSUFFIX}
PYSITELIB= ${PYLIB}/site-packages
-PRINT_PLIST_AWK+= /^${PYINC:S|/|\\/|g}/ \
+# Expect paths directly under PREFIX, but allow for ${PLIST.*} prefix(es)
+PRINT_PLIST_AWK+= /(^|^\$$.+\})${PYINC:S|/|\\/|g}/ \
{ gsub(/${PYINC:S|/|\\/|g}/, "$${PYINC}") }
-PRINT_PLIST_AWK+= /^${PYSITELIB:S|/|\\/|g}/ \
+PRINT_PLIST_AWK+= /(^|^\$$.+\})${PYSITELIB:S|/|\\/|g}/ \
{ gsub(/${PYSITELIB:S|/|\\/|g}/, "$${PYSITELIB}") }
-PRINT_PLIST_AWK+= /^${PYLIB:S|/|\\/|g}/ \
+PRINT_PLIST_AWK+= /(^|^\$$.+\})${PYLIB:S|/|\\/|g}/ \
{ gsub(/${PYLIB:S|/|\\/|g}/, "$${PYLIB}") }
ALL_ENV+= PYTHON=${TOOL_PYTHONBIN}
@@ -284,8 +285,8 @@ _PKG_VARS.pyversion= \
PYTHON_VERSIONS_ACCEPTED PYTHON_VERSIONS_INCOMPATIBLE \
PYTHON_SELF_CONFLICT PYTHON_FOR_BUILD_ONLY USE_CMAKE BUILD_USES_CMAKE
_SYS_VARS.pyversion= \
- PYTHON_VERSION PYTHON_VERSION_REQD PYPACKAGE PYVERSSUFFIX PYPKGSRCDIR \
- PYPKGPREFIX PYTHONBIN PYTHONCONFIG PY_COMPILE_ALL \
+ PYTHON_VERSION PYTHON_VERSION_REQD PYPACKAGE PYVERSSUFFIX \
+ PYPKGSRCDIR PYPKGPREFIX PYTHONBIN PYTHONCONFIG PY_COMPILE_ALL \
PY_COMPILE_O_ALL PYINC PYLIB PYSITELIB CMAKE_ARGS \
TOOL_PYTHONBIN
_USE_VARS.pyversion= \
Home |
Main Index |
Thread Index |
Old Index