Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-eselect/eselect-python/
Date: Thu, 25 Feb 2016 20:29:24
Message-Id: 1456432146.940a4882df87dca5f2db33bdec5280631688e8ac.mgorny@gentoo
1 commit: 940a4882df87dca5f2db33bdec5280631688e8ac
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 25 19:45:46 2016 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 25 20:29:06 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=940a4882
7
8 app-eselect/eselect-python: Remove intermediate masked versions
9
10 app-eselect/eselect-python/Manifest | 1 -
11 .../eselect-python-20151117-r3.ebuild | 89 ----------------------
12 .../eselect-python/eselect-python-20160207.ebuild | 39 ----------
13 3 files changed, 129 deletions(-)
14
15 diff --git a/app-eselect/eselect-python/Manifest b/app-eselect/eselect-python/Manifest
16 index 84bb0fe..9e45852 100644
17 --- a/app-eselect/eselect-python/Manifest
18 +++ b/app-eselect/eselect-python/Manifest
19 @@ -3,5 +3,4 @@ DIST eselect-python-20131210.tar.bz2 71802 SHA256 61ff5a5a3ae7982c6ffd503886cbcd
20 DIST eselect-python-20140115.tar.bz2 71910 SHA256 5898ee19015ae905168e8b7aa76552b96f691285ab77c426b6a9238ecf742e45 SHA512 65d6a6b9dfa0a0f4bea5352f965bed8942a16382135edea093342fa79a824d114b900cbcf607490f260b4ce4e5a2eb57872169e5494f8e6e65f41dd63cd5d335 WHIRLPOOL 633bca3e8a87e04c54a3790bb207da92d41af604cce7f8600c5317f6a759c55efbd3e5ba658e893d2d079248d2dadb1a0bb60248960e3d20cd766768a228d8c5
21 DIST eselect-python-20140125.tar.bz2 72102 SHA256 ee7b470f7facc42285bab7f4b947280741515a85c9067339511c219248f8fdfb SHA512 94d4eb5a1af365c6f56a6fc2b75298018267cd4f6004f30b2e4d0c4744d3e82b33f6c82e6f0ea0f15132d5157c3ace99fa167bbf3ebada46edd2e005ca96eb51 WHIRLPOOL 70d5f9af2929507d26e56080ce934066d2de5f16030dfd63b016215465ad5fc89eb952d64cc545c7058d146108e26925741d2c8fbaba08abba1a5cae7b0c23b6
22 DIST eselect-python-20151117.tar.bz2 62793 SHA256 6f2912ae4d4fc12949ae0c9bb8b93b3a3a8c372336c2138c758f042f91484561 SHA512 3e680f8c851251176d6bb916d003e421e4b414aa9cc59e20cb15d454a3251cdf1e587828e9b2a5db461641f277e3b764ca172f4466fe3f6ef9679a9a05a71732 WHIRLPOOL a2e4ca676ead692b08a6194fb4bf5dabdd383ad158f45a17cb21c59022af139b0646fe39b0f4c9b540c80c4c2a04362c75f90e3c7f1506056b7b0f01e5e51474
23 -DIST eselect-python-20160207.tar.bz2 57454 SHA256 1da389c71b2b133ce56daae199334e920766d78e9e424d66cd76753a99b19a82 SHA512 ff83fb43df85ef0989ab9f557800e9ef97cd5b4e01316bc4f2b6fbe34e87b3fd5b4b1fb0081c11e2ff1ba42777c50d243eea306ec9211bf820211708f2fc395a WHIRLPOOL db63a490006d5fc53642448a3b19154bc48597a57b052413c42c7713a56665edae1505f9a2f432f88bb37ae5d7563743fc3a25b929896ca3e55a2365e2cd19c4
24 DIST eselect-python-20160222.tar.bz2 48584 SHA256 be266ed02c60d4c44d07b575af87e4f9d3f952e387d8edb98edabbb72e855b75 SHA512 d0e424887594a1ffc0ce4f141e5c7d73763a49a2ec209b55ac2978a0bf82db9eaa3f07cc1c6650f609e6003f8292a260ce802c89f973b94c8a9a7c1d1ca84e3c WHIRLPOOL ba52a724fd3478b891d0c6a495885601bcc7f3bda713a5fd2e1c07ca1230d8a542ceb627329675f9935c07735e4de4a43d3d64d44771434cc4bbe9fb1cec6003
25
26 diff --git a/app-eselect/eselect-python/eselect-python-20151117-r3.ebuild b/app-eselect/eselect-python/eselect-python-20151117-r3.ebuild
27 deleted file mode 100644
28 index 7c478b0..0000000
29 --- a/app-eselect/eselect-python/eselect-python-20151117-r3.ebuild
30 +++ /dev/null
31 @@ -1,89 +0,0 @@
32 -# Copyright 1999-2015 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -# $Id$
35 -
36 -EAPI=5
37 -
38 -if [[ ${PV} == "99999999" ]] ; then
39 - inherit autotools git-r3
40 - EGIT_REPO_URI="git://anongit.gentoo.org/proj/${PN}.git"
41 -else
42 - SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.bz2"
43 - 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"
44 -fi
45 -
46 -DESCRIPTION="Eselect module for management of multiple Python versions"
47 -HOMEPAGE="https://www.gentoo.org/proj/en/Python/"
48 -
49 -LICENSE="GPL-2"
50 -SLOT="0"
51 -IUSE=""
52 -
53 -RDEPEND=">=app-admin/eselect-1.2.3
54 - >=dev-lang/python-exec-2.2_pre:2
55 - !<dev-lang/python-2.7.10-r4:2.7
56 - !<dev-lang/python-3.3.5-r4:3.3
57 - !<dev-lang/python-3.4.3-r4:3.4
58 - !<dev-lang/python-3.5.0-r3:3.5"
59 -
60 -# Those files are copied from built package
61 -QA_PREBUILT="
62 - /usr/bin/python
63 - /usr/bin/python2
64 - /usr/bin/python3"
65 -
66 -src_prepare() {
67 - [[ ${PV} == "99999999" ]] && eautoreconf
68 -}
69 -
70 -src_install() {
71 - keepdir /etc/env.d/python
72 - emake DESTDIR="${D}" install || die
73 -
74 - local f
75 - for f in python{,2,3}; do
76 - # can't use symlinks here since random stuff
77 - # loves to do readlink on sys.executable...
78 - newbin "${EPREFIX}/usr/lib/python-exec/python-exec2-c" "${f}"
79 - done
80 - for f in python{,2,3}-config 2to3 idle pydoc pyvenv; do
81 - dosym ../lib/python-exec/python-exec2 /usr/bin/"${f}"
82 - done
83 -}
84 -
85 -pkg_preinst() {
86 - local py
87 -
88 - # Copy python[23] selection from the old format (symlink)
89 - for py in 2 3; do
90 - # default to none
91 - declare -g "PREV_PYTHON${py}"=
92 -
93 - if [[ -L ${EROOT}/usr/bin/python${py} ]]; then
94 - local target=$(readlink "${EROOT}/usr/bin/python${py}")
95 -
96 - # check if it's actually old eselect symlink
97 - if [[ ${target} == python?.? ]]; then
98 - declare -g "PREV_PYTHON${py}=${target}"
99 - fi
100 - fi
101 - done
102 -}
103 -
104 -pkg_postinst() {
105 - local py
106 -
107 - if has_version 'dev-lang/python'; then
108 - eselect python update --if-unset
109 - fi
110 -
111 - for py in 2 3; do
112 - local pyvar=PREV_PYTHON${py}
113 - if [[ -n ${!pyvar} ]]; then
114 - einfo "Setting Python${py} to ${!pyvar}"
115 - eselect python set "--python${py}" "${!pyvar}"
116 - elif has_version "=dev-lang/python-${py}*"; then
117 - eselect python update "--python${py}" --if-unset
118 - fi
119 - done
120 -}
121
122 diff --git a/app-eselect/eselect-python/eselect-python-20160207.ebuild b/app-eselect/eselect-python/eselect-python-20160207.ebuild
123 deleted file mode 100644
124 index 52eb0ce..0000000
125 --- a/app-eselect/eselect-python/eselect-python-20160207.ebuild
126 +++ /dev/null
127 @@ -1,39 +0,0 @@
128 -# Copyright 1999-2016 Gentoo Foundation
129 -# Distributed under the terms of the GNU General Public License v2
130 -# $Id$
131 -
132 -EAPI=5
133 -
134 -if [[ ${PV} == "99999999" ]] ; then
135 - inherit autotools git-r3
136 - EGIT_REPO_URI="git://anongit.gentoo.org/proj/${PN}.git"
137 -else
138 - SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.bz2"
139 - 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"
140 -fi
141 -
142 -DESCRIPTION="Eselect module for management of multiple Python versions"
143 -HOMEPAGE="https://www.gentoo.org/proj/en/Python/"
144 -
145 -LICENSE="GPL-2"
146 -SLOT="0"
147 -IUSE=""
148 -
149 -RDEPEND=">=app-admin/eselect-1.2.3
150 - >=dev-lang/python-exec-2.3"
151 -
152 -src_prepare() {
153 - [[ ${PV} == "99999999" ]] && eautoreconf
154 -}
155 -
156 -pkg_postinst() {
157 - local py
158 -
159 - if has_version 'dev-lang/python'; then
160 - eselect python update --if-unset
161 - fi
162 -
163 - if has_version "=dev-lang/python-3*"; then
164 - eselect python update "--python3" --if-unset
165 - fi
166 -}