Gentoo Archives: gentoo-python

From: Mike Gilbert <floppym@g.o>
To: gentoo-python@l.g.o
Subject: [gentoo-python] python-utils-r1.eclass: Add support for python3.4
Date: Mon, 17 Feb 2014 18:34:45
Message-Id: 1392662075-13088-1-git-send-email-floppym@gentoo.org
1 I think this should do the trick, but please let me know if I have missed
2 anything.
3
4 Index: python-utils-r1.eclass
5 ===================================================================
6 RCS file: /var/cvsroot/gentoo-x86/eclass/python-utils-r1.eclass,v
7 retrieving revision 1.46
8 diff -u -r1.46 python-utils-r1.eclass
9 --- python-utils-r1.eclass 17 Jan 2014 14:35:11 -0000 1.46
10 +++ python-utils-r1.eclass 17 Feb 2014 18:27:35 -0000
11 @@ -42,7 +42,7 @@
12 _PYTHON_ALL_IMPLS=(
13 jython2_5 jython2_7
14 pypy2_0
15 - python3_2 python3_3
16 + python3_2 python3_3 python3_4
17 python2_6 python2_7
18 )
19
20 @@ -66,7 +66,7 @@
21 # keep in sync with _PYTHON_ALL_IMPLS!
22 # (not using that list because inline patterns shall be faster)
23 case "${impl}" in
24 - python2_[67]|python3_[23]|pypy2_0|jython2_[57])
25 + python2_[67]|python3_[234]|pypy2_0|jython2_[57])
26 return 0
27 ;;
28 pypy1_[89]|python2_5|python3_1)
29 @@ -357,6 +357,8 @@
30 PYTHON_PKG_DEP='>=dev-lang/python-3.2.5-r2:3.2';;
31 python3.3)
32 PYTHON_PKG_DEP='>=dev-lang/python-3.3.2-r2:3.3';;
33 + python*)
34 + PYTHON_PKG_DEP="dev-lang/python:${impl#python}";;
35 pypy-c2.0)
36 PYTHON_PKG_DEP='>=virtual/pypy-2.0.2:2.0';;
37 jython2.5)