summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-09-17 13:33:55 +0000
committerMichał Górny <mgorny@gentoo.org>2013-09-17 13:33:55 +0000
commit576adf074f8da8b33b4626a59b2fe9c3b2274793 (patch)
treeeda9db55e3d2a6c90548f7dd362c9e1145efa803 /eclass/python-single-r1.eclass
parentStable on amd64 and x86 (diff)
downloadhistorical-576adf074f8da8b33b4626a59b2fe9c3b2274793.tar.gz
historical-576adf074f8da8b33b4626a59b2fe9c3b2274793.tar.bz2
historical-576adf074f8da8b33b4626a59b2fe9c3b2274793.zip
Support python-exec:2.
Diffstat (limited to 'eclass/python-single-r1.eclass')
-rw-r--r--eclass/python-single-r1.eclass10
1 files changed, 8 insertions, 2 deletions
diff --git a/eclass/python-single-r1.eclass b/eclass/python-single-r1.eclass
index 2b099c329122..e3670bf75f06 100644
--- a/eclass/python-single-r1.eclass
+++ b/eclass/python-single-r1.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python-single-r1.eclass,v 1.20 2013/09/12 17:31:11 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python-single-r1.eclass,v 1.21 2013/09/17 13:33:55 mgorny Exp $
# @ECLASS: python-single-r1
# @MAINTAINER:
@@ -193,7 +193,13 @@ _python_single_set_globals() {
# but no point in making this overcomplex, BDEP doesn't hurt anyone
# 2) python-exec should be built with all targets forced anyway
# but if new targets were added, we may need to force a rebuild
- PYTHON_DEPS+="dev-python/python-exec:0[${PYTHON_USEDEP}]"
+ # 3) use whichever python-exec slot installed in EAPI 5. For EAPI 4,
+ # just fix :0 for now since := deps are not supported.
+ if [[ ${EAPI} != 4 ]]; then
+ PYTHON_DEPS+="dev-python/python-exec:=[${PYTHON_USEDEP}]"
+ else
+ PYTHON_DEPS+="dev-python/python-exec:0[${PYTHON_USEDEP}]"
+ fi
}
_python_single_set_globals