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: Mon, 04 Dec 2017 17:47:45
Message-Id: 1512409650.74abdf6f536ff8713ebb520db2e484808c7c041b.mgorny@gentoo
1 commit: 74abdf6f536ff8713ebb520db2e484808c7c041b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 4 17:44:14 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 4 17:47:30 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74abdf6f
7
8 app-eselect/eselect-python: Bump to 20171204
9
10 Bug: https://bugs.gentoo.org/635678
11 Closes: https://bugs.gentoo.org/639578
12
13 app-eselect/eselect-python/Manifest | 1 +
14 .../eselect-python/eselect-python-20171204.ebuild | 40 ++++++++++++++++++++++
15 2 files changed, 41 insertions(+)
16
17 diff --git a/app-eselect/eselect-python/Manifest b/app-eselect/eselect-python/Manifest
18 index a6b5f8189b7..8a586a9374a 100644
19 --- a/app-eselect/eselect-python/Manifest
20 +++ b/app-eselect/eselect-python/Manifest
21 @@ -1 +1,2 @@
22 DIST eselect-python-20160516.tar.bz2 46549 SHA256 bea0a39d9e5afb7513be47955a82efa636b983de6388965df517cb1eb7615fd2 SHA512 0ac310e13bca9e3cdfdd55820cc2956cacf28ade99c1b5048edadd48c6a04c2ae1037207aaac74fcd75e809cf993f88b52e463979b68bd123fe925e491a7030a WHIRLPOOL 66782323a455af7536592cf76c9fd9f57c8adf8a67b374c4e6bb96fdc21dfb8add4f74697139643c47561357a451d50b777f3e2e73db850176fc05d61ae6e54c
23 +DIST eselect-python-20171204.tar.bz2 46655 BLAKE2B f0bc46c796a1b9e01f964994219b9c7831f99844a12e97429b40482e28a590a2d825f7b6fbca27b0ca1ce616e5cfb388272af686ea2de65fda69da0319fddeda SHA512 f89183ca992bc38f2308a3217602d5ce6ec4b3b5b614f2aec48fb5b3b7e50a2e44dd18af36a7cfbd4b45d05346f2be97605e35fd274558e9173c6974681c8fa9
24
25 diff --git a/app-eselect/eselect-python/eselect-python-20171204.ebuild b/app-eselect/eselect-python/eselect-python-20171204.ebuild
26 new file mode 100644
27 index 00000000000..1d093e2738a
28 --- /dev/null
29 +++ b/app-eselect/eselect-python/eselect-python-20171204.ebuild
30 @@ -0,0 +1,40 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +if [[ ${PV} == "99999999" ]] ; then
37 + inherit autotools git-r3
38 + EGIT_REPO_URI="git://anongit.gentoo.org/proj/${PN}.git"
39 +else
40 + SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.bz2"
41 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
42 +fi
43 +
44 +DESCRIPTION="Eselect module for management of multiple Python versions"
45 +HOMEPAGE="https://www.gentoo.org/proj/en/Python/"
46 +
47 +LICENSE="GPL-2"
48 +SLOT="0"
49 +IUSE=""
50 +
51 +# python-exec-2.4.2 for working -l option
52 +RDEPEND=">=app-admin/eselect-1.2.3
53 + >=dev-lang/python-exec-2.4.2"
54 +
55 +src_prepare() {
56 + default
57 + [[ ${PV} == "99999999" ]] && eautoreconf
58 +}
59 +
60 +pkg_postinst() {
61 + local py
62 +
63 + if has_version 'dev-lang/python'; then
64 + eselect python update --if-unset
65 + fi
66 +
67 + if has_version "=dev-lang/python-3*"; then
68 + eselect python update "--python3" --if-unset
69 + fi
70 +}