llvm-runtimes/flang-rt: Use python-any-r1 for lit

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-05-24 16:01:37 +02:00
parent 5bc4eb8db3
commit 126c167079
2 changed files with 22 additions and 4 deletions

View File

@@ -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

View File

@@ -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