diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-19 17:09:22 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-19 17:09:22 +0100 |
commit | 590c04803f88a968b4a750c0f420eb314e1fe968 (patch) | |
tree | a6d2f2550cb2a6ad9254aa1467aef77488ad32ad /dev-java/bcpkix | |
parent | 66d92fc8569d87a09ac014780528dcad2a12b6c6 (diff) |
gentoo auto-resync : 19:09:2023 - 17:09:22
Diffstat (limited to 'dev-java/bcpkix')
-rw-r--r-- | dev-java/bcpkix/Manifest | 5 | ||||
-rw-r--r-- | dev-java/bcpkix/bcpkix-1.76.ebuild | 102 | ||||
-rw-r--r-- | dev-java/bcpkix/metadata.xml | 3 |
3 files changed, 109 insertions, 1 deletions
diff --git a/dev-java/bcpkix/Manifest b/dev-java/bcpkix/Manifest index 66f084aaa6cc..85e1d9b55ef1 100644 --- a/dev-java/bcpkix/Manifest +++ b/dev-java/bcpkix/Manifest @@ -1,3 +1,6 @@ DIST bc-java-r1rv72.tar.gz 380374879 BLAKE2B 53c593c1d97e9ee56388479dce7386d254f74a8bab9612e802ebe963df84d1a397fe0c5a7a0d0db2ac2cd3252ae43e79c67b9d3ba1b5ffc20cc8727c7e1a6994 SHA512 dbfdd9e4f30ab713584830a0fd0d7e4f89904366bf4953a9e722656cc4cd92c9d29238649efa7b4cdab64e2c08f4b3b3c96667d1ade569ade5a5a2c9ad9d5b5c +DIST bc-java-r1rv76.tar.gz 31256952 BLAKE2B b791ef3da7189bc6990935aaad7c331c1bf6a45af0cdfc72056ae0cf1723e57ce15a76060251f6de630b0729ffe22ba4718255c103a8ab66db61f2e46f1201c8 SHA512 7d408821408bbabd209d9507b061f3113822878c12b12a040c829f5a8c6bdf8450719aef60c423025824bec1fcb6c63d8478d1f84f3cb1d692fdbacde6d9ce6e +DIST bc-test-data-r1rv76.tar.gz 2074813467 BLAKE2B 3d1bd122a907e4c46f3c8b84c4d27b3327b6c6deaded623e5bc9842d00c62bdeb521b1be3bdd495ffa10f2d1facc73d41176829eda4511827d24eb0f62fccef9 SHA512 3de068667ce9572530fa6422bdbc4455d7f1edd85e12166e7a266a447ed0ffab50c33cc5a99e668caf79156f87d86512a5507534469d3e6f479b908d4d2a1fb7 EBUILD bcpkix-1.72.ebuild 2135 BLAKE2B 3d99481fb06282e3653bf69003f97a6b53afe38615293195bb8d6d274a85f982b88d58843baae3b874168b856383d705e4816b56773d0c31f29f7b4bd35e9d82 SHA512 f61a5253d2541b0270a6f9b6b9cc3e4c10936bb2170c1f3f8e6ddec95740c508916da1ff821b794780b18e1e5d5ab7b413794018e0fab9c927c2339200edd006 -MISC metadata.xml 546 BLAKE2B 3e07f58b65f0148062a3f1b20c06d71ce1925cf7b91d167a07d21028f541cfbc69b8a78e914ea6b86598afb3f3ae7f841defa6e1b691fac5293f2cb6746c1f0c SHA512 137f6f4d3d26d90109102fa49e37a42ea3628104adaf65e0b93ca652abd1aa6392e3f76dbf342aa70706b734d8b7f262f2b826e3ce33ae35fa60c40e548bf89b +EBUILD bcpkix-1.76.ebuild 2504 BLAKE2B 04de6d15c5daee82b45055b5784fc409ba3c9011759729bca9915be1f241064eae907ca19c5ad81970c23b964617bf8e54493b84f66e7fb800d255dd08684195 SHA512 2e5381e5fd1f06697e83d3234abdc8446d246d0d63d178e8f1de041f80655b988bf41d41a6fc8c97d18d238056af550b73743421be45788cb72bcb98e7e137cf +MISC metadata.xml 624 BLAKE2B cda1cc55ddf61bb2da753103b4cf95c8a7ab69d0f452195ff07439c7d0929c4ccbcd5fa55ca4dd5f66d3ddb6b1a9c3967fd0fa5fb9f494044f774435b98d49dc SHA512 714978225f45f67740cca5bcacac5b7089ae12bd074ef3d1392f9c48fc680e2db344f3ca70b9f1b83d16d9c85ea72f9869e4cf0e750889fc0164fa5c504d804b diff --git a/dev-java/bcpkix/bcpkix-1.76.ebuild b/dev-java/bcpkix/bcpkix-1.76.ebuild new file mode 100644 index 000000000000..04fb2bf70b92 --- /dev/null +++ b/dev-java/bcpkix/bcpkix-1.76.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.bouncycastle:bcpkix-jdk18on:1.76" +JAVA_TESTING_FRAMEWORKS="junit-4" + +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" +SRC_URI="https://github.com/bcgit/bc-java/archive/r${PV/./rv}.tar.gz -> bc-java-r${PV/./rv}.tar.gz + test? ( https://github.com/bcgit/bc-test-data/archive/r${PV/./rv}.tar.gz -> bc-test-data-r${PV/./rv}.tar.gz )" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +# 1) testSANMismatchIP(org.bouncycastle.est.test.TestHostNameAuthorizer) +# org.bouncycastle.est.ESTException: localhost.me: Temporary failure in name resolution HTTP Status Code: 0 +PROPERTIES="test_network" +RESTRICT="test" + +CDEPEND=" + ~dev-java/bcprov-${PV}:0 + ~dev-java/bcutil-${PV}:0 + " +DEPEND="${CDEPEND} + >=virtual/jdk-11:*" +RDEPEND="${CDEPEND} + >=virtual/jre-1.8:*" + +DOCS=( ../{README,SECURITY}.md ) +HTML_DOCS=( ../{CONTRIBUTORS,index}.html ) + +S="${WORKDIR}/bc-java-r${PV/./rv}/pkix" + +JAVA_AUTOMATIC_MODULE_NAME="org.bouncycastle.pkix" +JAVA_GENTOO_CLASSPATH="bcprov,bcutil" +JAVA_SRC_DIR=( + "src/main/java" + "src/main/jdk1.9" +) + +JAVA_TEST_EXTRA_ARGS="-Dbc.test.data.home=${S}/../core/src/test/data" +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_RESOURCE_DIRS="src/test/resources" +JAVA_TEST_SRC_DIR="src/test/java" + +# https://bugs.gentoo.org/823347 +check_env() { + if use test; then + # this is needed only for tests + CHECKREQS_MEMORY="2048M" + check-reqs_pkg_pretend + fi +} + +# https://bugs.gentoo.org/823347 +pkg_pretend() { + check_env +} + +# https://bugs.gentoo.org/823347 +pkg_setup() { + check_env + java-pkg-2_pkg_setup +} + +src_unpack() { + unpack bc-java-r${PV/./rv}.tar.gz + use test && unpack bc-test-data-r${PV/./rv}.tar.gz +} + +src_prepare() { + java-pkg-2_src_prepare + java-pkg_clean .. +} + +# https://bugs.gentoo.org/823347 +src_test() { + mv ../../bc-test-data-r${PV/./rv} bc-test-data || die "cannot move bc-test-data" + + JAVA_TEST_EXTRA_ARGS+=" -Xmx${CHECKREQS_MEMORY}" + pushd src/test/java || die + local JAVA_TEST_RUN_ONLY=$(find * \ + -name "AllTests.java" \ + ) + popd + einfo "${JAVA_TEST_RUN_ONLY}" + JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}" + JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}" + java-pkg-simple_src_test +} + +src_install() { + docinto html + dodoc -r ../docs + java-pkg-simple_src_install +} diff --git a/dev-java/bcpkix/metadata.xml b/dev-java/bcpkix/metadata.xml index 40c8ee28be10..3b63dd7f15eb 100644 --- a/dev-java/bcpkix/metadata.xml +++ b/dev-java/bcpkix/metadata.xml @@ -5,6 +5,9 @@ <email>java@gentoo.org</email> <name>Java</name> </maintainer> + <upstream> + <remote-id type="github">bcgit/bc-java</remote-id> + </upstream> <longdescription> The Bouncy Castle Java APIs for CMS, PKCS, EAC, TSP, CMP, CRMF, OCSP, and certificate generation. This jar contains APIs for JDK 1.8 and up. The APIs can be used in conjunction with a JCE/JCA provider such as the one provided with the Bouncy Castle Cryptography APIs. </longdescription> |