summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2014-03-12 09:23:39 +0000
committerMichał Górny <mgorny@gentoo.org>2014-03-12 09:23:39 +0000
commita46f12ad7294022ba908eaaefd208fa2e7188ef2 (patch)
treeec10927625dfd00e6fe5a6fb187d7b672f805daa /eclass
parentUpdate the mask for fixed ebuild and virtual. (diff)
downloadhistorical-a46f12ad7294022ba908eaaefd208fa2e7188ef2.tar.gz
historical-a46f12ad7294022ba908eaaefd208fa2e7188ef2.tar.bz2
historical-a46f12ad7294022ba908eaaefd208fa2e7188ef2.zip
Add non-slotted pypy to the eclass.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog6
-rw-r--r--eclass/python-utils-r1.eclass10
-rwxr-xr-xeclass/tests/python-utils-r1.sh8
3 files changed, 21 insertions, 3 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index c588a4b1712e..c9eb038bbcb5 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for eclass directory
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1172 2014/03/12 09:06:06 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1173 2014/03/12 09:23:39 mgorny Exp $
+
+ 12 Mar 2014; Michał Górny <mgorny@gentoo.org> python-utils-r1.eclass,
+ tests/python-utils-r1.sh:
+ Add non-slotted pypy to the eclass.
12 Mar 2014; Michał Górny <mgorny@gentoo.org> python-utils-r1.eclass:
Revert ignorant pypy2_2 commit.
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 51d0dc6190d8..6f1bc475cca5 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python-utils-r1.eclass,v 1.49 2014/03/12 09:06:06 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python-utils-r1.eclass,v 1.50 2014/03/12 09:23:39 mgorny Exp $
# @ECLASS: python-utils-r1
# @MAINTAINER:
@@ -41,7 +41,7 @@ inherit eutils multilib toolchain-funcs
# All supported Python implementations, most preferred last.
_PYTHON_ALL_IMPLS=(
jython2_5 jython2_7
- pypy2_0
+ pypy2_0 pypy
python3_2 python3_3 python3_4
python2_6 python2_7
)
@@ -230,6 +230,10 @@ python_export() {
impl=${1/_/.}
shift
;;
+ pypy)
+ impl=${1}
+ shift
+ ;;
pypy-c*)
impl=${1}
shift
@@ -361,6 +365,8 @@ python_export() {
PYTHON_PKG_DEP="dev-lang/python:${impl#python}";;
pypy-c2.0)
PYTHON_PKG_DEP='>=virtual/pypy-2.0.2:2.0';;
+ pypy)
+ PYTHON_PKG_DEP='virtual/pypy:0';;
jython2.5)
PYTHON_PKG_DEP='>=dev-java/jython-2.5.3-r2:2.5';;
jython2.7)
diff --git a/eclass/tests/python-utils-r1.sh b/eclass/tests/python-utils-r1.sh
index e3e9c6328ce7..9b246ace5447 100755
--- a/eclass/tests/python-utils-r1.sh
+++ b/eclass/tests/python-utils-r1.sh
@@ -61,9 +61,17 @@ test_var PYTHON_INCLUDEDIR pypy2_0 /usr/lib/pypy2.0/include
test_var PYTHON_PKG_DEP pypy2_0 '*virtual/pypy*:2.0'
test_var PYTHON_SCRIPTDIR pypy2_0 /usr/lib/python-exec/pypy-c2.0
+test_var EPYTHON pypy pypy
+test_var PYTHON pypy /usr/bin/pypy
+test_var PYTHON_SITEDIR pypy /usr/lib/pypy/site-packages
+test_var PYTHON_INCLUDEDIR pypy /usr/lib/pypy/include
+test_var PYTHON_PKG_DEP pypy '*virtual/pypy*:0'
+test_var PYTHON_SCRIPTDIR pypy /usr/lib/python-exec/pypy
+
test_is python_is_python3 python2.7 1
test_is python_is_python3 python3.2 0
test_is python_is_python3 jython2.7 1
test_is python_is_python3 pypy2.0 1
+test_is python_is_python3 pypy 1
texit