From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/nativebiginteger/
Date: Mon, 24 Sep 2018 15:22:10 +0000 (UTC) [thread overview]
Message-ID: <1537802518.37863502ea06730388b4ed4f43f14612bbcd3ed8.monsieurp@gentoo> (raw)
commit: 37863502ea06730388b4ed4f43f14612bbcd3ed8
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 24 15:20:49 2018 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Mon Sep 24 15:21:58 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37863502
net-libs/nativebiginteger: improve ebuild.
* fix SRC_URI.
* set up JVM properly and export JAVA_HOME when enabling tests.
* minor comestic changes here and there.
Closes: https://bugs.gentoo.org/665440
Closes: https://bugs.gentoo.org/665442
Package-Manager: Portage-2.3.40, Repoman-2.3.9
.../nativebiginteger-0.9.36.ebuild | 31 +++++++++++++---------
1 file changed, 19 insertions(+), 12 deletions(-)
diff --git a/net-libs/nativebiginteger/nativebiginteger-0.9.36.ebuild b/net-libs/nativebiginteger/nativebiginteger-0.9.36.ebuild
index d327fc13809..6e2963035dd 100644
--- a/net-libs/nativebiginteger/nativebiginteger-0.9.36.ebuild
+++ b/net-libs/nativebiginteger/nativebiginteger-0.9.36.ebuild
@@ -7,7 +7,7 @@ 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"
+SRC_URI="https://download.i2p2.de/releases/${PV}/i2psource_${PV}.tar.bz2"
LICENSE="|| ( public-domain BSD MIT )"
SLOT="0"
@@ -15,18 +15,28 @@ KEYWORDS="~amd64 ~x86"
IUSE="test"
-RDEPEND="dev-libs/gmp"
+RDEPEND="dev-libs/gmp:0="
DEPEND="
${RDEPEND}
- test? ( >=virtual/jdk-1.7 )
-"
+ test? ( >=virtual/jdk-1.7 )"
-S=${WORKDIR}/i2p-${PV}/core
+S="${WORKDIR}/i2p-${PV}/core"
PATCHES=(
"${FILESDIR}/${P}"-asmfix.patch
)
+QA_PRESTRIPPED="usr/lib64/libjcpuid.so"
+
+QA_SONAME="usr/lib64/libjcpuid.so"
+
+pkg_setup() {
+ if use test; then
+ java-pkg-opt-2_pkg_setup
+ export JAVA_HOME=$(java-config -O)
+ fi
+}
+
src_compile() {
tc-export CC
@@ -34,15 +44,13 @@ src_compile() {
../../build_jbigi.sh dynamic ||
die 'unable to build jbigi'
- if use test
- then
+ 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
+ if ( use amd64 || use x86 ); then
cd "${S}/c/jcpuid" &&
./build.sh ||
die 'unable to build jcpuid'
@@ -51,15 +59,14 @@ src_compile() {
src_test() {
cd java/src &&
- java -Djava.library.path="${S}/c/jbigi/jbigi/src" net/i2p/util/NativeBigInteger ||
+ $(java-config -J) -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
+ if ( use amd64 || use x86 ); then
newlib.so \
"c/jcpuid/lib/freenet/support/CPUInformation/libjcpuid-$(tc-arch)-linux.so" \
libjcpuid.so
next reply other threads:[~2018-09-24 15:22 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-24 15:22 Patrice Clement [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-05-20 9:28 [gentoo-commits] repo/gentoo:master commit in: net-libs/nativebiginteger/ Sam James
2023-05-20 9:28 Sam James
2023-05-20 9:28 Sam James
2023-04-28 6:26 Miroslav Šulc
2022-08-05 6:57 Arthur Zamarin
2022-05-24 14:42 Florian Schmaus
2022-05-24 14:42 Florian Schmaus
2022-03-12 12:01 Arthur Zamarin
2022-03-11 13:30 Joonas Niilola
2021-12-13 5:10 Sam James
2021-12-13 5:10 Sam James
2021-07-16 1:34 Sam James
2021-07-16 1:34 Sam James
2020-12-11 7:58 Joonas Niilola
2020-12-11 7:58 Joonas Niilola
2020-09-13 0:44 Sam James
2020-09-13 0:44 Sam James
2020-03-21 16:13 Joonas Niilola
2020-03-21 16:13 Joonas Niilola
2019-11-13 6:03 Joonas Niilola
2019-11-13 6:03 Joonas Niilola
2018-10-21 17:45 Michał Górny
2018-10-21 17:45 Michał Górny
2018-09-26 23:01 Patrice Clement
2018-02-26 14:25 Jason Zaman
2018-02-25 18:21 Thomas Deutschmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1537802518.37863502ea06730388b4ed4f43f14612bbcd3ed8.monsieurp@gentoo \
--to=monsieurp@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox