Diff commons-digester-2.1-r2 with a commons-digester-3.2-r3

/usr/portage/dev-java/commons-digester/commons-digester-3.2-r3.ebuild 2023-10-09 14:52:29.416368348 +0300
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
# Skeleton command:
5
# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri mirror://apache/commons/digester/source/commons-digester-2.1-src.tar.gz --slot 2.1 --keywords "~amd64 ~ppc64 ~x86" --ebuild commons-digester-2.1-r2.ebuild
5
# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri mirror://apache/commons/digester/source/commons-digester3-3.2-src.tar.gz --slot 3.2 --keywords "~amd64 ~ppc64 ~x86" --ebuild commons-digester3.2-r3.ebuild
6 6

  
7 7
EAPI=8
8 8

  
9 9
JAVA_PKG_IUSE="doc source test"
10
MAVEN_ID="commons-digester:commons-digester:2.1"
10
MAVEN_ID="org.apache.commons:commons-digester3:3.2"
11 11
JAVA_TESTING_FRAMEWORKS="junit-4"
12 12

  
13 13
inherit java-pkg-2 java-pkg-simple
14 14

  
15 15
DESCRIPTION="Reads XML configuration files to provide initialization of various Java objects"
16 16
HOMEPAGE="https://commons.apache.org/digester/"
17
SRC_URI="mirror://apache/commons/digester/source/${P}-src.tar.gz"
17
SRC_URI="mirror://apache/commons/digester/source/${PN}3-${PV}-src.tar.gz -> ${P}.tar.gz"
18 18

  
19 19
LICENSE="Apache-2.0"
20
SLOT="2.1"
20
SLOT="3.2"
21 21
KEYWORDS="amd64 ppc64 x86"
22 22

  
23
# 1) atomWithNamespaceParse(org.apache.commons.digester3.xmlrules.SetNamespaceURITestCase)
24
# java.net.UnknownHostException: commons.apache.org
25
PROPERTIES="test_network"
26
RESTRICT="test"
27

  
23 28
# Common dependencies
24 29
# POM: pom.xml
30
# cglib:cglib:2.2.2 -> >=dev-java/cglib-3.3.0:3
25 31
# commons-beanutils:commons-beanutils:1.8.3 -> >=dev-java/commons-beanutils-1.9.4:1.7
26 32
# commons-logging:commons-logging:1.1.1 -> >=dev-java/commons-logging-1.2:0
27 33

  
28 34
CP_DEPEND="
35
	>=dev-java/cglib-3.3.0:3
29 36
	>=dev-java/commons-beanutils-1.9.4:1.7
30 37
	>=dev-java/commons-logging-1.2:0
31 38
"
......
38 45

  
39 46
DOCS=( {LICENSE,NOTICE,RELEASE-NOTES}.txt )
40 47

  
41
S="${WORKDIR}/commons-digester-${PV}-src"
48
S="${WORKDIR}/commons-digester3-${PV}-src"
42 49

  
43 50
JAVA_ENCODING="iso-8859-1"
44 51

  
......
51 58

  
52 59
src_test() {
53 60
	pushd src/test/java || die
54
		# Exclusions according to 212,215 pom.xml
55
		local JAVA_TEST_RUN_ONLY=$(find * \
56
			! -name "Abstract*.java" ! -name "TestBean.java" \
57
			! -name "TestRule.java" ! -name "TestRuleSet.java" \
58
			-name "*TestCase.java" -o -name "*Test.java")
61
		# Exclusions according to 226,229 pom.xml
62
		local JAVA_TEST_RUN_ONLY=$(find * -name "*TestCase.java" ! -name "Abstract*.java" ! -name "TestBean.java" ! -name "TestRule.java" ! -name "TestRuleSet.java")
59 63
		JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}"
60 64
		JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}"
61 65
	popd
62
	java-pkg-simple_src_test
66

  
67
	# Testing with java-17 throws too many test failures
68
	local vm_version="$(java-config -g PROVIDES_VERSION)"
69
	if [[ "${vm_version}" != "17" ]] ; then
70
		java-pkg-simple_src_test
71
	fi
63 72
}
64 73

  
65 74
src_install() {
Thank you!