From fe27f1f71d13114f176d4c7d6bbcb3865efc1eaf Mon Sep 17 00:00:00 2001 From: Tim Harder Date: Sun, 23 Aug 2015 20:58:23 -0400 Subject: [PATCH] dev-util/pkgcheck: add support for building/installing man page --- dev-util/pkgcheck/pkgcheck-9999.ebuild | 11 +++++++++++ 1 file changed, 11 insertions(+) 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() { -- 2.26.2