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

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

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

 sci-libs/symengine/symengine-0.6.0-r1.ebuild | 6 +++++-
 sci-libs/symengine/symengine-0.7.0-r1.ebuild | 6 +++++-
 sci-libs/symengine/symengine-0.8.1-r1.ebuild | 6 +++++-
 sci-libs/symengine/symengine-0.9.0.ebuild    | 4 ++--
 4 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/sci-libs/symengine/symengine-0.6.0-r1.ebuild 
b/sci-libs/symengine/symengine-0.6.0-r1.ebuild
index 1454ac3431a0..1abca70085d2 100644
--- a/sci-libs/symengine/symengine-0.6.0-r1.ebuild
+++ b/sci-libs/symengine/symengine-0.6.0-r1.ebuild
@@ -31,7 +31,11 @@ DEPEND="${RDEPEND}
 "
 
 pkg_pretend() {
-       use openmp && [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
 }
 
 src_prepare() {

diff --git a/sci-libs/symengine/symengine-0.7.0-r1.ebuild 
b/sci-libs/symengine/symengine-0.7.0-r1.ebuild
index 8b1becc43784..1ffb62e2d6eb 100644
--- a/sci-libs/symengine/symengine-0.7.0-r1.ebuild
+++ b/sci-libs/symengine/symengine-0.7.0-r1.ebuild
@@ -35,7 +35,11 @@ PATCHES=(
 )
 
 pkg_pretend() {
-       use openmp && [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
 }
 
 src_prepare() {

diff --git a/sci-libs/symengine/symengine-0.8.1-r1.ebuild 
b/sci-libs/symengine/symengine-0.8.1-r1.ebuild
index 68c0939697b8..c389bae57034 100644
--- a/sci-libs/symengine/symengine-0.8.1-r1.ebuild
+++ b/sci-libs/symengine/symengine-0.8.1-r1.ebuild
@@ -34,7 +34,11 @@ PATCHES=(
 )
 
 pkg_pretend() {
-       use openmp && [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
 }
 
 src_prepare() {

diff --git a/sci-libs/symengine/symengine-0.9.0.ebuild 
b/sci-libs/symengine/symengine-0.9.0.ebuild
index c4f5a9c49a23..bf374c6ddaca 100644
--- a/sci-libs/symengine/symengine-0.9.0.ebuild
+++ b/sci-libs/symengine/symengine-0.9.0.ebuild
@@ -35,11 +35,11 @@ PATCHES=(
 )
 
 pkg_pretend() {
-       use openmp && [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
 }
 
 pkg_setup() {
-       use openmp && [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
 
        use llvm && llvm_pkg_setup
 }

Reply via email to