diff options
author | Tim Harder <radhermit@gentoo.org> | 2019-12-04 21:50:45 -0700 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2019-12-04 21:59:27 -0700 |
commit | 45322ac2cac57a5cf4ee4c57a4c0069bedc91d27 (patch) | |
tree | 4316c0b2d7505a8c824d0636cb58630f8d64b0bb /dev-util/pkgcheck | |
parent | sys-apps/pkgcore: simplify building docs and fix doc build deps (diff) | |
download | gentoo-45322ac2cac57a5cf4ee4c57a4c0069bedc91d27.tar.gz gentoo-45322ac2cac57a5cf4ee4c57a4c0069bedc91d27.tar.bz2 gentoo-45322ac2cac57a5cf4ee4c57a4c0069bedc91d27.zip |
dev-util/pkgcheck: fix doc build deps
Signed-off-by: Tim Harder <radhermit@gentoo.org>
Diffstat (limited to 'dev-util/pkgcheck')
-rw-r--r-- | dev-util/pkgcheck/pkgcheck-0.7.1.ebuild | 15 | ||||
-rw-r--r-- | dev-util/pkgcheck/pkgcheck-9999.ebuild | 15 |
2 files changed, 22 insertions, 8 deletions
diff --git a/dev-util/pkgcheck/pkgcheck-0.7.1.ebuild b/dev-util/pkgcheck/pkgcheck-0.7.1.ebuild index 67df54ec8209..b812a50541dc 100644 --- a/dev-util/pkgcheck/pkgcheck-0.7.1.ebuild +++ b/dev-util/pkgcheck/pkgcheck-0.7.1.ebuild @@ -40,17 +40,24 @@ RDEPEND+=" " DEPEND="${RDEPEND} dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') ) + doc? ( $(python_gen_any_dep ' + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + ') ) test? ( dev-python/pytest[${PYTHON_USEDEP}] ) " python_check_deps() { - use doc || return 0 - has_version "dev-python/sphinx[${PYTHON_USEDEP}]" + 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 } python_compile_all() { - use doc && esetup.py build_man + use doc && esetup.py build_docs } python_test() { diff --git a/dev-util/pkgcheck/pkgcheck-9999.ebuild b/dev-util/pkgcheck/pkgcheck-9999.ebuild index 67df54ec8209..b812a50541dc 100644 --- a/dev-util/pkgcheck/pkgcheck-9999.ebuild +++ b/dev-util/pkgcheck/pkgcheck-9999.ebuild @@ -40,17 +40,24 @@ RDEPEND+=" " DEPEND="${RDEPEND} dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') ) + doc? ( $(python_gen_any_dep ' + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + ') ) test? ( dev-python/pytest[${PYTHON_USEDEP}] ) " python_check_deps() { - use doc || return 0 - has_version "dev-python/sphinx[${PYTHON_USEDEP}]" + 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 } python_compile_all() { - use doc && esetup.py build_man + use doc && esetup.py build_docs } python_test() { |