From 4cc852b4016d8aa1fa4d7a8b3911bebe1ed1da50 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 8 Oct 2022 07:29:33 +0100 Subject: gentoo auto-resync : 08:10:2022 - 07:29:32 --- sci-mathematics/gmp-ecm/Manifest | 4 +- sci-mathematics/gmp-ecm/gmp-ecm-7.0.5-r1.ebuild | 60 ++++++++++++++++++++++ sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild | 67 ------------------------- sci-mathematics/gmp-ecm/metadata.xml | 3 -- 4 files changed, 62 insertions(+), 72 deletions(-) create mode 100644 sci-mathematics/gmp-ecm/gmp-ecm-7.0.5-r1.ebuild delete 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 521532654ec6..4c170362f0d4 100644 --- a/sci-mathematics/gmp-ecm/Manifest +++ b/sci-mathematics/gmp-ecm/Manifest @@ -3,5 +3,5 @@ AUX gmp-ecm-7.0.4-openmp.patch 795 BLAKE2B 2a857cba5e0bc4e7dfe710c250bcb721dd2fd 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 2112 BLAKE2B 39830814297dce141346272456a9eb7af0ee7022f5e51721d613ed599939005c75c5d3a9454eb08c8686f053e6ae119a44cd65841bfa31368e9a6d7fd67b90cf SHA512 b8061d07de7ee3821746be174d88137e6cbf37f0e63947701fc52e957ae16f2e5595fdf6cbb452757c67fd5b2d666d7ff3e6afb6ff3adad01d7523efd615c695 -EBUILD gmp-ecm-7.0.5.ebuild 1742 BLAKE2B 8d69e17c25af030d62380ea5fe76a922ee74bf4426608c5b9bdfc132e6a932cb1d4ae3617963943f5f14edfcb55a054466794f51b088747de97b62e23dc01f29 SHA512 77bbe8a9e3c83271aee921a89e43e00a31a33a482150bf3bfe268d1235059f8146bab56bb5c1d05920a401a8310f75e673981c425d5bb2d737ab2fed8eee3dbb -MISC metadata.xml 727 BLAKE2B 9362e7772528adeb4ed10d53bb319cdd3e1a73959c8bc0d59d1ed589b9d854790acd10887cf8e09a4be009e2c2b6ce994508c9227d6e7c1d51c82b666e8db33e SHA512 6782da887f25301a029726237583a52ca3509ebbf8a0920e16ae1828723d8653108967639813cca7300bedd694469447b34b76a05e3382dc9b7cce74cf86ea83 +EBUILD gmp-ecm-7.0.5-r1.ebuild 1571 BLAKE2B 4ea85b18d10152c355676f9ee3de10677ddc6346807eff13bd375ee0dbd5f15e96ee34abc5c369dab4946282ed9e90a2e77a229cb2267acb12e7d73fe2f9f2ff SHA512 4da7cdbabfa5469b4a610397da74a8c62bd98c06440da4de9d5d52ed5387e48e4bc16a069f408512d359c6a7c6b3a7d85aa40e7d3ca53effbc4495d92b849fbe +MISC metadata.xml 643 BLAKE2B 90da8b09f30dd8bd8d4df3dcc388663e52d57ea7b2974becede9ed0c592eaacb33958d202cee33988b79364e058ef84676e995b9d8467beb1f7d89ad8b177136 SHA512 e2f0d6f286440543ed15531183671b30f0044c38685e58617d004286b596ba1b898c470dc39e2ebe95db10c83be9430f1a010539ba2b0231883fe6bf4b0b97a8 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 +} diff --git a/sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild b/sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild deleted file mode 100644 index 42feb39cf26a..000000000000 --- a/sci-mathematics/gmp-ecm/gmp-ecm-7.0.5.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# 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() { - [[ ${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 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 3723f0d56e48..e89f3c570a87 100644 --- a/sci-mathematics/gmp-ecm/metadata.xml +++ b/sci-mathematics/gmp-ecm/metadata.xml @@ -16,9 +16,6 @@ - - Use NVidia's cuda toolkit for computations - Improve performance of some operations by selecting machine-specific defaults -- cgit v1.2.3