commit:     2a6a058a77d24a7620608bfc37522991349b6aaa
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Nov  3 12:22:26 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Nov  3 12:22:26 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a6a058a

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

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sci-libs/flexiblas/flexiblas-3.5.0.ebuild | 7 ++++---
 sci-libs/flexiblas/flexiblas-9999.ebuild  | 7 ++++---
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/sci-libs/flexiblas/flexiblas-3.5.0.ebuild 
b/sci-libs/flexiblas/flexiblas-3.5.0.ebuild
index 30c6c6bda467..48e93291b817 100644
--- a/sci-libs/flexiblas/flexiblas-3.5.0.ebuild
+++ b/sci-libs/flexiblas/flexiblas-3.5.0.ebuild
@@ -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
 }
 

diff --git a/sci-libs/flexiblas/flexiblas-9999.ebuild 
b/sci-libs/flexiblas/flexiblas-9999.ebuild
index 0ac6f842b5de..9460f82ba456 100644
--- a/sci-libs/flexiblas/flexiblas-9999.ebuild
+++ b/sci-libs/flexiblas/flexiblas-9999.ebuild
@@ -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
 }
 

Reply via email to