summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2019-12-09 22:07:34 -0700
committerTim Harder <radhermit@gentoo.org>2019-12-09 22:07:34 -0700
commit7f37cca0a777a9006cc879a72cbb5c787f6c93f7 (patch)
tree02afa9f6088783b5072c0ba153f94deae00ca421
parentdev-python/pychroot: simplify installing man pages (diff)
downloadgentoo-7f37cca0a777a9006cc879a72cbb5c787f6c93f7.tar.gz
gentoo-7f37cca0a777a9006cc879a72cbb5c787f6c93f7.tar.bz2
gentoo-7f37cca0a777a9006cc879a72cbb5c787f6c93f7.zip
dev-util/pkgcheck: drop doc use flag and simplify installing man pages
Man pages are only installed for releases now, if you need them use the latest release. Signed-off-by: Tim Harder <radhermit@gentoo.org>
-rw-r--r--dev-util/pkgcheck/pkgcheck-9999.ebuild26
1 files changed, 2 insertions, 24 deletions
diff --git a/dev-util/pkgcheck/pkgcheck-9999.ebuild b/dev-util/pkgcheck/pkgcheck-9999.ebuild
index 8ab52c61b8ae..b81e8708d7c0 100644
--- a/dev-util/pkgcheck/pkgcheck-9999.ebuild
+++ b/dev-util/pkgcheck/pkgcheck-9999.ebuild
@@ -19,7 +19,7 @@ HOMEPAGE="https://github.com/pkgcore/pkgcheck"
LICENSE="BSD"
SLOT="0"
-IUSE="doc network perl test"
+IUSE="network perl test"
RESTRICT="!test? ( test )"
if [[ ${PV} == *9999 ]]; then
@@ -40,37 +40,15 @@ RDEPEND+="
"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
- doc? ( $(python_gen_any_dep '
- dev-python/setuptools[${PYTHON_USEDEP}]
- 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/docutils[${PYTHON_USEDEP}]" &&
- has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
- fi
-}
-
-python_compile_all() {
- use doc && esetup.py build_docs
-}
-
python_test() {
esetup.py test
}
python_install_all() {
local DOCS=( AUTHORS NEWS.rst )
- esetup.py install_docs \
- --docdir="${ED%/}/usr/share/doc/${PF}" \
- --mandir="${ED%/}/usr/share/man"
+ [[ ${PV} == *9999 ]] || doman man/*
distutils-r1_python_install_all
}