diff options
author | Sam James <sam@gentoo.org> | 2021-02-27 11:08:28 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-02-27 11:08:46 +0000 |
commit | 0fded558b9338ebfee35a6abcee1d15fd9364252 (patch) | |
tree | 0752d6be47f25d2cf8dd6779a61afb62d358bb4c /dev-util | |
parent | profiles/package.mask: last rite media-gfx/openexr_viewers (diff) | |
download | gentoo-0fded558b9338ebfee35a6abcee1d15fd9364252.tar.gz gentoo-0fded558b9338ebfee35a6abcee1d15fd9364252.tar.bz2 gentoo-0fded558b9338ebfee35a6abcee1d15fd9364252.zip |
dev-util/pkgdev: add man page/doc generation
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/pkgdev/pkgdev-9999.ebuild | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-util/pkgdev/pkgdev-9999.ebuild b/dev-util/pkgdev/pkgdev-9999.ebuild index bc60a9ad96a9..0b934f899b7f 100644 --- a/dev-util/pkgdev/pkgdev-9999.ebuild +++ b/dev-util/pkgdev/pkgdev-9999.ebuild @@ -26,3 +26,24 @@ if [[ ${PV} == *9999 ]]; then ~dev-python/snakeoil-9999[${PYTHON_USEDEP}] ~sys-apps/pkgcore-9999[${PYTHON_USEDEP}]" fi + +distutils_enable_sphinx doc + +python_install_all() { + # We'll generate man pages ourselves + # Reevisit when a release is made + # so we can pregenerate some, making USE=doc + # for generating the real HTML docs only. + if use doc ; then + cd doc || die + emake man + doman _build/man/* + fi + + cd .. || die + + # HTML pages only + sphinx_compile_all + + distutils-r1_python_install_all +} |