Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/bcprov/
Date: Mon, 06 Jun 2022 07:42:34
Message-Id: 1654501344.41f080c32bdb062b74f98ad388285f013e864d34.flow@gentoo
1 commit: 41f080c32bdb062b74f98ad388285f013e864d34
2 Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
3 AuthorDate: Sun Jun 5 12:45:11 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 6 07:42:24 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41f080c3
7
8 dev-java/bcprov: drop 1.71
9
10 Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
11 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
12
13 dev-java/bcprov/bcprov-1.71.ebuild | 110 -------------------------------------
14 1 file changed, 110 deletions(-)
15
16 diff --git a/dev-java/bcprov/bcprov-1.71.ebuild b/dev-java/bcprov/bcprov-1.71.ebuild
17 deleted file mode 100644
18 index 585291fc3295..000000000000
19 --- a/dev-java/bcprov/bcprov-1.71.ebuild
20 +++ /dev/null
21 @@ -1,110 +0,0 @@
22 -# Copyright 1999-2022 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=8
26 -
27 -JAVA_PKG_IUSE="doc source test"
28 -MAVEN_ID="org.bouncycastle:bcprov-jdk18on:1.71"
29 -JAVA_TESTING_FRAMEWORKS="junit-4"
30 -
31 -inherit java-pkg-2 java-pkg-simple check-reqs
32 -
33 -DESCRIPTION="Java cryptography APIs"
34 -HOMEPAGE="https://www.bouncycastle.org/java.html"
35 -SRC_URI="https://github.com/bcgit/bc-java/archive/r${PV/./rv}.tar.gz -> bc-java-r${PV/./rv}.tar.gz"
36 -
37 -LICENSE="BSD"
38 -SLOT="0"
39 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
40 -
41 -DEPEND=">=virtual/jdk-11:*"
42 -RDEPEND=">=virtual/jre-1.8:*"
43 -BDEPEND="app-arch/zip"
44 -
45 -DOCS=( ../{README,SECURITY}.md )
46 -HTML_DOCS=( ../{CONTRIBUTORS,index}.html )
47 -
48 -S="${WORKDIR}/bc-java-r${PV/./rv}/prov"
49 -
50 -JAVA_SRC_DIR=(
51 - "src/main/java"
52 - "../core/src/main/java" # package org.bouncycastle.asn1 does not exist
53 - "src/main/jdk1.9" # https://bugs.gentoo.org/797634
54 -)
55 -JAVA_RESOURCE_DIRS="src/main/resources"
56 -
57 -JAVA_TEST_GENTOO_CLASSPATH="junit-4"
58 -JAVA_TEST_SRC_DIR=( "src/test/java" "../core/src/test/java" )
59 -JAVA_TEST_RESOURCE_DIRS=( "src/test/resources" "../core/src/test/resources" )
60 -
61 -JAVA_TEST_EXTRA_ARGS="-Dbc.test.data.home=${S}/../core/src/test/data"
62 -
63 -# Depending on vm_version 11 or 17 there are 2 different errrors
64 -# 1) testJCE(org.bouncycastle.jce.provider.test.SimpleTestTest)
65 -# junit.framework.AssertionFailedError: index 29 KeyStore: Exception: java.security.KeyStoreException: BKS-V1 not found
66 -# at junit.framework.Assert.fail(Assert.java:57)
67 -# at junit.framework.TestCase.fail(TestCase.java:223)
68 -# at org.bouncycastle.jce.provider.test.SimpleTestTest.testJCE(SimpleTestTest.java:26)
69 -#
70 -# 1) testJCE(org.bouncycastle.jce.provider.test.SimpleTestTest)
71 -# junit.framework.AssertionFailedError: index 9 BlockCipher: IDEA/PGPCFB/NoPadding failed encryption - java.io.IOException: javax.crypto.ShortBufferException: output buffer too short for input.
72 -# at junit.framework.Assert.fail(Assert.java:57)
73 -# at junit.framework.TestCase.fail(TestCase.java:223)
74 -# at org.bouncycastle.jce.provider.test.SimpleTestTest.testJCE(SimpleTestTest.java:26)
75 -JAVA_TEST_RUN_ONLY=(
76 - "org.bouncycastle.asn1.test.AllTests"
77 - "org.bouncycastle.crypto.agreement.test.AllTests"
78 - "org.bouncycastle.crypto.ec.test.AllTests"
79 - "org.bouncycastle.crypto.prng.test.AllTests"
80 - "org.bouncycastle.crypto.test.AllTests"
81 - "org.bouncycastle.jcajce.provider.test.AllTests"
82 -# "org.bouncycastle.jce.provider.test.AllTests" # bug #827146
83 - "org.bouncycastle.jce.provider.test.nist.AllTests"
84 - "org.bouncycastle.jce.provider.test.rsa3.AllTests"
85 - "org.bouncycastle.pqc.crypto.lms.AllTests"
86 - "org.bouncycastle.pqc.crypto.test.AllTests"
87 - "org.bouncycastle.pqc.jcajce.provider.test.AllTests"
88 - "org.bouncycastle.util.encoders.test.AllTests"
89 -)
90 -
91 -check_env() {
92 - if use test; then
93 - # this is needed only for tests
94 - CHECKREQS_MEMORY="2048M"
95 - check-reqs_pkg_pretend
96 - fi
97 -}
98 -
99 -pkg_pretend() {
100 - check_env
101 -}
102 -
103 -pkg_setup() {
104 - check_env
105 -}
106 -
107 -src_prepare() {
108 - default
109 - java-pkg_clean ..
110 -}
111 -
112 -src_test() {
113 - JAVA_TEST_EXTRA_ARGS+=" -Xmx${CHECKREQS_MEMORY}"
114 - java-pkg-simple_src_test
115 -}
116 -
117 -src_install() {
118 - default
119 - einstalldocs
120 - docinto html
121 - dodoc -r ../docs
122 -
123 - # These files are not present in the upstream jar but are used for tests
124 - # Removing them from the jar file after testing
125 - zip --delete "${S}"/bcprov.jar \
126 - "org/bouncycastle/pqc/crypto/ntru/*" \
127 - "org/bouncycastle/pqc/math/ntru/*" \
128 - || die "cleaning after tests failed"
129 -
130 - java-pkg-simple_src_install
131 -}