From 752d6256e5204b958b0ef7905675a940b5e9172f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 12 May 2022 16:42:50 +0300 Subject: gentoo resync : 12.05.2022 --- sci-mathematics/gmp-ecm/Manifest | 4 +- sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild | 63 ++++++++++++++++++++++++++++ sci-mathematics/gmp-ecm/metadata.xml | 3 ++ 3 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild (limited to 'sci-mathematics/gmp-ecm') diff --git a/sci-mathematics/gmp-ecm/Manifest b/sci-mathematics/gmp-ecm/Manifest index 8c3caa2bca15..6abce55f281d 100644 --- a/sci-mathematics/gmp-ecm/Manifest +++ b/sci-mathematics/gmp-ecm/Manifest @@ -1,5 +1,7 @@ AUX gmp-ecm-7.0.4-execstack.patch 1568 BLAKE2B ccf8b74074bf357e74bc6126c505ebc77c389c851ee0ec35743c99270b6f36fa92d26c9df4b1f1a20e125a3b6dbd53522fa441d91fc4f8427d3b6d6ab50be07a SHA512 874924dd2f81c2e85dd4cdb0d8a14d1e22a9aca0c3883a9e16f1888f61b5af9b26a8c80469b65566a4becefce6a1d37ecdbba029648b4d62dc320f9e5a776453 AUX gmp-ecm-7.0.4-openmp.patch 795 BLAKE2B 2a857cba5e0bc4e7dfe710c250bcb721dd2fd5e0c9c049987f8505d2efc758ff026b313bc92a2b18472bbebc320c8d1187c8506eaea6d2f1f6d51da284bca3ae SHA512 063d20e5a4cf088aaed31eb79c6b253ef4747d3d449c70936b4079c519480767f4f19dc259894422dc6d5783c9c360fc2c3a9fda4bb9b2a124a0e7bd90c08554 DIST ecm-7.0.4.tar.gz 1101899 BLAKE2B 6d52364d9c752aee66510a7f6b273559bf1b7de0032fbbeff74e229ed68fd0cd1c236b480f8fc25bcad6435740e3e22b3099c8f018912918ab8f4b33dc7b8b3c SHA512 b863b9bfd26df26c3c4243686036a69110e69ca3eec5b31d4550fe713e2fac4ce70cd1d80f0614899793aa44710531aa4a21abc0fa1b99eb17f62bd92b971350 +DIST ecm-7.0.5.tar.gz 1159568 BLAKE2B 7fb8d78a6bc8423c9890b9d6e334f8c4317b68cde7d712c5306775c6f07eacb3cbbbd11d651bbbdd687a87692f4920170557b51f9498881a6c5018a2ce0b1b7f SHA512 f5a482a231339304683adc3334c9b86f21a0d9b42ea871418d4c01005057d560cd418eddfcc1c7be7f8c249960b2ee612a1454ccc5d8e41319b06c6f42e6662e EBUILD gmp-ecm-7.0.4-r4.ebuild 2011 BLAKE2B 384a95201168380077786279ed6813f1b369fb81e87bb5392824b3704eddcd70789b56891d1ecc65da47bda2fc68006c4d28d7fe4844f8a75d0fb12ef8656569 SHA512 51dd9ad9e6ac27be94c1839ef4ea61f5b300d714fea9b144dec57b354f1412dc4977c83d399723493984d829fa92f4892d58f20325c470119760026de2b1acb8 -MISC metadata.xml 643 BLAKE2B 90da8b09f30dd8bd8d4df3dcc388663e52d57ea7b2974becede9ed0c592eaacb33958d202cee33988b79364e058ef84676e995b9d8467beb1f7d89ad8b177136 SHA512 e2f0d6f286440543ed15531183671b30f0044c38685e58617d004286b596ba1b898c470dc39e2ebe95db10c83be9430f1a010539ba2b0231883fe6bf4b0b97a8 +EBUILD gmp-ecm-7.0.5.ebuild 1628 BLAKE2B 3e1630ddb1589e75dc51caa0cfb4611e3f1358079cf175e289f4e647bcb84a779e68791d0ee35d28404b5a18fbc1c04cd5b7c7f78f332983c7b5fd533dc2dcf1 SHA512 6351f92edf8d40e31b4a7b099c4306236c93a4a1b81aba4fe8f642ce246fb27400c49c3261d03c823a03f18c73cf8aaa6bc0ff0b6846c4a6d9f659fd531f65a1 +MISC metadata.xml 727 BLAKE2B 9362e7772528adeb4ed10d53bb319cdd3e1a73959c8bc0d59d1ed589b9d854790acd10887cf8e09a4be009e2c2b6ce994508c9227d6e7c1d51c82b666e8db33e SHA512 6782da887f25301a029726237583a52ca3509ebbf8a0920e16ae1828723d8653108967639813cca7300bedd694469447b34b76a05e3382dc9b7cce74cf86ea83 diff --git a/sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild new file mode 100644 index 000000000000..bf4ba87d79a1 --- /dev/null +++ b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild @@ -0,0 +1,63 @@ +# 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="cuda +custom-tune openmp static-libs cpu_flags_x86_sse2" + +DEPEND="dev-libs/gmp:= + cuda? ( + dev-util/nvidia-cuda-toolkit + x11-drivers/nvidia-drivers + ) +" +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() { + 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 static-libs static) \ + $(use_enable openmp) \ + $(use_enable cuda gpu) \ + $(use_enable cpu_flags_x86_sse2 sse2) \ + $(use_enable custom-tune asm-redc) +} + +src_install() { + default + + # remove .la file + find "${ED}" -name '*.la' -delete || die +} diff --git a/sci-mathematics/gmp-ecm/metadata.xml b/sci-mathematics/gmp-ecm/metadata.xml index e89f3c570a87..3723f0d56e48 100644 --- a/sci-mathematics/gmp-ecm/metadata.xml +++ b/sci-mathematics/gmp-ecm/metadata.xml @@ -16,6 +16,9 @@ + + Use NVidia's cuda toolkit for computations + Improve performance of some operations by selecting machine-specific defaults -- cgit v1.2.3