Сравнение bcprov-1.72 с bcprov-1.74

/usr/portage/dev-java/bcprov/bcprov-1.74.ebuild 2023-10-09 14:52:29.412368348 +0300
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:bcprov-jdk18on:1.72"
7
MAVEN_ID="org.bouncycastle:bcprov-jdk18on:1.74"
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 cryptography APIs"
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
SLOT="0"
18
KEYWORDS="amd64 ~arm arm64 ppc64 x86"
18
SLOT="1.74"
19
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
19 20

  
20 21
DEPEND=">=virtual/jdk-11:*"
21 22
RDEPEND=">=virtual/jre-1.8:*"
......
43 44
	java-pkg-2_pkg_setup
44 45
}
45 46

  
47
src_unpack() {
48
	unpack bc-java-r${PV/./rv}.tar.gz
49
	use test && unpack bc-test-data-r${PV/./rv}.tar.gz
50
}
51

  
46 52
src_prepare() {
47
	default
48
	java-pkg_clean ..
49
	# 3 unsolved test failures # 873442
50
	rm -r core/src/test/java/org/bouncycastle/pqc/legacy/math/ntru || die
53
	java-pkg-2_src_prepare
54
	# TBD: unboundid-ldapsdk should be packaged from source.
55
	java-pkg_clean ! -path "./libs/unboundid-ldapsdk-6.0.8.jar"
51 56
}
52 57

  
53 58
src_compile() {
......
64 69
}
65 70

  
66 71
src_test() {
72
	mv ../bc-test-data-r${PV/./rv} bc-test-data || die "cannot move bc-test-data"
73

  
67 74
	JAVA_TEST_EXTRA_ARGS="-Dbc.test.data.home=${S}/core/src/test/data"
68 75
	JAVA_TEST_EXTRA_ARGS+=" -Xmx${CHECKREQS_MEMORY}"
69 76
	JAVA_TEST_GENTOO_CLASSPATH="junit-4"
......
80 87
	java-pkg-simple_src_test
81 88

  
82 89
	einfo "Testing bcprov"
83
	JAVA_GENTOO_CLASSPATH_EXTRA=":core.jar" # other value needed than for compilation
90
	JAVA_GENTOO_CLASSPATH_EXTRA=":core.jar:libs/unboundid-ldapsdk-6.0.8.jar"
84 91
	JAVA_TEST_RESOURCE_DIRS="prov/src/test/resources"
85 92
	JAVA_TEST_SRC_DIR="prov/src/test/java"
86 93
	pushd prov/src/test/java || die
Спасибо!