diff options
author | joerg <joerg@pkgsrc.org> | 2008-10-06 14:41:50 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-10-06 14:41:50 +0000 |
commit | db9239e13f33cc30fc40bd3f87e287f04f486d0d (patch) | |
tree | e86f08137ec6bcb604e49208a3f45bd2b91f3932 /lang/python | |
parent | 9cc36553960d8113dace3fd0c625d8db27d9634d (diff) | |
download | pkgsrc-db9239e13f33cc30fc40bd3f87e287f04f486d0d.tar.gz |
Add support to derive the Python version from PKGNAME_OLD.
Diffstat (limited to 'lang/python')
-rw-r--r-- | lang/python/extension.mk | 4 |
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" |