1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 # Keep the EAPI low here because everything else depends on it.
6 # We want to make upgrading simpler.
8 if [[ ${PV} == "99999999" ]] ; then
9 inherit autotools git-r3
10 EGIT_REPO_URI="git://anongit.gentoo.org/proj/${PN}.git"
12 SRC_URI="mirror://gentoo/${P}.tar.bz2
13 https://dev.gentoo.org/~floppym/dist/${P}.tar.bz2"
14 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
17 DESCRIPTION="Eselect module for management of multiple Python versions"
18 HOMEPAGE="https://www.gentoo.org/proj/en/Python/"
24 RDEPEND=">=app-admin/eselect-1.2.3"
25 # Avoid autotool deps for released versions for circ dep issues.
26 if [[ ${PV} == "99999999" ]] ; then
27 DEPEND="sys-devel/autoconf"
33 if [[ ${PV} == "99999999" ]] ; then
43 keepdir /etc/env.d/python
44 emake DESTDIR="${D}" install || die
49 ebegin "Running 'eselect python update'"
50 eselect python update --python2 --if-unset || ret=1
51 eselect python update --python3 --if-unset || ret=1