1 |
commit: 576be17782f939f8cd11231ddea29235dd299d5e |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Tue Nov 26 21:51:09 2019 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 26 21:51:09 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=576be177 |
7 |
|
8 |
dev-python/pylibmc-1.6.1: Fix USE=doc with mismatching python impls |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-2.3.79, Repoman-2.3.18 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
dev-python/pylibmc/pylibmc-1.6.1.ebuild | 15 +++++++++++---- |
15 |
1 file changed, 11 insertions(+), 4 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/pylibmc/pylibmc-1.6.1.ebuild b/dev-python/pylibmc/pylibmc-1.6.1.ebuild |
18 |
index 11264e7c131..a52234269c7 100644 |
19 |
--- a/dev-python/pylibmc/pylibmc-1.6.1.ebuild |
20 |
+++ b/dev-python/pylibmc/pylibmc-1.6.1.ebuild |
21 |
@@ -17,11 +17,17 @@ SLOT="0" |
22 |
KEYWORDS="~amd64 ~x86" |
23 |
IUSE="doc test" |
24 |
|
25 |
+# implementations to use for building docs, separate from PYTHON_COMPAT since |
26 |
+# dev-python/sphinx might not be available everywhere |
27 |
+DOCS_PYTHON_COMPAT=( python{2_7,3_{5,6,7}} ) |
28 |
+ |
29 |
RDEPEND=">=dev-libs/libmemcached-0.32" |
30 |
# Older sphinx versions fail to compile the doc |
31 |
# https://github.com/sphinx-doc/sphinx/issues/3266 |
32 |
BDEPEND="${RDEPEND} |
33 |
- doc? ( $(python_gen_any_dep '>=dev-python/sphinx-1.5.1-r1[${PYTHON_USEDEP}]') ) |
34 |
+ doc? ( $(python_gen_cond_dep ' |
35 |
+ >=dev-python/sphinx-1.5.1-r1[${PYTHON_USEDEP}]' "${DOCS_PYTHON_COMPAT[@]}") |
36 |
+ ) |
37 |
test? ( |
38 |
net-misc/memcached |
39 |
dev-python/nose[${PYTHON_USEDEP}] |
40 |
@@ -29,13 +35,14 @@ BDEPEND="${RDEPEND} |
41 |
|
42 |
RESTRICT="!test? ( test )" |
43 |
|
44 |
+REQUIRED_USE="doc? ( || ( $(python_gen_useflags "${DOCS_PYTHON_COMPAT[@]}") ) )" |
45 |
+ |
46 |
PATCHES=( |
47 |
"${FILESDIR}/pylibmc-1.6.1-fix-test-failures.patch" |
48 |
) |
49 |
|
50 |
-python_check_deps() { |
51 |
- use doc || return 0 |
52 |
- has_version ">=dev-python/sphinx-1.5.1-r1[${PYTHON_USEDEP}]" |
53 |
+pkg_setup() { |
54 |
+ use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( "${DOCS_PYTHON_COMPAT[@]}" ) |
55 |
} |
56 |
|
57 |
python_prepare_all() { |