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

sci-mathematics/gmp-ecm: [QA] use tc-check-openmp correctly

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

 sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r4.ebuild | 9 +++++++--
 sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild    | 6 +++++-
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r4.ebuild 
b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r4.ebuild
index 2a77bd33a96a..404d71631f44 100644
--- a/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r4.ebuild
+++ b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r4.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit autotools flag-o-matic toolchain-funcs
+inherit autotools toolchain-funcs
 
 MY_PN="ecm"
 MY_P="${MY_PN}-${PV}"
@@ -27,7 +27,11 @@ PATCHES=(
 S="${WORKDIR}/${MY_P}"
 
 pkg_pretend() {
-       use openmp && tc-check-openmp
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
 }
 
 src_prepare(){
@@ -64,6 +68,7 @@ src_compile() {
                emake ecm-params && emake clean && emake
        fi
 }
+
 src_configure() {
        econf \
                --enable-shared \

diff --git a/sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild 
b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild
index bf4ba87d79a1..42feb39cf26a 100644
--- a/sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild
+++ b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild
@@ -30,7 +30,11 @@ BDEPEND="dev-libs/libxslt
 S="${WORKDIR}/${MY_P}"
 
 pkg_pretend() {
-       use openmp && tc-check-openmp
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
 }
 
 src_compile() {

Reply via email to