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 05/10] Replace python_get_libdir with inlined path.
Date: Mon, 26 Nov 2012 21:24:11
Message-Id: 1353964837-24198-6-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-python] python2.7 ebuild patches, split up by "Michał Górny"
1 The path is specific to dev-lang/python, and python.eclass is not really
2 the right place to keep it.
3 ---
4 gx86/dev-lang/python/python-2.7.3-r3.ebuild | 4 ++--
5 1 file changed, 2 insertions(+), 2 deletions(-)
6
7 diff --git a/gx86/dev-lang/python/python-2.7.3-r3.ebuild b/gx86/dev-lang/python/python-2.7.3-r3.ebuild
8 index 1ba8eee..08eabb8 100644
9 --- a/gx86/dev-lang/python/python-2.7.3-r3.ebuild
10 +++ b/gx86/dev-lang/python/python-2.7.3-r3.ebuild
11 @@ -235,7 +235,7 @@ src_test() {
12 done
13
14 elog "If you would like to run them, you may:"
15 - elog "cd '${EPREFIX}$(python_get_libdir)/test'"
16 + elog "cd '${EPREFIX}/usr/$(get_libdir)/python${SLOT}/test'"
17 elog "and run the tests separately."
18
19 python_disable_pyc
20 @@ -248,7 +248,7 @@ src_test() {
21 src_install() {
22 [[ -z "${ED}" ]] && ED="${D%/}${EPREFIX}/"
23
24 - local libdir=${ED}$(python_get_libdir)
25 + local libdir=${ED}/usr/$(get_libdir)/python${SLOT}
26
27 emake DESTDIR="${D}" altinstall maninstall || die "emake altinstall maninstall failed"
28
29 --
30 1.8.0