mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
net-libs/nativebiginteger: drop 0.9.42
Package-Manager: Portage-3.0.4, Repoman-2.3.23 Signed-off-by: Valérian Rousset <tharvik@users.noreply.github.com> Closes: https://github.com/gentoo/gentoo/pull/17352 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
DIST i2psource_0.9.42.tar.bz2 31523717 BLAKE2B 7f110f282a91fa0de700bfaee95968bb534f6f2c7d097c2d70fc9e6bda3ac583762b6b974b38b5947b15a77f91a8d595c957b35838456280236cd88c25d3d47b SHA512 bf8d83c1b1607f5ecf16d33d16cc760eb982d65ef0f89ebd5c61208a38a23f08f465e04889b8ef1d05df4d02a095d85a80077a5b10253d96023f056d01efacef
|
||||
DIST i2psource_0.9.45.tar.bz2 31921025 BLAKE2B 2d37777f77784ff93de4d7442eddf46b9a541902412bf5fb24cf96baba73851cc17d01649a7b4b41a710ccde5690036a890b8f84de00f4c615ed2e23da8fa510 SHA512 d4cf354f0a807d132fae75d4bad3e2e788e1ed03d6f625feb0f1369bb2c9e1a6e2758645acf2017c61dbc47d75e6d834b87455adbead1077f206025686548ae9
|
||||
DIST i2psource_0.9.47.tar.bz2 32488438 BLAKE2B e1544475dad526e242570918c1bb967a4b713567e71201e08b73c8995743a68396b5951f477bfe8830927c0cdf7e991a25a1978d4aaf88cae3e4218ba57a8818 SHA512 7fdd9ab0b3e81aa89e73be6fa172d723c2b5a67365116a1e0e0ec948067fe4f58e3ad946a0ef4605602c0d803b98e37b2d5692a39a14cf7433d546ada204cbc9
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
# Copyright 2018-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit java-pkg-2 toolchain-funcs
|
||||
|
||||
DESCRIPTION="jbigi library used by net-vpn/i2p"
|
||||
HOMEPAGE="https://geti2p.net"
|
||||
SRC_URI="https://download.i2p2.de/releases/${PV}/i2psource_${PV}.tar.bz2"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/gmp:0=
|
||||
virtual/jdk:1.8
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/i2p-${PV}/core"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-asmfix.patch"
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
local compile_lib
|
||||
compile_lib() {
|
||||
local name="${1}"
|
||||
local file="${2}"
|
||||
shift 2
|
||||
|
||||
"$(tc-getCC)" "${@}" ${CFLAGS} $(java-pkg_get-jni-cflags) \
|
||||
${LDFLAGS} -shared -fPIC "-Wl,-soname,lib${name}.so" \
|
||||
"${file}" -o "lib${name}.so"
|
||||
}
|
||||
|
||||
cd "${S}/c/jbigi/jbigi" || die "unable to cd to jbigi"
|
||||
compile_lib jbigi src/jbigi.c -Iinclude -lgmp ||
|
||||
die "unable to build jbigi"
|
||||
|
||||
if use amd64 || use x86; then
|
||||
cd "${S}/c/jcpuid" || die "unable to cd to jcpuid"
|
||||
compile_lib jcpuid src/jcpuid.c -Iinclude ||
|
||||
die "unable to build jcpuid"
|
||||
fi
|
||||
|
||||
if use test; then
|
||||
cd "${S}/java/src" || die "unable to cd to java/src"
|
||||
ejavac -encoding UTF-8 net/i2p/util/NativeBigInteger.java ||
|
||||
die "unable to build tests"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd "${S}/java/src" || die "unable to cd to java/src"
|
||||
"$(java-config -J)" -Djava.library.path="${S}/c/jbigi/jbigi" net/i2p/util/NativeBigInteger ||
|
||||
die "unable to pass tests"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dolib.so c/jbigi/jbigi/libjbigi.so
|
||||
|
||||
if use amd64 || use x86; then
|
||||
dolib.so c/jcpuid/libjcpuid.so
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user