diff options
Diffstat (limited to 'dev-java/bcpkix')
-rw-r--r-- | dev-java/bcpkix/bcpkix-1.69.ebuild | 27 |
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 |