1 |
commit: e80293dcc6386268b90dd5130409f0069c5de832 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 9 18:46:48 2015 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 9 19:06:47 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e80293dc |
7 |
|
8 |
sys-apps/portage: Force py2 for doc-build with USE=epydoc |
9 |
|
10 |
sys-apps/portage/portage-2.2.26.ebuild | 4 ++++ |
11 |
sys-apps/portage/portage-9999.ebuild | 4 ++++ |
12 |
2 files changed, 8 insertions(+) |
13 |
|
14 |
diff --git a/sys-apps/portage/portage-2.2.26.ebuild b/sys-apps/portage/portage-2.2.26.ebuild |
15 |
index 43cb079..9473c2c 100644 |
16 |
--- a/sys-apps/portage/portage-2.2.26.ebuild |
17 |
+++ b/sys-apps/portage/portage-2.2.26.ebuild |
18 |
@@ -79,6 +79,10 @@ TARBALL_PV=${PV} |
19 |
SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2 |
20 |
$(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)" |
21 |
|
22 |
+pkg_setup() { |
23 |
+ use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) |
24 |
+} |
25 |
+ |
26 |
python_prepare_all() { |
27 |
distutils-r1_python_prepare_all |
28 |
|
29 |
|
30 |
diff --git a/sys-apps/portage/portage-9999.ebuild b/sys-apps/portage/portage-9999.ebuild |
31 |
index f6dea3e..f69e62f 100644 |
32 |
--- a/sys-apps/portage/portage-9999.ebuild |
33 |
+++ b/sys-apps/portage/portage-9999.ebuild |
34 |
@@ -78,6 +78,10 @@ prefix_src_archives() { |
35 |
EGIT_REPO_URI="git://anongit.gentoo.org/proj/portage.git |
36 |
https://github.com/gentoo/portage.git" |
37 |
|
38 |
+pkg_setup() { |
39 |
+ use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) |
40 |
+} |
41 |
+ |
42 |
python_prepare_all() { |
43 |
distutils-r1_python_prepare_all |