From 1d580741c3160cc476b7ff599eaff4741f8ff47c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 5 Oct 2024 10:18:47 +0200 Subject: dev-lang/python: Wrap all of pkg_setup into MERGE_TYPE check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- dev-lang/python/python-3.13.0_rc3.ebuild | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'dev-lang/python/python-3.13.0_rc3.ebuild') 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 } -- cgit v1.2.3