mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-31 23:08:09 -07:00
dev-python/networkx: Use python2.7 for doc building
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>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user