1 |
commit: c0df39f605f9b776fb2ac1fe06d86a7aca4a6344 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 25 12:25:25 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 25 12:35:20 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0df39f6 |
7 |
|
8 |
dev-python/virtualenv: Use distutils_enable_sphinx |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/virtualenv/virtualenv-16.7.7.ebuild | 39 ++++---------------------- |
13 |
1 file changed, 5 insertions(+), 34 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/virtualenv/virtualenv-16.7.7.ebuild b/dev-python/virtualenv/virtualenv-16.7.7.ebuild |
16 |
index 0c593103eb9..a060296f764 100644 |
17 |
--- a/dev-python/virtualenv/virtualenv-16.7.7.ebuild |
18 |
+++ b/dev-python/virtualenv/virtualenv-16.7.7.ebuild |
19 |
@@ -20,15 +20,10 @@ LICENSE="MIT" |
20 |
#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
21 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
22 |
SLOT="0" |
23 |
-IUSE="doc test" |
24 |
+IUSE="test" |
25 |
+RESTRICT="!test? ( test )" |
26 |
|
27 |
BDEPEND=">=dev-python/setuptools-19.6.2[${PYTHON_USEDEP}] |
28 |
- doc? ( $(python_gen_any_dep ' |
29 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
30 |
- dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
31 |
- dev-python/towncrier[${PYTHON_USEDEP}] |
32 |
- ') |
33 |
- ) |
34 |
test? ( |
35 |
>=dev-python/pip-19.3.1-r1[${PYTHON_USEDEP}] |
36 |
dev-python/mock[${PYTHON_USEDEP}] |
37 |
@@ -43,9 +38,6 @@ BDEPEND=">=dev-python/setuptools-19.6.2[${PYTHON_USEDEP}] |
38 |
|
39 |
DOCS=( docs/index.rst docs/changes.rst ) |
40 |
|
41 |
-# uncomment if line above is removed |
42 |
-RESTRICT="!test? ( test )" |
43 |
- |
44 |
PATCHES=( |
45 |
"${FILESDIR}/virtualenv-16.7.7-tests.patch" |
46 |
|
47 |
@@ -53,30 +45,9 @@ PATCHES=( |
48 |
"${FILESDIR}/virtualenv-16.7.7-tests-internet.patch" |
49 |
) |
50 |
|
51 |
-python_check_deps() { |
52 |
- use doc || return 0 |
53 |
- |
54 |
- has_version "dev-python/sphinx[${PYTHON_USEDEP}]" && \ |
55 |
- has_version "dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]" && \ |
56 |
- has_version "dev-python/towncrier[${PYTHON_USEDEP}]" |
57 |
-} |
58 |
- |
59 |
-python_compile_all() { |
60 |
- if use doc; then |
61 |
- sed -i -e 's:^intersphinx_mapping:disabled_&:' \ |
62 |
- docs/conf.py || die |
63 |
- |
64 |
- sphinx-build -b html -d docs/_build/doctrees docs \ |
65 |
- docs/_build/html || die |
66 |
- |
67 |
- HTML_DOCS+=( "docs/_build/html/." ) |
68 |
- fi |
69 |
-} |
70 |
- |
71 |
-python_install_all() { |
72 |
- use doc && local HTML_DOCS=( docs/_build/html/. ) |
73 |
- distutils-r1_python_install_all |
74 |
-} |
75 |
+distutils_enable_sphinx docs \ |
76 |
+ dev-python/sphinx_rtd_theme \ |
77 |
+ dev-python/towncrier |
78 |
|
79 |
python_test() { |
80 |
cp "${S}"/LICENSE.txt "${BUILD_DIR}"/lib || \ |