commit:     b6022670668137f72552ba340f7ca19dec2a08f0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Dec  9 17:47:54 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Dec  9 19:06:47 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6022670

dev-python/pycups: Restrict *_all() phases to py2 for USE=doc

 dev-python/pycups/pycups-1.9.73.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dev-python/pycups/pycups-1.9.73.ebuild 
b/dev-python/pycups/pycups-1.9.73.ebuild
index 188c6f7..ea8a001 100644
--- a/dev-python/pycups/pycups-1.9.73.ebuild
+++ b/dev-python/pycups/pycups-1.9.73.ebuild
@@ -31,6 +31,10 @@ DEPEND="${RDEPEND}
 
 REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )"
 
+pkg_setup() {
+       use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 )
+}
+
 python_compile_all() {
        if use doc; then
                # we can't use Makefile since it relies on hardcoded paths

Reply via email to