diff options
author | Dane Smith <smithdanea@gmail.com> | 2010-12-27 11:37:10 -0500 |
---|---|---|
committer | Dane Smith <smithdanea@gmail.com> | 2010-12-27 11:37:10 -0500 |
commit | e657a21116dca3174934ba730318599e22f818cf (patch) | |
tree | 1453f6b6f5bfb20204cfea0e83129e563adff9c5 | |
parent | Testing ebuild for dieharder. (diff) | |
download | c1pher-e657a21116dca3174934ba730318599e22f818cf.tar.gz c1pher-e657a21116dca3174934ba730318599e22f818cf.tar.bz2 c1pher-e657a21116dca3174934ba730318599e22f818cf.zip |
Native bit int tests
9 files changed, 222 insertions, 0 deletions
diff --git a/net-libs/nativebiginteger/ChangeLog b/net-libs/nativebiginteger/ChangeLog new file mode 100644 index 0000000..1ffd461 --- /dev/null +++ b/net-libs/nativebiginteger/ChangeLog @@ -0,0 +1,32 @@ +# ChangeLog for net-libs/nativebiginteger +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/nativebiginteger/ChangeLog,v 1.5 2010/09/12 14:31:10 tommy Exp $ + +*nativebiginteger-0.6.4-r2 (12 Sep 2010) + + 12 Sep 2010; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> + -nativebiginteger-0.6.4-r1.ebuild, +nativebiginteger-0.6.4-r2.ebuild: + Filter --as-needed for now, since net-p2p/freenet wont load the lib + compiled with it + +*nativebiginteger-0.6.4-r1 (04 Sep 2010) + + 04 Sep 2010; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> + +nativebiginteger-0.6.4-r1.ebuild, + +files/nativebiginteger-0.6.4-ldflags.patch: + Revision bump to fix bug 335682 + + 09 Mar 2009; Markus Meier <maekke@gentoo.org> + nativebiginteger-0.6.4.ebuild: + amd64/x86 stable, bug #260964 + + 29 Jan 2009; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> + nativebiginteger-0.6.4.ebuild: + Use mirror://gentoo + +*nativebiginteger-0.6.4 (29 Jan 2009) + + 29 Jan 2009; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> + +nativebiginteger-0.6.4.ebuild: + Initial commit. Fixes bug 238037 + diff --git a/net-libs/nativebiginteger/Manifest b/net-libs/nativebiginteger/Manifest new file mode 100644 index 0000000..a25118b --- /dev/null +++ b/net-libs/nativebiginteger/Manifest @@ -0,0 +1,10 @@ +AUX nativebiginteger-0.6.4-as-needed.patch 963 RMD160 4533b12304e4c83974e421c47a0aad3c3f63bbc1 SHA1 f600c4c4a751cbdb9a5ba6047142f59250f6046a SHA256 a82ece160ed86576259be3379fee1781f07abda5bd16027663582a7c646fd76a +AUX nativebiginteger-0.6.4-as-needed.patch~ 412 RMD160 2587d8e6633a07987e24a6d1a6f9698f03bfb177 SHA1 8e08008bce71b4c5bdaceb5e9227a85ed1bcbfd2 SHA256 224d96d81be2614cc4556515acbb6ff114fd442fb8836fba4a10fe00cc98946f +AUX nativebiginteger-0.6.4-asmfix.patch 586 RMD160 bf9d3735089402903777cc119cf56da83839c6f1 SHA1 9574a780ee0d2998eff2aa25f7d7c6e6e78ba146 SHA256 2ad29016057f3ea18596bff1eb47bc1ef6b4cc129d1f3b55d134f2717b8e631a +AUX nativebiginteger-0.6.4-ldflags.patch 942 RMD160 8551096cf96efd921b56d7ee3e752a17369b420f SHA1 cf471d425cef1a0048fcda8aa290a5fb5c8a69be SHA256 15dbf9d168e1d19e9f169fdee7179f1bf2cdaaefbaba7cda84264d2f1bb0e635 +DIST nativebiginteger-0.6.4.tar.bz2 10248 RMD160 a7ac7832371c74a1e9592a9abd1b6d5ef40a360a SHA1 37b433b3a7a2cf818a7ca3713548153f63da3817 SHA256 ef36fb57c1d885164f00b3e5d239c22349a530fa20df652efc5cb1f1ccea2c32 +EBUILD nativebiginteger-0.6.4-r2.ebuild 869 RMD160 3dab367e1a2a1b58f0db6b6bf788705e29a7735b SHA1 4e80e9544b486a6319eaf303e5f2398fbed25870 SHA256 59c4b81a47fe8a446e7d274b68b75b77a11a171eeb5652a12108bc768c0f4be9 +EBUILD nativebiginteger-0.6.4-r3.ebuild 903 RMD160 7831378316e4d7d268926e6d021b9cdb7a501516 SHA1 b113fd168aaf24c70e279240d8fb0b5fa0e742bb SHA256 2e3190640732b5437d3e9ef6d474db99f848f92d3cacb67797c7e451def2fafe +EBUILD nativebiginteger-0.6.4.ebuild 786 RMD160 a4034c175976d8c3ccd0c1f3b87fcf5dca06fa14 SHA1 7e479d833c9c045f72350c502c8e7ec6ebde269d SHA256 6739e7cc8119bcd19d0272b6a89cbc86df39aa3e105d685f08c81e665b71c2ed +MISC ChangeLog 1102 RMD160 2087361dbc26a307b8d322d2c324964408ff90a2 SHA1 673fce84490da7fad57ce398fd6ce7280245f6ea SHA256 2061102ed5962d83594c1e76c33ca7454ae9f644ccf80e1e561a72010d7a7cfd +MISC metadata.xml 265 RMD160 8391b845c1dc290dbfc6d8391aed1e0537e14725 SHA1 98eb1209de8c64009ada779e9c4b57f0b8273c41 SHA256 02b8c461c4f564f9a88d09d6e5d6cb1018b06173aa6b0fb4f188664b00f057fa diff --git a/net-libs/nativebiginteger/files/nativebiginteger-0.6.4-as-needed.patch b/net-libs/nativebiginteger/files/nativebiginteger-0.6.4-as-needed.patch new file mode 100644 index 0000000..37c18f6 --- /dev/null +++ b/net-libs/nativebiginteger/files/nativebiginteger-0.6.4-as-needed.patch @@ -0,0 +1,17 @@ +--- Makefile 2008-11-06 21:09:54.000000000 +0100 ++++ Makefile.new 2010-12-27 14:26:45.000000000 +0100 +@@ -1,11 +1,11 @@ + libjbigi: + cd jbigi && rm -f jbigi.o libjbigi.so && $(CC) $(CFLAGS) -c -I. -Ijbigi/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \ +- jbigi/src/jbigi.c && $(CC) -shared -Wl,-soname,libjbigi.so -I. -Ijbigi/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -lgmp \ +- -o libjbigi.so jbigi.o ++ jbigi/src/jbigi.c && $(CC) ${LDFLAGS} -shared -Wl,-soname,libjbigi.so jbigi.o -I. -Ijbigi/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -lgmp \ ++ -o libjbigi.so + + + libjcpuid: +- cd jcpuid && $(CC) $(CFLAGS) -shared -Wl,-soname,libjbigi-x86-linux.so -I. -Iinclude -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \ ++ cd jcpuid && $(CC) $(CFLAGS) ${LDFLAGS} -shared -Wl,-soname,libjbigi-x86-linux.so -I. -Iinclude -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \ + src/*.c -o libjcpuid-x86-linux.so + + install:
\ No newline at end of file diff --git a/net-libs/nativebiginteger/files/nativebiginteger-0.6.4-asmfix.patch b/net-libs/nativebiginteger/files/nativebiginteger-0.6.4-asmfix.patch new file mode 100644 index 0000000..04cfa59 --- /dev/null +++ b/net-libs/nativebiginteger/files/nativebiginteger-0.6.4-asmfix.patch @@ -0,0 +1,31 @@ +--- jcpuid/src/jcpuid.c 2008-10-06 09:44:53.000000000 -0400 ++++ jcpuid/src/jcpuid.c.new2 2010-12-27 09:41:53.000000000 -0500 +@@ -19,6 +19,7 @@ + mov d, edx + } + #else ++ #ifdef _LP64 + //Use GCC assembler notation + asm + ( +@@ -29,6 +30,20 @@ + "=d"(d) + :"a"(iFunction) + ); ++ #elif defined(__i386__) ++ asm ++ ( ++ "pushl %%ebx\n\t" ++ "cpuid\n\t" ++ "movl %%ebx, %%edi\n\t" ++ "popl %%ebx" ++ : "=a" (a), ++ "=D" (b), ++ "=c" (c), ++ "=d" (d) ++ :"a"(iFunction) ++ ); ++ #endif + #endif + return (*env)->NewObject(env, clsResult,constructor,a,b,c,d); + } diff --git a/net-libs/nativebiginteger/files/nativebiginteger-0.6.4-ldflags.patch b/net-libs/nativebiginteger/files/nativebiginteger-0.6.4-ldflags.patch new file mode 100644 index 0000000..c9638a7 --- /dev/null +++ b/net-libs/nativebiginteger/files/nativebiginteger-0.6.4-ldflags.patch @@ -0,0 +1,16 @@ +--- Makefile 2008-11-06 21:09:54.000000000 +0100 ++++ Makefile.new 2010-09-04 21:48:57.941604821 +0200 +@@ -1,11 +1,11 @@ + libjbigi: + cd jbigi && rm -f jbigi.o libjbigi.so && $(CC) $(CFLAGS) -c -I. -Ijbigi/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \ +- jbigi/src/jbigi.c && $(CC) -shared -Wl,-soname,libjbigi.so -I. -Ijbigi/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -lgmp \ ++ jbigi/src/jbigi.c && $(CC) ${LDFLAGS} -shared -Wl,-soname,libjbigi.so -I. -Ijbigi/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -lgmp \ + -o libjbigi.so jbigi.o + + + libjcpuid: +- cd jcpuid && $(CC) $(CFLAGS) -shared -Wl,-soname,libjbigi-x86-linux.so -I. -Iinclude -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \ ++ cd jcpuid && $(CC) $(CFLAGS) ${LDFLAGS} -shared -Wl,-soname,libjbigi-x86-linux.so -I. -Iinclude -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \ + src/*.c -o libjcpuid-x86-linux.so + + install: diff --git a/net-libs/nativebiginteger/metadata.xml b/net-libs/nativebiginteger/metadata.xml new file mode 100644 index 0000000..22b5125 --- /dev/null +++ b/net-libs/nativebiginteger/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>tommy@gentoo.org</email> + <name>Thomas Sachau (Tommy[D])</name> + </maintainer> + <herd>no-herd</herd> +</pkgmetadata> + diff --git a/net-libs/nativebiginteger/nativebiginteger-0.6.4-r2.ebuild b/net-libs/nativebiginteger/nativebiginteger-0.6.4-r2.ebuild new file mode 100644 index 0000000..033ab3c --- /dev/null +++ b/net-libs/nativebiginteger/nativebiginteger-0.6.4-r2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/nativebiginteger/nativebiginteger-0.6.4-r2.ebuild,v 1.2 2010/09/12 14:32:13 tommy Exp $ + +EAPI=2 + +inherit flag-o-matic multilib toolchain-funcs java-pkg-2 + +DESCRIPTION="NativeBigInteger libs for Freenet taken from i2p" +HOMEPAGE="http://www.i2p2.de" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="|| ( public-domain BSD MIT )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-libs/gmp + >=virtual/jdk-1.4" +RDEPEND="dev-libs/gmp" + +pkg_setup() { + append-ldflags $(no-as-needed) +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-ldflags.patch +} + +src_compile() { + append-flags -fPIC + tc-export CC + emake libjbigi || die + emake libjcpuid || die +} + +src_install() { + emake DESTDIR="${D}" LIBDIR=$(get_libdir) install || die +} diff --git a/net-libs/nativebiginteger/nativebiginteger-0.6.4-r3.ebuild b/net-libs/nativebiginteger/nativebiginteger-0.6.4-r3.ebuild new file mode 100644 index 0000000..ac8529d --- /dev/null +++ b/net-libs/nativebiginteger/nativebiginteger-0.6.4-r3.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/nativebiginteger/nativebiginteger-0.6.4-r2.ebuild,v 1.2 2010/09/12 14:32:13 tommy Exp $ + +EAPI=2 + +inherit flag-o-matic multilib toolchain-funcs java-pkg-2 + +DESCRIPTION="NativeBigInteger libs for Freenet taken from i2p" +HOMEPAGE="http://www.i2p2.de" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="|| ( public-domain BSD MIT )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-libs/gmp + >=virtual/jdk-1.4" +RDEPEND="dev-libs/gmp" + +src_prepare() { + epatch "${FILESDIR}"/${P}-ldflags.patch + epatch "${FILESDIR}"/${P}-as-needed.patch + epatch "${FILESDIR}"/${P}-asmfix.patch +} + +src_compile() { + append-flags -fPIC + tc-export CC + emake libjbigi || die + emake libjcpuid || die +} + +src_install() { + emake DESTDIR="${D}" LIBDIR=$(get_libdir) install || die +} diff --git a/net-libs/nativebiginteger/nativebiginteger-0.6.4.ebuild b/net-libs/nativebiginteger/nativebiginteger-0.6.4.ebuild new file mode 100644 index 0000000..fda4982 --- /dev/null +++ b/net-libs/nativebiginteger/nativebiginteger-0.6.4.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/nativebiginteger/nativebiginteger-0.6.4.ebuild,v 1.3 2009/03/09 22:39:12 maekke Exp $ + +inherit flag-o-matic multilib toolchain-funcs java-pkg-2 + +DESCRIPTION="NativeBigInteger libs for Freenet taken from i2p" +HOMEPAGE="http://www.i2p2.de" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="|| ( public-domain BSD MIT )" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="dev-libs/gmp + >=virtual/jdk-1.4" +RDEPEND="dev-libs/gmp" + +src_compile() { + append-flags -fPIC + tc-export CC + emake libjbigi || die + use x86 && filter-flags -fPIC -nopie + emake libjcpuid || die +} + +src_install() { + emake DESTDIR="${D}" LIBDIR=$(get_libdir) install || die +} |