1 |
commit: 6453206e0e5250ffcdf275d4697282169dcf99d4 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 14 15:22:10 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 14 15:25:56 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6453206e |
7 |
|
8 |
dev-java/groovy: Remove last-rited pkg |
9 |
|
10 |
Bug: https://bugs.gentoo.org/605690 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
dev-java/groovy/Manifest | 1 - |
14 |
.../groovy/files/groovy-2.4.5-utils.gradle.patch | 116 ------------------ |
15 |
dev-java/groovy/groovy-2.4.5.ebuild | 135 --------------------- |
16 |
dev-java/groovy/metadata.xml | 14 --- |
17 |
profiles/package.mask | 5 - |
18 |
5 files changed, 271 deletions(-) |
19 |
|
20 |
diff --git a/dev-java/groovy/Manifest b/dev-java/groovy/Manifest |
21 |
deleted file mode 100644 |
22 |
index b55cc1d52d5..00000000000 |
23 |
--- a/dev-java/groovy/Manifest |
24 |
+++ /dev/null |
25 |
@@ -1 +0,0 @@ |
26 |
-DIST groovy-2.4.5.zip 10214173 BLAKE2B 3402b93fc151beda7d1f397dcd522a71e3d2daaece12d96a02712ea18050c179ead1af0a4c42d7beb0b09a2db611a5b822220c3f4f103bf54b262bf7f83970a2 SHA512 055b664d2bc9966f9dd5933ec89f22c28c18323b57db66eeec524c88bdc6ea1090f6f1dd866433d7232d837ca31ca83164d8894c0db1d69e72c7d41f20a8382d |
27 |
|
28 |
diff --git a/dev-java/groovy/files/groovy-2.4.5-utils.gradle.patch b/dev-java/groovy/files/groovy-2.4.5-utils.gradle.patch |
29 |
deleted file mode 100644 |
30 |
index 6f4638a1bf1..00000000000 |
31 |
--- a/dev-java/groovy/files/groovy-2.4.5-utils.gradle.patch |
32 |
+++ /dev/null |
33 |
@@ -1,116 +0,0 @@ |
34 |
---- gradle/utils.gradle.orig 2015-11-01 21:06:26.246486000 +0000 |
35 |
-+++ gradle/utils.gradle 2015-11-01 21:06:57.719486000 +0000 |
36 |
-@@ -16,57 +16,47 @@ |
37 |
- * specific language governing permissions and limitations |
38 |
- * under the License. |
39 |
- */ |
40 |
--import org.codehaus.groovy.classgen.AnnotationVisitor |
41 |
--import org.objectweb.asm.ClassWriter |
42 |
--import org.objectweb.asm.FieldVisitor |
43 |
--import org.objectweb.asm.Label |
44 |
--import org.objectweb.asm.MethodVisitor |
45 |
-- |
46 |
--import static org.objectweb.asm.Opcodes.* |
47 |
-- |
48 |
--buildscript { |
49 |
-- repositories { |
50 |
-- mavenCentral() |
51 |
-- } |
52 |
-- dependencies { |
53 |
-- classpath "org.ow2.asm:asm:$asmVersion" |
54 |
-- } |
55 |
--} |
56 |
-+import static org.objectweb.asm.Opcodes.ACC_PUBLIC; |
57 |
-+import static org.objectweb.asm.Opcodes.ACC_STATIC; |
58 |
-+import static org.objectweb.asm.Opcodes.ACC_SUPER; |
59 |
-+import static org.objectweb.asm.Opcodes.ALOAD; |
60 |
-+import static org.objectweb.asm.Opcodes.ATHROW; |
61 |
-+import static org.objectweb.asm.Opcodes.INVOKESPECIAL; |
62 |
-+import static org.objectweb.asm.Opcodes.RETURN; |
63 |
-+import static org.objectweb.asm.Opcodes.V1_5; |
64 |
-+ |
65 |
-+import java.io.File; |
66 |
-+import java.io.FileOutputStream; |
67 |
-+ |
68 |
-+import org.objectweb.asm.ClassWriter; |
69 |
-+import org.objectweb.asm.Label; |
70 |
-+import org.objectweb.asm.MethodVisitor; |
71 |
- |
72 |
--/** |
73 |
-- * This tasks generates an utility class which allows sneaky throwing. |
74 |
-- */ |
75 |
--task exceptionUtils { |
76 |
-- ext.classFiles = [ |
77 |
-- "${buildDir}/generated-classes/org/codehaus/groovy/runtime/ExceptionUtils.class", |
78 |
-- "${compileJava.destinationDir}/org/codehaus/groovy/runtime/ExceptionUtils.class"] |
79 |
-- outputs.files classFiles |
80 |
-+public class ExceptionUtils { |
81 |
-+ private final static String gentooClassDestination = "target/classes/org/codehaus/groovy/runtime/ExceptionUtils.class"; |
82 |
- |
83 |
-- doLast { |
84 |
-+ public static void main(String[] args) { |
85 |
- ClassWriter cw = new ClassWriter(0); |
86 |
-- FieldVisitor fv; |
87 |
- MethodVisitor mv; |
88 |
-- AnnotationVisitor av0; |
89 |
-- |
90 |
-- cw.visit(V1_5, ACC_PUBLIC + ACC_SUPER, 'org/codehaus/groovy/runtime/ExceptionUtils', null, 'java/lang/Object', null); |
91 |
- |
92 |
-- cw.visitSource('ExceptionUtils.java', null); |
93 |
-+ cw.visit(V1_5, ACC_PUBLIC + ACC_SUPER, "org/codehaus/groovy/runtime/ExceptionUtils", null, "java/lang/Object", null); |
94 |
-+ cw.visitSource("ExceptionUtils.java", null); |
95 |
- |
96 |
-- mv = cw.visitMethod(ACC_PUBLIC, '<init>', '()V', null, null); |
97 |
-+ mv = cw.visitMethod(ACC_PUBLIC, "<init>", "()V", null, null); |
98 |
- mv.visitCode(); |
99 |
- Label l0 = new Label(); |
100 |
- mv.visitLabel(l0); |
101 |
- mv.visitLineNumber(18, l0); |
102 |
- mv.visitVarInsn(ALOAD, 0); |
103 |
-- mv.visitMethodInsn(INVOKESPECIAL, 'java/lang/Object', '<init>', '()V', false); |
104 |
-+ mv.visitMethodInsn(INVOKESPECIAL, "java/lang/Object", "<init>", "()V", false); |
105 |
- mv.visitInsn(RETURN); |
106 |
- Label l1 = new Label(); |
107 |
- mv.visitLabel(l1); |
108 |
-- mv.visitLocalVariable('this', 'Lorg/codehaus/groovy/runtime/ExceptionUtils;', null, l0, l1, 0); |
109 |
-+ mv.visitLocalVariable("this", "Lorg/codehaus/groovy/runtime/ExceptionUtils;", null, l0, l1, 0); |
110 |
- mv.visitMaxs(1, 1); |
111 |
- mv.visitEnd(); |
112 |
- |
113 |
-- mv = cw.visitMethod(ACC_PUBLIC + ACC_STATIC, 'sneakyThrow', '(Ljava/lang/Throwable;)V', null, null); |
114 |
-+ mv = cw.visitMethod(ACC_PUBLIC + ACC_STATIC, "sneakyThrow", "(Ljava/lang/Throwable;)V", null, null); |
115 |
- mv.visitCode(); |
116 |
- Label l2 = new Label(); |
117 |
- mv.visitLabel(l2); |
118 |
-@@ -75,19 +65,21 @@ |
119 |
- mv.visitInsn(ATHROW); |
120 |
- Label l3 = new Label(); |
121 |
- mv.visitLabel(l3); |
122 |
-- mv.visitLocalVariable('e', 'Ljava/lang/Throwable;', null, l2, l3, 0); |
123 |
-+ mv.visitLocalVariable("e", "Ljava/lang/Throwable;", null, l2, l3, 0); |
124 |
- mv.visitMaxs(1, 1); |
125 |
- mv.visitEnd(); |
126 |
- |
127 |
- cw.visitEnd(); |
128 |
-+ FileOutputStream fos = null; |
129 |
- |
130 |
-- logger.lifecycle('Generating ExceptionUtils') |
131 |
-- classFiles.each { classFile -> |
132 |
-- def output = file(classFile) |
133 |
-- output.parentFile.mkdirs() |
134 |
-- output.withOutputStream { |
135 |
-- it << cw.toByteArray() |
136 |
-- } |
137 |
-- } |
138 |
-- } |
139 |
-+ File f = new File(gentooClassDestination); |
140 |
-+ f.getParentFile().mkdirs(); |
141 |
-+ try { |
142 |
-+ fos = new FileOutputStream(f); |
143 |
-+ fos.write(cw.toByteArray()); |
144 |
-+ fos.close(); |
145 |
-+ } catch (Exception e) { |
146 |
-+ e.printStackTrace(); |
147 |
-+ } |
148 |
-+ } |
149 |
- } |
150 |
|
151 |
diff --git a/dev-java/groovy/groovy-2.4.5.ebuild b/dev-java/groovy/groovy-2.4.5.ebuild |
152 |
deleted file mode 100644 |
153 |
index 1f2ee906e06..00000000000 |
154 |
--- a/dev-java/groovy/groovy-2.4.5.ebuild |
155 |
+++ /dev/null |
156 |
@@ -1,135 +0,0 @@ |
157 |
-# Copyright 1999-2016 Gentoo Foundation |
158 |
-# Distributed under the terms of the GNU General Public License v2 |
159 |
- |
160 |
-EAPI=5 |
161 |
- |
162 |
-JAVA_PKG_IUSE="doc source" |
163 |
- |
164 |
-inherit java-pkg-2 java-pkg-simple versionator |
165 |
- |
166 |
-# Switch to ^^ when we switch to EAPI=6. |
167 |
-#MY_PN="${PN^^}" |
168 |
-MY_PN="GROOVY" |
169 |
-MY_PV="$(replace_all_version_separators _ ${PV})" |
170 |
-MY_P="${MY_PN}_${MY_PV}" |
171 |
- |
172 |
-DESCRIPTION="A multi-faceted language for the Java platform" |
173 |
-HOMEPAGE="http://www.groovy-lang.org/" |
174 |
-SRC_URI="https://github.com/apache/incubator-${PN}/archive/${MY_P}.zip -> ${P}.zip" |
175 |
-LICENSE="Apache-2.0" |
176 |
-SLOT="0" |
177 |
-KEYWORDS="amd64 ppc64 x86" |
178 |
-IUSE="" |
179 |
- |
180 |
-CDEPEND=" |
181 |
- dev-java/jansi:0 |
182 |
- dev-java/xstream:0 |
183 |
- dev-java/commons-cli:1 |
184 |
- >=dev-java/asm-5.0.3:4 |
185 |
- >=dev-java/antlr-2.7.7-r7:0" |
186 |
- |
187 |
-RDEPEND=" |
188 |
- ${CDEPEND} |
189 |
- >=virtual/jre-1.6" |
190 |
- |
191 |
-DEPEND=" |
192 |
- ${CDEPEND} |
193 |
- >=virtual/jdk-1.6 |
194 |
- source? ( app-arch/zip )" |
195 |
- |
196 |
-JAVA_GENTOO_CLASSPATH=" |
197 |
- asm-4 |
198 |
- antlr |
199 |
- jansi |
200 |
- xstream |
201 |
- commons-cli-1 |
202 |
-" |
203 |
- |
204 |
-S="${WORKDIR}/incubator-${PN}-${MY_P}" |
205 |
- |
206 |
-# ExceptionUtil filename. |
207 |
-EU="ExceptionUtils.java" |
208 |
- |
209 |
-# List of antlr grammar files. |
210 |
-ANTLR_GRAMMAR_FILES=( |
211 |
- org/codehaus/groovy/antlr/groovy.g |
212 |
- org/codehaus/groovy/antlr/java/java.g |
213 |
-) |
214 |
- |
215 |
-# Patches utils.gradle. It basically rewrites ExceptionUtils. |
216 |
-PATCHES=( |
217 |
- "${FILESDIR}"/"${P}-utils.gradle.patch" |
218 |
-) |
219 |
- |
220 |
-# Add target/classes to the CP as we're generating an extra class there. |
221 |
-JAVA_GENTOO_CLASSPATH_EXTRA="target/classes" |
222 |
- |
223 |
-# This function cleans up the source directory. |
224 |
-# We're ONLY interested in the "src/main" directory content and nothing else. |
225 |
-# (for the time being). |
226 |
-groovy_cleanup_source_files() { |
227 |
- ebegin "Cleaning up useless files" |
228 |
- mv src/main "${T}" || die |
229 |
- mv gradle/utils.gradle "${T}" || die |
230 |
- rm -rf * || die |
231 |
- mv "${T}"/main/* . || die |
232 |
- rm -rf "${T}"/main || die |
233 |
- eend $? |
234 |
-} |
235 |
- |
236 |
-java_prepare() { |
237 |
- epatch "${PATCHES[@]}" |
238 |
- groovy_cleanup_source_files |
239 |
-} |
240 |
- |
241 |
-# This function generates the ANTLR grammar files. |
242 |
-generate_antlr_grammar() { |
243 |
- for grammar_file in "${@}"; do |
244 |
- local my_grammar_file=$(basename ${grammar_file}) |
245 |
- |
246 |
- einfo "Generating \"${my_grammar_file}\" grammar file" |
247 |
- local my_grammar_dir=$(dirname ${grammar_file}) |
248 |
- |
249 |
- cd "${S}/${my_grammar_dir}" || die |
250 |
- antlr ${my_grammar_file} || die |
251 |
- |
252 |
- cd "${S}" || die |
253 |
- done |
254 |
-} |
255 |
- |
256 |
-# This function generates ExceptionUtils.class. |
257 |
-# ExceptionUtils is a helper class needed when compiling Groovy 2.x. |
258 |
-# Normally, this class is generated via a Gradle task at compile time. Since we |
259 |
-# don't use Gradle here.. we've translated it into a plain Java file and have |
260 |
-# it generate the same data. |
261 |
-generate_exceptionutils() { |
262 |
- ebegin "Copying ${EU}" |
263 |
- mv "${T}/utils.gradle" "${EU}" || die |
264 |
- eend $? |
265 |
- |
266 |
- ejavac -classpath "$(java-pkg_getjar --build-only asm-4 asm.jar)" ${EU} |
267 |
- |
268 |
- ebegin "Running ${EU%.java}" |
269 |
- $(java-config -J) -classpath "$(java-pkg_getjar --build-only asm-4 asm.jar):." ${EU%.java} || die |
270 |
- eend $? |
271 |
-} |
272 |
- |
273 |
-src_compile() { |
274 |
- generate_antlr_grammar "${ANTLR_GRAMMAR_FILES[@]}" |
275 |
- generate_exceptionutils |
276 |
- java-pkg-simple_src_compile |
277 |
-} |
278 |
- |
279 |
-src_install() { |
280 |
- java-pkg_dolauncher "groovyc" --main org.codehaus.groovy.tools.FileSystemCompiler |
281 |
- java-pkg_dolauncher "groovy" --main groovy.ui.GroovyMain |
282 |
- java-pkg-simple_src_install |
283 |
- |
284 |
- # TODO: groovy console and groovy shell are parts of the "subprojects" |
285 |
- # directory. figure out a way to compile them. :\ |
286 |
- # java-pkg_dolauncher "groovysh" --main groovy.ui.InteractiveShell |
287 |
- # java-pkg_dolauncher "groovyConsole" --main groovy.ui.Console |
288 |
- |
289 |
- # TODO: grape is written in groovy and to compile it, you need .. groovy. |
290 |
- # java-pkg_dolauncher "grape" --main org.codehaus.groovy.tools.GrapeMain |
291 |
-} |
292 |
|
293 |
diff --git a/dev-java/groovy/metadata.xml b/dev-java/groovy/metadata.xml |
294 |
deleted file mode 100644 |
295 |
index b54150fc69c..00000000000 |
296 |
--- a/dev-java/groovy/metadata.xml |
297 |
+++ /dev/null |
298 |
@@ -1,14 +0,0 @@ |
299 |
-<?xml version="1.0" encoding="UTF-8"?> |
300 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
301 |
-<pkgmetadata> |
302 |
- <maintainer type="person"> |
303 |
- <email>monsieurp@g.o</email> |
304 |
- </maintainer> |
305 |
- <maintainer type="project"> |
306 |
- <email>java@g.o</email> |
307 |
- <name>Java</name> |
308 |
- </maintainer> |
309 |
- <upstream> |
310 |
- <remote-id type="github">apache/incubator-groovy</remote-id> |
311 |
- </upstream> |
312 |
-</pkgmetadata> |
313 |
|
314 |
diff --git a/profiles/package.mask b/profiles/package.mask |
315 |
index 28a83f0dd5f..05fea028956 100644 |
316 |
--- a/profiles/package.mask |
317 |
+++ b/profiles/package.mask |
318 |
@@ -1173,11 +1173,6 @@ dev-java/logback |
319 |
dev-java/svgsalamander |
320 |
dev-java/flyingsaucer |
321 |
|
322 |
-# Aaron Bauman <bman@g.o> (2019-08-14) |
323 |
-# open sec bug #605690, unmaintained |
324 |
-# Removal in 30 days |
325 |
-dev-java/groovy |
326 |
- |
327 |
# Mike Gilbert <floppym@g.o> (2019-08-13) |
328 |
# Dev channel releases are only for people who |
329 |
# are developers or want more experimental features |