1 |
--- |
2 |
.../eselect-python/eselect-python-99999999.ebuild | 26 +++++++++++++--------- |
3 |
1 file changed, 15 insertions(+), 11 deletions(-) |
4 |
|
5 |
diff --git a/app-eselect/eselect-python/eselect-python-99999999.ebuild b/app-eselect/eselect-python/eselect-python-99999999.ebuild |
6 |
index 3a618e5..d43f443 100644 |
7 |
--- a/app-eselect/eselect-python/eselect-python-99999999.ebuild |
8 |
+++ b/app-eselect/eselect-python/eselect-python-99999999.ebuild |
9 |
@@ -2,8 +2,7 @@ |
10 |
# Distributed under the terms of the GNU General Public License v2 |
11 |
# $Id$ |
12 |
|
13 |
-# Keep the EAPI low here because everything else depends on it. |
14 |
-# We want to make upgrading simpler. |
15 |
+EAPI=5 |
16 |
|
17 |
if [[ ${PV} == "99999999" ]] ; then |
18 |
inherit autotools git-r3 |
19 |
@@ -22,21 +21,26 @@ LICENSE="GPL-2" |
20 |
SLOT="0" |
21 |
IUSE="" |
22 |
|
23 |
-RDEPEND=">=app-admin/eselect-1.2.3" |
24 |
+# TODO: add appropriate >= dep on python-exec |
25 |
+RDEPEND=">=app-admin/eselect-1.2.3 |
26 |
+ dev-lang/python-exec:2 |
27 |
+ !<dev-lang/python-2.7.10-r3:2.7 |
28 |
+ !<dev-lang/python-3.3.5-r3:3.3 |
29 |
+ !<dev-lang/python-3.4.3-r3:3.4 |
30 |
+ !<dev-lang/python-3.5.0-r2:3.5" |
31 |
|
32 |
-src_unpack() { |
33 |
- if [[ ${PV} == "99999999" ]] ; then |
34 |
- git-r3_src_unpack |
35 |
- cd "${S}" |
36 |
- eautoreconf |
37 |
- else |
38 |
- unpack ${A} |
39 |
- fi |
40 |
+src_prepare() { |
41 |
+ [[ ${PV} == "99999999" ]] && eautoreconf |
42 |
} |
43 |
|
44 |
src_install() { |
45 |
keepdir /etc/env.d/python |
46 |
emake DESTDIR="${D}" install || die |
47 |
+ |
48 |
+ local f |
49 |
+ for f in python{,2,3}{,-config} 2to3 pydoc pyvenv; do |
50 |
+ dosym ../lib/python-exec/python-exec2 /usr/bin/"${f}" |
51 |
+ done |
52 |
} |
53 |
|
54 |
pkg_postinst() { |
55 |
-- |
56 |
2.6.3 |