Gentoo Archives: gentoo-python

From: "Michał Górny" <mgorny@g.o>
To: gentoo-python@l.g.o
Cc: python@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-python] [PATCH 07/10] Install 'epython' module for python-exec.
Date: Mon, 26 Nov 2012 21:24:30
Message-Id: 1353964837-24198-8-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-python] python2.7 ebuild patches, split up by "Michał Górny"
1 ---
2 gx86/dev-lang/python/python-2.7.3-r3.ebuild | 7 ++++++-
3 1 file changed, 6 insertions(+), 1 deletion(-)
4
5 diff --git a/gx86/dev-lang/python/python-2.7.3-r3.ebuild b/gx86/dev-lang/python/python-2.7.3-r3.ebuild
6 index 618f7ef..8af21e3 100644
7 --- a/gx86/dev-lang/python/python-2.7.3-r3.ebuild
8 +++ b/gx86/dev-lang/python/python-2.7.3-r3.ebuild
9 @@ -6,7 +6,7 @@ EAPI="2"
10 WANT_AUTOMAKE="none"
11 WANT_LIBTOOL="none"
12
13 -inherit autotools eutils flag-o-matic multilib pax-utils toolchain-funcs
14 +inherit autotools eutils flag-o-matic multilib pax-utils python-utils-r1 toolchain-funcs
15
16 MY_P="Python-${PV}"
17 PATCHSET_REVISION="1"
18 @@ -282,6 +282,11 @@ src_install() {
19 -e "s:@PYDOC_PORT_VARIABLE@:PYDOC${SLOT/./_}_PORT:" \
20 -e "s:@PYDOC@:pydoc${SLOT}:" \
21 -i "${ED}etc/conf.d/pydoc-${SLOT}" "${ED}etc/init.d/pydoc-${SLOT}" || die "sed failed"
22 +
23 + # for python-exec
24 + python_export python${SLOT} EPYTHON PYTHON PYTHON_SITEDIR
25 + echo "EPYTHON='${EPYTHON}'" > epython.py
26 + python_domodule epython.py
27 }
28
29 pkg_preinst() {
30 --
31 1.8.0