diff options
author | 2022-10-07 21:15:04 -0400 | |
---|---|---|
committer | 2022-10-07 22:05:12 -0400 | |
commit | 99594b75e43dcb09056c07ffb3bd4270a916913d (patch) | |
tree | 42291ea053d39f7183ad3524b4d5e4e2c2e8e595 /sci-mathematics/gmp-ecm/gmp-ecm-7.0.5-r1.ebuild | |
parent | dev-libs/libtracefs: add 1.5.0 (diff) | |
download | gentoo-99594b75e43dcb09056c07ffb3bd4270a916913d.tar.gz gentoo-99594b75e43dcb09056c07ffb3bd4270a916913d.tar.bz2 gentoo-99594b75e43dcb09056c07ffb3bd4270a916913d.zip |
sci-mathematics/gmp-ecm: new revision to drop USE=cuda support.
Our CUDA support doesn't work at the moment, and neither François nor I
have access to the hardware. To avoid annoying users, we disable it
until someone who has the hardware can tell us how to fix it.
And while I'm deleting things... we say goodbye to static-libs, too.
They aren't generally useful to end users.
Closes: https://bugs.gentoo.org/873289
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'sci-mathematics/gmp-ecm/gmp-ecm-7.0.5-r1.ebuild')
-rw-r--r-- | sci-mathematics/gmp-ecm/gmp-ecm-7.0.5-r1.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/sci-mathematics/gmp-ecm/gmp-ecm-7.0.5-r1.ebuild b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.5-r1.ebuild new file mode 100644 index 000000000000..8470285a6df1 --- /dev/null +++ b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.5-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +MY_PN="ecm" +MY_P="${MY_PN}-${PV}" +DESCRIPTION="Elliptic Curve Method for Integer Factorization" +HOMEPAGE="https://gitlab.inria.fr/zimmerma/ecm" +SRC_URI="https://gitlab.inria.fr/zimmerma/ecm/uploads/89f6f0d65d3e980cef33dc922004e4b2/${MY_P}.tar.gz" + +LICENSE="GPL-3 LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~ppc-macos ~x64-macos" +IUSE="+custom-tune openmp cpu_flags_x86_sse2" + +DEPEND="dev-libs/gmp:=" +RDEPEND="${DEPEND}" + +# xsltproc is used to produce the manppage in combination with the +# appropriate stylesheet +BDEPEND="dev-libs/libxslt + app-text/docbook-xsl-stylesheets" + +S="${WORKDIR}/${MY_P}" + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_compile() { + default + if use custom-tune; then + # One "emake" was needed to build the library. Now we can find + # the best set of parameters, and then run "emake" one more time + # to rebuild the library with the custom parameters. See the + # project's README or INSTALL-ecm. The build targets don't depend + # on ecm-params.h, so we need to "make clean" to force a rebuild. + emake ecm-params && emake clean && emake + fi +} + +src_configure() { + econf \ + --enable-shared \ + $(use_enable openmp) \ + $(use_enable cpu_flags_x86_sse2 sse2) \ + $(use_enable custom-tune asm-redc) +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +} |