summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorcheusov <cheusov>2012-10-03 23:39:21 +0000
committercheusov <cheusov>2012-10-03 23:39:21 +0000
commitdc40a26024d85d07535fe4b732e30978908b9b14 (patch)
treeda47c5dfdf13294d2ef529dc755e18f023043cfa /lang/python
parent94fd30713a018421c20f6ff99d487057b9cd2298 (diff)
downloadpkgsrc-dc40a26024d85d07535fe4b732e30978908b9b14.tar.gz
Introduce variable PYTHON_SELF_CONFLICT
for registering conflicts between python modules.
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/pyversion.mk17
1 files changed, 16 insertions, 1 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk
index c3618da8a39..60425a2dcfa 100644
--- a/lang/python/pyversion.mk
+++ b/lang/python/pyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.102 2012/10/03 22:03:41 wiz Exp $
+# $NetBSD: pyversion.mk,v 1.103 2012/10/03 23:39:21 cheusov Exp $
# This file determines which Python version is used as a dependency for
# a package.
@@ -49,6 +49,13 @@
# Possible values: (defined) (undefined)
# Default: (undefined)
#
+# PYTHON_SELF_CONFLICT
+# If set to "yes", additional CONFLICTS entries are added for
+# registering a conflict between pyNN-<modulename> packages.
+#
+# Possible values: yes no
+# Default: no
+#
# === Defined variables ===
#
# PYPKGPREFIX
@@ -141,6 +148,14 @@ MULTI+= PYTHON_VERSION_REQD=${_PYTHON_VERSION}
_PYTHON_VERSION= none
.endif
+# Additional CONFLICTS
+.if ${PYTHON_SELF_CONFLICT:U:tl} == "yes"
+.for i in ${PYTHON_VERSIONS_ACCEPTED:N${_PYTHON_VERSION}}
+CONFLICTS += ${PKGNAME:S/py${_PYTHON_VERSION}/py${i}/:C/-[0-9].*$/-[0-9]*/}
+.endfor
+.endif # PYCONFLICTS
+
+#
PLIST_VARS+= py2x py3x
.if ${_PYTHON_VERSION} == "32"