commit:     1d580741c3160cc476b7ff599eaff4741f8ff47c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  5 08:18:47 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Oct  5 08:28:25 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d580741

dev-lang/python: Wrap all of pkg_setup into MERGE_TYPE check

Put all of pkg_setup calls into the MERGE_TYPE check.  This does not
really change anything, as both invoked functions do MERGE_TYPE checks
of their own, but it streamlines and optimizes the ebuild a bit.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-lang/python/python-3.13.0_rc3.ebuild | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/dev-lang/python/python-3.13.0_rc3.ebuild 
b/dev-lang/python/python-3.13.0_rc3.ebuild
index 6bc1b294d0ed..c97f9faaa41a 100644
--- a/dev-lang/python/python-3.13.0_rc3.ebuild
+++ b/dev-lang/python/python-3.13.0_rc3.ebuild
@@ -132,15 +132,16 @@ pkg_pretend() {
 }
 
 pkg_setup() {
-       use jit && llvm-r1_pkg_setup
-       use test && check-reqs_pkg_setup
-       if [[ "${MERGE_TYPE}" != binary ]] && { use test || use pgo; }
-       then
-               local CONFIG_CHECK
-               for f in "${!PYTHON_KERNEL_CHECKS[@]}"; do
-                       CONFIG_CHECK+="~${f} "
-               done
-               linux-info_pkg_setup
+       if [[ ${MERGE_TYPE} != binary ]]; then
+               use jit && llvm-r1_pkg_setup
+               use test && check-reqs_pkg_setup
+               if use test || use pgo; then
+                       local CONFIG_CHECK
+                       for f in "${!PYTHON_KERNEL_CHECKS[@]}"; do
+                               CONFIG_CHECK+="~${f} "
+                       done
+                       linux-info_pkg_setup
+               fi
        fi
 }
 

Reply via email to