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: Sun, 01 Mar 2020 13:59:56
Message-Id: 1583071114.01fa816214124421eb411b4fe0136af92cdc314a.mjo@gentoo
1 commit: 01fa816214124421eb411b4fe0136af92cdc314a
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 1 13:28:15 2020 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 1 13:58:34 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01fa8162
7
8 sci-mathematics/gmp-ecm: fix USE=custom-tune.
9
10 I overzealously removed the series of steps needed to build gmp-ecm
11 with custom parameters in the -r2. We need to build, find the custom
12 parameters, and then build again to reap the benefits. I left a
13 comment in the ebuild to explain that to other, future mes.
14
15 Bug: https://bugs.gentoo.org/711078
16 Package-Manager: Portage-2.3.84, Repoman-2.3.20
17 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
18
19 sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r2.ebuild | 10 ++++++++++
20 1 file changed, 10 insertions(+)
21
22 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
23 index 62d2aabe95e..fa9bae77856 100644
24 --- a/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r2.ebuild
25 +++ b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r2.ebuild
26 @@ -26,6 +26,16 @@ pkg_pretend() {
27 use openmp && tc-check-openmp
28 }
29
30 +src_compile() {
31 + default
32 + if use custom-tune; then
33 + # One "emake" was needed to build the library. Now we can find
34 + # the best set of parameters, and then run "emake" one more time
35 + # to rebuild the library with the custom parameters. See the
36 + # project's README or INSTALL-ecm
37 + emake ecm-params && emake
38 + fi
39 +}
40 src_configure() {
41 econf \
42 --enable-shared \