diff options
author | recht <recht> | 2004-07-23 15:35:50 +0000 |
---|---|---|
committer | recht <recht> | 2004-07-23 15:35:50 +0000 |
commit | eebf03cd36ad1a311a09590eaf9e924dcc1d307d (patch) | |
tree | b42c6f0e2ae0d49f3b7e0aec18ddf8da3eea4b44 /lang/python | |
parent | fdb4b2b0a7a4765037698ffed28bcea5105643f6 (diff) | |
download | pkgsrc-eebf03cd36ad1a311a09590eaf9e924dcc1d307d.tar.gz |
Add PRINT_PLIST_AWKs for PYINC, PYSITELIB and PYLIB.
Diffstat (limited to 'lang/python')
-rw-r--r-- | lang/python/pyversion.mk | 16 |
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 |