commit: 213392853be45174c017fa37c20a5b0f0dd5121e
Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 23 06:52:20 2016 +0000
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Jan 23 06:52:40 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21339285
sys-apps/pkgcore: simplify docs build/install
sys-apps/pkgcore/pkgcore-9999.ebuild | 21 ++++-----------------
1 file changed, 4 insertions(+), 17 deletions(-)
diff --git a/sys-apps/pkgcore/pkgcore-9999.ebuild
b/sys-apps/pkgcore/pkgcore-9999.ebuild
index 2d2c135..0cf4962 100644
--- a/sys-apps/pkgcore/pkgcore-9999.ebuild
+++ b/sys-apps/pkgcore/pkgcore-9999.ebuild
@@ -41,15 +41,8 @@ pkg_setup() {
}
python_compile_all() {
- if [[ ${PV} == *9999 ]]; then
- esetup.py build_man
- ln -s "${BUILD_DIR}/sphinx/man" man || die
- fi
-
- if use doc; then
- esetup.py build_docs
- ln -s "${BUILD_DIR}/sphinx/html" html || die
- fi
+ [[ ${PV} == *9999 ]] && esetup.py build_man
+ use doc && esetup.py build_docs
}
python_test() {
@@ -57,14 +50,8 @@ python_test() {
}
python_install_all() {
- local cmds=(
- install_man
- )
- use doc && cmds+=(
- install_docs --path="${ED%/}"/usr/share/doc/${PF}/html
- )
-
- distutils-r1_python_install "${cmds[@]}"
+ distutils-r1_python_install install_man \
+ $(usex doc "install_docs
--path="${ED%/}"/usr/share/doc/${PF}/html" "")
distutils-r1_python_install_all
}