pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/python Add PRINT_PLIST_AWKs for PYINC, PYSITELIB ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c0787a9b4978
branches:  trunk
changeset: 478420:c0787a9b4978
user:      recht <recht%pkgsrc.org@localhost>
date:      Fri Jul 23 15:35:50 2004 +0000

description:
Add PRINT_PLIST_AWKs for PYINC, PYSITELIB and PYLIB.

diffstat:

 lang/python/pyversion.mk |  16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r adfa348012c0 -r c0787a9b4978 lang/python/pyversion.mk
--- a/lang/python/pyversion.mk  Fri Jul 23 15:18:22 2004 +0000
+++ b/lang/python/pyversion.mk  Fri Jul 23 15:35:50 2004 +0000
@@ -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 @@
        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



Home | Main Index | Thread Index | Old Index