dev-python/treq: fix doc generation

Signed-off-by: Arthur Zamarin <arthurzam@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/21924
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Arthur Zamarin
2021-08-09 11:57:53 +03:00
committed by Michał Górny
parent 80a91d5e06
commit fef1e07a84

View File

@@ -25,20 +25,16 @@ RDEPEND="
>=dev-python/twisted-18.7.0[crypt,${PYTHON_USEDEP}]
"
BDEPEND="
doc? ( dev-python/sphinx
${RDEPEND} )
test? (
dev-python/httpbin[${PYTHON_USEDEP}]
)"
python_compile_all() {
use doc && emake -C "${S}/docs" html
}
distutils_enable_sphinx docs
python_install_all() {
use doc && HTML_DOCS=( docs/_build/html/ )
distutils-r1_python_install_all
src_prepare() {
# fix relative path for docs generation
sed -e "s@('..')@('../src')@" -i docs/conf.py || die
distutils-r1_src_prepare
}
python_test() {