commit: 63d2f0be7a281f1a83a1915c42aa0ba7864c39a4 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> AuthorDate: Mon Mar 21 05:20:10 2016 +0000 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> CommitDate: Tue Mar 22 00:02:22 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63d2f0be
dev-python/wcsaxes: fix documentation building Package-Manager: portage-2.2.28 dev-python/wcsaxes/wcsaxes-0.6.ebuild | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/dev-python/wcsaxes/wcsaxes-0.6.ebuild b/dev-python/wcsaxes/wcsaxes-0.6.ebuild index 67bda68..0dc81c5 100644 --- a/dev-python/wcsaxes/wcsaxes-0.6.ebuild +++ b/dev-python/wcsaxes/wcsaxes-0.6.ebuild @@ -16,14 +16,19 @@ SLOT="0" KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" IUSE="doc test" -RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] +RDEPEND=" dev-python/astropy[${PYTHON_USEDEP}] dev-python/matplotlib[${PYTHON_USEDEP}]" DEPEND="${RDEPEND} - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] ) + dev-python/astropy-helpers[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] ) test? ( dev-python/pytest[${PYTHON_USEDEP}] )" +REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )" + PATCHES=( "${FILESDIR}/${PN}-0.6-disable_mpltest.patch" "${FILESDIR}/${PN}-0.6-disable_numpy_warnings_test.patch" @@ -35,7 +40,13 @@ python_prepare_all() { } python_compile_all() { - use doc && esetup.py build_sphinx -w + if use doc; then + python_setup + VARTEXFONTS="${T}"/fonts \ + MPLCONFIGDIR="${BUILD_DIR}" \ + PYTHONPATH="${BUILD_DIR}"/lib \ + esetup.py build_sphinx --no-intersphinx + fi } python_test() { @@ -43,6 +54,6 @@ python_test() { } python_install_all() { - use doc && local HTML_DOCS=( docs/_build/html/ ) + use doc && local HTML_DOCS=( docs/_build/html/. ) distutils-r1_python_install_all }