From: Tim Harder Date: Tue, 10 Dec 2019 05:02:33 +0000 (-0700) Subject: dev-python/pychroot: simplify installing man pages X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=0d9e1525d91570c8b1ae91c5860e24a774fedc60;p=gentoo.git dev-python/pychroot: simplify installing man pages Drop man page build for live ebuilds, if you need man pages use releases. Closes: https://bugs.gentoo.org/702398 Signed-off-by: Tim Harder --- diff --git a/dev-python/pychroot/pychroot-0.10.1.ebuild b/dev-python/pychroot/pychroot-0.10.1.ebuild index eaad97eb08ab..218709a73ba5 100644 --- a/dev-python/pychroot/pychroot-0.10.1.ebuild +++ b/dev-python/pychroot/pychroot-0.10.1.ebuild @@ -32,16 +32,6 @@ BDEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] test? ( dev-python/pytest[${PYTHON_USEDEP}] ) " -[[ ${PV} == *9999 ]] && BDEPEND+=" $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]')" - -python_check_deps() { - [[ ${PV} == *9999 ]] || return 0 - has_version "dev-python/sphinx[${PYTHON_USEDEP}]" -} - -python_compile_all() { - esetup.py build_man -} python_test() { esetup.py test @@ -49,6 +39,6 @@ python_test() { python_install_all() { local DOCS=( NEWS.rst README.rst ) - esetup.py install_man --mandir="${ED}/usr/share/man" + [[ ${PV} == *9999 ]] || doman man/* distutils-r1_python_install_all } diff --git a/dev-python/pychroot/pychroot-9999.ebuild b/dev-python/pychroot/pychroot-9999.ebuild index eaad97eb08ab..218709a73ba5 100644 --- a/dev-python/pychroot/pychroot-9999.ebuild +++ b/dev-python/pychroot/pychroot-9999.ebuild @@ -32,16 +32,6 @@ BDEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] test? ( dev-python/pytest[${PYTHON_USEDEP}] ) " -[[ ${PV} == *9999 ]] && BDEPEND+=" $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]')" - -python_check_deps() { - [[ ${PV} == *9999 ]] || return 0 - has_version "dev-python/sphinx[${PYTHON_USEDEP}]" -} - -python_compile_all() { - esetup.py build_man -} python_test() { esetup.py test @@ -49,6 +39,6 @@ python_test() { python_install_all() { local DOCS=( NEWS.rst README.rst ) - esetup.py install_man --mandir="${ED}/usr/share/man" + [[ ${PV} == *9999 ]] || doman man/* distutils-r1_python_install_all }