diff options
author | joerg <joerg@pkgsrc.org> | 2007-10-31 00:59:52 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-10-31 00:59:52 +0000 |
commit | e616abfb192e0a74257257814fd5e2d5e6408b4e (patch) | |
tree | 545fb34dc2a0033888402d91b6d0d8b658655651 /lang/python | |
parent | 6974a32cea96c8bf7b22a11004879a8d423c5ac4 (diff) | |
download | pkgsrc-e616abfb192e0a74257257814fd5e2d5e6408b4e.tar.gz |
With the advent of Apache module prefixes the Python package prefix
might not the first component of PKGNAME_REQD. Change this to match
either py[0-9][0-9] or the same string after a hyphen.
Diffstat (limited to 'lang/python')
-rw-r--r-- | lang/python/extension.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/python/extension.mk b/lang/python/extension.mk index 432dcfcaddf..884295d80ea 100644 --- a/lang/python/extension.mk +++ b/lang/python/extension.mk @@ -1,9 +1,9 @@ -# $NetBSD: extension.mk,v 1.16 2007/08/09 13:24:12 joerg Exp $ +# $NetBSD: extension.mk,v 1.17 2007/10/31 00:59:52 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([^-]*)-.*/\1/} +PYTHON_VERSION_REQD?= ${PKGNAME_REQD:C/(^.*-|^)py([0-9][0-9])-.*/\2/} .endif .include "../../lang/python/pyversion.mk" |