summaryrefslogtreecommitdiff
path: root/lang/python/extension.mk
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2014-01-24 12:42:52 +0000
committerobache <obache@pkgsrc.org>2014-01-24 12:42:52 +0000
commit977f9b898598ef41623529fefa1f119655903292 (patch)
treebe7d5ea53d20426f948c1a54f7d11d71d410c7a0 /lang/python/extension.mk
parent7ff137fcf76bcb27f9d30cd362724c0a4662dd1f (diff)
downloadpkgsrc-977f9b898598ef41623529fefa1f119655903292.tar.gz
Move PY_PEP3147 specific PRINT_PLIST handling from common mk/plist/print-plist.mk
to lang/python/extension.mk, handling reverse way.
Diffstat (limited to 'lang/python/extension.mk')
-rw-r--r--lang/python/extension.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/lang/python/extension.mk b/lang/python/extension.mk
index ebfbd201a24..af75b0207c4 100644
--- a/lang/python/extension.mk
+++ b/lang/python/extension.mk
@@ -1,4 +1,4 @@
-# $NetBSD: extension.mk,v 1.36 2014/01/12 09:01:50 wiz Exp $
+# $NetBSD: extension.mk,v 1.37 2014/01/24 12:42:52 obache Exp $
.include "../../lang/python/pyversion.mk"
@@ -69,4 +69,7 @@ PY_PEP3147?= yes
.if defined(PY_PEP3147) && !empty(PY_PEP3147:M[yY][eE][sS])
PLIST_AWK+= -f ${PKGSRCDIR}/lang/python/plist-python.awk
PLIST_AWK_ENV+= PYTHON_SOABI="cpython-${_PYTHON_VERSION}"
+PRINT_PLIST_AWK+= /^[^@]/ && /[^\/]+\.py[co]$$/ {
+PRINT_PLIST_AWK+= gsub(/__pycache__\//, "")
+PRINT_PLIST_AWK+= gsub(/\.cpython-${_PYTHON_VERSION}/, "")}
.endif