summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-12-07 21:25:32 +0100
committerMichał Górny <mgorny@gentoo.org>2019-12-07 21:31:32 +0100
commita1d8b122e1b29fea6837c414dad73db3d915eafb (patch)
tree520bd750bea5137586fc77c98e4f760ef967826b /dev-util/pkgcheck
parentsys-apps/pkgcore: Require setuptools for doc install too (diff)
downloadgentoo-a1d8b122e1b29fea6837c414dad73db3d915eafb.tar.gz
gentoo-a1d8b122e1b29fea6837c414dad73db3d915eafb.tar.bz2
gentoo-a1d8b122e1b29fea6837c414dad73db3d915eafb.zip
dev-util/pkgcheck: Require setuptools for doc install too
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-util/pkgcheck')
-rw-r--r--dev-util/pkgcheck/pkgcheck-0.7.1.ebuild5
-rw-r--r--dev-util/pkgcheck/pkgcheck-9999.ebuild5
2 files changed, 8 insertions, 2 deletions
diff --git a/dev-util/pkgcheck/pkgcheck-0.7.1.ebuild b/dev-util/pkgcheck/pkgcheck-0.7.1.ebuild
index 85632f39aa0f..8ab52c61b8ae 100644
--- a/dev-util/pkgcheck/pkgcheck-0.7.1.ebuild
+++ b/dev-util/pkgcheck/pkgcheck-0.7.1.ebuild
@@ -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
diff --git a/dev-util/pkgcheck/pkgcheck-9999.ebuild b/dev-util/pkgcheck/pkgcheck-9999.ebuild
index 85632f39aa0f..8ab52c61b8ae 100644
--- a/dev-util/pkgcheck/pkgcheck-9999.ebuild
+++ b/dev-util/pkgcheck/pkgcheck-9999.ebuild
@@ -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