Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/gmp-ecm/
Date: Fri, 28 Feb 2020 13:38:22
Message-Id: 1582897007.4bbb8b0f1cb8b3c8a42775c5077e610ad7f4f558.mjo@gentoo
1 commit: 4bbb8b0f1cb8b3c8a42775c5077e610ad7f4f558
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 28 13:34:04 2020 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 28 13:36:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bbb8b0f
7
8 sci-mathematics/gmp-ecm: new EAPI=7 revision.
9
10 The dependencies and build system of gmp-ecm have been improved over
11 the years, and much of the cruft in the ebuild could simply be
12 deleted. This commit adds an -r2, based on François Bissey's ebuild in
13 the sage-on-gentoo overlay, to modernize things. I've manually verified
14 the diff for sanity, and the test suite passes for me on amd64.
15
16 Closes: https://bugs.gentoo.org/466498
17 Package-Manager: Portage-2.3.84, Repoman-2.3.20
18 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
19
20 sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r2.ebuild | 36 +++++++++++++++++++++++++
21 1 file changed, 36 insertions(+)
22
23 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
24 new file mode 100644
25 index 00000000000..98a97183de0
26 --- /dev/null
27 +++ b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r2.ebuild
28 @@ -0,0 +1,36 @@
29 +# Copyright 1999-2020 Gentoo Authors
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI=7
33 +
34 +inherit flag-o-matic toolchain-funcs
35 +
36 +DESCRIPTION="Elliptic Curve Method for Integer Factorization"
37 +HOMEPAGE="http://ecm.gforge.inria.fr/"
38 +SRC_URI="https://gforge.inria.fr/frs/download.php/file/36224/${P}.tar.gz"
39 +
40 +LICENSE="GPL-3 LGPL-3"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~x86 ~ppc-macos ~x64-macos ~x86-macos"
43 +IUSE="+custom-tune -openmp static-libs cpu_flags_x86_sse2"
44 +
45 +DEPEND="dev-libs/gmp:="
46 +RDEPEND="${DEPEND}"
47 +
48 +# Can't both be enabled.
49 +REQUIRED_USE="x86-macos? ( !custom-tune )"
50 +
51 +S="${WORKDIR}/ecm-${PV}"
52 +
53 +pkg_pretend() {
54 + tc-check-openmp
55 +}
56 +
57 +src_configure() {
58 + econf \
59 + --enable-shared \
60 + $(use_enable static-libs static) \
61 + $(use_enable openmp) \
62 + $(use_enable cpu_flags_x86_sse2 sse2) \
63 + $(use_enable custom-tune asm-redc)
64 +}