diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2021-06-22 14:41:52 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2021-07-09 15:02:02 +0200 |
commit | dfe4c8498cf254cfdd4833fe2640e9b16afea15a (patch) | |
tree | 4b8555aaaec2bbede754401ee11d932ecf399fed /dev-java | |
parent | dev-java/jakarta-activation: cleanup + comments (diff) | |
download | gentoo-dfe4c8498cf254cfdd4833fe2640e9b16afea15a.tar.gz gentoo-dfe4c8498cf254cfdd4833fe2640e9b16afea15a.tar.bz2 gentoo-dfe4c8498cf254cfdd4833fe2640e9b16afea15a.zip |
dev-java/bcprov: bump to 1.69
Bug: https://bugs.gentoo.org/797634
Bug: https://bugs.gentoo.org/760729
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/21479/commits/0357e38e7a6ac560da6e6de9c29bc40c3b5cd7eb
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/bcprov/Manifest | 1 | ||||
-rw-r--r-- | dev-java/bcprov/bcprov-1.69.ebuild | 78 | ||||
-rw-r--r-- | dev-java/bcprov/metadata.xml | 3 |
3 files changed, 82 insertions, 0 deletions
diff --git a/dev-java/bcprov/Manifest b/dev-java/bcprov/Manifest index 6b24428bb3d4..373ed403e12b 100644 --- a/dev-java/bcprov/Manifest +++ b/dev-java/bcprov/Manifest @@ -1,3 +1,4 @@ +DIST bc-java-r1rv69.tar.gz 56587177 BLAKE2B be5321f48911840de70d3201c0436cf4147a25999abb605dc4c176ea9292796ca25633635d66dccab685a4bb162258c4495ccc764782119a0750ec1b7456a7db SHA512 5224f424faf549e8e3f2db1134e74647b09bebb654ed23bb0bcd493f065fdb3f2b4f2815be0137ebcc9d62b25a6725b7a26b76d55eb3ad014ad0ce92961126de DIST bcprov-jdk15on-150.tar.gz 4629743 BLAKE2B 7ab18e83f90db38b9af9530246806b4d413718531ce4b34b7aefa7189e28ade8a2afd5d3b3dc25c8cb2d5ef23a8c7f8157ac947ae7d0a46356b00ea7dd6d5f76 SHA512 95400c338a65cbb7d1e80c776de41d3d372b4237aee91526a06774c3d4beb735dcfb4c1ed182a12f2ccac8204b9c546863d79eb99723394d48c415fa32b6ee0e DIST bcprov-jdk15on-152.tar.gz 6334971 BLAKE2B 5ef7db891c29147ac48689a1f15e907f4a91d15ac63e8f6a031847d92ddad22cef3dff791d4036b74cd39550e9b48b1926033449beca240db2d7ac78510c22c7 SHA512 df769d2647c1c0b535b1f6922df3f02ed7e13c941f8d954256fddb2ff31d5682924fedf2f2908bc09ebd20058413f40a4c2d62190b63542aa7840b860aeab07c DIST bcprov-jdk15on-168.tar.gz 9716574 BLAKE2B 54c4fec3d614bfe6449a10789bf7fd8d01d8d03f0a133dfd01bb7a30d3545d4dda3bbd2b2543a3827ac8988d9c9000cf7c0ebe7d5d462c6f9145c467d3f53ddb SHA512 3cdb6e486f6d1afb8c98c08809d142430191feeb757608f4abf27640fc706decf3975e3bf3f36c2a00bbc77ad2564ff9652bdc5e13662638c66a87bd250302db diff --git a/dev-java/bcprov/bcprov-1.69.ebuild b/dev-java/bcprov/bcprov-1.69.ebuild new file mode 100644 index 000000000000..c0ba00351a41 --- /dev/null +++ b/dev-java/bcprov/bcprov-1.69.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.bouncycastle:bcprov-jdk15on:1.69" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Java cryptography APIs" +HOMEPAGE="https://www.bouncycastle.org/java.html" +SRC_URI="https://github.com/bcgit/bc-java/archive/refs/tags/r${PV/./rv}.tar.gz -> bc-java-r${PV/./rv}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +DEPEND=">=virtual/jdk-1.8:*" +RDEPEND=">=virtual/jre-1.8:*" +BDEPEND="app-arch/zip" + +DOCS=( ../{README,SECURITY}.md ) +HTML_DOCS=( ../{CONTRIBUTORS,index,LICENSE}.html ) + +S="${WORKDIR}/bc-java-r${PV/./rv}/prov" + +JAVA_SRC_DIR=( + "src/main/java" + "../core/src/main/java" # package org.bouncycastle.asn1 does not exist + "src/main/jdk1.9" # https://bugs.gentoo.org/797634 +) +JAVA_RESOURCE_DIRS="src/main/resources" + +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_SRC_DIR=( "src/test/java" "../core/src/test/java" ) +JAVA_TEST_RESOURCE_DIRS=( "src/test/resources" "../core/src/test/resources" ) + +JAVA_TEST_EXTRA_ARGS="-Dbc.test.data.home=${S}/../core/src/test/data" + +JAVA_TEST_RUN_ONLY=( + "org.bouncycastle.asn1.test.AllTests" # OK (18 tests) + "org.bouncycastle.crypto.agreement.test.AllTests" # OK (14 tests) + "org.bouncycastle.crypto.ec.test.AllTests" # OK (1 test) + "org.bouncycastle.crypto.prng.test.AllTests" # OK (1 test) + "org.bouncycastle.crypto.test.AllTests" # Time: 126.95 OK (6 tests) + "org.bouncycastle.jcajce.provider.test.AllTests" # OK (29 tests) + "org.bouncycastle.jce.provider.test.AllTests" # OK (1 test) + "org.bouncycastle.jce.provider.test.nist.AllTests" # OK (283 tests) + "org.bouncycastle.jce.provider.test.rsa3.AllTests" # OK (11 tests) + "org.bouncycastle.pqc.crypto.lms.AllTests" # OK (17 tests) + "org.bouncycastle.pqc.crypto.test.AllTests" # OK (81 tests) + "org.bouncycastle.pqc.jcajce.provider.test.AllTests" # OK (89 tests) + "org.bouncycastle.util.encoders.test.AllTests" # OK (15 tests) +) + +src_prepare() { + default + cd ../ || die + java-pkg_clean +} + +src_install() { + default + einstalldocs + docinto html + dodoc -r ../docs + + # These files are not present in the upstream jar but are used for tests + # Removing them from the jar file after testing + zip --delete "${S}"/bcprov.jar \ + "org/bouncycastle/pqc/crypto/ntru/*" \ + "org/bouncycastle/pqc/math/ntru/*" \ + || die "cleaning after tests failed" + + java-pkg-simple_src_install +} diff --git a/dev-java/bcprov/metadata.xml b/dev-java/bcprov/metadata.xml index 952a4b9b605c..956cd381f68c 100644 --- a/dev-java/bcprov/metadata.xml +++ b/dev-java/bcprov/metadata.xml @@ -5,4 +5,7 @@ <email>java@gentoo.org</email> <name>Java</name> </maintainer> + <longdescription> + "The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms. This jar contains JCE provider and lightweight API for the Bouncy Castle Cryptography APIs for JDK 1.5 to JDK 1.8." + </longdescription> </pkgmetadata> |