dev-python/pandas: Use virtualx during doc building
authorJustin Lecher <jlec@gentoo.org>
Thu, 26 Nov 2015 10:05:44 +0000 (11:05 +0100)
committerJustin Lecher <jlec@gentoo.org>
Thu, 26 Nov 2015 10:26:01 +0000 (11:26 +0100)
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=566756

Package-Manager: portage-2.2.25
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-python/pandas/pandas-0.17.1.ebuild

index 27eb12994652f54ca1df12c545240deba3bdef9d..8fd49dd1a78566320f11f1a1e7f7c21284b8779d 100644 (file)
@@ -7,6 +7,8 @@ EAPI=5
 PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
 PYTHON_REQ_USE="threads(+)"
 
+VIRTUALX_REQUIRED="manual"
+
 inherit distutils-r1 eutils flag-o-matic virtualx
 
 DESCRIPTION="Powerful data structures for data analysis and statistics"
@@ -63,6 +65,7 @@ DEPEND="${MINIMAL_DEPEND}
        dev-python/setuptools[${PYTHON_USEDEP}]
        >=dev-python/cython-0.19.1[${PYTHON_USEDEP}]
        doc? (
+               ${VIRTUALX_DEPEND}
                dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
                dev-python/html5lib[${PYTHON_USEDEP}]
                dev-python/ipython[${PYTHON_USEDEP}]
@@ -79,6 +82,7 @@ DEPEND="${MINIMAL_DEPEND}
                x11-misc/xclip
        )
        test? (
+               ${VIRTUALX_DEPEND}
                ${RECOMMENDED_DEPEND}
                ${OPTIONAL_DEPEND}
                dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
@@ -115,9 +119,10 @@ python_compile_all() {
        # To build docs the need be located in $BUILD_DIR,
        # else PYTHONPATH points to unusable modules.
        if use doc; then
+               VIRTUALX_COMMAND="${EPYTHON}"
                cd "${BUILD_DIR}"/lib || die
                cp -ar "${S}"/doc . && cd doc || die
-               LANG=C PYTHONPATH=. "${EPYTHON}" make.py html || die
+               LANG=C PYTHONPATH=. virtualmake make.py html || die
        fi
 }