summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjoerg <joerg>2011-12-03 00:02:14 +0000
committerjoerg <joerg>2011-12-03 00:02:14 +0000
commitfa40a4c0eb72e46bf089aa7b184add410dbb1dc5 (patch)
tree91980d7516c0a1d7951f6b3e9a7efbf4077abf95 /lang
parent5852319f6042af4be460ce19567e74c01d9c97b4 (diff)
downloadpkgsrc-fa40a4c0eb72e46bf089aa7b184add410dbb1dc5.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')
-rw-r--r--lang/py-cxfreeze/Makefile4
-rw-r--r--lang/python/pyversion.mk16
2 files changed, 17 insertions, 3 deletions
diff --git a/lang/py-cxfreeze/Makefile b/lang/py-cxfreeze/Makefile
index 6cb8ef87563..ce85856b85f 100644
--- a/lang/py-cxfreeze/Makefile
+++ b/lang/py-cxfreeze/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2011/01/11 11:39:50 drochner Exp $
+# $NetBSD: Makefile,v 1.3 2011/12/03 00:02:15 joerg Exp $
#
VERS= 4.2.2
@@ -14,6 +14,8 @@ LICENSE= python-software-foundation
PKG_DESTDIR_SUPPORT= user-destdir
+PYTHON_VERSIONS_INCLUDE_3X= yes
+
USE_LANGUAGES= c c++
PYDISTUTILSPKG= yes
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