sci-libs/flexiblas: Use fortran-2.eclass

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-11-03 13:22:26 +01:00
parent 149533f63c
commit 2a6a058a77
2 changed files with 8 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
EAPI=8
inherit cmake multilib toolchain-funcs
inherit cmake fortran-2 multilib toolchain-funcs
MY_P=flexiblas-release-v${PV}
DESCRIPTION="A BLAS and LAPACK wrapper library with runtime exchangable backends"
@@ -57,8 +57,9 @@ pkg_pretend() {
}
pkg_setup() {
if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
tc-check-openmp
if [[ ${MERGE_TYPE} != binary ]]; then
fortran-2_pkg_setup
use openmp && tc-check-openmp
fi
}

View File

@@ -3,7 +3,7 @@
EAPI=8
inherit cmake git-r3 multilib toolchain-funcs
inherit cmake fortran-2 git-r3 multilib toolchain-funcs
DESCRIPTION="A BLAS and LAPACK wrapper library with runtime exchangable backends"
HOMEPAGE="
@@ -54,8 +54,9 @@ pkg_pretend() {
}
pkg_setup() {
if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
tc-check-openmp
if [[ ${MERGE_TYPE} != binary ]]; then
fortran-2_pkg_setup
use openmp && tc-check-openmp
fi
}