summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2011-12-03 00:02:14 +0000
committerjoerg <joerg@pkgsrc.org>2011-12-03 00:02:14 +0000
commitbbde65f2e00b8129333e938dbda61639dcfc274d (patch)
tree91980d7516c0a1d7951f6b3e9a7efbf4077abf95 /lang/python
parent92cdf9b29f1fecfb347d0f402bd4113590150e97 (diff)
downloadpkgsrc-bbde65f2e00b8129333e938dbda61639dcfc274d.tar.gz
Tag the 28 locations that result in a Python 3.1 package as supporting so.
Remove it from the default list for the rest.
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/pyversion.mk16
1 files changed, 14 insertions, 2 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk
index 7dd40be49fb..f9338c6124d 100644
--- a/lang/python/pyversion.mk
+++ b/lang/python/pyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.91 2011/07/07 18:46:32 joerg Exp $
+# $NetBSD: pyversion.mk,v 1.92 2011/12/03 00:02:15 joerg Exp $
# This file determines which Python version is used as a dependency for
# a package.
@@ -19,7 +19,15 @@
# preferred over later ones.
#
# Possible values: 31 27 26 25 24
-# Default: 31 27 26 25 24
+# Default: (31) 27 26 25 24
+#
+# PYTHON_VERSIONS_INCLUDE_3X
+# Wether the default PYTHON_VERSIONS_ACCEPTED should include
+# 3.x versions for for this package or not.
+# This variable must be set before including bsd.prefs.mk.
+#
+# Possible values: yes no
+# Default: no
#
# PYTHON_VERSIONS_INCOMPATIBLE
# The Python versions that are NOT acceptable for the package.
@@ -69,7 +77,11 @@ BUILD_DEFS+= PYTHON_VERSION_DEFAULT
BUILD_DEFS_EFFECTS+= PYPACKAGE
PYTHON_VERSION_DEFAULT?= 26
+.if ${PYTHON_VERSIONS_INCLUDE_3X:U:tl} == "yes"
PYTHON_VERSIONS_ACCEPTED?= 31 27 26 25 24
+.else
+PYTHON_VERSIONS_ACCEPTED?= 27 26 25 24
+.endif
PYTHON_VERSIONS_INCOMPATIBLE?= # empty by default
BUILDLINK_API_DEPENDS.python24?= python24>=2.4