pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/python With the advent of Apache module prefixes ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/baf808b585dc
branches: trunk
changeset: 534759:baf808b585dc
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed Oct 31 00:59:52 2007 +0000
description:
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:
lang/python/extension.mk | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r 1877412d855f -r baf808b585dc lang/python/extension.mk
--- a/lang/python/extension.mk Tue Oct 30 23:35:51 2007 +0000
+++ b/lang/python/extension.mk Wed Oct 31 00:59:52 2007 +0000
@@ -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"
Home |
Main Index |
Thread Index |
Old Index