From 126c167079825a372137ea9036dcefb85eb94ea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 24 May 2025 16:01:37 +0200 Subject: [PATCH] llvm-runtimes/flang-rt: Use python-any-r1 for lit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- llvm-runtimes/flang-rt/flang-rt-21.0.0.9999.ebuild | 13 +++++++++++-- .../flang-rt/flang-rt-21.0.0_pre20250523.ebuild | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/llvm-runtimes/flang-rt/flang-rt-21.0.0.9999.ebuild b/llvm-runtimes/flang-rt/flang-rt-21.0.0.9999.ebuild index 3c37c3f96815a..d038ee99a947c 100644 --- a/llvm-runtimes/flang-rt/flang-rt-21.0.0.9999.ebuild +++ b/llvm-runtimes/flang-rt/flang-rt-21.0.0.9999.ebuild @@ -3,7 +3,8 @@ EAPI=8 -inherit cmake flag-o-matic llvm.org +PYTHON_COMPAT=( python3_{11..13} ) +inherit cmake flag-o-matic llvm.org python-any-r1 DESCRIPTION="LLVM's Fortran runtime" HOMEPAGE="https://flang.llvm.org/" @@ -20,7 +21,7 @@ BDEPEND=" llvm-core/llvm:${LLVM_MAJOR} llvm-core/flang test? ( - dev-python/lit + $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') ) " @@ -29,6 +30,14 @@ LLVM_COMPONENTS=( ) llvm.org_set_globals +python_check_deps() { + python_has_version "dev-python/lit[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + src_configure() { # the code is not portable local -x FC=flang F77=flang diff --git a/llvm-runtimes/flang-rt/flang-rt-21.0.0_pre20250523.ebuild b/llvm-runtimes/flang-rt/flang-rt-21.0.0_pre20250523.ebuild index 3c37c3f96815a..d038ee99a947c 100644 --- a/llvm-runtimes/flang-rt/flang-rt-21.0.0_pre20250523.ebuild +++ b/llvm-runtimes/flang-rt/flang-rt-21.0.0_pre20250523.ebuild @@ -3,7 +3,8 @@ EAPI=8 -inherit cmake flag-o-matic llvm.org +PYTHON_COMPAT=( python3_{11..13} ) +inherit cmake flag-o-matic llvm.org python-any-r1 DESCRIPTION="LLVM's Fortran runtime" HOMEPAGE="https://flang.llvm.org/" @@ -20,7 +21,7 @@ BDEPEND=" llvm-core/llvm:${LLVM_MAJOR} llvm-core/flang test? ( - dev-python/lit + $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') ) " @@ -29,6 +30,14 @@ LLVM_COMPONENTS=( ) llvm.org_set_globals +python_check_deps() { + python_has_version "dev-python/lit[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + src_configure() { # the code is not portable local -x FC=flang F77=flang