dev-python/virtualenv-16.7.7: fix USE=doc
authorPatrick McLean <patrick.mclean@sony.com>
Sat, 23 Nov 2019 00:27:48 +0000 (16:27 -0800)
committerPatrick McLean <chutzpah@gentoo.org>
Sat, 23 Nov 2019 00:46:38 +0000 (16:46 -0800)
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
dev-python/virtualenv/virtualenv-16.7.7.ebuild

index e04ef4458d11711e42ac53c711039fed1f9edad5..cb3757140702cbe0feb0ad69cf5c243bd4e6549f 100644 (file)
@@ -62,7 +62,15 @@ python_check_deps() {
 }
 
 python_compile_all() {
-       use doc && emake -C docs html
+       if use doc; then
+               sed -i -e 's:^intersphinx_mapping:disabled_&:' \
+                       docs/conf.py || die
+
+               sphinx-build -b html -d docs/_build/doctrees docs \
+                       docs/_build/html || die
+
+               HTML_DOCS+=( "docs/_build/html/." )
+       fi
 }
 
 python_install_all() {