summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjoerg <joerg>2008-10-06 14:41:50 +0000
committerjoerg <joerg>2008-10-06 14:41:50 +0000
commit3827e9a5f64a404c5186f3c550b511c6054a1b5a (patch)
treee86f08137ec6bcb604e49208a3f45bd2b91f3932 /lang
parent5017f4711975c01c4f6ad1b7033d1728fa1a247e (diff)
downloadpkgsrc-3827e9a5f64a404c5186f3c550b511c6054a1b5a.tar.gz
Add support to derive the Python version from PKGNAME_OLD.
Diffstat (limited to 'lang')
-rw-r--r--lang/python/extension.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/python/extension.mk b/lang/python/extension.mk
index 9f61bacf6c3..5ddcbe41249 100644
--- a/lang/python/extension.mk
+++ b/lang/python/extension.mk
@@ -1,9 +1,11 @@
-# $NetBSD: extension.mk,v 1.19 2008/06/30 13:41:05 abs Exp $
+# $NetBSD: extension.mk,v 1.20 2008/10/06 14:41:50 joerg Exp $
# derive a python version from the package name if possible
# optionally handled quoted package names
.if defined(PKGNAME_REQD)
PYTHON_VERSION_REQD?= ${PKGNAME_REQD:C/(^.*-|^)py([0-9][0-9])-.*/\2/}
+.elif defined(PKGNAME_OLD)
+PYTHON_VERSION_REQD?= ${PKGNAME_OLD:C/(^.*-|^)py([0-9][0-9])-.*/\2/}
.endif
.include "../../lang/python/pyversion.mk"