summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2021-11-23 13:27:55 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2021-11-24 08:33:06 +0100
commit37b1e49bc305da9515dee440a969b74d90ab356c (patch)
tree29f5c88339e326d86277763e561183177263984f
parentdev-ruby/abstract: cleanup (diff)
downloadgentoo-37b1e49bc305da9515dee440a969b74d90ab356c.tar.gz
gentoo-37b1e49bc305da9515dee440a969b74d90ab356c.tar.bz2
gentoo-37b1e49bc305da9515dee440a969b74d90ab356c.zip
dev-java/bcpkix: bug https://bugs.gentoo.org/823347
Closes: https://bugs.gentoo.org/823347 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/23047 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
-rw-r--r--dev-java/bcpkix/bcpkix-1.69.ebuild27
1 files changed, 26 insertions, 1 deletions
diff --git a/dev-java/bcpkix/bcpkix-1.69.ebuild b/dev-java/bcpkix/bcpkix-1.69.ebuild
index 16dc9b18327a..075fbc2e2432 100644
--- a/dev-java/bcpkix/bcpkix-1.69.ebuild
+++ b/dev-java/bcpkix/bcpkix-1.69.ebuild
@@ -7,7 +7,7 @@ JAVA_PKG_IUSE="doc source test"
MAVEN_ID="org.bouncycastle:bcpkix-jdk15on:1.69"
JAVA_TESTING_FRAMEWORKS="junit-4"
-inherit java-pkg-2 java-pkg-simple
+inherit java-pkg-2 java-pkg-simple check-reqs
DESCRIPTION="Java APIs for CMS, PKCS, EAC, TSP, CMP, CRMF, OCSP, and certificate generation"
HOMEPAGE="https://www.bouncycastle.org/java.html"
@@ -62,12 +62,37 @@ JAVA_TEST_RUN_ONLY=(
"org.bouncycastle.tsp.test.AllTests"
)
+# https://bugs.gentoo.org/823347
+check_env() {
+ if use test; then
+ # this is needed only for tests
+ CHECKREQS_MEMORY="1200M"
+ check-reqs_pkg_pretend
+ fi
+}
+
+# https://bugs.gentoo.org/823347
+pkg_pretend() {
+ check_env
+}
+
+# https://bugs.gentoo.org/823347
+pkg_setup() {
+ check_env
+}
+
src_prepare() {
default
cd ../ || die
java-pkg_clean
}
+# https://bugs.gentoo.org/823347
+src_test() {
+ JAVA_TEST_EXTRA_ARGS+=" -Xmx${CHECKREQS_MEMORY}"
+ java-pkg-simple_src_test
+}
+
src_install() {
default
einstalldocs