1 |
commit: 4ce423007b2ff323a55da040c7cb95ff9e0134d2 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 8 09:12:57 2019 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 8 09:38:19 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ce42300 |
7 |
|
8 |
sys-apps/pkgcore: update live ebuild deps |
9 |
|
10 |
And only build man pages for the live ebuild if the doc USE flags is |
11 |
enabled. |
12 |
|
13 |
Signed-off-by: Tim Harder <radhermit <AT> gentoo.org> |
14 |
|
15 |
sys-apps/pkgcore/pkgcore-9999.ebuild | 18 +++++++++--------- |
16 |
1 file changed, 9 insertions(+), 9 deletions(-) |
17 |
|
18 |
diff --git a/sys-apps/pkgcore/pkgcore-9999.ebuild b/sys-apps/pkgcore/pkgcore-9999.ebuild |
19 |
index ae58325b3b8..34a210caba4 100644 |
20 |
--- a/sys-apps/pkgcore/pkgcore-9999.ebuild |
21 |
+++ b/sys-apps/pkgcore/pkgcore-9999.ebuild |
22 |
@@ -21,25 +21,24 @@ LICENSE="|| ( BSD GPL-2 )" |
23 |
SLOT="0" |
24 |
IUSE="doc test" |
25 |
|
26 |
-if [[ ${PV} == *9999 ]] ; then |
27 |
- SPHINX="dev-python/sphinx[${PYTHON_USEDEP}]" |
28 |
-else |
29 |
- SPHINX="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" |
30 |
-fi |
31 |
+RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]" |
32 |
if [[ ${PV} == *9999 ]]; then |
33 |
RDEPEND+=" ~dev-python/snakeoil-9999[${PYTHON_USEDEP}]" |
34 |
else |
35 |
RDEPEND+=" >=dev-python/snakeoil-0.8.0[${PYTHON_USEDEP}]" |
36 |
fi |
37 |
DEPEND="${RDEPEND} |
38 |
- ${SPHINX} |
39 |
dev-python/setuptools[${PYTHON_USEDEP}] |
40 |
dev-python/pyparsing[${PYTHON_USEDEP}] |
41 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
42 |
test? ( dev-python/pytest[${PYTHON_USEDEP}] ) |
43 |
" |
44 |
|
45 |
python_compile_all() { |
46 |
- esetup.py build_man $(usex doc "build_docs" "") |
47 |
+ local esetup_args=( $(usex doc "--enable-html-docs" "") ) |
48 |
+ # only build man pages for live ebuilds if doc USE flag is enabled |
49 |
+ [[ ${PV} == *9999 ]] && esetup_args+=( $(usex doc "--enable-man-pages" "") ) |
50 |
+ esetup.py build "${esetup_args[@]}" |
51 |
} |
52 |
|
53 |
python_test() { |
54 |
@@ -47,8 +46,9 @@ python_test() { |
55 |
} |
56 |
|
57 |
python_install_all() { |
58 |
- distutils-r1_python_install install_man \ |
59 |
- $(usex doc "install_docs --path="${ED%/}"/usr/share/doc/${PF}/html" "") |
60 |
+ esetup.py install_docs \ |
61 |
+ --docdir="${ED%/}/usr/share/doc/${PF}" \ |
62 |
+ --mandir="${ED%/}/usr/share/man" |
63 |
distutils-r1_python_install_all |
64 |
} |