dev-python/pyproj: Fix USE doc
authorAndreas Sturmlechner <asturm@gentoo.org>
Fri, 6 Dec 2019 19:58:45 +0000 (20:58 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Fri, 6 Dec 2019 20:21:28 +0000 (21:21 +0100)
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
dev-python/pyproj/pyproj-2.4.1.ebuild

index e46bd9bcde9488ae128a48ca04287c49a9dbec37..4caf7eaf13530788155217899fbbeb1fdadcebc1 100644 (file)
@@ -21,7 +21,7 @@ RDEPEND=">=sci-libs/proj-6.2.0"
 DEPEND="${RDEPEND}
        dev-python/cython[${PYTHON_USEDEP}]"
 BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
-       doc? ( dev-python/sphinx )
+       doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') )
        test? (
                dev-python/mock[${PYTHON_USEDEP}]
                dev-python/numpy[${PYTHON_USEDEP}]
@@ -30,6 +30,10 @@ BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
 
 distutils_enable_tests pytest
 
+python_check_deps() {
+       use doc && has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
+}
+
 python_prepare_all() {
        distutils-r1_python_prepare_all
        append-cflags -fno-strict-aliasing