1 |
|
# Copyright 1999-2022 Gentoo Authors
|
|
1 |
# Copyright 1999-2023 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
6 |
JAVA_PKG_IUSE="doc source test"
|
7 |
|
MAVEN_ID="org.bouncycastle:bcpkix-jdk18on:1.72"
|
|
7 |
MAVEN_ID="org.bouncycastle:bcpkix-jdk18on:1.76"
|
8 |
8 |
JAVA_TESTING_FRAMEWORKS="junit-4"
|
9 |
9 |
|
10 |
10 |
inherit java-pkg-2 java-pkg-simple check-reqs
|
11 |
11 |
|
12 |
12 |
DESCRIPTION="Java APIs for CMS, PKCS, EAC, TSP, CMP, CRMF, OCSP, and certificate generation"
|
13 |
13 |
HOMEPAGE="https://www.bouncycastle.org/java.html"
|
14 |
|
SRC_URI="https://github.com/bcgit/bc-java/archive/r${PV/./rv}.tar.gz -> bc-java-r${PV/./rv}.tar.gz"
|
|
14 |
SRC_URI="https://github.com/bcgit/bc-java/archive/r${PV/./rv}.tar.gz -> bc-java-r${PV/./rv}.tar.gz
|
|
15 |
test? ( https://github.com/bcgit/bc-test-data/archive/r${PV/./rv}.tar.gz -> bc-test-data-r${PV/./rv}.tar.gz )"
|
15 |
16 |
|
16 |
17 |
LICENSE="BSD"
|
17 |
18 |
SLOT="0"
|
18 |
|
KEYWORDS="amd64 arm64 ppc64 x86"
|
|
19 |
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
19 |
20 |
|
20 |
21 |
# 1) testSANMismatchIP(org.bouncycastle.est.test.TestHostNameAuthorizer)
|
21 |
22 |
# org.bouncycastle.est.ESTException: localhost.me: Temporary failure in name resolution HTTP Status Code: 0
|
... | ... | |
36 |
37 |
|
37 |
38 |
S="${WORKDIR}/bc-java-r${PV/./rv}/pkix"
|
38 |
39 |
|
|
40 |
JAVA_AUTOMATIC_MODULE_NAME="org.bouncycastle.pkix"
|
39 |
41 |
JAVA_GENTOO_CLASSPATH="bcprov,bcutil"
|
40 |
42 |
JAVA_SRC_DIR=(
|
41 |
43 |
"src/main/java"
|
... | ... | |
67 |
69 |
java-pkg-2_pkg_setup
|
68 |
70 |
}
|
69 |
71 |
|
|
72 |
src_unpack() {
|
|
73 |
unpack bc-java-r${PV/./rv}.tar.gz
|
|
74 |
use test && unpack bc-test-data-r${PV/./rv}.tar.gz
|
|
75 |
}
|
|
76 |
|
70 |
77 |
src_prepare() {
|
71 |
|
default
|
|
78 |
java-pkg-2_src_prepare
|
72 |
79 |
java-pkg_clean ..
|
73 |
80 |
}
|
74 |
81 |
|
75 |
82 |
# https://bugs.gentoo.org/823347
|
76 |
83 |
src_test() {
|
|
84 |
mv ../../bc-test-data-r${PV/./rv} bc-test-data || die "cannot move bc-test-data"
|
|
85 |
|
77 |
86 |
JAVA_TEST_EXTRA_ARGS+=" -Xmx${CHECKREQS_MEMORY}"
|
78 |
87 |
pushd src/test/java || die
|
79 |
88 |
local JAVA_TEST_RUN_ONLY=$(find * \
|