diff options
author | Tim Harder <radhermit@gentoo.org> | 2015-08-23 20:58:23 -0400 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2015-08-23 20:58:23 -0400 |
commit | fe27f1f71d13114f176d4c7d6bbcb3865efc1eaf (patch) | |
tree | 100fca51003c53f589c9550a75148a8a385dc53d /dev-util/pkgcheck | |
parent | dev-util/pkgcheck: version bump (diff) | |
download | gentoo-fe27f1f71d13114f176d4c7d6bbcb3865efc1eaf.tar.gz gentoo-fe27f1f71d13114f176d4c7d6bbcb3865efc1eaf.tar.bz2 gentoo-fe27f1f71d13114f176d4c7d6bbcb3865efc1eaf.zip |
dev-util/pkgcheck: add support for building/installing man page
Diffstat (limited to 'dev-util/pkgcheck')
-rw-r--r-- | dev-util/pkgcheck/pkgcheck-9999.ebuild | 11 |
1 files changed, 11 insertions, 0 deletions
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() { |