dev-python/tracing: [QA] Call distutils-r1_python_install_all
authorDavid Seifert <soap@gentoo.org>
Mon, 8 Apr 2019 19:16:06 +0000 (21:16 +0200)
committerDavid Seifert <soap@gentoo.org>
Mon, 8 Apr 2019 19:16:06 +0000 (21:16 +0200)
Closes: https://bugs.gentoo.org/682166
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: David Seifert <soap@gentoo.org>
dev-python/tracing/tracing-0.10.ebuild

index c09ce44ba558b4b5cb80d4074450546e698b3046..d6f70ff1f1993681d4a112973cf1accd22ef1c81 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
 PYTHON_COMPAT=( python2_7 )
 
@@ -16,16 +16,22 @@ SLOT="0"
 KEYWORDS="amd64 x86"
 IUSE="doc examples"
 
+DEPEND="doc? ( dev-python/sphinx )"
+
 python_compile_all() {
-       use doc && emake -C doc html
+       if use doc; then
+               emake -C doc html
+               HTML_DOCS=( doc/_build/html/. )
+               rm -rf doc/_build/html/{objects.inv,_sources} || die
+       fi
 }
 
 python_install_all() {
-       dodoc README
-       use doc && dohtml -r doc/_build/html/
+       distutils-r1_python_install_all
+
        if use examples; then
-               docompress -x usr/share/doc/${PF}/examples/
-               insinto usr/share/doc/${PF}/examples/
-               doins example.py
+               docinto examples
+               dodoc example.py
+               docompress -x /usr/share/doc/${PF}/examples/
        fi
 }