sys-apps/portage: Force py2 for doc-build with USE=epydoc
authorMichał Górny <mgorny@gentoo.org>
Wed, 9 Dec 2015 18:46:48 +0000 (19:46 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 9 Dec 2015 19:06:47 +0000 (20:06 +0100)
sys-apps/portage/portage-2.2.26.ebuild
sys-apps/portage/portage-9999.ebuild

index 43cb079e8c28ef3e6c45b5ba1696bc31f7de422a..9473c2c5b4e0fd297e5e7011d12441f96d8d06b9 100644 (file)
@@ -79,6 +79,10 @@ TARBALL_PV=${PV}
 SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2
        $(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)"
 
+pkg_setup() {
+       use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 )
+}
+
 python_prepare_all() {
        distutils-r1_python_prepare_all
 
index f6dea3e1b2eff923b23b98772860d336c5d7282e..f69e62f70f2609c67d31a1f0c7b8f3c8a240eb2b 100644 (file)
@@ -78,6 +78,10 @@ prefix_src_archives() {
 EGIT_REPO_URI="git://anongit.gentoo.org/proj/portage.git
        https://github.com/gentoo/portage.git"
 
+pkg_setup() {
+       use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 )
+}
+
 python_prepare_all() {
        distutils-r1_python_prepare_all