Gentoo Archives: gentoo-commits

From: "Thomas Sachau (tommy)" <tommy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/nativebiginteger: nativebiginteger-0.8.7.ebuild ChangeLog
Date: Sun, 31 Jul 2011 18:21:14
Message-Id: 20110731182059.D063720051@flycatcher.gentoo.org
1 tommy 11/07/31 18:20:59
2
3 Modified: ChangeLog
4 Added: nativebiginteger-0.8.7.ebuild
5 Log:
6 Version bump, partly based on ebuilds by Dennis Schridde, fixes bug 376971
7
8 (Portage version: 2.2.0_alpha47-r1/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.7 net-libs/nativebiginteger/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nativebiginteger/ChangeLog?rev=1.7&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nativebiginteger/ChangeLog?rev=1.7&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nativebiginteger/ChangeLog?r1=1.6&r2=1.7
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/nativebiginteger/ChangeLog,v
20 retrieving revision 1.6
21 retrieving revision 1.7
22 diff -u -r1.6 -r1.7
23 --- ChangeLog 28 Dec 2010 12:34:30 -0000 1.6
24 +++ ChangeLog 31 Jul 2011 18:20:59 -0000 1.7
25 @@ -1,6 +1,16 @@
26 # ChangeLog for net-libs/nativebiginteger
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/nativebiginteger/ChangeLog,v 1.6 2010/12/28 12:34:30 tommy Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-libs/nativebiginteger/ChangeLog,v 1.7 2011/07/31 18:20:59 tommy Exp $
31 +
32 +*nativebiginteger-0.8.7 (31 Jul 2011)
33 +
34 + 31 Jul 2011; Thomas Sachau (Tommy[D]) <tommy@g.o>
35 + +nativebiginteger-0.8.7.ebuild, +files/nativebiginteger-0.8.7-asmfix.patch,
36 + +files/nativebiginteger-0.8.7-build-system.patch,
37 + +files/nativebiginteger-0.8.7-debug-all.patch,
38 + +files/nativebiginteger-0.8.7-jcpuid-build-system.patch,
39 + +files/nativebiginteger-0.8.7-non-android-warnings.patch:
40 + Version bump, partly based on ebuilds by Dennis Schridde, fixes bug 376971
41
42 *nativebiginteger-0.6.4-r3 (28 Dec 2010)
43
44
45
46
47 1.1 net-libs/nativebiginteger/nativebiginteger-0.8.7.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nativebiginteger/nativebiginteger-0.8.7.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nativebiginteger/nativebiginteger-0.8.7.ebuild?rev=1.1&content-type=text/plain
51
52 Index: nativebiginteger-0.8.7.ebuild
53 ===================================================================
54 # Copyright 1999-2011 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/net-libs/nativebiginteger/nativebiginteger-0.8.7.ebuild,v 1.1 2011/07/31 18:20:59 tommy Exp $
57
58 EAPI=4
59
60 inherit eutils toolchain-funcs multilib java-pkg-2
61
62 DESCRIPTION="jbigi JNI library for net.i2p.util.NativeBigInteger java-class from I2P"
63 HOMEPAGE="http://www.i2p2.de"
64 SRC_URI="http://mirror.i2p2.de/i2psource_${PV}.tar.bz2"
65
66 LICENSE="|| ( public-domain BSD MIT )"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86"
69
70 IUSE="test"
71
72 DEPEND="${RDEPEND}
73 >=virtual/jdk-1.5"
74 RDEPEND="dev-libs/gmp"
75
76 S=${WORKDIR}/i2p-${PV}/core/
77
78 src_prepare() {
79 epatch "${FILESDIR}/${P}"-build-system.patch \
80 "${FILESDIR}/${P}"-jcpuid-build-system.patch \
81 "${FILESDIR}/${P}"-debug-all.patch \
82 "${FILESDIR}/${P}"-non-android-warnings.patch \
83 "${FILESDIR}/${P}"-asmfix.patch
84 }
85
86 src_compile() {
87 tc-export CC
88
89 cd c/jbigi/jbigi/src || die
90 ../../build_jbigi.sh dynamic || die
91
92 if use test ; then
93 einfo "Building tests ..."
94 cd "${S}"java/src || die
95 ejavac net/i2p/util/NativeBigInteger.java || die
96 eend $?
97 fi
98 if ( use amd64 || use x86 ) ; then
99 cd "${S}"c/jcpuid
100 ./build.sh || die
101 fi
102 }
103
104 src_test() {
105 cd java/src || die
106 java -Djava.library.path="${S}"/c/jbigi/jbigi/src net/i2p/util/NativeBigInteger || die
107 }
108
109 src_install() {
110 local os arch
111
112 dolib c/jbigi/jbigi/src/libjbigi.so || die
113 ( use amd64 || use x86 ) && dolib c/jcpuid/lib/freenet/support/CPUInformation/libjcpuid-x86-linux.so || die
114
115 ## The following is needed for compatibility with earlier versions of NativeBigInteger ##
116
117 # os list found by: grep 'jbigi-' core/java/src/net/i2p/util/NativeBigInteger.java
118 case ${CHOST} in
119 *-fbsd) os=freebsd ;;
120 *-darwin) os=osx ;;
121 *-mingw*|*-cygwin) os=windows ;;
122 *) os=linux ;;
123 esac
124 # arch list found by "none" + grep 'JBIGI_OPTIMIZATION_.*=' core/java/src/net/i2p/util/NativeBigInteger.java
125 for arch in none arm k6 k62 k63 athlon x86_64 x86_64_32 pentium pentiummmx pentium2 pentium3 pentium4 ppc ; do
126 dosym libjbigi.so /usr/$(get_libdir)/libjbigi-$os-$arch.so || die
127 done
128 }