pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/python Add support to derive the Python version f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/18e92613c3b4
branches:  trunk
changeset: 547991:18e92613c3b4
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Oct 06 14:41:50 2008 +0000

description:
Add support to derive the Python version from PKGNAME_OLD.

diffstat:

 lang/python/extension.mk |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r e4b32c7b5ba6 -r 18e92613c3b4 lang/python/extension.mk
--- a/lang/python/extension.mk  Mon Oct 06 14:12:24 2008 +0000
+++ b/lang/python/extension.mk  Mon Oct 06 14:41:50 2008 +0000
@@ -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"



Home | Main Index | Thread Index | Old Index