diff --git a/sci-libs/flexiblas/flexiblas-3.5.0.ebuild b/sci-libs/flexiblas/flexiblas-3.5.0.ebuild index 30c6c6bda467a..48e93291b8178 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 0ac6f842b5de9..9460f82ba4566 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 }