summaryrefslogtreecommitdiff
path: root/dev-libs/gf2x
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/gf2x')
-rw-r--r--dev-libs/gf2x/Manifest9
-rw-r--r--dev-libs/gf2x/gf2x-1.0-r1.ebuild38
-rw-r--r--dev-libs/gf2x/gf2x-1.1.ebuild38
-rw-r--r--dev-libs/gf2x/gf2x-1.2.ebuild54
-rw-r--r--dev-libs/gf2x/metadata.xml18
5 files changed, 157 insertions, 0 deletions
diff --git a/dev-libs/gf2x/Manifest b/dev-libs/gf2x/Manifest
new file mode 100644
index 000000000000..9e0d98b58c2b
--- /dev/null
+++ b/dev-libs/gf2x/Manifest
@@ -0,0 +1,9 @@
+DIST gf2x-1.0.tar.gz 460810 SHA256 b64ffa9275cc2e995d37bcecbcdce9ba1df1e17d3d31d8685128d00df305e753 SHA512 f4658698972e31428d8349b423762e9ef5aaeb52d8081c9831baa4eb066737ab3e9667a700d5df79e0f0df2626db39f2f994df17da14719506d44dbb9b33af40 WHIRLPOOL 1f4bc9deca4a0e08555800f327b4ad76e58564523271dac29b337fa757e4aebcedec0ed9bfb738e0a24892ac25d9d8d65315a12f462e91d680a908ab1b35b050
+DIST gf2x-1.1.tar.gz 496708 SHA256 0d3f01604680102a00ca34e079903cc4d5a3208afda223748979b724d358849f SHA512 052cb2152773dc114a2a80cc64cd0679c1f57eceabcdc7cc25987b8d2599fa6d4871b5bb6ff71319727411b9b5aca11e431e43eafa474a419cf306d42d22ac2c WHIRLPOOL 6336dd24f05b8f18713578b65d129e667029876b3d67ab13113140d73aa7b14f2afbd2f4f2ef15d25470589b15aad382c0efefd3f1d0e47ba5e2bada42ee0580
+DIST gf2x-1.2.tar.gz 706519 SHA256 61427ffa03b5006aa154def6dce8bcff0fdefb3bd72f43fb1a7b4fdd6b80db34 SHA512 efddad2b99fa103fa77caed4a62f4a763dbff67bc7cf4527bbbf33ca826829e4a4f94e97454ef1a6498bdc2cee8934ff43f9dabf41a4a4f256721527a1dffa30 WHIRLPOOL e6cc949799b9b2c42d67be57f9cc6a3426311ef829a40f90053a4c37542bf34d9f3e154d3f1dad82096ee37d35603059d6a189d245ad0909f7cb122c3b226c1a
+EBUILD gf2x-1.0-r1.ebuild 712 SHA256 893df7bbeab48b0a37642df1639a1e43fab6a72fb9c9108f151f81224d5099de SHA512 cbc408834d81e0c6784e1f3ae6cecb61bb9ed70e250f12205e13218a9cf701440baf572977f05b836701457ee5b55068c9f9402bb577abee104b03a9d4e847e9 WHIRLPOOL e9542f10d9b3ab2c9c00bf1c438f2777b3452644a8dd87dd9c64403796f3f5fe65b51abb6ed7fe72ec06d99cabd00ce9c92045464a4cf407470b834d2511a561
+EBUILD gf2x-1.1.ebuild 715 SHA256 d55bbcdd6deb0e2fa79d59df3702bd7db17ed7cb67e135cabdcd3a7c1366814f SHA512 b9d4e006a53fa5641b7e342ce2860feb0029b10f82c0150f1b45d32c443ea5d029014f92a9dc87977c0aa0d34f2598916471cfb01f61f859bdb14fa9fb31728b WHIRLPOOL 84e566728a9357e9859e83f7c9b44ba5ad471ce181837ba7344a04c5b00eb4b2369bf0f5f5d2a69364d1add3395e75138fbeab2ad25a84945813b35808dacffc
+EBUILD gf2x-1.2.ebuild 1372 SHA256 7d47fe3388665fd0fd422b3d8c8f0aafbc0e008b927e27876de2074a9382a3e5 SHA512 91f10a7ff2108c7eeee165bca24a41d917087c1ec6d126451a95a79da552b59486b5d143e844fb574108072b82be5c08bd7d1dd60c39abbc14eb18a635608b1c WHIRLPOOL 66eff964234e41690c74e5edc3395fff9f6cdbf39f9a15edb524185942eb71123a345a0cfbc3de5b4a88b304bde01cf2edef08c0d299a4e725b5d8ce1ab3cfd6
+MISC ChangeLog 2462 SHA256 61af2eb477ecaa62b63495a2a73e8914da6f6b934b96c816bbdd945224e7c379 SHA512 a3189130d4a901617a91b86edd21e5b9b30bc319ac73d21645d2fb4b4e24ff6f08a584ae51d83fd9778d0f555ddbdbfed5e165b262dfa0c3928de32c05e99404 WHIRLPOOL b57aee11aac7c0dfa33cb5fd9ce5c9a66f3d74e2ac627fea2e44c1389797229f1fb6c3d4daabf6e25a7fef844b15c08f096adde9ac5b41cc6823596c7f56cb63
+MISC ChangeLog-2015 2311 SHA256 41aa3b009382e8cd21dddc40c336519a76c0f204397416e491d5f6e43e5dfc14 SHA512 f28aa249dadaddc717f6fb883483c9b4046b71878f1fa86cb54d53d5e117c5b051313908ff096a613371335a334218ba48fac7c03b34b48bda4a885ce080ac6e WHIRLPOOL 34142da99b2b2d3f158b7775778237aecb69e8d8f3386ee03cd4793bfe5cbbd82c224a5fe6ceab79229ef31d266596ac9c301871da96110ed69b698bffbdf065
+MISC metadata.xml 835 SHA256 d6612e35813d3df79acbaf969b9213b79677804262b7f6b5ccaf00ffa035f93b SHA512 b939d980aa5f6ba39f4e4378cf677942b9f1d596cb87ddce2d7ffaf6d6a9f82422ebf59f5bc98907305c75bbd249ea66f3edd15cfd1195e2b9282ff637d93eaa WHIRLPOOL 8960d57ec5f61bec01754c985d19af4eeba85b5407eea9d519b457ef14d2a6ba3c081afbbac4a5c1b237868ab3a4ac45278fb8808e75b17fd7d952da397cd933
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>