1 |
--- |
2 |
app-eselect/eselect-python/Manifest | 1 + |
3 |
.../eselect-python/eselect-python-20151115.ebuild | 55 ++++++++++++++++++++++ |
4 |
.../eselect-python/eselect-python-99999999.ebuild | 3 +- |
5 |
3 files changed, 57 insertions(+), 2 deletions(-) |
6 |
create mode 100644 app-eselect/eselect-python/eselect-python-20151115.ebuild |
7 |
|
8 |
diff --git a/app-eselect/eselect-python/Manifest b/app-eselect/eselect-python/Manifest |
9 |
index 98a02a2..9ac29ae 100644 |
10 |
--- a/app-eselect/eselect-python/Manifest |
11 |
+++ b/app-eselect/eselect-python/Manifest |
12 |
@@ -2,3 +2,4 @@ DIST eselect-python-20111108.tar.bz2 64959 SHA256 34d7618808a3c1d22e6763bc6c67d5 |
13 |
DIST eselect-python-20131210.tar.bz2 71802 SHA256 61ff5a5a3ae7982c6ffd503886cbcd35142df05f07008722b90ab5036e4bf8f2 SHA512 8c523019e2a8fe7f1679b96a3da22326dbe65888739bb8cce3c4e2aa7c2c08cada01196a65c8fe35e08b3b7682a3f695e453e9ef1fb53f6b8886c51c09107d60 WHIRLPOOL e8c75eb1ad6fcaaba50cae9d10d2414b29b3cfc8d06c79257948b0d0b4e7c2156d1672be4f5edd28055b5ae3f6aa54b1b8ef6eaaae9dfa1ce9b7b0b68dbc712a |
14 |
DIST eselect-python-20140115.tar.bz2 71910 SHA256 5898ee19015ae905168e8b7aa76552b96f691285ab77c426b6a9238ecf742e45 SHA512 65d6a6b9dfa0a0f4bea5352f965bed8942a16382135edea093342fa79a824d114b900cbcf607490f260b4ce4e5a2eb57872169e5494f8e6e65f41dd63cd5d335 WHIRLPOOL 633bca3e8a87e04c54a3790bb207da92d41af604cce7f8600c5317f6a759c55efbd3e5ba658e893d2d079248d2dadb1a0bb60248960e3d20cd766768a228d8c5 |
15 |
DIST eselect-python-20140125.tar.bz2 72102 SHA256 ee7b470f7facc42285bab7f4b947280741515a85c9067339511c219248f8fdfb SHA512 94d4eb5a1af365c6f56a6fc2b75298018267cd4f6004f30b2e4d0c4744d3e82b33f6c82e6f0ea0f15132d5157c3ace99fa167bbf3ebada46edd2e005ca96eb51 WHIRLPOOL 70d5f9af2929507d26e56080ce934066d2de5f16030dfd63b016215465ad5fc89eb952d64cc545c7058d146108e26925741d2c8fbaba08abba1a5cae7b0c23b6 |
16 |
+DIST eselect-python-20151115.tar.bz2 3256 SHA256 e5a5a97f80ff9613db1af35c5a265baa9157eb38e2513391fe59d4b794a71e57 SHA512 525f1552c5dd27cb0a81c9d9ff965dc63c538e2880de1dd873a6059bd387b9935bc6c4b43b7d9b409a827751ba1f25925862f65264b03a80df893bf2405f7d61 WHIRLPOOL dc9d847d6ac55d4b8a6c86029689e244697faa68e02025545ffc57574ea389a938a8886c1a0ebb4a25993204020468d06cac2abaa6a77fc8926ebdd1e8e50b25 |
17 |
diff --git a/app-eselect/eselect-python/eselect-python-20151115.ebuild b/app-eselect/eselect-python/eselect-python-20151115.ebuild |
18 |
new file mode 100644 |
19 |
index 0000000..fc7b0f6 |
20 |
--- /dev/null |
21 |
+++ b/app-eselect/eselect-python/eselect-python-20151115.ebuild |
22 |
@@ -0,0 +1,55 @@ |
23 |
+# Copyright 1999-2015 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+# $Id$ |
26 |
+ |
27 |
+EAPI=5 |
28 |
+ |
29 |
+if [[ ${PV} == "99999999" ]] ; then |
30 |
+ inherit autotools git-r3 |
31 |
+ EGIT_REPO_URI="git://anongit.gentoo.org/proj/${PN}.git" |
32 |
+ EGIT_BRANCH="mgornys-hackery" |
33 |
+else |
34 |
+ inherit autotools vcs-snapshot |
35 |
+ SRC_URI="https://gitweb.gentoo.org/proj/eselect-python.git/snapshot/2e082de29ee3707d11d1097132aaeeae16d0ea83.tar.bz2 -> ${P}.tar.bz2" |
36 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
37 |
+fi |
38 |
+ |
39 |
+DESCRIPTION="Eselect module for management of multiple Python versions" |
40 |
+HOMEPAGE="https://www.gentoo.org/proj/en/Python/" |
41 |
+ |
42 |
+LICENSE="GPL-2" |
43 |
+SLOT="0" |
44 |
+IUSE="" |
45 |
+ |
46 |
+RDEPEND=">=app-admin/eselect-1.2.3 |
47 |
+ >=dev-lang/python-exec-2.1:2 |
48 |
+ !<dev-lang/python-2.7.10-r3:2.7 |
49 |
+ !<dev-lang/python-3.3.5-r3:3.3 |
50 |
+ !<dev-lang/python-3.4.3-r3:3.4 |
51 |
+ !<dev-lang/python-3.5.0-r2:3.5" |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ eautoreconf |
55 |
+} |
56 |
+ |
57 |
+src_install() { |
58 |
+ keepdir /etc/env.d/python |
59 |
+ emake DESTDIR="${D}" install || die |
60 |
+ |
61 |
+ local f |
62 |
+ for f in python{,2,3}{,-config} 2to3 pydoc pyvenv; do |
63 |
+ dosym ../lib/python-exec/python-exec2 /usr/bin/"${f}" |
64 |
+ done |
65 |
+} |
66 |
+ |
67 |
+pkg_postinst() { |
68 |
+ if has_version 'dev-lang/python'; then |
69 |
+ eselect python update --if-unset |
70 |
+ fi |
71 |
+ if has_version '=dev-lang/python-2*'; then |
72 |
+ eselect python update --python2 --if-unset |
73 |
+ fi |
74 |
+ if has_version '=dev-lang/python-3*'; then |
75 |
+ eselect python update --python3 --if-unset |
76 |
+ fi |
77 |
+} |
78 |
diff --git a/app-eselect/eselect-python/eselect-python-99999999.ebuild b/app-eselect/eselect-python/eselect-python-99999999.ebuild |
79 |
index d43f443..092cd23 100644 |
80 |
--- a/app-eselect/eselect-python/eselect-python-99999999.ebuild |
81 |
+++ b/app-eselect/eselect-python/eselect-python-99999999.ebuild |
82 |
@@ -21,9 +21,8 @@ LICENSE="GPL-2" |
83 |
SLOT="0" |
84 |
IUSE="" |
85 |
|
86 |
-# TODO: add appropriate >= dep on python-exec |
87 |
RDEPEND=">=app-admin/eselect-1.2.3 |
88 |
- dev-lang/python-exec:2 |
89 |
+ >=dev-lang/python-exec-2.1:2 |
90 |
!<dev-lang/python-2.7.10-r3:2.7 |
91 |
!<dev-lang/python-3.3.5-r3:3.3 |
92 |
!<dev-lang/python-3.4.3-r3:3.4 |
93 |
-- |
94 |
2.6.3 |