diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2022-01-05 16:31:16 +0100 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-01-05 17:32:21 +0100 |
commit | 33429181735be07d059eba9e83bdd729c6c41452 (patch) | |
tree | 3d907fe78468e114e293adc31d75772a3ef4736b /dev-java/commons-collections | |
parent | net-libs/webkit-gtk: remove old (diff) | |
download | gentoo-33429181735be07d059eba9e83bdd729c6c41452.tar.gz gentoo-33429181735be07d059eba9e83bdd729c6c41452.tar.bz2 gentoo-33429181735be07d059eba9e83bdd729c6c41452.zip |
dev-java/commons-collections: bump to 4.4
Bug: https://bugs.gentoo.org/830639
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/23659
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java/commons-collections')
-rw-r--r-- | dev-java/commons-collections/Manifest | 1 | ||||
-rw-r--r-- | dev-java/commons-collections/commons-collections-4.4.ebuild | 67 | ||||
-rw-r--r-- | dev-java/commons-collections/metadata.xml | 11 |
3 files changed, 75 insertions, 4 deletions
diff --git a/dev-java/commons-collections/Manifest b/dev-java/commons-collections/Manifest index 02508b4a856d..466c5b01284b 100644 --- a/dev-java/commons-collections/Manifest +++ b/dev-java/commons-collections/Manifest @@ -1,2 +1,3 @@ DIST commons-collections-3.2.2-src.tar.gz 630693 BLAKE2B a70cebe9526291d5207db7edd7c9b50060413880d41dcb28c01cf05f7e00a9f5e1560012c3c3c763162412282db9512bc2b64a5788f210c5c8866943d912dafb SHA512 2e8ef638f07515b028a3e7e97851fcf1d9023a2c188e211bd1e936f35d3d91c2885adf3b1103ad17dfb7aeea6e7a67ce7826ee346a8a29c1aa7c6b0cf14e9230 +DIST commons-collections-4.4-src.tar.gz 703008 BLAKE2B f4a0e858eb7412bdd431894f923a4731685ceb2463bee002401d8048cc40534f002ec0291aa67297e061a50b624d3de8f64e227f513ab1f3620e38d1d6858255 SHA512 2110e73eda97ca52a886cb708f21d8609a83655861594f3b6eb7a15b777d42eeeefc5d3b28ffc6ecc5e4f0b3fd5407f80019c2ce006f970f55455ef33eee47ee DIST commons-collections4-4.1-src.tar.gz 704671 BLAKE2B dea1b630168373013ca937c9b02414b92845fdd9ddf7a22a05c4d7f8d30ff26d73f3a2d399d7a4c026f8ec43a282120fdf3d3cb1042a311c3b490ffed1774e30 SHA512 c5666f41b68c9fdba3731730595616b16f98579c077cf047f421a46729b5a65476a8707125a2c0b0c6c024ca94df8c2633123bd99e705149fcb1afadcd3bf68b diff --git a/dev-java/commons-collections/commons-collections-4.4.ebuild b/dev-java/commons-collections/commons-collections-4.4.ebuild new file mode 100644 index 000000000000..3c12d8f477e8 --- /dev/null +++ b/dev-java/commons-collections/commons-collections-4.4.ebuild @@ -0,0 +1,67 @@ +# 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/collections/source/commons-collections4-4.4-src.tar.gz --slot 4 --keywords "~amd64 ~arm64 ~ppc64 ~x86" --ebuild commons-collections-4.4.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.apache.commons:commons-collections4:4.4" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Extends the JCF classes with new interfaces, implementations and utilities" +HOMEPAGE="https://commons.apache.org/proper/commons-collections/" +SRC_URI="mirror://apache/commons/collections/source/${PN}4-${PV}-src.tar.gz -> ${P}-src.tar.gz" + +LICENSE="Apache-2.0" +SLOT="4" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +# Compile dependencies +# POM: pom.xml +# test? junit:junit:4.12 -> >=dev-java/junit-4.13.2:4 +# test? org.apache.commons:commons-lang3:3.9 -> >=dev-java/commons-lang-3.12.0:3.6 +# test? org.easymock:easymock:4.0.2 -> !!!suitable-mavenVersion-not-found!!! + +DEPEND=" + >=virtual/jdk-1.8:* + test? ( + dev-java/easymock:3.2 + dev-java/commons-lang:3.6 + ) +" + +RDEPEND=" + >=virtual/jre-1.8:* +" + +DOCS=( {CONTRIBUTING,README}.md {LICENSE,NOTICE,RELEASE-NOTES}.txt ) +HTML_DOCS=( {DEVELOPERS-GUIDE,PROPOSAL}.html ) + +S="${WORKDIR}/commons-collections4-${PV}-src" + +JAVA_SRC_DIR="src/main/java" + +JAVA_TEST_GENTOO_CLASSPATH="junit-4,commons-lang-3.6,easymock-3.2" +JAVA_TEST_SRC_DIR="src/test/java" +JAVA_TEST_RESOURCE_DIRS="src/test/resources" + +src_test() { + # https://github.com/apache/commons-collections/blob/cab58b3a8093a2f6b84f12783a3fb358747310f7/pom.xml#L542-L550 + pushd src/test/java || die + local TESTS=$(find * -name "*Test.java" ! -name "TestUtils.java" ! -name "Abstract*.java" ! -name "BulkTest.java") + TESTS="${TESTS//.java}" + TESTS="${TESTS//\//.}" + popd + + JAVA_TEST_RUN_ONLY=( "${TESTS}" ) + java-pkg-simple_src_test +} + +src_install() { + default # https://bugs.gentoo.org/789582 + java-pkg-simple_src_install +} diff --git a/dev-java/commons-collections/metadata.xml b/dev-java/commons-collections/metadata.xml index 6ef2d50cf07e..62a57c23950f 100644 --- a/dev-java/commons-collections/metadata.xml +++ b/dev-java/commons-collections/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 Collections package contains types that extend and augment the Java Collections Framework. + </longdescription> </pkgmetadata> |