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