commit: 37b1e49bc305da9515dee440a969b74d90ab356c Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> AuthorDate: Tue Nov 23 12:27:55 2021 +0000 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> CommitDate: Wed Nov 24 07:33:06 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37b1e49b
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 <AT> pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/23047 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> dev-java/bcpkix/bcpkix-1.69.ebuild | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) 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
