From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 69B21158086 for ; Mon, 13 Dec 2021 05:10:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 19C7A2BC015; Mon, 13 Dec 2021 05:10:16 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 15784E07C9 for ; Mon, 13 Dec 2021 05:10:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A6AA8343185 for ; Mon, 13 Dec 2021 05:10:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 28F97239 for ; Mon, 13 Dec 2021 05:10:13 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1639372074.7ccd619b8eed9035b5f5436cbe807f4210f37144.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/nativebiginteger/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/nativebiginteger/Manifest net-libs/nativebiginteger/nativebiginteger-1.6.1.ebuild X-VCS-Directories: net-libs/nativebiginteger/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7ccd619b8eed9035b5f5436cbe807f4210f37144 X-VCS-Branch: master Date: Mon, 13 Dec 2021 05:10:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 20a97cf0-27ee-45b5-be3a-c98a85692dc7 X-Archives-Hash: a422cd386a68fed0992cadff5466c5df commit: 7ccd619b8eed9035b5f5436cbe807f4210f37144 Author: Valérian Rousset users noreply github com> AuthorDate: Sun Dec 12 23:55:02 2021 +0000 Commit: Sam James gentoo org> CommitDate: Mon Dec 13 05:07:54 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ccd619b net-libs/nativebiginteger: bump to 1.6.1 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Valérian Rousset users.noreply.github.com> Signed-off-by: Sam James gentoo.org> net-libs/nativebiginteger/Manifest | 1 + .../nativebiginteger/nativebiginteger-1.6.1.ebuild | 71 ++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/net-libs/nativebiginteger/Manifest b/net-libs/nativebiginteger/Manifest index 3e6a65c8c9ed..655e597d5d36 100644 --- a/net-libs/nativebiginteger/Manifest +++ b/net-libs/nativebiginteger/Manifest @@ -1,2 +1,3 @@ DIST i2psource_0.9.48.tar.bz2 33029295 BLAKE2B 8210018610d3dd8272d3c136f32048ede9446c517971be97d6588c6a1a592e9db2261077da3634fa29af28ecdb488427dd1145a731b130b75f41c3c56a8c8779 SHA512 ddfbc8f86bc2fd4012e14732493d30e292af1603d74b1f786a0ecc56a1373301ec9b3fd16fe2e37777f953053291b8efdb5510959fcf1e42d7e5f8ec87d85a8a DIST i2psource_0.9.50.tar.bz2 32409456 BLAKE2B 0c45b48ae6e1957b6c5d828757c70489d260fe15276559e5c366c68c10274b9020b2978bf0674a8628638f41b1e269af0c4d35c20c1f0cee419857c0c803dd82 SHA512 2d6b1d3ed4d32af36d0d3b257dca6fad981e3fa0cd3e45b8227e76e57de092c11ff7c239e879739d330ae809bcf6c71640de32de0c52c54ef8597f0c0e1467ec +DIST i2psource_1.6.1.tar.bz2 33043548 BLAKE2B dd7394ec596b016e76e9d74ee06c5db12bce50a859b0bd1194b0d3dd30cb1c2b9116abf3fdf9847c0b89b71a2a2b553f999fd29901567ddd5e4462c43d25c866 SHA512 c7c26ce10e159bc1f46b55ad2ef9773f24cb647d2ac01ff6acbb08c7020cb488fd1aeb9bb2d50122d2e87e0606f8fe46d2cc4360fa5df62bb1e9af0ce5e9a52a diff --git a/net-libs/nativebiginteger/nativebiginteger-1.6.1.ebuild b/net-libs/nativebiginteger/nativebiginteger-1.6.1.ebuild new file mode 100644 index 000000000000..f8721a066fc9 --- /dev/null +++ b/net-libs/nativebiginteger/nativebiginteger-1.6.1.ebuild @@ -0,0 +1,71 @@ +# Copyright 2018-2021 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://files.i2p-projekt.de/${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 +}