summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorcheusov <cheusov@pkgsrc.org>2012-10-03 23:39:21 +0000
committercheusov <cheusov@pkgsrc.org>2012-10-03 23:39:21 +0000
commitd62241fc589197e6df5d480d00023edd4b612646 (patch)
treeda47c5dfdf13294d2ef529dc755e18f023043cfa /lang
parentae178ba50a79b86c0be2d430503851c44d8364d1 (diff)
downloadpkgsrc-d62241fc589197e6df5d480d00023edd4b612646.tar.gz
Introduce variable PYTHON_SELF_CONFLICT
for registering conflicts between python modules.
Diffstat (limited to 'lang')
-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"