1 |
commit: 906a05471224deda1e50c7e60caa3b5d632650df |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 22 01:59:52 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 22 02:00:02 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=906a0547 |
7 |
|
8 |
app-text/recode: call python-any-r1_pkg_setup conditionally |
9 |
|
10 |
For example, in the middle of Python target migrations, |
11 |
we may not have a working "Python" for the purposes of the eclass. |
12 |
|
13 |
It's only in BDEPEND="test? ( ... )" so we shouldn't be checking for it, |
14 |
as the dep isn't enforcing it unconditionally. |
15 |
|
16 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
17 |
|
18 |
app-text/recode/recode-3.7.12.ebuild | 8 +++++--- |
19 |
1 file changed, 5 insertions(+), 3 deletions(-) |
20 |
|
21 |
diff --git a/app-text/recode/recode-3.7.12.ebuild b/app-text/recode/recode-3.7.12.ebuild |
22 |
index 7f4e75b9cc71..260cc59d1dbd 100644 |
23 |
--- a/app-text/recode/recode-3.7.12.ebuild |
24 |
+++ b/app-text/recode/recode-3.7.12.ebuild |
25 |
@@ -34,9 +34,11 @@ BDEPEND=" |
26 |
" |
27 |
|
28 |
python_check_deps() { |
29 |
- if use test ; then |
30 |
- has_version -b "dev-python/cython[${PYTHON_USEDEP}]" || return 1 |
31 |
- fi |
32 |
+ has_version -b "dev-python/cython[${PYTHON_USEDEP}]" || return 1 |
33 |
+} |
34 |
+ |
35 |
+pkg_setup() { |
36 |
+ use test && python-any-r1_pkg_setup |
37 |
} |
38 |
|
39 |
src_configure() { |