media-libs/vigra: USE doc needs python_setup
authorAndreas Sturmlechner <asturm@gentoo.org>
Mon, 8 Apr 2019 21:04:41 +0000 (23:04 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Mon, 8 Apr 2019 21:13:02 +0000 (23:13 +0200)
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
media-libs/vigra/vigra-9999.ebuild

index 4698467356505240df14621ff88ed5b903d47927..6f78ecb71516e26fc13d1a76747ec907a9bb0049 100644 (file)
@@ -32,7 +32,7 @@ REQUIRED_USE="
 BDEPEND="
        doc? (
                app-doc/doxygen
-               python? ( >=dev-python/sphinx-1.1.3-r5[${PYTHON_USEDEP}] )
+               >=dev-python/sphinx-1.1.3-r5[${PYTHON_USEDEP}]
        )
        test? (
                >=dev-python/nose-1.1.2-r1[${PYTHON_USEDEP}]
@@ -66,7 +66,9 @@ RESTRICT="test"
 PATCHES=( "${FILESDIR}/${PN}-1.11.1-lib_suffix.patch" )
 
 pkg_setup() {
-       use python && python_setup
+       if use python || use doc; then
+               python_setup
+       fi
 }
 
 src_prepare() {