diff options
author | Tim Harder <radhermit@gentoo.org> | 2016-01-23 01:52:20 -0500 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2016-01-23 01:52:40 -0500 |
commit | 213392853be45174c017fa37c20a5b0f0dd5121e (patch) | |
tree | 18aeeef2b3a481c52bfdfe45d990e8aa3ae5cbaa /sys-apps | |
parent | app-admin/vault: remove old version (diff) | |
download | gentoo-213392853be45174c017fa37c20a5b0f0dd5121e.tar.gz gentoo-213392853be45174c017fa37c20a5b0f0dd5121e.tar.bz2 gentoo-213392853be45174c017fa37c20a5b0f0dd5121e.zip |
sys-apps/pkgcore: simplify docs build/install
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/pkgcore/pkgcore-9999.ebuild | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/sys-apps/pkgcore/pkgcore-9999.ebuild b/sys-apps/pkgcore/pkgcore-9999.ebuild index 2d2c13586b11..0cf496271090 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 } |