1 |
commit: 0192c551ea8248981a4359dbaf8b9c5d0ce10151 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 25 12:24:48 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 25 12:35:03 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0192c551 |
7 |
|
8 |
dev-python/cython: Use distutils_enable_sphinx |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/cython/cython-0.29.14-r1.ebuild | 13 ++----------- |
13 |
1 file changed, 2 insertions(+), 11 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/cython/cython-0.29.14-r1.ebuild b/dev-python/cython/cython-0.29.14-r1.ebuild |
16 |
index 156744a5c09..55b4818f31e 100644 |
17 |
--- a/dev-python/cython/cython-0.29.14-r1.ebuild |
18 |
+++ b/dev-python/cython/cython-0.29.14-r1.ebuild |
19 |
@@ -16,7 +16,7 @@ SRC_URI="https://github.com/cython/cython/archive/${PV}.tar.gz -> ${P}.gh.tar.gz |
20 |
LICENSE="Apache-2.0" |
21 |
SLOT="0" |
22 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
23 |
-IUSE="doc emacs test" |
24 |
+IUSE="emacs test" |
25 |
RESTRICT="!test? ( test )" |
26 |
|
27 |
RDEPEND=" |
28 |
@@ -24,7 +24,6 @@ RDEPEND=" |
29 |
" |
30 |
BDEPEND="${RDEPEND} |
31 |
dev-python/setuptools[${PYTHON_USEDEP}] |
32 |
- doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') ) |
33 |
test? ( |
34 |
$(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' \ |
35 |
'python3*') |
36 |
@@ -36,12 +35,7 @@ PATCHES=( |
37 |
|
38 |
SITEFILE=50cython-gentoo.el |
39 |
|
40 |
-python_check_deps() { |
41 |
- if use doc; then |
42 |
- has_version "dev-python/sphinx[${PYTHON_USEDEP}]" || return ${?} |
43 |
- fi |
44 |
- return 0 |
45 |
-} |
46 |
+distutils_enable_sphinx docs |
47 |
|
48 |
python_compile() { |
49 |
if ! python_is_python3; then |
50 |
@@ -57,8 +51,6 @@ python_compile() { |
51 |
|
52 |
python_compile_all() { |
53 |
use emacs && elisp-compile Tools/cython-mode.el |
54 |
- |
55 |
- use doc && emake -C docs html |
56 |
} |
57 |
|
58 |
python_test() { |
59 |
@@ -71,7 +63,6 @@ python_test() { |
60 |
|
61 |
python_install_all() { |
62 |
local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt ) |
63 |
- use doc && local HTML_DOCS=( docs/build/html/. ) |
64 |
distutils-r1_python_install_all |
65 |
|
66 |
if use emacs; then |