commit:     0d9e1525d91570c8b1ae91c5860e24a774fedc60
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 10 05:02:33 2019 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Tue Dec 10 05:04:47 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d9e1525

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 <radhermit <AT> gentoo.org>

 dev-python/pychroot/pychroot-0.10.1.ebuild | 12 +-----------
 dev-python/pychroot/pychroot-9999.ebuild   | 12 +-----------
 2 files changed, 2 insertions(+), 22 deletions(-)

diff --git a/dev-python/pychroot/pychroot-0.10.1.ebuild 
b/dev-python/pychroot/pychroot-0.10.1.ebuild
index eaad97eb08a..218709a73ba 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 eaad97eb08a..218709a73ba 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
 }

Reply via email to