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, 06 May 2022 11:44:45
Message-Id: 1651837354.99942c6ca1519833a3557de313fff0056788f71f.mjo@gentoo
1 commit: 99942c6ca1519833a3557de313fff0056788f71f
2 Author: François Bissey <frp.bissey <AT> gmail <DOT> com>
3 AuthorDate: Thu May 5 23:31:46 2022 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Fri May 6 11:42:34 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99942c6c
7
8 sci-mathematics/gmp-ecm: upstream bump
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Closes: https://bugs.gentoo.org/842843
12 Closes: https://github.com/gentoo/gentoo/pull/25341
13 Signed-off-by: François René Pierre Bissey <frp.bissey <AT> gmail.com>
14 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
15
16 sci-mathematics/gmp-ecm/Manifest | 1 +
17 sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild | 63 ++++++++++++++++++++++++++++
18 sci-mathematics/gmp-ecm/metadata.xml | 3 ++
19 3 files changed, 67 insertions(+)
20
21 diff --git a/sci-mathematics/gmp-ecm/Manifest b/sci-mathematics/gmp-ecm/Manifest
22 index fce77a75e928..0b39c18a6861 100644
23 --- a/sci-mathematics/gmp-ecm/Manifest
24 +++ b/sci-mathematics/gmp-ecm/Manifest
25 @@ -1 +1,2 @@
26 DIST ecm-7.0.4.tar.gz 1101899 BLAKE2B 6d52364d9c752aee66510a7f6b273559bf1b7de0032fbbeff74e229ed68fd0cd1c236b480f8fc25bcad6435740e3e22b3099c8f018912918ab8f4b33dc7b8b3c SHA512 b863b9bfd26df26c3c4243686036a69110e69ca3eec5b31d4550fe713e2fac4ce70cd1d80f0614899793aa44710531aa4a21abc0fa1b99eb17f62bd92b971350
27 +DIST ecm-7.0.5.tar.gz 1159568 BLAKE2B 7fb8d78a6bc8423c9890b9d6e334f8c4317b68cde7d712c5306775c6f07eacb3cbbbd11d651bbbdd687a87692f4920170557b51f9498881a6c5018a2ce0b1b7f SHA512 f5a482a231339304683adc3334c9b86f21a0d9b42ea871418d4c01005057d560cd418eddfcc1c7be7f8c249960b2ee612a1454ccc5d8e41319b06c6f42e6662e
28
29 diff --git a/sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild
30 new file mode 100644
31 index 000000000000..bf4ba87d79a1
32 --- /dev/null
33 +++ b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild
34 @@ -0,0 +1,63 @@
35 +# Copyright 1999-2022 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=8
39 +
40 +inherit toolchain-funcs
41 +
42 +MY_PN="ecm"
43 +MY_P="${MY_PN}-${PV}"
44 +DESCRIPTION="Elliptic Curve Method for Integer Factorization"
45 +HOMEPAGE="https://gitlab.inria.fr/zimmerma/ecm"
46 +SRC_URI="https://gitlab.inria.fr/zimmerma/ecm/uploads/89f6f0d65d3e980cef33dc922004e4b2/${MY_P}.tar.gz"
47 +
48 +LICENSE="GPL-3 LGPL-3"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~ppc-macos ~x64-macos"
51 +IUSE="cuda +custom-tune openmp static-libs cpu_flags_x86_sse2"
52 +
53 +DEPEND="dev-libs/gmp:=
54 + cuda? (
55 + dev-util/nvidia-cuda-toolkit
56 + x11-drivers/nvidia-drivers
57 + )
58 +"
59 +RDEPEND="${DEPEND}"
60 +# xsltproc is used to produce the manppage in combination with the appropriate stylesheet
61 +BDEPEND="dev-libs/libxslt
62 + app-text/docbook-xsl-stylesheets"
63 +
64 +S="${WORKDIR}/${MY_P}"
65 +
66 +pkg_pretend() {
67 + use openmp && tc-check-openmp
68 +}
69 +
70 +src_compile() {
71 + default
72 + if use custom-tune; then
73 + # One "emake" was needed to build the library. Now we can find
74 + # the best set of parameters, and then run "emake" one more time
75 + # to rebuild the library with the custom parameters. See the
76 + # project's README or INSTALL-ecm. The build targets don't depend
77 + # on ecm-params.h, so we need to "make clean" to force a rebuild.
78 + emake ecm-params && emake clean && emake
79 + fi
80 +}
81 +
82 +src_configure() {
83 + econf \
84 + --enable-shared \
85 + $(use_enable static-libs static) \
86 + $(use_enable openmp) \
87 + $(use_enable cuda gpu) \
88 + $(use_enable cpu_flags_x86_sse2 sse2) \
89 + $(use_enable custom-tune asm-redc)
90 +}
91 +
92 +src_install() {
93 + default
94 +
95 + # remove .la file
96 + find "${ED}" -name '*.la' -delete || die
97 +}
98
99 diff --git a/sci-mathematics/gmp-ecm/metadata.xml b/sci-mathematics/gmp-ecm/metadata.xml
100 index e89f3c570a87..3723f0d56e48 100644
101 --- a/sci-mathematics/gmp-ecm/metadata.xml
102 +++ b/sci-mathematics/gmp-ecm/metadata.xml
103 @@ -16,6 +16,9 @@
104 </maintainer>
105
106 <use>
107 + <flag name="cuda">
108 + Use NVidia's cuda toolkit for computations
109 + </flag>
110 <flag name="custom-tune">
111 Improve performance of some operations by selecting
112 machine-specific defaults