dev-python/pycups: Restrict *_all() phases to py2 for USE=doc
authorMichał Górny <mgorny@gentoo.org>
Wed, 9 Dec 2015 17:47:54 +0000 (18:47 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 9 Dec 2015 19:06:47 +0000 (20:06 +0100)
dev-python/pycups/pycups-1.9.73.ebuild

index 188c6f747d24bb068b29cac4bce7f06fb1b4de5e..ea8a00118095a9bcf6942b4a939a3e558d0c578b 100644 (file)
@@ -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