summaryrefslogtreecommitdiff
path: root/sci-mathematics/gmp-ecm
diff options
context:
space:
mode:
Diffstat (limited to 'sci-mathematics/gmp-ecm')
-rw-r--r--sci-mathematics/gmp-ecm/Manifest1
-rw-r--r--sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r2.ebuild36
2 files changed, 37 insertions, 0 deletions
diff --git a/sci-mathematics/gmp-ecm/Manifest b/sci-mathematics/gmp-ecm/Manifest
index cdb75cb276bf..74716a31145f 100644
--- a/sci-mathematics/gmp-ecm/Manifest
+++ b/sci-mathematics/gmp-ecm/Manifest
@@ -2,5 +2,6 @@ DIST gmp-ecm-6.4.4.tar.gz 941058 BLAKE2B e83f02592a8bb86285f258fefc3e302cc516888
DIST gmp-ecm-7.0.4.tar.gz 1101899 BLAKE2B 6d52364d9c752aee66510a7f6b273559bf1b7de0032fbbeff74e229ed68fd0cd1c236b480f8fc25bcad6435740e3e22b3099c8f018912918ab8f4b33dc7b8b3c SHA512 b863b9bfd26df26c3c4243686036a69110e69ca3eec5b31d4550fe713e2fac4ce70cd1d80f0614899793aa44710531aa4a21abc0fa1b99eb17f62bd92b971350
EBUILD gmp-ecm-6.4.4-r1.ebuild 1501 BLAKE2B 48aa2b0e116f151507bfebc43ca33b413c29d5eb89364e608556b611302094dc8c0db497350c8001f4164822b89fedc1aa571dd3332c5182dc600f6cc2af5566 SHA512 131cef9c49bfdea884516a56b0b1ddf42602886555554c4eab112f17417f2b9838a3fc70ba7171f9eb9c882971bbc73bda1619b8f2a31986a08d2380c8abe4a3
EBUILD gmp-ecm-7.0.4-r1.ebuild 1230 BLAKE2B 43eafb8be5dce1211467d2cb40ae5f0aa68306876a891a3160903eb71f1922c38091320d5f9f9bb66b8ac444eb48d9121b8743d13ee31b0ffb5825598e862f4f SHA512 3eb32837e3b7311fc9dda8592c9934da55191ee5b294de9d2d0540f20f6665f64234995f7e243ae4b39d63baba5787d5ca9724b51ea6e840090ca0b239ed50d5
+EBUILD gmp-ecm-7.0.4-r2.ebuild 854 BLAKE2B a87be49f51af233f60c6e0e3e8c90b95d90c1bbca35308c57e7f0c472d6c15eb5e4d4e41d2157e546373bf3ef73feab57dc431b5c7ccdcdd09b666cc603556e2 SHA512 b4af870ddacc1cc748c32459af13fdf373a794df59ab23c05cc7d01973dc5cc750fa169ce5765bf246019da13b01e7cc211ad0c704693ed83ef6e92180e06284
EBUILD gmp-ecm-9999.ebuild 1053 BLAKE2B eab97fcb27a1ac30898000ea06ba6d8e5279e979b2b85141ce86494fabf3fb6066c8449292620816ee17822b12564c248705bbbe6ecb4f64a622d8c84b25c4a5 SHA512 2d5f6ebbb57d8cf98e479021d9b345ca00d41dbffef357d0ddfdc40ef6c9f4bf159527ad0b1a37e18deb33051796408456f72ebb2b0bc3c47651a6a374f4ebe4
MISC metadata.xml 384 BLAKE2B 168807abd87bddc88522015f01126d5ec0bde8716aa38b6e619054d39e9bb12a6ffdaa3082328ecb56c0398b498c964c8e28c818d3887919fbe3065a28673f2a SHA512 a8a7aa64869c88ac293347281a80158cbd3cc84fc9f5ca56531d3d53b33601f9baa5c4f66c93508d6763dc54779a563faa09c4a473c670a9b217610efecca25c
diff --git a/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r2.ebuild b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r2.ebuild
new file mode 100644
index 000000000000..62d2aabe95ee
--- /dev/null
+++ b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Elliptic Curve Method for Integer Factorization"
+HOMEPAGE="http://ecm.gforge.inria.fr/"
+SRC_URI="https://gforge.inria.fr/frs/download.php/file/36224/${P}.tar.gz"
+
+LICENSE="GPL-3 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="+custom-tune openmp static-libs cpu_flags_x86_sse2"
+
+DEPEND="dev-libs/gmp:="
+RDEPEND="${DEPEND}"
+
+# Can't both be enabled.
+REQUIRED_USE="x86-macos? ( !custom-tune )"
+
+S="${WORKDIR}/ecm-${PV}"
+
+pkg_pretend() {
+ use openmp && tc-check-openmp
+}
+
+src_configure() {
+ econf \
+ --enable-shared \
+ $(use_enable static-libs static) \
+ $(use_enable openmp) \
+ $(use_enable cpu_flags_x86_sse2 sse2) \
+ $(use_enable custom-tune asm-redc)
+}