diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-mathematics/gmp-ecm |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-mathematics/gmp-ecm')
-rw-r--r-- | sci-mathematics/gmp-ecm/Manifest | 8 | ||||
-rw-r--r-- | sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r5.ebuild | 55 | ||||
-rw-r--r-- | sci-mathematics/gmp-ecm/gmp-ecm-6.4.4-r1.ebuild | 64 | ||||
-rw-r--r-- | sci-mathematics/gmp-ecm/gmp-ecm-9999.ebuild | 52 | ||||
-rw-r--r-- | sci-mathematics/gmp-ecm/metadata.xml | 12 |
5 files changed, 191 insertions, 0 deletions
diff --git a/sci-mathematics/gmp-ecm/Manifest b/sci-mathematics/gmp-ecm/Manifest new file mode 100644 index 000000000000..89e42cc6b181 --- /dev/null +++ b/sci-mathematics/gmp-ecm/Manifest @@ -0,0 +1,8 @@ +DIST gmp-ecm-6.4.3.tar.gz 944719 SHA256 946c9870c0b76ada2f6342515386828800c096fe32ff347c82374d5a4ec73685 SHA512 71ccdf3b48e96b0acad45302c87a7b17a20ad289efde212a34fb11491531b96848f1824606fdab7604874ca7d8165baba4bbfbc8424e27e8844444ad0d4f56a6 WHIRLPOOL b177904307fefbffc0c8aec2d20eb6de8475428f84f4e263b032fd47b671dba44211a2fcb80cacead76545429a7df5cd444137853145ee4ced62cb8356753579 +DIST gmp-ecm-6.4.4.tar.gz 941058 SHA256 c813a814592d8092745012debdba25388211e1a2579c26183adda7cfa215b06c SHA512 039009de2d1a22de7abed2e2b843fa2bc684ddcfc45892891a24b93ad4b3640a97d2e7612ebcbdbca8db032534c226ad77c67199772b21a6139e5fa205687097 WHIRLPOOL 47cb942a4e3fd3d8a978df031dbcb19ea200e43eb9cd6ac2a9b551b7d7a8caed6f2e6ec8d7f7ec84584035b24ed2b49839582f758d245df8e297038d82be2cf8 +EBUILD gmp-ecm-6.4.3-r5.ebuild 1527 SHA256 b06fd19cd5c80297be388601d242bdfc5d4a85bb2b95f6172f91a2dd9b2a3bde SHA512 c24c1ae83890157b556f8bdf50602ad89ccb9b121a393c49a6d15c5c1e0f936752712e80acf275844f7bf30abe3309f2eb2a351b9191e7208c111f9a89abc31b WHIRLPOOL c5405dcae288723ab67fd302e4512e1435618e6e3bf7beded4d1c48ac0aafe02832c20656eece53074a3896151219b8650dc793c6ea87ebe0a197d9bd41c2c11 +EBUILD gmp-ecm-6.4.4-r1.ebuild 1649 SHA256 d95f8f4d63720788764ea3f9988edbd1994796ac3343f47fa8a0b79423487a07 SHA512 1428f77708781c19dff5ff426821dcc8a1e3f612186993fcb4aa9280c31eed2909d5637d7d8ab7d6d461b1377c5ea2d5ccb1b1fd5f80384c89a87d3f0bfa2e31 WHIRLPOOL e9cc10a60e2567c0d32b67dace8324b6bd39d51020a6624c20344d357273478960dd56be4525413d4f3c93f3ee8350318d3e043e53d7517534125a92aa9ab80b +EBUILD gmp-ecm-9999.ebuild 1183 SHA256 004b038210e5cc00b836067749898f2e8f8db2fbc37a244c4f5c3b4297a13038 SHA512 8228893e6e7392e2ba8dafa8479cf960870b0944dd5e40a3b3e3d9f37db4bea21430605d06bf168c089dd8fb95ac4a88e73793e81be058b84cc4f326c810c76c WHIRLPOOL 71b5dec7c7b5372409c8b12ada891eedadff7b4c762a9b80c3eec95c1966cb83f6adeb426e8834f6771b29bd1c53337a511bf3e927a79c164c4821707ebdcac5 +MISC ChangeLog 2557 SHA256 7cb622a0837d5f3276eebd1f1a29f13778429d0206a8252e2523e58164476466 SHA512 4ecb1324ac72be23fb72df225d154322c8054f1d6a5339785c8428a0c5e533bc4258b7e04b6104459a42338c225912e6e54004d467c63b54416579624754645f WHIRLPOOL d0c60d99b9441d41dec9f1f5aae90548d9cb0bf4eb9ea0c8b7d9d434c00153f8bd9d4fe1aacafc1a636a325a273c5d5b1eee57fcaa03e157591ea22eef83c0ba +MISC ChangeLog-2015 2220 SHA256 06b21ac380258d6f93bb3723c8aa8181afd4cb708e8a157f2e0f40bea58854fb SHA512 257ac0721567ea1c6c7885c80ccc44a9d210ff08fc2c5c2e9db980de1fb7f4f5d265064ecb5409ab672bf4bb0e035a1afe715e8558399b932ef5f1d79caa350d WHIRLPOOL c784c9f70e0d106e11026292290f51ce577fdd7d74c5ca2911c9d79daa70606690bcc6765c83db8031411455d35ac81cb21447bcc4fbdee6f9879eae803b95dd +MISC metadata.xml 443 SHA256 8dd44cc20355874b9d51f59381841475314a44587df029ede32cd99482f5a159 SHA512 6da5d2c056bb4924e15ed21993ad60755616a59be5fb0b5a94f9869f3ff03ed45df9512e2b22e29d65b27b32d4a8d97cfeb99559e0c0682333485f8d187c4b46 WHIRLPOOL ec5c1616e477ec654a17808a5a9943a538335cd1b8601a8987c43a7ebbb3574b6ff2e1cdf7ff2f2f13507fd61c6a3405599c543b4c2a3e8ab8cc7f69a71d8c62 diff --git a/sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r5.ebuild b/sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r5.ebuild new file mode 100644 index 000000000000..e60693532085 --- /dev/null +++ b/sci-mathematics/gmp-ecm/gmp-ecm-6.4.3-r5.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 +DESCRIPTION="Elliptic Curve Method for Integer Factorization" +HOMEPAGE="http://ecm.gforge.inria.fr/" +SRC_URI="https://gforge.inria.fr/frs/download.php/30965/${P}.tar.gz" + +inherit eutils + +LICENSE="GPL-3 LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+blas +custom-tune gwnum -openmp test" + +# gmp 5.1 breaks a few things with this version +DEPEND="<dev-libs/gmp-5.1.0 + blas? ( sci-libs/gsl ) + gwnum? ( sci-mathematics/gwnum ) + openmp? ( sys-devel/gcc[openmp] )" +RDEPEND="${DEPEND}" + +# can't be both enabled +REQUIRED_USE="gwnum? ( !openmp )" + +S=${WORKDIR}/ecm-${PV} + +src_configure() { + if use gwnum; then myconf="--with-gwnum=/usr/lib"; fi + # --enable-shellcmd is broken + econf $(use_enable openmp) $myconf +} + +src_compile() { + if use custom-tune; then + use amd64 && cd x86_64 + use x86 && cd pentium4 + emake -j1 || die # build libecm/libmulredc.la + cd .. && make bench_mulredc || die + sed -i -e 's:#define TUNE_MULREDC_TABLE://#define TUNE_MULREDC_TABLE:g' `readlink ecm-params.h` || die + sed -i -e 's:#define TUNE_SQRREDC_TABLE://#define TUNE_SQRREDC_TABLE:g' `readlink ecm-params.h` || die + ./bench_mulredc | tail -n 4 >> `readlink ecm-params.h` || die + fi + emake -j1 || die +} + +src_install() { + emake DESTDIR="${D}" install || die + mkdir -p "${D}/usr/include/${PN}/" + cp "${S}"/*.h "${D}/usr/include/${PN}" || die "Failed to copy headers" # needed by other apps like YAFU +} + +src_test() { + make check || die +} diff --git a/sci-mathematics/gmp-ecm/gmp-ecm-6.4.4-r1.ebuild b/sci-mathematics/gmp-ecm/gmp-ecm-6.4.4-r1.ebuild new file mode 100644 index 000000000000..209011200da1 --- /dev/null +++ b/sci-mathematics/gmp-ecm/gmp-ecm-6.4.4-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools eutils flag-o-matic multilib + +DESCRIPTION="Elliptic Curve Method for Integer Factorization" +HOMEPAGE="http://ecm.gforge.inria.fr/" +SRC_URI="https://gforge.inria.fr/frs/download.php/32159/${P}.tar.gz" + +LICENSE="GPL-3 LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+blas +custom-tune gwnum -openmp static-libs test" + +DEPEND=" + dev-libs/gmp:0= + blas? ( sci-libs/gsl ) + gwnum? ( sci-mathematics/gwnum ) + openmp? ( sys-devel/gcc:*[openmp] )" +RDEPEND="${DEPEND}" + +# can't be both enabled +REQUIRED_USE="gwnum? ( !openmp )" + +S=${WORKDIR}/ecm-${PV} + +MAKEOPTS+=" -j1" + +src_prepare() { + sed -e '/libecm_la_LIBADD/s:$: -lgmp:g' -i Makefile.am || die + eautoreconf +} + +src_configure() { + use gwnum && local myconf="--with-gwnum="${EPREFIX}"/usr/$(get_libdir)" + # --enable-shellcmd is broken + econf \ + --enable-shared \ + $(use_enable static-libs static) \ + $(use_enable openmp) \ + ${myconf} +} + +src_compile() { + append-ldflags "-Wl,-z,noexecstack" + if use custom-tune; then + use amd64 && cd x86_64 + use x86 && cd pentium4 + emake + cd .. && make bench_mulredc || die + sed -i -e 's:#define TUNE_MULREDC_TABLE://#define TUNE_MULREDC_TABLE:g' `readlink ecm-params.h` || die + sed -i -e 's:#define TUNE_SQRREDC_TABLE://#define TUNE_SQRREDC_TABLE:g' `readlink ecm-params.h` || die + ./bench_mulredc | tail -n 4 >> `readlink ecm-params.h` || die + fi + default +} + +src_install() { + default + mkdir -p "${ED}/usr/include/${PN}/" + cp "${S}"/*.h "${ED}/usr/include/${PN}" || die "Failed to copy headers" # needed by other apps like YAFU +} diff --git a/sci-mathematics/gmp-ecm/gmp-ecm-9999.ebuild b/sci-mathematics/gmp-ecm/gmp-ecm-9999.ebuild new file mode 100644 index 000000000000..a7936e1d8eab --- /dev/null +++ b/sci-mathematics/gmp-ecm/gmp-ecm-9999.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DESCRIPTION="Elliptic Curve Method for Integer Factorization" +HOMEPAGE="http://ecm.gforge.inria.fr/" +#SRC_URI="https://gforge.inria.fr/frs/download.php/30965/${P}.tar.gz" +ESVN_REPO_URI="svn://scm.gforge.inria.fr/svnroot/ecm/trunk" + +inherit autotools eutils flag-o-matic subversion + +LICENSE="GPL-3 LGPL-3" +SLOT="0" +KEYWORDS="" +IUSE="blas gwnum -openmp test" + +DEPEND=" + dev-libs/gmp:0= + blas? ( sci-libs/gsl ) + gwnum? ( sci-mathematics/gwnum ) + openmp? ( sys-devel/gcc:*[openmp] )" +RDEPEND="${DEPEND}" + +# can't be both enabled +REQUIRED_USE="gwnum? ( !openmp )" + +S=${WORKDIR}/ecm-${PV} + +MAKEOPTS+=" -j1" + +src_prepare() { + eautoreconf +} + +src_configure() { + if use gwnum; then myconf="--with-gwnum=/usr/lib"; fi + # --enable-shellcmd is broken + econf $(use_enable openmp) $myconf +} + +src_compile() { + append-ldflags "-Wl,-z,noexecstack" + # the custom-tune bits are obsoleted with sane defaults + default +} + +src_install() { + default + mkdir -p "${D}/usr/include/${PN}/" + cp "${S}"/*.h "${D}/usr/include/${PN}" || die "Failed to copy headers" # needed by other apps like YAFU +} diff --git a/sci-mathematics/gmp-ecm/metadata.xml b/sci-mathematics/gmp-ecm/metadata.xml new file mode 100644 index 000000000000..928a8daa2073 --- /dev/null +++ b/sci-mathematics/gmp-ecm/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> + <use> + <flag name="custom-tune">Improve performance of some operations by selecting machine-specific defaults</flag> + <flag name="gwnum">Use GWNum lib where possible</flag> + </use> +</pkgmetadata> |