1 |
commit: 133577996521d0dc652cd0fa41a642c085336a3f |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 8 19:16:06 2019 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 8 19:16:06 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13357799 |
7 |
|
8 |
dev-python/tracing: [QA] Call distutils-r1_python_install_all |
9 |
|
10 |
Closes: https://bugs.gentoo.org/682166 |
11 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
dev-python/tracing/tracing-0.10.ebuild | 20 +++++++++++++------- |
15 |
1 file changed, 13 insertions(+), 7 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/tracing/tracing-0.10.ebuild b/dev-python/tracing/tracing-0.10.ebuild |
18 |
index c09ce44ba55..d6f70ff1f19 100644 |
19 |
--- a/dev-python/tracing/tracing-0.10.ebuild |
20 |
+++ b/dev-python/tracing/tracing-0.10.ebuild |
21 |
@@ -1,7 +1,7 @@ |
22 |
# Copyright 1999-2019 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
-EAPI=5 |
26 |
+EAPI=7 |
27 |
|
28 |
PYTHON_COMPAT=( python2_7 ) |
29 |
|
30 |
@@ -16,16 +16,22 @@ SLOT="0" |
31 |
KEYWORDS="amd64 x86" |
32 |
IUSE="doc examples" |
33 |
|
34 |
+DEPEND="doc? ( dev-python/sphinx )" |
35 |
+ |
36 |
python_compile_all() { |
37 |
- use doc && emake -C doc html |
38 |
+ if use doc; then |
39 |
+ emake -C doc html |
40 |
+ HTML_DOCS=( doc/_build/html/. ) |
41 |
+ rm -rf doc/_build/html/{objects.inv,_sources} || die |
42 |
+ fi |
43 |
} |
44 |
|
45 |
python_install_all() { |
46 |
- dodoc README |
47 |
- use doc && dohtml -r doc/_build/html/ |
48 |
+ distutils-r1_python_install_all |
49 |
+ |
50 |
if use examples; then |
51 |
- docompress -x usr/share/doc/${PF}/examples/ |
52 |
- insinto usr/share/doc/${PF}/examples/ |
53 |
- doins example.py |
54 |
+ docinto examples |
55 |
+ dodoc example.py |
56 |
+ docompress -x /usr/share/doc/${PF}/examples/ |
57 |
fi |
58 |
} |