diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2022-01-16 17:27:46 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2022-01-18 10:17:13 +0100 |
commit | 0180df609cd64910a5709e6bce37b2d6d9c577a8 (patch) | |
tree | 0af1957e9f27168087177083e1c095c629c5e8b4 /dev-java/commons-digester | |
parent | media-sound/mixxx: Bump to version 2.3.1 (diff) | |
download | gentoo-0180df609cd64910a5709e6bce37b2d6d9c577a8.tar.gz gentoo-0180df609cd64910a5709e6bce37b2d6d9c577a8.tar.bz2 gentoo-0180df609cd64910a5709e6bce37b2d6d9c577a8.zip |
dev-java/commons-digester: EAPI 8, switch to java-pkg-simple.eclass
Closes: https://bugs.gentoo.org/831314
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/23829
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/commons-digester')
-rw-r--r-- | dev-java/commons-digester/Manifest | 1 | ||||
-rw-r--r-- | dev-java/commons-digester/commons-digester-3.2-r3.ebuild | 77 | ||||
-rw-r--r-- | dev-java/commons-digester/metadata.xml | 11 |
3 files changed, 85 insertions, 4 deletions
diff --git a/dev-java/commons-digester/Manifest b/dev-java/commons-digester/Manifest index 4e92a56379d8..494d592f3dbf 100644 --- a/dev-java/commons-digester/Manifest +++ b/dev-java/commons-digester/Manifest @@ -1,3 +1,4 @@ DIST commons-digester-1.8.1-src.tar.gz 303266 BLAKE2B 618885c812a9bf40c080bc5736b8b4be4e18fe4d2f732d2a44d39369ae6cf3beb3af0cf500da3d103d7aa8c18b41b84d06907b6fc90f7f10d30840d6cfc83012 SHA512 0a39069662b4792d4856b79b5cedc2b44cb70303a19045d21c233d45ae4dde9e80662bd242a381e759d7cdb5adaf0b9fa6206bb8397b53348fa9eac12e9a4e96 DIST commons-digester-2.1-src.tar.gz 304060 BLAKE2B 2360f6f8ab77b20ad6b4058e0437aa792bf3886ddec2e09b6db259bc142c070965ce066ef224e92fb91614075631a2af1358ae4b4fc065fe9118e1d2559bb9bb SHA512 6bdb63431ed1e17f5e8ba24951762750a0e59b70c76eabecbf13f5fe6974864825456beed615c8f2c16f9a2f1404f2e56bdbc3ba335656c3661d5f368c708b88 +DIST commons-digester-3.2.tar.gz 324555 BLAKE2B 7b8bdaa70eeafb069e9ecbfe697ab86f5167ae3b9933e8aa306f0080de0ec99d12bd023067678b7b904329178f553fd6d4d98141ab329154a1c27385b33e449f SHA512 6d5ed9a1cc7612244747dcbd5c713349f27d63d1cef39fa368b4e91eaa3b1fe7043ab2fb498a73e8afde8081b8ff26a966e5b87b8b6dc68a3d907e9b25aa7cad DIST commons-digester3-3.2-src.tar.gz 324555 BLAKE2B 7b8bdaa70eeafb069e9ecbfe697ab86f5167ae3b9933e8aa306f0080de0ec99d12bd023067678b7b904329178f553fd6d4d98141ab329154a1c27385b33e449f SHA512 6d5ed9a1cc7612244747dcbd5c713349f27d63d1cef39fa368b4e91eaa3b1fe7043ab2fb498a73e8afde8081b8ff26a966e5b87b8b6dc68a3d907e9b25aa7cad diff --git a/dev-java/commons-digester/commons-digester-3.2-r3.ebuild b/dev-java/commons-digester/commons-digester-3.2-r3.ebuild new file mode 100644 index 000000000000..45e85fb373f2 --- /dev/null +++ b/dev-java/commons-digester/commons-digester-3.2-r3.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# 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 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.apache.commons:commons-digester3:3.2" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Reads XML configuration files to provide initialization of various Java objects" +HOMEPAGE="https://commons.apache.org/digester/" +SRC_URI="mirror://apache/commons/digester/source/${PN}3-${PV}-src.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="3.2" +KEYWORDS="~amd64 ~ppc64 ~x86" + +# 1) atomWithNamespaceParse(org.apache.commons.digester3.xmlrules.SetNamespaceURITestCase) +# java.net.UnknownHostException: commons.apache.org +PROPERTIES="test_network" +RESTRICT="test" + +# Common dependencies +# POM: pom.xml +# cglib:cglib:2.2.2 -> >=dev-java/cglib-3.3.0:3 +# commons-beanutils:commons-beanutils:1.8.3 -> >=dev-java/commons-beanutils-1.9.4:1.7 +# commons-logging:commons-logging:1.1.1 -> >=dev-java/commons-logging-1.2:0 + +CP_DEPEND=" + >=dev-java/cglib-3.3.0:3 + >=dev-java/commons-beanutils-1.9.4:1.7 + >=dev-java/commons-logging-1.2:0 +" + +DEPEND="${CP_DEPEND} + >=virtual/jdk-1.8:*" + +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:*" + +DOCS=( {LICENSE,NOTICE,RELEASE-NOTES}.txt ) + +S="${WORKDIR}/commons-digester3-${PV}-src" + +JAVA_ENCODING="iso-8859-1" + +JAVA_SRC_DIR="src/main/java" +JAVA_RESOURCE_DIRS="src/main/resources" + +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_SRC_DIR="src/test/java" +JAVA_TEST_RESOURCE_DIRS="src/test/resources" + +src_test() { + pushd src/test/java || die + # Exclusions according to 226,229 pom.xml + local JAVA_TEST_RUN_ONLY=$(find * -name "*TestCase.java" ! -name "Abstract*.java" ! -name "TestBean.java" ! -name "TestRule.java" ! -name "TestRuleSet.java") + JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}" + JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}" + popd + + # Testing with java-17 throws too many test failures + local vm_version="$(java-config -g PROVIDES_VERSION)" + if [[ "${vm_version}" != "17" ]] ; then + java-pkg-simple_src_test + fi +} + +src_install() { + default # https://bugs.gentoo.org/789582 + java-pkg-simple_src_install +} diff --git a/dev-java/commons-digester/metadata.xml b/dev-java/commons-digester/metadata.xml index 6021501589e0..080f8a0f0318 100644 --- a/dev-java/commons-digester/metadata.xml +++ b/dev-java/commons-digester/metadata.xml @@ -1,8 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<maintainer type="project"> - <email>java@gentoo.org</email> - <name>Java</name> -</maintainer> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <longdescription> + The Apache Commons Digester package lets you configure an XML to Java object mapping module which triggers certain actions called rules whenever a particular pattern of nested XML elements is recognized. + </longdescription> </pkgmetadata> |