Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/commons-collections/, dev-java/commons-collections/files/
Date: Wed, 21 Apr 2021 09:33:24
Message-Id: 1618997590.25d736fba0f2b4f3a3820fb20f61aa3b3c235d94.fordfrog@gentoo
1 commit: 25d736fba0f2b4f3a3820fb20f61aa3b3c235d94
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 21 09:32:57 2021 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 21 09:33:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25d736fb
7
8 dev-java/commons-collections: removed obsolete 3.2.1-r[23]
9
10 Closes: https://github.com/gentoo/gentoo/pull/20474
11 Package-Manager: Portage-3.0.18, Repoman-3.0.3
12 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
13
14 .../commons-collections-3.2.1-r2.ebuild | 65 ---------------------
15 .../commons-collections-3.2.1-r3.ebuild | 68 ----------------------
16 .../commons-collections-3.2.1-fix-tests.patch | 13 -----
17 3 files changed, 146 deletions(-)
18
19 diff --git a/dev-java/commons-collections/commons-collections-3.2.1-r2.ebuild b/dev-java/commons-collections/commons-collections-3.2.1-r2.ebuild
20 deleted file mode 100644
21 index e82eac0d21f..00000000000
22 --- a/dev-java/commons-collections/commons-collections-3.2.1-r2.ebuild
23 +++ /dev/null
24 @@ -1,65 +0,0 @@
25 -# Copyright 1999-2021 Gentoo Authors
26 -# Distributed under the terms of the GNU General Public License v2
27 -
28 -EAPI=6
29 -
30 -JAVA_PKG_IUSE="doc source test"
31 -MAVEN_ID="commons-collections:commons-collections:3.2.1"
32 -
33 -inherit java-pkg-2 java-ant-2 java-utils-2
34 -
35 -DESCRIPTION="Jakarta-Commons Collections Component"
36 -HOMEPAGE="https://commons.apache.org/collections/"
37 -SRC_URI="mirror://apache/${PN/-//}/source/${P}-src.tar.gz"
38 -
39 -LICENSE="Apache-2.0"
40 -SLOT="0"
41 -KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos"
42 -IUSE="test"
43 -RESTRICT="!test? ( test )"
44 -
45 -DEPEND="
46 - test? (
47 - dev-java/junit:0
48 - dev-java/ant-junit:0
49 - )
50 - >=virtual/jdk-1.6"
51 -
52 -RDEPEND=">=virtual/jre-1.6"
53 -
54 -S="${WORKDIR}/${P}-src"
55 -
56 -PATCHES=( "${FILESDIR}/${P}-Java-8.patch" )
57 -
58 -src_prepare() {
59 - default
60 -}
61 -
62 -src_compile() {
63 - local antflags
64 - if use test; then
65 - antflags="tf.jar -Djunit.jar=$(java-pkg_getjars junit)"
66 - fi
67 - eant jar $(use_doc) ${antflags}
68 -}
69 -
70 -src_test() {
71 - if [[ "${ARCH}" = "ppc" ]]; then
72 - einfo "tests are disabled on ppc"
73 - else
74 - ANT_TASKS="ant-junit" eant testjar -Djunit.jar="$(java-pkg_getjars junit)"
75 - fi
76 -}
77 -
78 -src_install() {
79 - java-pkg_newjar build/${P}.jar ${PN}.jar
80 - use test && \
81 - java-pkg_newjar build/${PN}-testframework-${PV}.jar \
82 - ${PN}-testframework.jar
83 -
84 - java-pkg_dohtml *.html
85 - if use doc; then
86 - java-pkg_dojavadoc build/docs/apidocs
87 - fi
88 - use source && java-pkg_dosrc src/java/*
89 -}
90
91 diff --git a/dev-java/commons-collections/commons-collections-3.2.1-r3.ebuild b/dev-java/commons-collections/commons-collections-3.2.1-r3.ebuild
92 deleted file mode 100644
93 index 75a4556fc9c..00000000000
94 --- a/dev-java/commons-collections/commons-collections-3.2.1-r3.ebuild
95 +++ /dev/null
96 @@ -1,68 +0,0 @@
97 -# Copyright 1999-2021 Gentoo Authors
98 -# Distributed under the terms of the GNU General Public License v2
99 -
100 -EAPI=7
101 -
102 -JAVA_PKG_IUSE="doc source test"
103 -MAVEN_ID="commons-collections:commons-collections:3.2.1"
104 -
105 -inherit java-pkg-2 java-ant-2 java-utils-2
106 -
107 -DESCRIPTION="Jakarta-Commons Collections Component"
108 -HOMEPAGE="https://commons.apache.org/collections/"
109 -SRC_URI="mirror://apache/${PN/-//}/source/${P}-src.tar.gz"
110 -
111 -LICENSE="Apache-2.0"
112 -SLOT="0"
113 -KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos"
114 -IUSE="test"
115 -RESTRICT="!test? ( test )"
116 -
117 -DEPEND="
118 - >=virtual/jdk-1.8:*
119 - test? (
120 - dev-java/junit:0
121 - dev-java/ant-junit:0
122 - )"
123 -
124 -RDEPEND=">=virtual/jre-1.8:*"
125 -
126 -S="${WORKDIR}/${P}-src"
127 -
128 -PATCHES=(
129 - "${FILESDIR}/${P}-Java-8.patch"
130 - "${FILESDIR}/${P}-fix-tests.patch"
131 -)
132 -
133 -src_prepare() {
134 - default
135 -}
136 -
137 -src_compile() {
138 - local antflags
139 - if use test; then
140 - antflags="tf.jar -Djunit.jar=$(java-pkg_getjars --build-only junit)"
141 - fi
142 - eant jar $(use_doc) ${antflags}
143 -}
144 -
145 -src_test() {
146 - if [[ "${ARCH}" = "ppc" ]]; then
147 - einfo "tests are disabled on ppc"
148 - else
149 - ANT_TASKS="ant-junit" eant testjar -Djunit.jar="$(java-pkg_getjars junit)"
150 - fi
151 -}
152 -
153 -src_install() {
154 - java-pkg_newjar build/${P}.jar ${PN}.jar
155 - use test && \
156 - java-pkg_newjar build/${PN}-testframework-${PV}.jar \
157 - ${PN}-testframework.jar
158 -
159 - java-pkg_dohtml *.html
160 - if use doc; then
161 - java-pkg_dojavadoc build/docs/apidocs
162 - fi
163 - use source && java-pkg_dosrc src/java/*
164 -}
165
166 diff --git a/dev-java/commons-collections/files/commons-collections-3.2.1-fix-tests.patch b/dev-java/commons-collections/files/commons-collections-3.2.1-fix-tests.patch
167 deleted file mode 100644
168 index 9ba66eb6e4a..00000000000
169 --- a/dev-java/commons-collections/files/commons-collections-3.2.1-fix-tests.patch
170 +++ /dev/null
171 @@ -1,13 +0,0 @@
172 -diff --git a/src/test/org/apache/commons/collections/collection/AbstractTestCollection.java b/src/test/org/apache/commons/collections/collection/AbstractTestCollection.java
173 -index 1c01b53..aea6edf 100644
174 ---- a/src/test/org/apache/commons/collections/collection/AbstractTestCollection.java
175 -+++ b/src/test/org/apache/commons/collections/collection/AbstractTestCollection.java
176 -@@ -1116,7 +1116,7 @@ public abstract class AbstractTestCollection extends AbstractTestObject {
177 - verify();
178 -
179 - try {
180 -- array = collection.toArray(null);
181 -+ array = collection.toArray((Object[]) null);
182 - fail("toArray(null) should raise NPE");
183 - } catch (NullPointerException e) {
184 - // expected