dev-python/networkx: Use python2.7 for doc building
authorJustin Lecher <jlec@gentoo.org>
Wed, 3 Feb 2016 09:05:09 +0000 (10:05 +0100)
committerJustin Lecher <jlec@gentoo.org>
Wed, 3 Feb 2016 09:05:33 +0000 (10:05 +0100)
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=571044

Package-Manager: portage-2.2.27
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-python/networkx/networkx-1.10-r1.ebuild
dev-python/networkx/networkx-1.10.ebuild
dev-python/networkx/networkx-1.11.ebuild

index 9770aae4be5f82a09ef4443565fb674e0c487fc7..b6b73f9cfe837f97a71354ecf1f638dc4eeebeff 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -17,6 +17,8 @@ SLOT="0"
 KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
 IUSE="doc examples test"
 
+REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )"
+
 COMMON_DEPEND="
        dev-python/matplotlib[${PYTHON_USEDEP}]
                sci-libs/scipy[${PYTHON_USEDEP}]"
@@ -42,6 +44,10 @@ RDEPEND="
                dev-python/pyyaml[${PYTHON_USEDEP}]
        )"
 
+pkg_setup() {
+       use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' )
+}
+
 python_prepare_all() {
        # Avoid d'loading of file objects.inv from 2 sites of python docs
        sed -e "s/'sphinx.ext.intersphinx', //" -i doc/source/conf.py || die
index 95ff6a288d1d2930314c678c4f3c588bc984d5eb..23f681f8150d3ec22da3cec9d309ec8cf731b58e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -17,7 +17,10 @@ SLOT="0"
 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
 IUSE="doc examples test"
 
-COMMON_DEPEND="dev-python/matplotlib[${PYTHON_USEDEP}]
+REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )"
+
+COMMON_DEPEND="
+       dev-python/matplotlib[${PYTHON_USEDEP}]
                sci-libs/scipy[${PYTHON_USEDEP}]"
 DEPEND="
        dev-python/setuptools[${PYTHON_USEDEP}]
@@ -41,6 +44,10 @@ RDEPEND="
                dev-python/pyyaml[${PYTHON_USEDEP}]
        )"
 
+pkg_setup() {
+       use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' )
+}
+
 python_prepare_all() {
        # Avoid d'loading of file objects.inv from 2 sites of python docs
        sed -e "s/'sphinx.ext.intersphinx', //" -i doc/source/conf.py || die
index 4508dcd7d8469e8e9854bbdc4cc77dfbe29d6a09..0c221742b523526750d0aeb62435df7331d4fa2d 100644 (file)
@@ -17,6 +17,8 @@ SLOT="0"
 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
 IUSE="doc examples test"
 
+REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )"
+
 COMMON_DEPEND="
        dev-python/matplotlib[${PYTHON_USEDEP}]
                sci-libs/scipy[${PYTHON_USEDEP}]"
@@ -42,6 +44,10 @@ RDEPEND="
                dev-python/pyyaml[${PYTHON_USEDEP}]
        )"
 
+pkg_setup() {
+       use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' )
+}
+
 python_prepare_all() {
        # Avoid d'loading of file objects.inv from 2 sites of python docs
        sed -e "s/'sphinx.ext.intersphinx', //" -i doc/source/conf.py || die