summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-05-16 10:12:25 +0200
committerDavid Seifert <soap@gentoo.org>2022-05-16 10:12:25 +0200
commit469d4113139fc891ac59df4a45542acba438e04a (patch)
tree71e1ee6bd0c4561e4ebffa949aaf867652bec840 /sci-mathematics/gmp-ecm
parentsci-libs/symengine: [QA] use tc-check-openmp correctly (diff)
downloadgentoo-469d4113139fc891ac59df4a45542acba438e04a.tar.gz
gentoo-469d4113139fc891ac59df4a45542acba438e04a.tar.bz2
gentoo-469d4113139fc891ac59df4a45542acba438e04a.zip
sci-mathematics/gmp-ecm: [QA] use tc-check-openmp correctly
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sci-mathematics/gmp-ecm')
-rw-r--r--sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r4.ebuild9
-rw-r--r--sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild6
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() {