commit:     65c9ccf3e0e396a82ef25c30d6eb5639b61e7ddf
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon May 16 08:12:22 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon May 16 08:12:22 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65c9ccf3

sci-libs/openblas: [QA] use tc-check-openmp correctly

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sci-libs/openblas/openblas-0.3.18.ebuild | 4 +++-
 sci-libs/openblas/openblas-0.3.19.ebuild | 4 +++-
 sci-libs/openblas/openblas-0.3.20.ebuild | 4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/sci-libs/openblas/openblas-0.3.18.ebuild 
b/sci-libs/openblas/openblas-0.3.18.ebuild
index 3ac219fa41cf..ec15a244d0b8 100644
--- a/sci-libs/openblas/openblas-0.3.18.ebuild
+++ b/sci-libs/openblas/openblas-0.3.18.ebuild
@@ -30,6 +30,8 @@ PATCHES=(
 )
 
 pkg_pretend() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+
        elog "This software has a massive number of options that"
        elog "are configurable and it is *impossible* for all of"
        elog "those to fit inside any manageable ebuild."
@@ -57,7 +59,7 @@ pkg_setup() {
        export HOSTCC="$(tc-getBUILD_CC)"
 
        # threading options
-       use openmp && tc-check-openmp
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
        USE_THREAD=0
        if use openmp; then
                USE_THREAD=1; USE_OPENMP=1;

diff --git a/sci-libs/openblas/openblas-0.3.19.ebuild 
b/sci-libs/openblas/openblas-0.3.19.ebuild
index 3ac219fa41cf..ec15a244d0b8 100644
--- a/sci-libs/openblas/openblas-0.3.19.ebuild
+++ b/sci-libs/openblas/openblas-0.3.19.ebuild
@@ -30,6 +30,8 @@ PATCHES=(
 )
 
 pkg_pretend() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+
        elog "This software has a massive number of options that"
        elog "are configurable and it is *impossible* for all of"
        elog "those to fit inside any manageable ebuild."
@@ -57,7 +59,7 @@ pkg_setup() {
        export HOSTCC="$(tc-getBUILD_CC)"
 
        # threading options
-       use openmp && tc-check-openmp
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
        USE_THREAD=0
        if use openmp; then
                USE_THREAD=1; USE_OPENMP=1;

diff --git a/sci-libs/openblas/openblas-0.3.20.ebuild 
b/sci-libs/openblas/openblas-0.3.20.ebuild
index 518fd79fedef..01fd54d252c4 100644
--- a/sci-libs/openblas/openblas-0.3.20.ebuild
+++ b/sci-libs/openblas/openblas-0.3.20.ebuild
@@ -32,6 +32,8 @@ PATCHES=(
 )
 
 pkg_pretend() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+
        elog "This software has a massive number of options that"
        elog "are configurable and it is *impossible* for all of"
        elog "those to fit inside any manageable ebuild."
@@ -59,7 +61,7 @@ pkg_setup() {
        export HOSTCC="$(tc-getBUILD_CC)"
 
        # threading options
-       use openmp && tc-check-openmp
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
        USE_THREAD=0
        if use openmp; then
                USE_THREAD=1; USE_OPENMP=1;

Reply via email to