From: Tim Harder Date: Mon, 24 Aug 2015 00:58:23 +0000 (-0400) Subject: dev-util/pkgcheck: add support for building/installing man page X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fe27f1f71d13114f176d4c7d6bbcb3865efc1eaf;p=gentoo.git dev-util/pkgcheck: add support for building/installing man page --- diff --git a/dev-util/pkgcheck/pkgcheck-9999.ebuild b/dev-util/pkgcheck/pkgcheck-9999.ebuild index c786406a6419..316538edf1fb 100644 --- a/dev-util/pkgcheck/pkgcheck-9999.ebuild +++ b/dev-util/pkgcheck/pkgcheck-9999.ebuild @@ -24,12 +24,17 @@ RDEPEND="=sys-apps/pkgcore-9999[${PYTHON_USEDEP}] =dev-python/snakeoil-9999[${PYTHON_USEDEP}]" DEPEND="${RDEPEND} dev-python/setuptools[${PYTHON_USEDEP}]" +[[ ${PV} == *9999 ]] && DEPEND+=" dev-python/sphinx[${PYTHON_USEDEP}]" pkg_setup() { # disable snakeoil 2to3 caching... unset PY2TO3_CACHEDIR } +python_compile_all() { + [[ ${PV} == *9999 ]] && emake -C doc man +} + python_test() { esetup.py test } @@ -37,6 +42,12 @@ python_test() { python_install_all() { local DOCS=( AUTHORS NEWS.rst ) distutils-r1_python_install_all + + if [[ ${PV} == *9999 ]]; then + emake -C doc PREFIX=/usr DESTDIR="${D}" install_man + else + doman man/* + fi } pkg_postinst() {