diff options
author | tharvik <tharvik@users.noreply.github.com> | 2018-08-26 16:18:14 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2018-09-07 10:23:50 +0200 |
commit | fd6e992a45c0835bca83f25237c2b928f743d57b (patch) | |
tree | c5028291b9a555ce7b0f0cc4400908f9f28c6971 /net-libs/nativebiginteger/nativebiginteger-0.9.36.ebuild | |
parent | app-admin/cdist: version bump. (diff) | |
download | gentoo-fd6e992a45c0835bca83f25237c2b928f743d57b.tar.gz gentoo-fd6e992a45c0835bca83f25237c2b928f743d57b.tar.bz2 gentoo-fd6e992a45c0835bca83f25237c2b928f743d57b.zip |
net-libs/nativebiginteger: bump to 0.9.36.
Closes: https://github.com/gentoo/gentoo/pull/9702
Diffstat (limited to 'net-libs/nativebiginteger/nativebiginteger-0.9.36.ebuild')
-rw-r--r-- | net-libs/nativebiginteger/nativebiginteger-0.9.36.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/net-libs/nativebiginteger/nativebiginteger-0.9.36.ebuild b/net-libs/nativebiginteger/nativebiginteger-0.9.36.ebuild new file mode 100644 index 000000000000..d327fc138097 --- /dev/null +++ b/net-libs/nativebiginteger/nativebiginteger-0.9.36.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils toolchain-funcs multilib java-pkg-opt-2 + +DESCRIPTION="jbigi JNI library for net.i2p.util.NativeBigInteger java-class from I2P" +HOMEPAGE="http://www.i2p2.de" +SRC_URI="http://mirror.i2p2.de/i2psource_${PV}.tar.bz2" + +LICENSE="|| ( public-domain BSD MIT )" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="test" + +RDEPEND="dev-libs/gmp" +DEPEND=" + ${RDEPEND} + test? ( >=virtual/jdk-1.7 ) +" + +S=${WORKDIR}/i2p-${PV}/core + +PATCHES=( + "${FILESDIR}/${P}"-asmfix.patch +) + +src_compile() { + tc-export CC + + cd c/jbigi/jbigi/src && + ../../build_jbigi.sh dynamic || + die 'unable to build jbigi' + + if use test + then + cd "${S}/java/src" && + ejavac -encoding UTF-8 net/i2p/util/NativeBigInteger.java || + die 'unable to build tests' + fi + + if ( use amd64 || use x86 ) + then + cd "${S}/c/jcpuid" && + ./build.sh || + die 'unable to build jcpuid' + fi +} + +src_test() { + cd java/src && + java -Djava.library.path="${S}/c/jbigi/jbigi/src" net/i2p/util/NativeBigInteger || + die 'unable to pass tests' +} + +src_install() { + dolib c/jbigi/jbigi/src/libjbigi.so + + if ( use amd64 || use x86 ) + then + newlib.so \ + "c/jcpuid/lib/freenet/support/CPUInformation/libjcpuid-$(tc-arch)-linux.so" \ + libjcpuid.so + fi +} |