summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorrecht <recht@pkgsrc.org>2004-07-23 15:35:50 +0000
committerrecht <recht@pkgsrc.org>2004-07-23 15:35:50 +0000
commitfd59b787275b82091f7385678f6d5205987dfed7 (patch)
treeb42c6f0e2ae0d49f3b7e0aec18ddf8da3eea4b44 /lang/python
parent3fa188873eef26ddb53e07e5abe0b40417c97a37 (diff)
downloadpkgsrc-fd59b787275b82091f7385678f6d5205987dfed7.tar.gz
Add PRINT_PLIST_AWKs for PYINC, PYSITELIB and PYLIB.
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/pyversion.mk16
1 files changed, 15 insertions, 1 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk
index ea438465830..0b815449422 100644
--- a/lang/python/pyversion.mk
+++ b/lang/python/pyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.28 2004/06/06 16:24:55 tv Exp $
+# $NetBSD: pyversion.mk,v 1.29 2004/07/23 15:35:50 recht Exp $
.if !defined(PYTHON_PYVERSION_MK)
PYTHON_PYVERSION_MK= defined
@@ -202,6 +202,20 @@ PYLIB!= ${PYTHONBIN} -c "import distutils.sysconfig; \
print distutils.sysconfig.get_python_lib(0, 1, \"\")" || ${ECHO} ""
PYSITELIB!= ${PYTHONBIN} -c "import distutils.sysconfig; \
print distutils.sysconfig.get_python_lib(0, 0, \"\")" || ${ECHO} ""
+
+PRINT_PLIST_AWK+= /^@dirrm ${PYINC:S|/|\\/|g}$$/ { next; }
+PRINT_PLIST_AWK+= /^@dirrm ${PYSITELIB:S|/|\\/|g}$$/ { next; }
+PRINT_PLIST_AWK+= /^@dirrm ${PYLIB:S|/|\\/|g}$$/ { next; }
+
+PRINT_PLIST_AWK+= /^(@dirrm )?${PYINC:S|/|\\/|g}/ \
+ { gsub(/${PYINC:S|/|\\/|g}/, "$${PYINC}"); \
+ print; next; }
+PRINT_PLIST_AWK+= /^(@dirrm )?${PYSITELIB:S|/|\\/|g}/ \
+ { gsub(/${PYSITELIB:S|/|\\/|g}/, "$${PYSITELIB}"); \
+ print; next; }
+PRINT_PLIST_AWK+= /^(@dirrm )?${PYLIB:S|/|\\/|g}/ \
+ { gsub(/${PYLIB:S|/|\\/|g}/, "$${PYLIB}"); \
+ print; next; }
.endif
.endif # PYTHON_PYVERSION_MK