dev-util/pkgcheck: Require setuptools for doc install too
authorMichał Górny <mgorny@gentoo.org>
Sat, 7 Dec 2019 20:25:32 +0000 (21:25 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 7 Dec 2019 20:31:32 +0000 (21:31 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-util/pkgcheck/pkgcheck-0.7.1.ebuild
dev-util/pkgcheck/pkgcheck-9999.ebuild

index 85632f39aa0fc49e3db89f3d94ef049daeb29f5a..8ab52c61b8ae17768ab8e6c96e5da46479e272f2 100644 (file)
@@ -45,12 +45,15 @@ DEPEND="${RDEPEND}
                dev-python/docutils[${PYTHON_USEDEP}]
                dev-python/sphinx[${PYTHON_USEDEP}]
        ') )
+       !doc? (
+               $(python_gen_any_dep 'dev-python/setuptools[${PYTHON_USEDEP}]')
+       )
        test? ( dev-python/pytest[${PYTHON_USEDEP}] )
 "
 
 python_check_deps() {
+       has_version "dev-python/setuptools[${PYTHON_USEDEP}]" || return 1
        if use doc; then
-               has_version "dev-python/setuptools[${PYTHON_USEDEP}]" &&
                has_version "dev-python/docutils[${PYTHON_USEDEP}]" &&
                has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
        fi
index 85632f39aa0fc49e3db89f3d94ef049daeb29f5a..8ab52c61b8ae17768ab8e6c96e5da46479e272f2 100644 (file)
@@ -45,12 +45,15 @@ DEPEND="${RDEPEND}
                dev-python/docutils[${PYTHON_USEDEP}]
                dev-python/sphinx[${PYTHON_USEDEP}]
        ') )
+       !doc? (
+               $(python_gen_any_dep 'dev-python/setuptools[${PYTHON_USEDEP}]')
+       )
        test? ( dev-python/pytest[${PYTHON_USEDEP}] )
 "
 
 python_check_deps() {
+       has_version "dev-python/setuptools[${PYTHON_USEDEP}]" || return 1
        if use doc; then
-               has_version "dev-python/setuptools[${PYTHON_USEDEP}]" &&
                has_version "dev-python/docutils[${PYTHON_USEDEP}]" &&
                has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
        fi