commit: 126c167079825a372137ea9036dcefb85eb94ea3
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat May 24 14:01:37 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat May 24 14:02:28 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=126c1670
llvm-runtimes/flang-rt: Use python-any-r1 for lit
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
llvm-runtimes/flang-rt/flang-rt-21.0.0.9999.ebuild | 13 +++++++++++--
llvm-runtimes/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 3c37c3f96815..d038ee99a947 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 3c37c3f96815..d038ee99a947 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