diff options
Diffstat (limited to 'dev-libs/gf2x')
-rw-r--r-- | dev-libs/gf2x/Manifest | 7 | ||||
-rw-r--r-- | dev-libs/gf2x/gf2x-1.0-r1.ebuild | 38 | ||||
-rw-r--r-- | dev-libs/gf2x/gf2x-1.1.ebuild | 38 | ||||
-rw-r--r-- | dev-libs/gf2x/gf2x-1.2.ebuild | 54 | ||||
-rw-r--r-- | dev-libs/gf2x/metadata.xml | 18 |
5 files changed, 155 insertions, 0 deletions
diff --git a/dev-libs/gf2x/Manifest b/dev-libs/gf2x/Manifest new file mode 100644 index 000000000000..485f964517db --- /dev/null +++ b/dev-libs/gf2x/Manifest @@ -0,0 +1,7 @@ +DIST gf2x-1.0.tar.gz 460810 BLAKE2B 07aa3faabb2616e11c2620cbb8008dede01f0ec2b338656572d8a86c45b9fd3bc61ec5e5ed97c1f9f8b1ba740a939364f113822f7cb810e362474fc1de09eada SHA512 f4658698972e31428d8349b423762e9ef5aaeb52d8081c9831baa4eb066737ab3e9667a700d5df79e0f0df2626db39f2f994df17da14719506d44dbb9b33af40 +DIST gf2x-1.1.tar.gz 496708 BLAKE2B 18135d812c09f8ad0dad80ed7c1f58404461b79187ef8f176c9ad73e75de8b5a4a95a29463f57b86816a80ca21324dd2fd4a139531fb69eb4476f45400a497a7 SHA512 052cb2152773dc114a2a80cc64cd0679c1f57eceabcdc7cc25987b8d2599fa6d4871b5bb6ff71319727411b9b5aca11e431e43eafa474a419cf306d42d22ac2c +DIST gf2x-1.2.tar.gz 706519 BLAKE2B 4aa45d10646b51e540be51d0fe3691083c48c666d34e67d50d8f53753c49af2bd9664483618eee5a1883106d1f58ddb28cd4eb02031f13eebe8278630de736f6 SHA512 efddad2b99fa103fa77caed4a62f4a763dbff67bc7cf4527bbbf33ca826829e4a4f94e97454ef1a6498bdc2cee8934ff43f9dabf41a4a4f256721527a1dffa30 +EBUILD gf2x-1.0-r1.ebuild 712 BLAKE2B a1eee9c3de39e86e79ccc48edae73fc9d45b171a0993ca4397d104e317a9a1e07fa63b4a7158648fe8ae9f5c5f89ee302029934133eb17bb502ba5c245a5de08 SHA512 cbc408834d81e0c6784e1f3ae6cecb61bb9ed70e250f12205e13218a9cf701440baf572977f05b836701457ee5b55068c9f9402bb577abee104b03a9d4e847e9 +EBUILD gf2x-1.1.ebuild 715 BLAKE2B c8edc6d4aac4f7ec60bcc958dad5bcff1b494ecf14649fd33cb1169f813929ac07ac32c4ce2c60d0f006a39db838196e82f7a5c18c7303a1fce209b9e0dbef55 SHA512 b9d4e006a53fa5641b7e342ce2860feb0029b10f82c0150f1b45d32c443ea5d029014f92a9dc87977c0aa0d34f2598916471cfb01f61f859bdb14fa9fb31728b +EBUILD gf2x-1.2.ebuild 1372 BLAKE2B 366c612d7da7ec6b4202ff2d69a4c1b078c4abb308b586dfcdbf916addcac09aac18d93b36b1079f2ea5e573740528ee0fb904fac43ad3c3a44e8b2c7f85cdae SHA512 91f10a7ff2108c7eeee165bca24a41d917087c1ec6d126451a95a79da552b59486b5d143e844fb574108072b82be5c08bd7d1dd60c39abbc14eb18a635608b1c +MISC metadata.xml 835 BLAKE2B fce44f325ff007ee4c52f45c2e0a4f0eeb6eedf885aa4ff66b17e9081c1007755b753b89a2966237e7cd1a6f86bb20b946488707356dc2f7ffd528490e8863e7 SHA512 b939d980aa5f6ba39f4e4378cf677942b9f1d596cb87ddce2d7ffaf6d6a9f82422ebf59f5bc98907305c75bbd249ea66f3edd15cfd1195e2b9282ff637d93eaa diff --git a/dev-libs/gf2x/gf2x-1.0-r1.ebuild b/dev-libs/gf2x/gf2x-1.0-r1.ebuild new file mode 100644 index 000000000000..98ee76b86153 --- /dev/null +++ b/dev-libs/gf2x/gf2x-1.0-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit autotools-utils + +PACKAGEID=27999 # hack + +DESCRIPTION="C/C++ routines for fast arithmetic in GF(2)[x]" +HOMEPAGE="http://gf2x.gforge.inria.fr/" +SRC_URI="http://gforge.inria.fr/frs/download.php/${PACKAGEID}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="bindist static-libs" + +src_configure() { + local myeconfargs=( + ABI=default + ) + + if use bindist ; then + if use x86 ; then + myeconfargs+=( + --disable-sse2 + ) + fi + if use amd64 ; then + myeconfargs+=( + --disable-pclmul + ) + fi + fi + + autotools-utils_src_configure +} diff --git a/dev-libs/gf2x/gf2x-1.1.ebuild b/dev-libs/gf2x/gf2x-1.1.ebuild new file mode 100644 index 000000000000..779fbdb0f804 --- /dev/null +++ b/dev-libs/gf2x/gf2x-1.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit autotools-utils + +PACKAGEID=30873 # hack + +DESCRIPTION="C/C++ routines for fast arithmetic in GF(2)[x]" +HOMEPAGE="http://gf2x.gforge.inria.fr/" +SRC_URI="http://gforge.inria.fr/frs/download.php/${PACKAGEID}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="bindist static-libs" + +src_configure() { + local myeconfargs=( + ABI=default + ) + + if use bindist ; then + if use x86 ; then + myeconfargs+=( + --disable-sse2 + ) + fi + if use amd64 ; then + myeconfargs+=( + --disable-pclmul + ) + fi + fi + + autotools-utils_src_configure +} diff --git a/dev-libs/gf2x/gf2x-1.2.ebuild b/dev-libs/gf2x/gf2x-1.2.ebuild new file mode 100644 index 000000000000..69bc4312a405 --- /dev/null +++ b/dev-libs/gf2x/gf2x-1.2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils autotools + +PACKAGEID=36934 # inriaforge hardcoded ID + +DESCRIPTION="C/C++ routines for fast arithmetic in GF(2)[x]" +HOMEPAGE="http://gf2x.gforge.inria.fr/" +SRC_URI="http://gforge.inria.fr/frs/download.php/${PACKAGEID}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0/1" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="fft static-libs custom-tune" +IUSE_CPU_FLAGS=" pclmul sse2 sse3 sse4_1 ssse3" +IUSE+=" ${IUSE_CPU_FLAGS// / cpu_flags_x86_}" + +src_prepare() { + default + # fix for cross-compiling, avoid ABI detection + sed -e 's/VERIFY_WORDSIZE(\[$ABI\].*/echo "skipping ABI check"/' \ + -e 's/AC_MSG_ERROR(\[already_t.*/echo "skipping ABI check"/' \ + -i configure.ac || die + eautoreconf +} + +src_configure() { + econf \ + $(use_enable cpu_flags_x86_sse2 sse2) \ + $(use_enable cpu_flags_x86_sse3 sse3) \ + $(use_enable cpu_flags_x86_ssse3 ssse3) \ + $(use_enable cpu_flags_x86_sse4_1 sse41) \ + $(use_enable cpu_flags_x86_pclmul pclmul) \ + $(use_enable fft fft-interface) \ + $(use_enable static-libs static) +} + +src_compile() { + emake + if use custom-tune; then + einfo "Starting tuning" + emake tune-lowlevel + emake tune-toom + use fft && emake tune-fft + fi +} + +src_install() { + default + use static-libs || prune_libtool_files --all +} diff --git a/dev-libs/gf2x/metadata.xml b/dev-libs/gf2x/metadata.xml new file mode 100644 index 000000000000..3a09b3124827 --- /dev/null +++ b/dev-libs/gf2x/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci-mathematics@gentoo.org</email> + <name>Gentoo Mathematics Project</name> + </maintainer> + <longdescription lang="en"> + gf2x is a C/C++ software package containing routines for fast + arithmetic in GF(2)[x] (multiplication, squaring, GCD) and searching + for irreducible/primitive trinomials. + </longdescription> + <use> + <flag name="bindist">Disable automatic fine-tuning to local processor features like pclmul or sse2.</flag> + <flag name="custom-tune">Extra long compile time for tuning hardware specific low-level routines</flag> + <flag name="fft">Build an FFT API for multiplication of 2 polynomials over GF(2)</flag> + </use> +</pkgmetadata> |