* [gentoo-python] [PATCH 1/5] dev-lang/python: Add symlinks for python-exec wrapping of execs
2015-11-15 13:13 [gentoo-python] [PATCHES] Ebuild patches for python-exec wrapping of dev-lang/python Michał Górny
@ 2015-11-15 13:13 ` Michał Górny
2015-11-15 13:13 ` [gentoo-python] [PATCH 2/5] [REMOVE ME] Switch live eselect-py&pyexec branches to the real hackery Michał Górny
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Michał Górny @ 2015-11-15 13:13 UTC (permalink / raw
To: gentoo-python; +Cc: python, Michał Górny
Add symlinks to make it possible to wrap Python executable aliases
(python, python-config, pydoc...) via python-exec.
---
dev-lang/python/python-2.7.10-r3.ebuild | 21 ++++++++++++++++++++-
dev-lang/python/python-3.3.5-r3.ebuild | 23 ++++++++++++++++++++++-
dev-lang/python/python-3.4.3-r3.ebuild | 23 ++++++++++++++++++++++-
dev-lang/python/python-3.5.0-r2.ebuild | 23 ++++++++++++++++++++++-
profiles/package.mask | 1 +
5 files changed, 87 insertions(+), 4 deletions(-)
diff --git a/dev-lang/python/python-2.7.10-r3.ebuild b/dev-lang/python/python-2.7.10-r3.ebuild
index 4fae1b5..2158a54 100644
--- a/dev-lang/python/python-2.7.10-r3.ebuild
+++ b/dev-lang/python/python-2.7.10-r3.ebuild
@@ -304,7 +304,7 @@ src_install() {
-i "${ED}etc/conf.d/pydoc-${SLOT}" "${ED}etc/init.d/pydoc-${SLOT}" || die "sed failed"
# for python-exec
- local vars=( EPYTHON PYTHON_SITEDIR )
+ local vars=( EPYTHON PYTHON_SITEDIR PYTHON_SCRIPTDIR )
# if not using a cross-compiler, use the fresh binary
if ! tc-is-cross-compiler; then
@@ -317,6 +317,25 @@ src_install() {
python_export "python${SLOT}" "${vars[@]}"
echo "EPYTHON='${EPYTHON}'" > epython.py || die
python_domodule epython.py
+
+ # python-exec wrapping support
+ local pymajor=${SLOT%.*}
+ mkdir -p "${D}${PYTHON_SCRIPTDIR}" || die
+ # python and pythonX
+ ln -s "../../../bin/python${SLOT}" \
+ "${D}${PYTHON_SCRIPTDIR}/python${pymajor}" || die
+ ln -s "python${pymajor}" \
+ "${D}${PYTHON_SCRIPTDIR}/python" || die
+ # python-config and pythonX-config
+ ln -s "../../../bin/python${SLOT}-config" \
+ "${D}${PYTHON_SCRIPTDIR}/python${pymajor}-config" || die
+ ln -s "python${pymajor}-config" \
+ "${D}${PYTHON_SCRIPTDIR}/python-config" || die
+ # 2to3, pydoc, pyvenv
+ ln -s "../../../bin/2to3-${SLOT}" \
+ "${D}${PYTHON_SCRIPTDIR}/2to3" || die
+ ln -s "../../../bin/pydoc${SLOT}" \
+ "${D}${PYTHON_SCRIPTDIR}/pydoc" || die
}
pkg_preinst() {
diff --git a/dev-lang/python/python-3.3.5-r3.ebuild b/dev-lang/python/python-3.3.5-r3.ebuild
index 3049ce1..9b0e261 100644
--- a/dev-lang/python/python-3.3.5-r3.ebuild
+++ b/dev-lang/python/python-3.3.5-r3.ebuild
@@ -291,7 +291,7 @@ src_install() {
-i "${ED}etc/conf.d/pydoc-${PYVER}" "${ED}etc/init.d/pydoc-${PYVER}" || die "sed failed"
# for python-exec
- local vars=( EPYTHON PYTHON_SITEDIR )
+ local vars=( EPYTHON PYTHON_SITEDIR PYTHON_SCRIPTDIR )
# if not using a cross-compiler, use the fresh binary
if ! tc-is-cross-compiler; then
@@ -304,6 +304,27 @@ src_install() {
python_export "python${PYVER}" "${vars[@]}"
echo "EPYTHON='${EPYTHON}'" > epython.py || die
python_domodule epython.py
+
+ # python-exec wrapping support
+ local pymajor=${PYVER%.*}
+ mkdir -p "${D}${PYTHON_SCRIPTDIR}" || die
+ # python and pythonX
+ ln -s "../../../bin/${abiver}" \
+ "${D}${PYTHON_SCRIPTDIR}/python${pymajor}" || die
+ ln -s "python${pymajor}" \
+ "${D}${PYTHON_SCRIPTDIR}/python" || die
+ # python-config and pythonX-config
+ ln -s "../../../bin/${abiver}-config" \
+ "${D}${PYTHON_SCRIPTDIR}/python${pymajor}-config" || die
+ ln -s "python${pymajor}-config" \
+ "${D}${PYTHON_SCRIPTDIR}/python-config" || die
+ # 2to3, pydoc, pyvenv
+ ln -s "../../../bin/2to3-${PYVER}" \
+ "${D}${PYTHON_SCRIPTDIR}/2to3" || die
+ ln -s "../../../bin/pydoc${PYVER}" \
+ "${D}${PYTHON_SCRIPTDIR}/pydoc" || die
+ ln -s "../../../bin/pyvenv-${PYVER}" \
+ "${D}${PYTHON_SCRIPTDIR}/pyvenv" || die
}
pkg_preinst() {
diff --git a/dev-lang/python/python-3.4.3-r3.ebuild b/dev-lang/python/python-3.4.3-r3.ebuild
index aaaa72a..526233a 100644
--- a/dev-lang/python/python-3.4.3-r3.ebuild
+++ b/dev-lang/python/python-3.4.3-r3.ebuild
@@ -274,7 +274,7 @@ src_install() {
-i "${ED}etc/conf.d/pydoc-${PYVER}" "${ED}etc/init.d/pydoc-${PYVER}" || die "sed failed"
# for python-exec
- local vars=( EPYTHON PYTHON_SITEDIR )
+ local vars=( EPYTHON PYTHON_SITEDIR PYTHON_SCRIPTDIR )
# if not using a cross-compiler, use the fresh binary
if ! tc-is-cross-compiler; then
@@ -287,6 +287,27 @@ src_install() {
python_export "python${PYVER}" "${vars[@]}"
echo "EPYTHON='${EPYTHON}'" > epython.py || die
python_domodule epython.py
+
+ # python-exec wrapping support
+ local pymajor=${PYVER%.*}
+ mkdir -p "${D}${PYTHON_SCRIPTDIR}" || die
+ # python and pythonX
+ ln -s "../../../bin/${abiver}" \
+ "${D}${PYTHON_SCRIPTDIR}/python${pymajor}" || die
+ ln -s "python${pymajor}" \
+ "${D}${PYTHON_SCRIPTDIR}/python" || die
+ # python-config and pythonX-config
+ ln -s "../../../bin/${abiver}-config" \
+ "${D}${PYTHON_SCRIPTDIR}/python${pymajor}-config" || die
+ ln -s "python${pymajor}-config" \
+ "${D}${PYTHON_SCRIPTDIR}/python-config" || die
+ # 2to3, pydoc, pyvenv
+ ln -s "../../../bin/2to3-${PYVER}" \
+ "${D}${PYTHON_SCRIPTDIR}/2to3" || die
+ ln -s "../../../bin/pydoc${PYVER}" \
+ "${D}${PYTHON_SCRIPTDIR}/pydoc" || die
+ ln -s "../../../bin/pyvenv-${PYVER}" \
+ "${D}${PYTHON_SCRIPTDIR}/pyvenv" || die
}
pkg_preinst() {
diff --git a/dev-lang/python/python-3.5.0-r2.ebuild b/dev-lang/python/python-3.5.0-r2.ebuild
index caa9e35..b2b50a1 100644
--- a/dev-lang/python/python-3.5.0-r2.ebuild
+++ b/dev-lang/python/python-3.5.0-r2.ebuild
@@ -277,7 +277,7 @@ src_install() {
-i "${ED}etc/conf.d/pydoc-${PYVER}" "${ED}etc/init.d/pydoc-${PYVER}" || die "sed failed"
# for python-exec
- local vars=( EPYTHON PYTHON_SITEDIR )
+ local vars=( EPYTHON PYTHON_SITEDIR PYTHON_SCRIPTDIR )
# if not using a cross-compiler, use the fresh binary
if ! tc-is-cross-compiler; then
@@ -290,6 +290,27 @@ src_install() {
python_export "python${PYVER}" "${vars[@]}"
echo "EPYTHON='${EPYTHON}'" > epython.py || die
python_domodule epython.py
+
+ # python-exec wrapping support
+ local pymajor=${PYVER%.*}
+ mkdir -p "${D}${PYTHON_SCRIPTDIR}" || die
+ # python and pythonX
+ ln -s "../../../bin/${abiver}" \
+ "${D}${PYTHON_SCRIPTDIR}/python${pymajor}" || die
+ ln -s "python${pymajor}" \
+ "${D}${PYTHON_SCRIPTDIR}/python" || die
+ # python-config and pythonX-config
+ ln -s "../../../bin/${abiver}-config" \
+ "${D}${PYTHON_SCRIPTDIR}/python${pymajor}-config" || die
+ ln -s "python${pymajor}-config" \
+ "${D}${PYTHON_SCRIPTDIR}/python-config" || die
+ # 2to3, pydoc, pyvenv
+ ln -s "../../../bin/2to3-${PYVER}" \
+ "${D}${PYTHON_SCRIPTDIR}/2to3" || die
+ ln -s "../../../bin/pydoc${PYVER}" \
+ "${D}${PYTHON_SCRIPTDIR}/pydoc" || die
+ ln -s "../../../bin/pyvenv-${PYVER}" \
+ "${D}${PYTHON_SCRIPTDIR}/pyvenv" || die
}
pkg_preinst() {
diff --git a/profiles/package.mask b/profiles/package.mask
index a549fd8..c798071 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -45,6 +45,7 @@ sci-chemistry/pymol-apbs-plugin
# Michał Górny <mgorny@gentoo.org> (11 Nov 2015)
# Cleaned up Python versions masked for testing:
# - python-config-X.Y compatibility removed,
+# - python-exec symlinks added (to replace eselect-python's wrapper),
# - ABIFLAGS reintroduced for 3.3+.
# Resulting API/ABI change can break reverse dependencies, especially
# if upstream hardcodes paths or library names.
--
2.6.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-python] [PATCH 2/5] [REMOVE ME] Switch live eselect-py&pyexec branches to the real hackery
2015-11-15 13:13 [gentoo-python] [PATCHES] Ebuild patches for python-exec wrapping of dev-lang/python Michał Górny
2015-11-15 13:13 ` [gentoo-python] [PATCH 1/5] dev-lang/python: Add symlinks for python-exec wrapping of execs Michał Górny
@ 2015-11-15 13:13 ` Michał Górny
2015-11-15 13:13 ` [gentoo-python] [PATCH 3/5] app-eselect/eselect-python: Use python-exec instead of python-wrapper Michał Górny
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Michał Górny @ 2015-11-15 13:13 UTC (permalink / raw
To: gentoo-python; +Cc: python, Michał Górny
---
app-eselect/eselect-python/eselect-python-99999999.ebuild | 1 +
dev-lang/python-exec/python-exec-2.9999.ebuild | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/app-eselect/eselect-python/eselect-python-99999999.ebuild b/app-eselect/eselect-python/eselect-python-99999999.ebuild
index 6b16b3d..3a618e5 100644
--- a/app-eselect/eselect-python/eselect-python-99999999.ebuild
+++ b/app-eselect/eselect-python/eselect-python-99999999.ebuild
@@ -8,6 +8,7 @@
if [[ ${PV} == "99999999" ]] ; then
inherit autotools git-r3
EGIT_REPO_URI="git://anongit.gentoo.org/proj/${PN}.git"
+ EGIT_BRANCH="mgornys-hackery"
else
SRC_URI="mirror://gentoo/${P}.tar.bz2
https://dev.gentoo.org/~floppym/dist/${P}.tar.bz2"
diff --git a/dev-lang/python-exec/python-exec-2.9999.ebuild b/dev-lang/python-exec/python-exec-2.9999.ebuild
index a462899..c141673 100644
--- a/dev-lang/python-exec/python-exec-2.9999.ebuild
+++ b/dev-lang/python-exec/python-exec-2.9999.ebuild
@@ -7,7 +7,7 @@ EAPI=5
#if LIVE
AUTOTOOLS_AUTORECONF=yes
EGIT_REPO_URI="https://bitbucket.org/mgorny/${PN}.git"
-EGIT_BRANCH="python-exec2"
+EGIT_BRANCH="mgornys-eselect-python-hackery"
inherit git-r3
#endif
--
2.6.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-python] [PATCH 3/5] app-eselect/eselect-python: Use python-exec instead of python-wrapper
2015-11-15 13:13 [gentoo-python] [PATCHES] Ebuild patches for python-exec wrapping of dev-lang/python Michał Górny
2015-11-15 13:13 ` [gentoo-python] [PATCH 1/5] dev-lang/python: Add symlinks for python-exec wrapping of execs Michał Górny
2015-11-15 13:13 ` [gentoo-python] [PATCH 2/5] [REMOVE ME] Switch live eselect-py&pyexec branches to the real hackery Michał Górny
@ 2015-11-15 13:13 ` Michał Górny
2015-11-15 13:13 ` [gentoo-python] [PATCH 4/5] dev-lang/python-exec: Fake-bump for testing Michał Górny
2015-11-15 13:13 ` [gentoo-python] [PATCH 5/5] app-admin/eselect-python: " Michał Górny
4 siblings, 0 replies; 6+ messages in thread
From: Michał Górny @ 2015-11-15 13:13 UTC (permalink / raw
To: gentoo-python; +Cc: python, Michał Górny
---
.../eselect-python/eselect-python-99999999.ebuild | 26 +++++++++++++---------
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/app-eselect/eselect-python/eselect-python-99999999.ebuild b/app-eselect/eselect-python/eselect-python-99999999.ebuild
index 3a618e5..d43f443 100644
--- a/app-eselect/eselect-python/eselect-python-99999999.ebuild
+++ b/app-eselect/eselect-python/eselect-python-99999999.ebuild
@@ -2,8 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-# Keep the EAPI low here because everything else depends on it.
-# We want to make upgrading simpler.
+EAPI=5
if [[ ${PV} == "99999999" ]] ; then
inherit autotools git-r3
@@ -22,21 +21,26 @@ LICENSE="GPL-2"
SLOT="0"
IUSE=""
-RDEPEND=">=app-admin/eselect-1.2.3"
+# TODO: add appropriate >= dep on python-exec
+RDEPEND=">=app-admin/eselect-1.2.3
+ dev-lang/python-exec:2
+ !<dev-lang/python-2.7.10-r3:2.7
+ !<dev-lang/python-3.3.5-r3:3.3
+ !<dev-lang/python-3.4.3-r3:3.4
+ !<dev-lang/python-3.5.0-r2:3.5"
-src_unpack() {
- if [[ ${PV} == "99999999" ]] ; then
- git-r3_src_unpack
- cd "${S}"
- eautoreconf
- else
- unpack ${A}
- fi
+src_prepare() {
+ [[ ${PV} == "99999999" ]] && eautoreconf
}
src_install() {
keepdir /etc/env.d/python
emake DESTDIR="${D}" install || die
+
+ local f
+ for f in python{,2,3}{,-config} 2to3 pydoc pyvenv; do
+ dosym ../lib/python-exec/python-exec2 /usr/bin/"${f}"
+ done
}
pkg_postinst() {
--
2.6.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-python] [PATCH 4/5] dev-lang/python-exec: Fake-bump for testing
2015-11-15 13:13 [gentoo-python] [PATCHES] Ebuild patches for python-exec wrapping of dev-lang/python Michał Górny
` (2 preceding siblings ...)
2015-11-15 13:13 ` [gentoo-python] [PATCH 3/5] app-eselect/eselect-python: Use python-exec instead of python-wrapper Michał Górny
@ 2015-11-15 13:13 ` Michał Górny
2015-11-15 13:13 ` [gentoo-python] [PATCH 5/5] app-admin/eselect-python: " Michał Górny
4 siblings, 0 replies; 6+ messages in thread
From: Michał Górny @ 2015-11-15 13:13 UTC (permalink / raw
To: gentoo-python; +Cc: python, Michał Górny
---
dev-lang/python-exec/Manifest | 1 +
dev-lang/python-exec/python-exec-2.1.ebuild | 39 ++++++++++++++++++++++++++
dev-lang/python-exec/python-exec-2.9999.ebuild | 5 ++--
3 files changed, 43 insertions(+), 2 deletions(-)
create mode 100644 dev-lang/python-exec/python-exec-2.1.ebuild
diff --git a/dev-lang/python-exec/Manifest b/dev-lang/python-exec/Manifest
index e9da272..7d18187 100644
--- a/dev-lang/python-exec/Manifest
+++ b/dev-lang/python-exec/Manifest
@@ -1,2 +1,3 @@
DIST python-exec-2.0.1.tar.bz2 80965 SHA256 3eddcb0d6c682a5c182c62578bb8d6ce1140a009873747e9ba1bf9de72ed7efd SHA512 0396e2617c759a66b16e57b0ca60b57e03f3c8096ae4a7f2e402eafcbee4ffd839bf0c6e4d259c6ba90940f9ba7e3f191125e395080cce3ef82e5f52053d0462 WHIRLPOOL 50c0cac1c7e2b5d2a21125647874c83caeabee293b87ef01926474d492b79b7837754c2d26173282977e9d00024559bb070f8d76bb5227df1776e937cd280c32
DIST python-exec-2.0.2.tar.bz2 82217 SHA256 c411638fe94953c1e8ff57e7b66f601a817633fbc9cb7d410982778042051bb0 SHA512 96198dda88a73b902d617a32f10ddf2ac981b1871fb5eaf5003d77453df8a0aacf299c39c6e49ebaa620994a30e57ee7a1128fb4ba41aa4f503031fa2addef7f WHIRLPOOL 603b494c7b87f0f3f0cfba35378e1a2e231879a01b730657e09ecf798957fa4dfd54a6d852074c2aa9ae3c15e5d1d3203584b8a120e5dd0dee2117319706a5ce
+DIST python-exec-2.1.tar.bz2 7929 SHA256 e6843bec2cf1eb1d85936c1e2fd9d57f7ce50a62ddd09760202bee0747603b9c SHA512 f923633c0ceff70bb3e87f777be645f08bf7dbd32d1ebdd80a778ef5bb75d018c82ff70d48341238e823401028d4e520bc8f06204638cd1f18635a681a9d833e WHIRLPOOL e73d8140778c0bbae2b1549c41cda9192889310093426919c164d53fffd93ecabbd6a29935fda2db176fbf5073eb8d22ba1d97f5dd2e2dd7635b3a38caaa7839
diff --git a/dev-lang/python-exec/python-exec-2.1.ebuild b/dev-lang/python-exec/python-exec-2.1.ebuild
new file mode 100644
index 0000000..02897d1
--- /dev/null
+++ b/dev-lang/python-exec/python-exec-2.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+# Kids, don't do this at home!
+inherit python-utils-r1
+PYTHON_COMPAT=( "${_PYTHON_ALL_IMPLS[@]}" )
+AUTOTOOLS_AUTORECONF=1
+
+inherit autotools-utils python-r1 vcs-snapshot
+
+DESCRIPTION="Python script wrapper"
+HOMEPAGE="https://bitbucket.org/mgorny/python-exec/"
+SRC_URI="https://bitbucket.org/mgorny/python-exec/get/a928d67bff12.tar.bz2 -> ${P}.tar.bz2"
+
+LICENSE="BSD-2"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND="!<dev-python/python-exec-10000
+ !<app-eselect/eselect-python-20151115"
+
+src_configure() {
+ local pyimpls i EPYTHON
+ for i in "${PYTHON_COMPAT[@]}"; do
+ python_export "${i}" EPYTHON
+ pyimpls+=" ${EPYTHON}"
+ done
+
+ local myeconfargs=(
+ --with-eprefix="${EPREFIX}"
+ --with-python-impls="${pyimpls}"
+ )
+
+ autotools-utils_src_configure
+}
diff --git a/dev-lang/python-exec/python-exec-2.9999.ebuild b/dev-lang/python-exec/python-exec-2.9999.ebuild
index c141673..af7df93 100644
--- a/dev-lang/python-exec/python-exec-2.9999.ebuild
+++ b/dev-lang/python-exec/python-exec-2.9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -27,7 +27,8 @@ SLOT="2"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE=""
-RDEPEND="!<dev-python/python-exec-10000"
+RDEPEND="!<dev-python/python-exec-10000
+ !<app-eselect/eselect-python-20151115"
#if LIVE
KEYWORDS=
--
2.6.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-python] [PATCH 5/5] app-admin/eselect-python: Fake-bump for testing
2015-11-15 13:13 [gentoo-python] [PATCHES] Ebuild patches for python-exec wrapping of dev-lang/python Michał Górny
` (3 preceding siblings ...)
2015-11-15 13:13 ` [gentoo-python] [PATCH 4/5] dev-lang/python-exec: Fake-bump for testing Michał Górny
@ 2015-11-15 13:13 ` Michał Górny
4 siblings, 0 replies; 6+ messages in thread
From: Michał Górny @ 2015-11-15 13:13 UTC (permalink / raw
To: gentoo-python; +Cc: python, Michał Górny
---
app-eselect/eselect-python/Manifest | 1 +
.../eselect-python/eselect-python-20151115.ebuild | 55 ++++++++++++++++++++++
.../eselect-python/eselect-python-99999999.ebuild | 3 +-
3 files changed, 57 insertions(+), 2 deletions(-)
create mode 100644 app-eselect/eselect-python/eselect-python-20151115.ebuild
diff --git a/app-eselect/eselect-python/Manifest b/app-eselect/eselect-python/Manifest
index 98a02a2..9ac29ae 100644
--- a/app-eselect/eselect-python/Manifest
+++ b/app-eselect/eselect-python/Manifest
@@ -2,3 +2,4 @@ DIST eselect-python-20111108.tar.bz2 64959 SHA256 34d7618808a3c1d22e6763bc6c67d5
DIST eselect-python-20131210.tar.bz2 71802 SHA256 61ff5a5a3ae7982c6ffd503886cbcd35142df05f07008722b90ab5036e4bf8f2 SHA512 8c523019e2a8fe7f1679b96a3da22326dbe65888739bb8cce3c4e2aa7c2c08cada01196a65c8fe35e08b3b7682a3f695e453e9ef1fb53f6b8886c51c09107d60 WHIRLPOOL e8c75eb1ad6fcaaba50cae9d10d2414b29b3cfc8d06c79257948b0d0b4e7c2156d1672be4f5edd28055b5ae3f6aa54b1b8ef6eaaae9dfa1ce9b7b0b68dbc712a
DIST eselect-python-20140115.tar.bz2 71910 SHA256 5898ee19015ae905168e8b7aa76552b96f691285ab77c426b6a9238ecf742e45 SHA512 65d6a6b9dfa0a0f4bea5352f965bed8942a16382135edea093342fa79a824d114b900cbcf607490f260b4ce4e5a2eb57872169e5494f8e6e65f41dd63cd5d335 WHIRLPOOL 633bca3e8a87e04c54a3790bb207da92d41af604cce7f8600c5317f6a759c55efbd3e5ba658e893d2d079248d2dadb1a0bb60248960e3d20cd766768a228d8c5
DIST eselect-python-20140125.tar.bz2 72102 SHA256 ee7b470f7facc42285bab7f4b947280741515a85c9067339511c219248f8fdfb SHA512 94d4eb5a1af365c6f56a6fc2b75298018267cd4f6004f30b2e4d0c4744d3e82b33f6c82e6f0ea0f15132d5157c3ace99fa167bbf3ebada46edd2e005ca96eb51 WHIRLPOOL 70d5f9af2929507d26e56080ce934066d2de5f16030dfd63b016215465ad5fc89eb952d64cc545c7058d146108e26925741d2c8fbaba08abba1a5cae7b0c23b6
+DIST eselect-python-20151115.tar.bz2 3256 SHA256 e5a5a97f80ff9613db1af35c5a265baa9157eb38e2513391fe59d4b794a71e57 SHA512 525f1552c5dd27cb0a81c9d9ff965dc63c538e2880de1dd873a6059bd387b9935bc6c4b43b7d9b409a827751ba1f25925862f65264b03a80df893bf2405f7d61 WHIRLPOOL dc9d847d6ac55d4b8a6c86029689e244697faa68e02025545ffc57574ea389a938a8886c1a0ebb4a25993204020468d06cac2abaa6a77fc8926ebdd1e8e50b25
diff --git a/app-eselect/eselect-python/eselect-python-20151115.ebuild b/app-eselect/eselect-python/eselect-python-20151115.ebuild
new file mode 100644
index 0000000..fc7b0f6
--- /dev/null
+++ b/app-eselect/eselect-python/eselect-python-20151115.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+if [[ ${PV} == "99999999" ]] ; then
+ inherit autotools git-r3
+ EGIT_REPO_URI="git://anongit.gentoo.org/proj/${PN}.git"
+ EGIT_BRANCH="mgornys-hackery"
+else
+ inherit autotools vcs-snapshot
+ SRC_URI="https://gitweb.gentoo.org/proj/eselect-python.git/snapshot/2e082de29ee3707d11d1097132aaeeae16d0ea83.tar.bz2 -> ${P}.tar.bz2"
+ 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"
+fi
+
+DESCRIPTION="Eselect module for management of multiple Python versions"
+HOMEPAGE="https://www.gentoo.org/proj/en/Python/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+RDEPEND=">=app-admin/eselect-1.2.3
+ >=dev-lang/python-exec-2.1:2
+ !<dev-lang/python-2.7.10-r3:2.7
+ !<dev-lang/python-3.3.5-r3:3.3
+ !<dev-lang/python-3.4.3-r3:3.4
+ !<dev-lang/python-3.5.0-r2:3.5"
+
+src_prepare() {
+ eautoreconf
+}
+
+src_install() {
+ keepdir /etc/env.d/python
+ emake DESTDIR="${D}" install || die
+
+ local f
+ for f in python{,2,3}{,-config} 2to3 pydoc pyvenv; do
+ dosym ../lib/python-exec/python-exec2 /usr/bin/"${f}"
+ done
+}
+
+pkg_postinst() {
+ if has_version 'dev-lang/python'; then
+ eselect python update --if-unset
+ fi
+ if has_version '=dev-lang/python-2*'; then
+ eselect python update --python2 --if-unset
+ fi
+ if has_version '=dev-lang/python-3*'; then
+ eselect python update --python3 --if-unset
+ fi
+}
diff --git a/app-eselect/eselect-python/eselect-python-99999999.ebuild b/app-eselect/eselect-python/eselect-python-99999999.ebuild
index d43f443..092cd23 100644
--- a/app-eselect/eselect-python/eselect-python-99999999.ebuild
+++ b/app-eselect/eselect-python/eselect-python-99999999.ebuild
@@ -21,9 +21,8 @@ LICENSE="GPL-2"
SLOT="0"
IUSE=""
-# TODO: add appropriate >= dep on python-exec
RDEPEND=">=app-admin/eselect-1.2.3
- dev-lang/python-exec:2
+ >=dev-lang/python-exec-2.1:2
!<dev-lang/python-2.7.10-r3:2.7
!<dev-lang/python-3.3.5-r3:3.3
!<dev-lang/python-3.4.3-r3:3.4
--
2.6.3
^ permalink raw reply related [flat|nested] 6+ messages in thread