From 213392853be45174c017fa37c20a5b0f0dd5121e Mon Sep 17 00:00:00 2001 From: Tim Harder Date: Sat, 23 Jan 2016 01:52:20 -0500 Subject: [PATCH] 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 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 } -- 2.26.2