groovy is now working!
more/packages/groovy.scm
31 | 31 | ;; This package contains the java bootstrap that is used to build groovy submodules. | |
32 | 32 | (define-public groovy-java-bootstrap | |
33 | 33 | (package | |
34 | - | (name "groovy") | |
34 | + | (name "groovy-java-bootstrap") | |
35 | 35 | (version "2.4.13") | |
36 | 36 | (source (origin | |
37 | 37 | (method url-fetch) | |
… | |||
50 | 50 | #:source-dir "src/main:subprojects/groovy-test/src/main/java" | |
51 | 51 | #:test-dir "src/test" | |
52 | 52 | #:tests? #f | |
53 | + | ;; Reference to plus is ambiguous | |
54 | + | ;#:jdk ,icedtea-8 | |
53 | 55 | #:main-class "groovy.ui.GroovyMain" | |
54 | 56 | #:phases | |
55 | 57 | (modify-phases %standard-phases | |
… | |||
68 | 70 | (zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH") | |
69 | 71 | ":config/ant/src") | |
70 | 72 | "org.codehaus.groovy.ExceptionUtilsGenerator" | |
71 | - | "build/classes/org/codehaus/groovy/runtime/ExceptionUtils.class")))) | |
72 | - | (add-after 'install 'install-sh | |
73 | - | (lambda* (#:key outputs #:allow-other-keys) | |
74 | - | (substitute* "src/bin/startGroovy" | |
75 | - | ((" -classpath .*") | |
76 | - | (string-append " -classpath " (getenv "CLASSPATH") ":" | |
77 | - | (assoc-ref outputs "out") "/share/java/groovy.jar \\"))) | |
78 | - | (let ((bin (string-append (assoc-ref outputs "out") "/bin"))) | |
79 | - | (for-each (lambda (script) | |
80 | - | (install-file (string-append "src/bin/" script) bin) | |
81 | - | (chmod (string-append bin "/" script) #o755)) | |
82 | - | '("grape" "groovy" "groovyc" "groovyConsole" "groovydoc" | |
83 | - | "groovysh" "java2groovy" "startGroovy"))) | |
84 | - | (install-file "src/conf/groovy-starter.conf" | |
85 | - | (string-append (assoc-ref outputs "out") "/conf")) | |
86 | - | #t)) | |
87 | - | (add-before 'check 'add-groovy-classes | |
88 | - | (lambda _ | |
89 | - | (substitute* "build.xml" | |
90 | - | (("a") "a"))))))) | |
73 | + | "build/classes/org/codehaus/groovy/runtime/ExceptionUtils.class"))))))) | |
91 | 74 | (native-inputs | |
92 | 75 | `(("java-junit" ,java-junit) | |
76 | + | ("java-hamcrest-core" ,java-hamcrest-core) | |
93 | 77 | ("antlr2" ,antlr2) | |
94 | 78 | ("java-jmock-1" ,java-jmock-1) | |
95 | 79 | ("java-xmlunit-legacy" ,java-xmlunit-legacy))) | |
96 | 80 | (inputs | |
97 | 81 | `(("java-commons-cli" ,java-commons-cli) | |
98 | 82 | ("java-asm" ,java-asm) | |
99 | - | ("java-tomcat" ,java-tomcat) | |
83 | + | ("java-classpathx-servletapi" ,java-classpathx-servletapi) | |
100 | 84 | ("java-xstream" ,java-xstream) | |
101 | 85 | ("java-jansi" ,java-jansi) | |
102 | - | ("java-jline" ,java-jline))) | |
86 | + | ("java-jline-2" ,java-jline-2))) | |
103 | 87 | (home-page "") | |
104 | 88 | (synopsis "") | |
105 | 89 | (description "") | |
106 | 90 | (license (list license:gpl2 | |
107 | 91 | license:cddl1.1)))) | |
108 | 92 | ||
109 | - | (define-public groovy-templates | |
93 | + | (define-public groovy-bootstrap | |
110 | 94 | (package | |
111 | 95 | (inherit groovy-java-bootstrap) | |
96 | + | (name "groovy-bootstrap") | |
97 | + | (arguments | |
98 | + | `(#:jar-name "groovy.jar" | |
99 | + | ;Requires groovy-xml and logback-classic which are circular dependencies | |
100 | + | #:tests? #f | |
101 | + | #:phases | |
102 | + | (modify-phases %standard-phases | |
103 | + | (add-before 'build 'generate-parser | |
104 | + | (lambda _ | |
105 | + | (with-directory-excursion "src/main/org/codehaus/groovy/antlr/java" | |
106 | + | (zero? (system* "antlr" "java.g"))) | |
107 | + | (with-directory-excursion "src/main/org/codehaus/groovy/antlr" | |
108 | + | (mkdir "parser") | |
109 | + | (with-directory-excursion "parser" | |
110 | + | (zero? (system* "antlr" "../groovy.g")))))) | |
111 | + | (add-before 'build 'generate-exception-utils | |
112 | + | (lambda _ | |
113 | + | (system* "javac" "-cp" (getenv "CLASSPATH") | |
114 | + | "config/ant/src/org/codehaus/groovy/ExceptionUtilsGenerator.java") | |
115 | + | (zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH") | |
116 | + | ":config/ant/src") | |
117 | + | "org.codehaus.groovy.ExceptionUtilsGenerator" | |
118 | + | "target/classes/org/codehaus/groovy/runtime/ExceptionUtils.class")))) | |
119 | + | (add-before 'build 'generate-dgminfo | |
120 | + | (lambda _ | |
121 | + | (mkdir-p "target/classes/org/codehaus/groovy/runtime") | |
122 | + | (mkdir-p "target/classes/META-INF") | |
123 | + | (system* "javac" "-cp" (getenv "CLASSPATH") | |
124 | + | "src/main/org/codehaus/groovy/tools/DgmConverter.java") | |
125 | + | (zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH") | |
126 | + | ":src/main") | |
127 | + | "org.codehaus.groovy.tools.DgmConverter")))) | |
128 | + | (add-before 'build 'copy-resources | |
129 | + | (lambda _ | |
130 | + | (with-directory-excursion "src/main" | |
131 | + | (for-each (lambda (file) | |
132 | + | (mkdir-p (string-append "../../target/classes/" | |
133 | + | (dirname file))) | |
134 | + | (copy-file file | |
135 | + | (string-append "../../target/classes/" | |
136 | + | file))) | |
137 | + | (find-files "." ".*.(txt|properties|xml|html)"))))) | |
138 | + | (replace 'build | |
139 | + | (lambda _ | |
140 | + | (mkdir-p "build/jar") | |
141 | + | (and | |
142 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
143 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
144 | + | "-d" "target/classes" | |
145 | + | "-j"; joint compilation | |
146 | + | (find-files "src/main" | |
147 | + | ".*\\.(groovy|java)$"))) | |
148 | + | (zero? (system* "jar" "-cf" "build/jar/groovy.jar" | |
149 | + | "-C" "target/classes" ".")))))))) | |
150 | + | (inputs | |
151 | + | `(("java-apache-ivy-bootstrap" ,java-apache-ivy-bootstrap) | |
152 | + | ,@(package-inputs groovy-java-bootstrap))) | |
153 | + | (native-inputs | |
154 | + | `(("groovy-java-bootstrap" ,groovy-java-bootstrap) | |
155 | + | ,@(package-native-inputs groovy-java-bootstrap))))) | |
156 | + | ||
157 | + | ;; Common test classes | |
158 | + | (define-public groovy-tests-bootstrap | |
159 | + | (package | |
160 | + | (inherit groovy-bootstrap) | |
161 | + | (name "groovy-tests-bootstrap") | |
162 | + | (arguments | |
163 | + | `(#:jar-name "groovy-tests-bootstrap.jar" | |
164 | + | #:tests? #f; no tests | |
165 | + | #:phases | |
166 | + | (modify-phases %standard-phases | |
167 | + | (replace 'build | |
168 | + | (lambda _ | |
169 | + | (mkdir-p "build/classes") | |
170 | + | (mkdir-p "build/jar") | |
171 | + | (and | |
172 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
173 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
174 | + | "-d" "build/classes" | |
175 | + | "-j"; joint compilation | |
176 | + | (append | |
177 | + | (find-files "src/test" "TestSupport.java") | |
178 | + | (find-files "src/test" "HeadlessTestSupport.java") | |
179 | + | (find-files "src/test" "XmlAssert.java")))) | |
180 | + | (zero? (system* "jar" "-cf" "build/jar/groovy-tests-bootstrap.jar" | |
181 | + | "-C" "build/classes" ".")))))))) | |
182 | + | (inputs | |
183 | + | `(("groovy-test" ,groovy-test) | |
184 | + | ,@(package-inputs groovy-bootstrap))) | |
185 | + | (native-inputs | |
186 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
187 | + | ,@(package-native-inputs groovy-java-bootstrap))))) | |
188 | + | ||
189 | + | (define-public groovy-test | |
190 | + | (package | |
191 | + | (inherit groovy-bootstrap) | |
192 | + | (name "groovy-test") | |
193 | + | (arguments | |
194 | + | `(#:jar-name "groovy-test.jar" | |
195 | + | #:test-dir "subprojects/groovy-test/src/test" | |
196 | + | #:phases | |
197 | + | (modify-phases %standard-phases | |
198 | + | (replace 'build | |
199 | + | (lambda _ | |
200 | + | (mkdir-p "build/classes") | |
201 | + | (mkdir-p "build/jar") | |
202 | + | (and | |
203 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
204 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
205 | + | "-d" "build/classes" | |
206 | + | "-j"; joint compilation | |
207 | + | (find-files "subprojects/groovy-test/src/main" | |
208 | + | ".*\\.(groovy|java)$"))) | |
209 | + | (zero? (system* "jar" "-cf" "build/jar/groovy-test.jar" | |
210 | + | "-C" "build/classes" "."))))) | |
211 | + | (replace 'check | |
212 | + | (lambda _ | |
213 | + | (mkdir-p "build/test-classes") | |
214 | + | (substitute* "build.xml" | |
215 | + | (("depends=\"compile-tests\"") "depends=\"\"") | |
216 | + | (("}/java") "}/groovy")) | |
217 | + | (zero? (apply system* "java" "-cp" | |
218 | + | (string-append (getenv "CLASSPATH") ":build/classes") | |
219 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
220 | + | "-d" "build/test-classes" | |
221 | + | "-j" | |
222 | + | (append | |
223 | + | (find-files "subprojects/groovy-test/src/test" | |
224 | + | ".*\\.(groovy|java)$")))) | |
225 | + | (zero? (system* "ant" "check"))))))) | |
226 | + | (native-inputs | |
227 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
228 | + | ,@(package-native-inputs groovy-java-bootstrap))))) | |
229 | + | ||
230 | + | (define-public groovy-xml | |
231 | + | (package | |
232 | + | (inherit groovy-bootstrap) | |
233 | + | (name "groovy-xml") | |
234 | + | (arguments | |
235 | + | `(#:jar-name "groovy-xml.jar" | |
236 | + | #:test-dir "src/test" | |
237 | + | #:phases | |
238 | + | (modify-phases %standard-phases | |
239 | + | (add-before 'configure 'chdir | |
240 | + | (lambda _ | |
241 | + | (chdir "subprojects/groovy-xml"))) | |
242 | + | (replace 'build | |
243 | + | (lambda _ | |
244 | + | (mkdir-p "build/classes") | |
245 | + | (mkdir-p "build/jar") | |
246 | + | (and | |
247 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
248 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
249 | + | "-d" "build/classes" | |
250 | + | "-j"; joint compilation | |
251 | + | (find-files "src/main" | |
252 | + | ".*\\.(groovy|java)$"))) | |
253 | + | (zero? (system* "jar" "-cf" "build/jar/groovy-xml.jar" | |
254 | + | "-C" "build/classes" "."))))) | |
255 | + | (replace 'check | |
256 | + | (lambda _ | |
257 | + | (mkdir-p "build/test-classes") | |
258 | + | (substitute* "build.xml" | |
259 | + | (("depends=\"compile-tests\"") "depends=\"\"") | |
260 | + | (("}/java") "}/groovy")) | |
261 | + | (and | |
262 | + | (zero? (apply system* "java" "-cp" | |
263 | + | (string-append (getenv "CLASSPATH") ":build/classes") | |
264 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
265 | + | "-d" "build/test-classes" | |
266 | + | "-j" | |
267 | + | (append | |
268 | + | (find-files "src/test" | |
269 | + | ".*\\.(groovy|java)$")))) | |
270 | + | (zero? (system* "ant" "check")))))))) | |
271 | + | (native-inputs | |
272 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
273 | + | ("groovy-test" ,groovy-test) | |
274 | + | ("groovy-tests-bootstrap" ,groovy-tests-bootstrap) | |
275 | + | ,@(package-native-inputs groovy-java-bootstrap))))) | |
276 | + | ||
277 | + | (define-public groovy-templates | |
278 | + | (package | |
279 | + | (inherit groovy-bootstrap) | |
112 | 280 | (name "groovy-templates") | |
113 | 281 | (arguments | |
114 | 282 | `(#:jar-name "groovy-templates.jar" | |
283 | + | #:test-dir "subprojects/groovy-templates/src/test" | |
284 | + | #:tests? #f;Requires spock-framework which is a circular dependency | |
115 | 285 | #:phases | |
116 | 286 | (modify-phases %standard-phases | |
117 | 287 | (replace 'build | |
118 | 288 | (lambda _ | |
119 | 289 | (mkdir-p "build/classes") | |
120 | - | (zero? (system* "java" "-cp" (getenv "CLASSPATH") | |
290 | + | (mkdir-p "build/jar") | |
291 | + | (and | |
292 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
293 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
294 | + | "-d" "build/classes" | |
295 | + | "-j"; joint compilation | |
296 | + | (find-files "subprojects/groovy-templates/src/main" | |
297 | + | ".*\\.(groovy|java)$"))) | |
298 | + | (zero? (system* "jar" "-cf" "build/jar/groovy-templates.jar" | |
299 | + | "-C" "build/classes" ".")))))))) | |
300 | + | (inputs | |
301 | + | `(("groovy-xml" ,groovy-xml) | |
302 | + | ,@(package-inputs groovy-bootstrap))) | |
303 | + | (native-inputs | |
304 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
305 | + | ("groovy-test" ,groovy-test) | |
306 | + | ("groovy-tests-bootstrap" ,groovy-tests-bootstrap) | |
307 | + | ,@(package-native-inputs groovy-java-bootstrap))))) | |
308 | + | ||
309 | + | (define-public groovy-groovydoc | |
310 | + | (package | |
311 | + | (inherit groovy-bootstrap) | |
312 | + | (name "groovy-groovydoc") | |
313 | + | (arguments | |
314 | + | `(#:jar-name "groovy-groovydoc.jar" | |
315 | + | #:test-dir "subprojects/groovy-groovydoc/src/test" | |
316 | + | #:tests? #f; Requires groovy-ant which is a circular dependency | |
317 | + | #:phases | |
318 | + | (modify-phases %standard-phases | |
319 | + | (add-before 'build 'copy-resources | |
320 | + | (lambda _ | |
321 | + | (copy-recursively "subprojects/groovy-groovydoc/src/main/resources" | |
322 | + | "build/classes"))) | |
323 | + | (replace 'build | |
324 | + | (lambda _ | |
325 | + | (mkdir-p "build/classes") | |
326 | + | (mkdir-p "build/jar") | |
327 | + | (and | |
328 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
329 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
330 | + | "-d" "build/classes" | |
331 | + | "-j"; joint compilation | |
332 | + | (find-files "subprojects/groovy-groovydoc/src/main" | |
333 | + | ".*\\.(groovy|java)$"))) | |
334 | + | (zero? (system* "jar" "-cf" "build/jar/groovy-groovydoc.jar" | |
335 | + | "-C" "build/classes" ".")))))))) | |
336 | + | (inputs | |
337 | + | `(("groovy-templates" ,groovy-templates) | |
338 | + | ,@(package-inputs groovy-bootstrap))) | |
339 | + | (native-inputs | |
340 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
341 | + | ("groovy-test" ,groovy-test) | |
342 | + | ("groovy-tests-bootstrap" ,groovy-tests-bootstrap) | |
343 | + | ,@(package-native-inputs groovy-java-bootstrap))))) | |
344 | + | ||
345 | + | (define-public groovy-ant | |
346 | + | (package | |
347 | + | (inherit groovy-bootstrap) | |
348 | + | (name "groovy-ant") | |
349 | + | (arguments | |
350 | + | `(#:jar-name "groovy-ant.jar" | |
351 | + | #:test-dir "src/test" | |
352 | + | ;; FIXME: Excluding all tests because they fail | |
353 | + | #:test-exclude (list | |
354 | + | "**/GroovyTest.java" | |
355 | + | "**/GroovycTest.java") | |
356 | + | #:phases | |
357 | + | (modify-phases %standard-phases | |
358 | + | (add-before 'configure 'chdir | |
359 | + | (lambda _ | |
360 | + | (chdir "subprojects/groovy-ant"))) | |
361 | + | (add-before 'build 'copy-resources | |
362 | + | (lambda _ | |
363 | + | (copy-recursively "src/main/resources" "build/classes"))) | |
364 | + | (replace 'build | |
365 | + | (lambda _ | |
366 | + | (mkdir-p "build/classes") | |
367 | + | (mkdir-p "build/jar") | |
368 | + | (and | |
369 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
370 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
371 | + | "-d" "build/classes" | |
372 | + | "-j"; joint compilation | |
373 | + | (find-files "src/main" | |
374 | + | ".*\\.(groovy|java)$"))) | |
375 | + | (zero? (system* "jar" "-cf" "build/jar/groovy-ant.jar" | |
376 | + | "-C" "build/classes" "."))))) | |
377 | + | (replace 'check | |
378 | + | (lambda _ | |
379 | + | (mkdir-p "build/test-classes") | |
380 | + | (substitute* "build.xml" | |
381 | + | (("depends=\"compile-tests\"") "depends=\"\"") | |
382 | + | (("}/java") "}/groovy")) | |
383 | + | (and | |
384 | + | (zero? (apply system* "java" "-cp" | |
385 | + | (string-append (getenv "CLASSPATH") ":build/classes") | |
121 | 386 | "org.codehaus.groovy.tools.FileSystemCompiler" | |
122 | - | "-d" "build/classes" | |
123 | - | "-j"; joint compilation | |
124 | - | (find-files "subprojects/groovy-templates/src/main" | |
125 | - | ".*\\.(groovy|java)$"))))) | |
387 | + | "-d" "build/test-classes" | |
388 | + | "-j" | |
389 | + | (find-files "src/test" | |
390 | + | ".*\\.(groovy|java)$"))) | |
391 | + | (zero? (system* "ant" "check")))))))) | |
392 | + | (inputs | |
393 | + | `(("groovy-groovydoc" ,groovy-groovydoc) | |
394 | + | ,@(package-inputs groovy-bootstrap))) | |
395 | + | (native-inputs | |
396 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
397 | + | ("groovy-xml" ,groovy-xml) | |
398 | + | ("groovy-test" ,groovy-test) | |
399 | + | ("groovy-tests-bootstrap" ,groovy-tests-bootstrap) | |
400 | + | ,@(package-native-inputs groovy-java-bootstrap))))) | |
401 | + | ||
402 | + | (define-public groovy-bsf | |
403 | + | (package | |
404 | + | (inherit groovy-bootstrap) | |
405 | + | (name "groovy-bsf") | |
406 | + | (arguments | |
407 | + | `(#:jar-name "groovy-bsf.jar" | |
408 | + | #:test-dir "src/test" | |
409 | + | #:test-exclude (list | |
410 | + | ;; exception from Groovy: org.codehaus.groovy.runtime.InvokerInvocationException: | |
411 | + | ;; groovy.lang.MissingMethodException: No signature of method: | |
412 | + | ;; java.util.ArrayList.each() is applicable for argument types: | |
413 | + | ;; (groovy.script.MapFromList$_doit_closure1) values: | |
414 | + | ;; [groovy.script.MapFromList$_doit_closure1@17e554d5] | |
415 | + | "**/BSFTest.java") | |
416 | + | #:phases | |
417 | + | (modify-phases %standard-phases | |
418 | + | (add-before 'configure 'chdir | |
419 | + | (lambda _ | |
420 | + | (chdir "subprojects/groovy-bsf"))) | |
421 | + | (replace 'build | |
422 | + | (lambda _ | |
423 | + | (mkdir-p "build/classes") | |
424 | + | (mkdir-p "build/jar") | |
425 | + | (and | |
426 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
427 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
428 | + | "-d" "build/classes" | |
429 | + | "-j"; joint compilation | |
430 | + | (find-files "src/main" | |
431 | + | ".*\\.(groovy|java)$"))) | |
432 | + | (zero? (system* "jar" "-cf" "build/jar/groovy-bsf.jar" | |
433 | + | "-C" "build/classes" "."))))) | |
126 | 434 | (replace 'check | |
127 | 435 | (lambda _ | |
128 | 436 | (mkdir-p "build/test-classes") | |
129 | - | (zero? (system* "java" "-cp" (getenv "CLASSPATH") | |
437 | + | (substitute* "build.xml" | |
438 | + | (("depends=\"compile-tests\"") "depends=\"\"")) | |
439 | + | (and | |
440 | + | (zero? (apply system* "java" "-cp" | |
441 | + | (string-append (getenv "CLASSPATH") ":build/classes") | |
130 | 442 | "org.codehaus.groovy.tools.FileSystemCompiler" | |
131 | 443 | "-d" "build/test-classes" | |
132 | 444 | "-j" | |
133 | - | (find-files "subprojects/groovy-templates/src/test" | |
134 | - | ".*\\.(groovy|java)$")))))))) | |
445 | + | (find-files "src/test" | |
446 | + | ".*\\.(groovy|java)$"))) | |
447 | + | (zero? (system* "ant" "check")))))))) | |
448 | + | (inputs | |
449 | + | `(("java-commons-bsf" ,java-commons-bsf) | |
450 | + | ,@(package-inputs groovy-bootstrap))) | |
135 | 451 | (native-inputs | |
136 | - | `(("groovy-java-bootstrap" ,groovy-java-bootstrap) | |
452 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
453 | + | ("groovy-test" ,groovy-test) | |
454 | + | ("groovy-tests-bootstrap" ,groovy-tests-bootstrap) | |
455 | + | ("java-commons-logging-minimal" ,java-commons-logging-minimal) | |
456 | + | ,@(package-native-inputs groovy-java-bootstrap))))) | |
457 | + | ||
458 | + | (define-public groovy-swing | |
459 | + | (package | |
460 | + | (inherit groovy-bootstrap) | |
461 | + | (name "groovy-swing") | |
462 | + | (arguments | |
463 | + | `(#:jar-name "groovy-swing.jar" | |
464 | + | ;; FIXME: tests are not run | |
465 | + | #:test-dir "src/test" | |
466 | + | #:phases | |
467 | + | (modify-phases %standard-phases | |
468 | + | (add-before 'configure 'chdir | |
469 | + | (lambda _ | |
470 | + | (chdir "subprojects/groovy-swing"))) | |
471 | + | (replace 'build | |
472 | + | (lambda _ | |
473 | + | (mkdir-p "build/classes") | |
474 | + | (mkdir-p "build/jar") | |
475 | + | (and | |
476 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
477 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
478 | + | "-d" "build/classes" | |
479 | + | "-j"; joint compilation | |
480 | + | (find-files "src/main" | |
481 | + | ".*\\.(groovy|java)$"))) | |
482 | + | (zero? (system* "jar" "-cf" "build/jar/groovy-swing.jar" | |
483 | + | "-C" "build/classes" "."))))) | |
484 | + | (replace 'check | |
485 | + | (lambda _ | |
486 | + | (mkdir-p "build/test-classes") | |
487 | + | (substitute* "src/test/groovy/groovy/util/GroovySwingTestCase.groovy" | |
488 | + | (("HeadlessTestSupport.headless") "isHeadless()")) | |
489 | + | (substitute* "build.xml" | |
490 | + | (("depends=\"compile-tests\"") "depends=\"\"") | |
491 | + | (("}/java") "}/groovy")) | |
492 | + | (and | |
493 | + | (zero? (apply system* "java" "-cp" | |
494 | + | (string-append (getenv "CLASSPATH") ":build/classes") | |
495 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
496 | + | "-d" "build/test-classes" | |
497 | + | "-j" | |
498 | + | (find-files "src/test" | |
499 | + | ".*\\.(groovy|java)$"))) | |
500 | + | (zero? (system* "ant" "check")))))))) | |
501 | + | (native-inputs | |
502 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
503 | + | ("groovy-test" ,groovy-test) | |
504 | + | ("groovy-tests-bootstrap" ,groovy-tests-bootstrap) | |
505 | + | ("java-commons-logging-minimal" ,java-commons-logging-minimal) | |
506 | + | ,@(package-native-inputs groovy-java-bootstrap))))) | |
507 | + | ||
508 | + | (define-public groovy-console | |
509 | + | (package | |
510 | + | (inherit groovy-bootstrap) | |
511 | + | (name "groovy-console") | |
512 | + | (arguments | |
513 | + | `(#:jar-name "groovy-console.jar" | |
514 | + | ;; FIXME: tests are not run | |
515 | + | #:test-dir "src/test" | |
516 | + | #:phases | |
517 | + | (modify-phases %standard-phases | |
518 | + | (add-before 'configure 'chdir | |
519 | + | (lambda _ | |
520 | + | (chdir "subprojects/groovy-console"))) | |
521 | + | (add-before 'build 'copy-resources | |
522 | + | (lambda _ | |
523 | + | (copy-recursively "src/main/resources" "build/classes"))) | |
524 | + | (replace 'build | |
525 | + | (lambda _ | |
526 | + | (mkdir-p "build/classes") | |
527 | + | (mkdir-p "build/jar") | |
528 | + | (and | |
529 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
530 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
531 | + | "-d" "build/classes" | |
532 | + | "-j"; joint compilation | |
533 | + | (find-files "src/main" | |
534 | + | ".*\\.(groovy|java)$"))) | |
535 | + | (zero? (system* "jar" "-cf" "build/jar/groovy-console.jar" | |
536 | + | "-C" "build/classes" "."))))) | |
537 | + | (replace 'check | |
538 | + | (lambda _ | |
539 | + | (mkdir-p "build/test-classes") | |
540 | + | (substitute* "build.xml" | |
541 | + | (("depends=\"compile-tests\"") "depends=\"\"") | |
542 | + | (("}/java") "}/groovy")) | |
543 | + | (substitute* | |
544 | + | "../groovy-swing/src/test/groovy/groovy/util/GroovySwingTestCase.groovy" | |
545 | + | (("HeadlessTestSupport.headless") "isHeadless()")) | |
546 | + | (and | |
547 | + | (zero? (apply system* "java" "-cp" | |
548 | + | (string-append (getenv "CLASSPATH") ":build/classes") | |
549 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
550 | + | "-d" "build/test-classes" | |
551 | + | "-j" | |
552 | + | (append | |
553 | + | (find-files "../groovy-swing/src/test" | |
554 | + | ".*\\.(groovy|java)$") | |
555 | + | (find-files "src/test" | |
556 | + | ".*\\.(groovy|java)$")))) | |
557 | + | (zero? (system* "ant" "check")))))))) | |
558 | + | (inputs | |
559 | + | `(("groovy-swing" ,groovy-swing) | |
560 | + | ("groovy-templates" ,groovy-templates) | |
561 | + | ,@(package-inputs groovy-bootstrap))) | |
562 | + | (native-inputs | |
563 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
564 | + | ("groovy-test" ,groovy-test) | |
565 | + | ("groovy-tests-bootstrap" ,groovy-tests-bootstrap) | |
566 | + | ("java-commons-logging-minimal" ,java-commons-logging-minimal) | |
567 | + | ,@(package-native-inputs groovy-java-bootstrap))))) | |
568 | + | ||
569 | + | (define-public groovy-docgenerator | |
570 | + | (package | |
571 | + | (inherit groovy-bootstrap) | |
572 | + | (name "groovy-docgenerator") | |
573 | + | (arguments | |
574 | + | `(#:jar-name "groovy-docgenerator.jar" | |
575 | + | #:tests? #f; No tests | |
576 | + | #:phases | |
577 | + | (modify-phases %standard-phases | |
578 | + | (add-before 'configure 'chdir | |
579 | + | (lambda _ | |
580 | + | (chdir "subprojects/groovy-docgenerator"))) | |
581 | + | (add-before 'build 'copy-resources | |
582 | + | (lambda _ | |
583 | + | (copy-recursively "src/main/resources" "build/classes"))) | |
584 | + | (replace 'build | |
585 | + | (lambda _ | |
586 | + | (mkdir-p "build/classes") | |
587 | + | (mkdir-p "build/jar") | |
588 | + | (and | |
589 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
590 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
591 | + | "-d" "build/classes" | |
592 | + | "-j"; joint compilation | |
593 | + | (find-files "src/main" | |
594 | + | ".*\\.(groovy|java)$"))) | |
595 | + | (zero? (system* "jar" "-cf" "build/jar/groovy-docgenerator.jar" | |
596 | + | "-C" "build/classes" ".")))))))) | |
597 | + | (inputs | |
598 | + | `(("groovy-templates" ,groovy-templates) | |
599 | + | ("groovy-swing" ,groovy-swing) | |
600 | + | ("java-qdox-1.12" ,java-qdox-1.12) | |
601 | + | ,@(package-inputs groovy-bootstrap))) | |
602 | + | (native-inputs | |
603 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
604 | + | ("groovy-test" ,groovy-test) | |
605 | + | ("groovy-tests-bootstrap" ,groovy-tests-bootstrap) | |
606 | + | ,@(package-native-inputs groovy-java-bootstrap))))) | |
607 | + | ||
608 | + | (define-public groovy-groovysh | |
609 | + | (package | |
610 | + | (inherit groovy-bootstrap) | |
611 | + | (name "groovy-groovysh") | |
612 | + | (arguments | |
613 | + | `(#:jar-name "groovy-groovysh.jar" | |
614 | + | #:test-dir "src/test" | |
615 | + | #:jdk ,icedtea-8 | |
616 | + | #:phases | |
617 | + | (modify-phases %standard-phases | |
618 | + | (add-before 'configure 'chdir | |
619 | + | (lambda _ | |
620 | + | (chdir "subprojects/groovy-groovysh"))) | |
621 | + | (add-before 'build 'copy-resources | |
622 | + | (lambda _ | |
623 | + | (copy-recursively "src/main/resources" "build/classes"))) | |
624 | + | (replace 'build | |
625 | + | (lambda _ | |
626 | + | (mkdir-p "build/classes") | |
627 | + | (mkdir-p "build/jar") | |
628 | + | (and | |
629 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
630 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
631 | + | "-d" "build/classes" | |
632 | + | "-j"; joint compilation | |
633 | + | (find-files "src/main" | |
634 | + | ".*\\.(groovy|java)$"))) | |
635 | + | (zero? (system* "jar" "-cf" "build/jar/groovy-groovysh.jar" | |
636 | + | "-C" "build/classes" "."))))) | |
637 | + | (replace 'check | |
638 | + | (lambda _ | |
639 | + | (mkdir-p "build/test-classes") | |
640 | + | (substitute* "build.xml" | |
641 | + | (("depends=\"compile-tests\"") "depends=\"\"") | |
642 | + | (("}/java") "}/groovy")) | |
643 | + | (and | |
644 | + | (zero? (apply system* "java" "-cp" | |
645 | + | (string-append (getenv "CLASSPATH") ":build/classes") | |
646 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
647 | + | "-d" "build/test-classes" | |
648 | + | "-j" | |
649 | + | (append | |
650 | + | (find-files "src/test" | |
651 | + | ".*\\.(groovy|java)$")))) | |
652 | + | (zero? (system* "ant" "check")))))))) | |
653 | + | (inputs | |
654 | + | `(("groovy-xml" ,groovy-xml) | |
655 | + | ("groovy-console" ,groovy-console) | |
656 | + | ,@(package-inputs groovy-bootstrap))) | |
657 | + | (native-inputs | |
658 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
659 | + | ("groovy-test" ,groovy-test) | |
660 | + | ("groovy-tests-bootstrap" ,groovy-tests-bootstrap) | |
661 | + | ,@(package-native-inputs groovy-java-bootstrap))))) | |
662 | + | ||
663 | + | (define-public groovy-jmx | |
664 | + | (package | |
665 | + | (inherit groovy-bootstrap) | |
666 | + | (name "groovy-jmx") | |
667 | + | (arguments | |
668 | + | `(#:jar-name "groovy-jmx.jar" | |
669 | + | #:test-dir "src/test" | |
670 | + | #:jdk ,icedtea-8 | |
671 | + | #:phases | |
672 | + | (modify-phases %standard-phases | |
673 | + | (add-before 'configure 'chdir | |
674 | + | (lambda _ | |
675 | + | (chdir "subprojects/groovy-jmx"))) | |
676 | + | (replace 'build | |
677 | + | (lambda _ | |
678 | + | (mkdir-p "build/classes") | |
679 | + | (mkdir-p "build/jar") | |
680 | + | (and | |
681 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
682 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
683 | + | "-d" "build/classes" | |
684 | + | "-j"; joint compilation | |
685 | + | (find-files "src/main" | |
686 | + | ".*\\.(groovy|java)$"))) | |
687 | + | (zero? (system* "jar" "-cf" "build/jar/groovy-jmx.jar" | |
688 | + | "-C" "build/classes" "."))))) | |
689 | + | (replace 'check | |
690 | + | (lambda _ | |
691 | + | (mkdir-p "build/test-classes") | |
692 | + | (substitute* "build.xml" | |
693 | + | (("depends=\"compile-tests\"") "depends=\"\"") | |
694 | + | (("}/java") "}/groovy")) | |
695 | + | (and | |
696 | + | (zero? (apply system* "java" "-cp" | |
697 | + | (string-append (getenv "CLASSPATH") ":build/classes") | |
698 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
699 | + | "-d" "build/test-classes" | |
700 | + | "-j" | |
701 | + | (append | |
702 | + | (find-files "src/test" | |
703 | + | ".*\\.(groovy|java)$")))) | |
704 | + | (zero? (system* "ant" "check")))))))) | |
705 | + | (native-inputs | |
706 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
707 | + | ("groovy-test" ,groovy-test) | |
708 | + | ("groovy-tests-bootstrap" ,groovy-tests-bootstrap) | |
137 | 709 | ,@(package-native-inputs groovy-java-bootstrap))))) | |
138 | 710 | ||
711 | + | (define-public groovy-json | |
712 | + | (package | |
713 | + | (inherit groovy-bootstrap) | |
714 | + | (name "groovy-json") | |
715 | + | (arguments | |
716 | + | `(#:jar-name "groovy-json.jar" | |
717 | + | #:test-dir "src/test" | |
718 | + | #:jdk ,icedtea-8 | |
719 | + | #:phases | |
720 | + | (modify-phases %standard-phases | |
721 | + | (add-before 'configure 'chdir | |
722 | + | (lambda _ | |
723 | + | (chdir "subprojects/groovy-json"))) | |
724 | + | (replace 'build | |
725 | + | (lambda _ | |
726 | + | (mkdir-p "build/classes") | |
727 | + | (mkdir-p "build/jar") | |
728 | + | (and | |
729 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
730 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
731 | + | "-d" "build/classes" | |
732 | + | "-j"; joint compilation | |
733 | + | (find-files "src/main" | |
734 | + | ".*\\.(groovy|java)$"))) | |
735 | + | (zero? (system* "jar" "-cf" "build/jar/groovy-json.jar" | |
736 | + | "-C" "build/classes" "."))))) | |
737 | + | (replace 'check | |
738 | + | (lambda _ | |
739 | + | (mkdir-p "build/test-classes") | |
740 | + | (substitute* "build.xml" | |
741 | + | (("depends=\"compile-tests\"") "depends=\"\"") | |
742 | + | (("}/java") "}/groovy")) | |
743 | + | (and | |
744 | + | (zero? (apply system* "java" "-cp" | |
745 | + | (string-append (getenv "CLASSPATH") ":build/classes") | |
746 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
747 | + | "-d" "build/test-classes" | |
748 | + | "-j" | |
749 | + | (append | |
750 | + | (find-files "src/test" | |
751 | + | ".*\\.(groovy|java)$")))) | |
752 | + | (zero? (system* "ant" "check")))))))) | |
753 | + | (native-inputs | |
754 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
755 | + | ("groovy-test" ,groovy-test) | |
756 | + | ("groovy-tests-bootstrap" ,groovy-tests-bootstrap) | |
757 | + | ,@(package-native-inputs groovy-java-bootstrap))))) | |
758 | + | ||
759 | + | (define-public groovy-jsr223 | |
760 | + | (package | |
761 | + | (inherit groovy-bootstrap) | |
762 | + | (name "groovy-jsr223") | |
763 | + | (arguments | |
764 | + | `(#:jar-name "groovy-jsr223.jar" | |
765 | + | #:test-dir "src/test" | |
766 | + | #:jdk ,icedtea-8 | |
767 | + | #:phases | |
768 | + | (modify-phases %standard-phases | |
769 | + | (add-before 'configure 'chdir | |
770 | + | (lambda _ | |
771 | + | (chdir "subprojects/groovy-jsr223"))) | |
772 | + | (add-before 'build 'copy-resources | |
773 | + | (lambda _ | |
774 | + | (copy-recursively "src/main/resources" "build/classes"))) | |
775 | + | (replace 'build | |
776 | + | (lambda _ | |
777 | + | (mkdir-p "build/classes") | |
778 | + | (mkdir-p "build/jar") | |
779 | + | (and | |
780 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
781 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
782 | + | "-d" "build/classes" | |
783 | + | "-j"; joint compilation | |
784 | + | (find-files "src/main" | |
785 | + | ".*\\.(groovy|java)$"))) | |
786 | + | (zero? (system* "jar" "-cf" "build/jar/groovy-jsr223.jar" | |
787 | + | "-C" "build/classes" "."))))) | |
788 | + | (replace 'check | |
789 | + | (lambda _ | |
790 | + | (mkdir-p "build/test-classes") | |
791 | + | (substitute* "build.xml" | |
792 | + | (("depends=\"compile-tests\"") "depends=\"\"") | |
793 | + | (("}/java") "}/groovy")) | |
794 | + | (and | |
795 | + | (zero? (apply system* "java" "-cp" | |
796 | + | (string-append (getenv "CLASSPATH") ":build/classes") | |
797 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
798 | + | "-d" "build/test-classes" | |
799 | + | "-j" | |
800 | + | (append | |
801 | + | (find-files "src/test" | |
802 | + | ".*\\.(groovy|java)$")))) | |
803 | + | (zero? (system* "ant" "check")))))))) | |
804 | + | (native-inputs | |
805 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
806 | + | ("groovy-test" ,groovy-test) | |
807 | + | ("groovy-tests-bootstrap" ,groovy-tests-bootstrap) | |
808 | + | ,@(package-native-inputs groovy-java-bootstrap))))) | |
809 | + | ||
810 | + | (define-public groovy-nio | |
811 | + | (package | |
812 | + | (inherit groovy-bootstrap) | |
813 | + | (name "groovy-nio") | |
814 | + | (arguments | |
815 | + | `(#:jar-name "groovy-nio.jar" | |
816 | + | #:test-dir "src/test" | |
817 | + | #:jdk ,icedtea-8 | |
818 | + | #:tests? #f; Requires spock-framework | |
819 | + | #:phases | |
820 | + | (modify-phases %standard-phases | |
821 | + | (add-before 'configure 'chdir | |
822 | + | (lambda _ | |
823 | + | (chdir "subprojects/groovy-nio"))) | |
824 | + | (replace 'build | |
825 | + | (lambda _ | |
826 | + | (mkdir-p "build/classes") | |
827 | + | (mkdir-p "build/jar") | |
828 | + | (and | |
829 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
830 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
831 | + | "-d" "build/classes" | |
832 | + | "-j"; joint compilation | |
833 | + | (find-files "src/main" | |
834 | + | ".*\\.(groovy|java)$"))) | |
835 | + | (zero? (system* "jar" "-cf" "build/jar/groovy-nio.jar" | |
836 | + | "-C" "build/classes" ".")))))))) | |
837 | + | (native-inputs | |
838 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
839 | + | ("groovy-test" ,groovy-test) | |
840 | + | ("groovy-tests-bootstrap" ,groovy-tests-bootstrap) | |
841 | + | ,@(package-native-inputs groovy-java-bootstrap))))) | |
842 | + | ||
843 | + | (define-public groovy-servlet | |
844 | + | (package | |
845 | + | (inherit groovy-bootstrap) | |
846 | + | (name "groovy-servlet") | |
847 | + | (arguments | |
848 | + | `(#:jar-name "groovy-jsr223.jar" | |
849 | + | #:test-dir "src/test" | |
850 | + | #:jdk ,icedtea-8 | |
851 | + | #:phases | |
852 | + | (modify-phases %standard-phases | |
853 | + | (add-before 'configure 'chdir | |
854 | + | (lambda _ | |
855 | + | (chdir "subprojects/groovy-servlet"))) | |
856 | + | (replace 'build | |
857 | + | (lambda _ | |
858 | + | (mkdir-p "build/classes") | |
859 | + | (mkdir-p "build/jar") | |
860 | + | (and | |
861 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
862 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
863 | + | "-d" "build/classes" | |
864 | + | "-j"; joint compilation | |
865 | + | (find-files "src/main" | |
866 | + | ".*\\.(groovy|java)$"))) | |
867 | + | (zero? (system* "jar" "-cf" "build/jar/groovy-servlet.jar" | |
868 | + | "-C" "build/classes" "."))))) | |
869 | + | (replace 'check | |
870 | + | (lambda _ | |
871 | + | (mkdir-p "build/test-classes") | |
872 | + | (substitute* "build.xml" | |
873 | + | (("depends=\"compile-tests\"") "depends=\"\"") | |
874 | + | (("}/java") "}/groovy")) | |
875 | + | (and | |
876 | + | (zero? (apply system* "java" "-cp" | |
877 | + | (string-append (getenv "CLASSPATH") ":build/classes") | |
878 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
879 | + | "-d" "build/test-classes" | |
880 | + | "-j" | |
881 | + | (append | |
882 | + | (find-files "src/test" | |
883 | + | ".*\\.(groovy|java)$")))) | |
884 | + | (zero? (system* "ant" "check")))))))) | |
885 | + | (inputs | |
886 | + | `(("groovy-templates" ,groovy-templates) | |
887 | + | ("groovy-xml" ,groovy-xml) | |
888 | + | ,@(package-inputs groovy-bootstrap))) | |
889 | + | (native-inputs | |
890 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
891 | + | ("groovy-json" ,groovy-json) | |
892 | + | ("groovy-test" ,groovy-test) | |
893 | + | ("groovy-tests-bootstrap" ,groovy-tests-bootstrap) | |
894 | + | ,@(package-native-inputs groovy-java-bootstrap))))) | |
895 | + | ||
896 | + | (define-public groovy-sql | |
897 | + | (package | |
898 | + | (inherit groovy-bootstrap) | |
899 | + | (name "groovy-sql") | |
900 | + | (arguments | |
901 | + | `(#:jar-name "groovy-sql.jar" | |
902 | + | #:test-dir "src/test" | |
903 | + | #:tests? #f;TODO: Requires hsqldb | |
904 | + | #:jdk ,icedtea-8 | |
905 | + | #:phases | |
906 | + | (modify-phases %standard-phases | |
907 | + | (add-before 'configure 'chdir | |
908 | + | (lambda _ | |
909 | + | (chdir "subprojects/groovy-sql"))) | |
910 | + | (replace 'build | |
911 | + | (lambda _ | |
912 | + | (mkdir-p "build/classes") | |
913 | + | (mkdir-p "build/jar") | |
914 | + | (and | |
915 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
916 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
917 | + | "-d" "build/classes" | |
918 | + | "-j"; joint compilation | |
919 | + | (find-files "src/main" | |
920 | + | ".*\\.(groovy|java)$"))) | |
921 | + | (zero? (system* "jar" "-cf" "build/jar/groovy-sql.jar" | |
922 | + | "-C" "build/classes" ".")))))))) | |
923 | + | (native-inputs | |
924 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
925 | + | ("groovy-test" ,groovy-test) | |
926 | + | ("groovy-tests-bootstrap" ,groovy-tests-bootstrap) | |
927 | + | ,@(package-native-inputs groovy-java-bootstrap))))) | |
928 | + | ||
929 | + | (define-public groovy-testng | |
930 | + | (package | |
931 | + | (inherit groovy-bootstrap) | |
932 | + | (name "groovy-testng") | |
933 | + | (arguments | |
934 | + | `(#:jar-name "groovy-testng.jar" | |
935 | + | #:tests? #f; No tests | |
936 | + | #:jdk ,icedtea-8 | |
937 | + | #:phases | |
938 | + | (modify-phases %standard-phases | |
939 | + | (add-before 'configure 'chdir | |
940 | + | (lambda _ | |
941 | + | (chdir "subprojects/groovy-testng"))) | |
942 | + | (add-before 'build 'copy-resources | |
943 | + | (lambda _ | |
944 | + | (copy-recursively "src/main/resources" "build/classes"))) | |
945 | + | (replace 'build | |
946 | + | (lambda _ | |
947 | + | (mkdir-p "build/classes") | |
948 | + | (mkdir-p "build/jar") | |
949 | + | (and | |
950 | + | (zero? (apply system* "java" "-cp" (getenv "CLASSPATH") | |
951 | + | "org.codehaus.groovy.tools.FileSystemCompiler" | |
952 | + | "-d" "build/classes" | |
953 | + | "-j"; joint compilation | |
954 | + | (find-files "src/main" | |
955 | + | ".*\\.(groovy|java)$"))) | |
956 | + | (zero? (system* "jar" "-cf" "build/jar/groovy-testng.jar" | |
957 | + | "-C" "build/classes" ".")))))))) | |
958 | + | (native-inputs | |
959 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
960 | + | ("groovy-test" ,groovy-test) | |
961 | + | ("groovy-tests-bootstrap" ,groovy-tests-bootstrap) | |
962 | + | ,@(package-native-inputs groovy-java-bootstrap))))) | |
963 | + | ||
964 | + | (define-public groovy | |
965 | + | (package | |
966 | + | (inherit groovy-bootstrap) | |
967 | + | (name "groovy") | |
968 | + | (arguments | |
969 | + | `(#:tests? #f; No tests | |
970 | + | #:phases | |
971 | + | (modify-phases %standard-phases | |
972 | + | (delete 'configure) | |
973 | + | (delete 'build) | |
974 | + | (replace 'install | |
975 | + | (lambda* (#:key outputs inputs #:allow-other-keys) | |
976 | + | (let* ((out (assoc-ref outputs "out")) | |
977 | + | (out-bin (string-append out "/bin"))) | |
978 | + | (with-directory-excursion "src/bin" | |
979 | + | (substitute* "startGroovy" | |
980 | + | (("\"\\\\\"") "\"") | |
981 | + | (("\\\\\"\"") "\"") | |
982 | + | (("\\\\\\$") "$") | |
983 | + | (("STARTER_CLASSPATH=.*") | |
984 | + | (string-append | |
985 | + | "STARTER_CLASSPATH=" | |
986 | + | (string-join | |
987 | + | (apply append | |
988 | + | (map (lambda (input) | |
989 | + | (find-files (assoc-ref inputs input) ".*.jar")) | |
990 | + | '("groovy-bootstrap" "groovy-ant" "groovy-bsf" | |
991 | + | "groovy-console" "groovy-docgenerator" | |
992 | + | "groovy-groovydoc" "groovy-groovysh" | |
993 | + | "groovy-jmx" "groovy-json" "groovy-jsr223" | |
994 | + | "groovy-nio" "groovy-servlet" "groovy-sql" | |
995 | + | "groovy-swing" "groovy-templates" "groovy-testng" | |
996 | + | "java-commons-cli" "java-asm" | |
997 | + | "java-classpathx-servletapi" "java-xstream" | |
998 | + | "java-jansi" "java-jline-2" "antlr2"))) | |
999 | + | ":")))) | |
1000 | + | (for-each | |
1001 | + | (lambda (tool) | |
1002 | + | (install-file tool out-bin) | |
1003 | + | (chmod (string-append out-bin "/" tool) #o755)) | |
1004 | + | '("grape" "groovy" "groovyc" "groovyConsole" "groovydoc" | |
1005 | + | "groovysh" "java2groovy" "startGroovy"))) | |
1006 | + | (install-file "src/conf/groovy-starter.conf" | |
1007 | + | (string-append out "/conf")))))))) | |
1008 | + | (inputs | |
1009 | + | `(("groovy-bootstrap" ,groovy-bootstrap) | |
1010 | + | ("groovy-ant" ,groovy-ant) | |
1011 | + | ("groovy-bsf" ,groovy-bsf) | |
1012 | + | ("groovy-console" ,groovy-console) | |
1013 | + | ("groovy-docgenerator" ,groovy-docgenerator) | |
1014 | + | ("groovy-groovydoc" ,groovy-groovydoc) | |
1015 | + | ("groovy-groovysh" ,groovy-groovysh) | |
1016 | + | ("groovy-jmx" ,groovy-jmx) | |
1017 | + | ("groovy-json" ,groovy-json) | |
1018 | + | ("groovy-jsr223" ,groovy-jsr223) | |
1019 | + | ("groovy-nio" ,groovy-nio) | |
1020 | + | ("groovy-servlet" ,groovy-servlet) | |
1021 | + | ("groovy-sql" ,groovy-sql) | |
1022 | + | ("groovy-swing" ,groovy-swing) | |
1023 | + | ("groovy-templates" ,groovy-templates) | |
1024 | + | ("groovy-testng" ,groovy-testng) | |
1025 | + | ("java-commons-cli" ,java-commons-cli) | |
1026 | + | ("java-asm" ,java-asm) | |
1027 | + | ("java-classpathx-servletapi" ,java-classpathx-servletapi) | |
1028 | + | ("java-xstream" ,java-xstream) | |
1029 | + | ("java-jansi" ,java-jansi) | |
1030 | + | ("java-jline-2" ,java-jline-2) | |
1031 | + | ("antlr2" ,antlr2))))) |
more/packages/java.scm
36 | 36 | #:use-module (gnu packages perl) | |
37 | 37 | #:use-module (gnu packages web) | |
38 | 38 | #:use-module (gnu packages xml) | |
39 | + | #:use-module (more packages groovy) | |
39 | 40 | #:use-module (more packages python)) | |
40 | 41 | ||
41 | 42 | (define-public java-jul-to-slf4j | |
… | |||
1663 | 1664 | ; (assoc-ref inputs "docbook-xml")) | |
1664 | 1665 | ; ))))))) | |
1665 | 1666 | (inputs | |
1666 | - | `(("java-jboos-javassist" ,java-jboss-javassist))) | |
1667 | + | `(("java-jboss-javassist" ,java-jboss-javassist))) | |
1667 | 1668 | (native-inputs | |
1668 | 1669 | `(("java-junit" ,java-junit) | |
1669 | 1670 | ("java-hamcrest-core" ,java-hamcrest-core) | |
… | |||
3643 | 3644 | `(#:jar-name "jline.jar" | |
3644 | 3645 | #:source-dir "src/main/java" | |
3645 | 3646 | #:test-dir "src/test" | |
3647 | + | #:jdk ,icedtea-8 | |
3646 | 3648 | #:phases | |
3647 | 3649 | (modify-phases %standard-phases | |
3648 | 3650 | (add-before 'build 'copy-resources | |
3649 | 3651 | (lambda _ | |
3650 | - | (mkdir-p "build/classes/jline") | |
3651 | - | (for-each (lambda (f) (copy-file (string-append "src/main/resources/jline/" f) | |
3652 | - | (string-append "build/classes/jline/" f))) | |
3653 | - | '("CandidateListCompletionHandler.properties" | |
3654 | - | "keybindings-mac.properties" | |
3655 | - | "keybindings.properties" | |
3656 | - | "windowsbindings.properties"))))))) | |
3652 | + | (copy-recursively "src/main/resources" "build/classes")))))) | |
3657 | 3653 | (native-inputs | |
3658 | 3654 | `(("java-junit" ,java-junit))) | |
3659 | 3655 | (home-page "https://jline.github.io") | |
… | |||
3661 | 3657 | (description "") | |
3662 | 3658 | (license license:asl2.0))) | |
3663 | 3659 | ||
3660 | + | (define-public java-jline-2 | |
3661 | + | (package | |
3662 | + | (inherit java-jline) | |
3663 | + | (version "2.14.5") | |
3664 | + | (source (origin | |
3665 | + | (method url-fetch) | |
3666 | + | (uri (string-append "https://github.com/jline/jline2/archive/jline-" | |
3667 | + | version ".tar.gz")) | |
3668 | + | (sha256 | |
3669 | + | (base32 | |
3670 | + | "1c6qa26mf0viw8hg4jnv72s7i1qb1gh1l8rrzcdvqhqhx82rkdlf")))) | |
3671 | + | (inputs | |
3672 | + | `(("java-jansi" ,java-jansi) | |
3673 | + | ("java-jansi-native" ,java-jansi-native))) | |
3674 | + | (native-inputs | |
3675 | + | `(("java-powermock-modules-junit4" ,java-powermock-modules-junit4) | |
3676 | + | ("java-powermock-modules-junit4-common" ,java-powermock-modules-junit4-common) | |
3677 | + | ("java-powermock-api-easymock" ,java-powermock-api-easymock) | |
3678 | + | ("java-powermock-api-support" ,java-powermock-api-support) | |
3679 | + | ("java-powermock-core" ,java-powermock-core) | |
3680 | + | ("java-powermock-reflect" ,java-powermock-reflect) | |
3681 | + | ("java-easymock" ,java-easymock) | |
3682 | + | ("java-jboss-javassist" ,java-jboss-javassist) | |
3683 | + | ("java-objenesis" ,java-objenesis) | |
3684 | + | ("java-asm" ,java-asm) | |
3685 | + | ("java-hamcrest-core" ,java-hamcrest-core) | |
3686 | + | ("java-cglib" ,java-cglib) | |
3687 | + | ("java-junit" ,java-junit) | |
3688 | + | ("java-hawtjni" ,java-hawtjni))))) | |
3689 | + | ||
3664 | 3690 | ;; vanished from the face of the earth :/ | |
3665 | 3691 | (define-public java-jsonp | |
3666 | 3692 | (package | |
… | |||
3746 | 3772 | these scripting language engines.") | |
3747 | 3773 | (license license:asl2.0))) | |
3748 | 3774 | ||
3749 | - | (define-public groovy | |
3750 | - | (package | |
3751 | - | (name "groovy") | |
3752 | - | (version "2.4.10") | |
3753 | - | (source (origin | |
3754 | - | (method url-fetch) | |
3755 | - | (uri (string-append "https://github.com/apache/groovy/archive/GROOVY_" | |
3756 | - | "2_4_10.tar.gz")) | |
3757 | - | (file-name (string-append name "-" version ".tar.gz")) | |
3758 | - | (sha256 | |
3759 | - | (base32 | |
3760 | - | "15c9xmf7rhr5w4qk2jcb6swds336l4l5gyb51pcjay2ywnigk8sa")) | |
3761 | - | (patches | |
3762 | - | (search-patches | |
3763 | - | "groovy-Add-exceptionutilsgenerator.patch")))) | |
3764 | - | (build-system ant-build-system) | |
3765 | - | (arguments | |
3766 | - | `(#:jar-name "groovy.jar" | |
3767 | - | #:source-dir "src/main:subprojects/groovy-test/src/main/java" | |
3768 | - | #:test-dir "src/test" | |
3769 | - | #:tests? #f | |
3770 | - | #:main-class "groovy.ui.GroovyMain" | |
3771 | - | #:phases | |
3772 | - | (modify-phases %standard-phases | |
3773 | - | (add-before 'build 'generate-parser | |
3774 | - | (lambda _ | |
3775 | - | (with-directory-excursion "src/main/org/codehaus/groovy/antlr/java" | |
3776 | - | (zero? (system* "antlr" "java.g"))) | |
3777 | - | (with-directory-excursion "src/main/org/codehaus/groovy/antlr" | |
3778 | - | (mkdir "parser") | |
3779 | - | (with-directory-excursion "parser" | |
3780 | - | (zero? (system* "antlr" "../groovy.g")))))) | |
3781 | - | (add-before 'build 'generate-exception-utils | |
3782 | - | (lambda _ | |
3783 | - | (system* "javac" "-cp" (getenv "CLASSPATH") | |
3784 | - | "config/ant/src/org/codehaus/groovy/ExceptionUtilsGenerator.java") | |
3785 | - | (zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH") | |
3786 | - | ":config/ant/src") | |
3787 | - | "org.codehaus.groovy.ExceptionUtilsGenerator" | |
3788 | - | "build/classes/org/codehaus/groovy/runtime/ExceptionUtils.class")))) | |
3789 | - | (add-after 'install 'install-sh | |
3790 | - | (lambda* (#:key outputs #:allow-other-keys) | |
3791 | - | (substitute* "src/bin/startGroovy" | |
3792 | - | ((" -classpath .*") | |
3793 | - | (string-append " -classpath " (getenv "CLASSPATH") ":" | |
3794 | - | (assoc-ref outputs "out") "/share/java/groovy.jar \\"))) | |
3795 | - | (let ((bin (string-append (assoc-ref outputs "out") "/bin"))) | |
3796 | - | (for-each (lambda (script) | |
3797 | - | (install-file (string-append "src/bin/" script) bin) | |
3798 | - | (chmod (string-append bin "/" script) #o755)) | |
3799 | - | '("grape" "groovy" "groovyc" "groovyConsole" "groovydoc" | |
3800 | - | "groovysh" "java2groovy" "startGroovy"))) | |
3801 | - | (install-file "src/conf/groovy-starter.conf" | |
3802 | - | (string-append (assoc-ref outputs "out") "/conf")) | |
3803 | - | #t)) | |
3804 | - | (add-before 'check 'add-groovy-classes | |
3805 | - | (lambda _ | |
3806 | - | (substitute* "build.xml" | |
3807 | - | (("a") "a"))))))) | |
3808 | - | (native-inputs | |
3809 | - | `(("java-junit" ,java-junit) | |
3810 | - | ("antlr2" ,antlr2) | |
3811 | - | ("java-jmock-1" ,java-jmock-1) | |
3812 | - | ("java-xmlunit-legacy" ,java-xmlunit-legacy))) | |
3813 | - | (inputs | |
3814 | - | `(("java-commons-cli" ,java-commons-cli) | |
3815 | - | ("java-asm" ,java-asm) | |
3816 | - | ("java-tomcat" ,java-tomcat) | |
3817 | - | ("java-xstream" ,java-xstream) | |
3818 | - | ("java-jansi" ,java-jansi) | |
3819 | - | ("java-jline" ,java-jline))) | |
3820 | - | (home-page "") | |
3821 | - | (synopsis "") | |
3822 | - | (description "") | |
3823 | - | (license (list license:gpl2 | |
3824 | - | license:cddl1.1)))) | |
3775 | + | ;(define-public groovy | |
3776 | + | ; (package | |
3777 | + | ; (name "groovy") | |
3778 | + | ; (version "2.4.10") | |
3779 | + | ; (source (origin | |
3780 | + | ; (method url-fetch) | |
3781 | + | ; (uri (string-append "https://github.com/apache/groovy/archive/GROOVY_" | |
3782 | + | ; "2_4_10.tar.gz")) | |
3783 | + | ; (file-name (string-append name "-" version ".tar.gz")) | |
3784 | + | ; (sha256 | |
3785 | + | ; (base32 | |
3786 | + | ; "15c9xmf7rhr5w4qk2jcb6swds336l4l5gyb51pcjay2ywnigk8sa")) | |
3787 | + | ; (patches | |
3788 | + | ; (search-patches | |
3789 | + | ; "groovy-Add-exceptionutilsgenerator.patch")))) | |
3790 | + | ; (build-system ant-build-system) | |
3791 | + | ; (arguments | |
3792 | + | ; `(#:jar-name "groovy.jar" | |
3793 | + | ; #:source-dir "src/main:subprojects/groovy-test/src/main/java" | |
3794 | + | ; #:test-dir "src/test" | |
3795 | + | ; #:tests? #f | |
3796 | + | ; #:main-class "groovy.ui.GroovyMain" | |
3797 | + | ; #:phases | |
3798 | + | ; (modify-phases %standard-phases | |
3799 | + | ; (add-before 'build 'generate-parser | |
3800 | + | ; (lambda _ | |
3801 | + | ; (with-directory-excursion "src/main/org/codehaus/groovy/antlr/java" | |
3802 | + | ; (zero? (system* "antlr" "java.g"))) | |
3803 | + | ; (with-directory-excursion "src/main/org/codehaus/groovy/antlr" | |
3804 | + | ; (mkdir "parser") | |
3805 | + | ; (with-directory-excursion "parser" | |
3806 | + | ; (zero? (system* "antlr" "../groovy.g")))))) | |
3807 | + | ; (add-before 'build 'generate-exception-utils | |
3808 | + | ; (lambda _ | |
3809 | + | ; (system* "javac" "-cp" (getenv "CLASSPATH") | |
3810 | + | ; "config/ant/src/org/codehaus/groovy/ExceptionUtilsGenerator.java") | |
3811 | + | ; (zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH") | |
3812 | + | ; ":config/ant/src") | |
3813 | + | ; "org.codehaus.groovy.ExceptionUtilsGenerator" | |
3814 | + | ; "build/classes/org/codehaus/groovy/runtime/ExceptionUtils.class")))) | |
3815 | + | ; (add-after 'install 'install-sh | |
3816 | + | ; (lambda* (#:key outputs #:allow-other-keys) | |
3817 | + | ; (substitute* "src/bin/startGroovy" | |
3818 | + | ; ((" -classpath .*") | |
3819 | + | ; (string-append " -classpath " (getenv "CLASSPATH") ":" | |
3820 | + | ; (assoc-ref outputs "out") "/share/java/groovy.jar \\"))) | |
3821 | + | ; (let ((bin (string-append (assoc-ref outputs "out") "/bin"))) | |
3822 | + | ; (for-each (lambda (script) | |
3823 | + | ; (install-file (string-append "src/bin/" script) bin) | |
3824 | + | ; (chmod (string-append bin "/" script) #o755)) | |
3825 | + | ; '("grape" "groovy" "groovyc" "groovyConsole" "groovydoc" | |
3826 | + | ; "groovysh" "java2groovy" "startGroovy"))) | |
3827 | + | ; (install-file "src/conf/groovy-starter.conf" | |
3828 | + | ; (string-append (assoc-ref outputs "out") "/conf")) | |
3829 | + | ; #t)) | |
3830 | + | ; (add-before 'check 'add-groovy-classes | |
3831 | + | ; (lambda _ | |
3832 | + | ; (substitute* "build.xml" | |
3833 | + | ; (("a") "a"))))))) | |
3834 | + | ; (native-inputs | |
3835 | + | ; `(("java-junit" ,java-junit) | |
3836 | + | ; ("antlr2" ,antlr2) | |
3837 | + | ; ("java-jmock-1" ,java-jmock-1) | |
3838 | + | ; ("java-xmlunit-legacy" ,java-xmlunit-legacy))) | |
3839 | + | ; (inputs | |
3840 | + | ; `(("java-commons-cli" ,java-commons-cli) | |
3841 | + | ; ("java-asm" ,java-asm) | |
3842 | + | ; ("java-tomcat" ,java-tomcat) | |
3843 | + | ; ("java-xstream" ,java-xstream) | |
3844 | + | ; ("java-jansi" ,java-jansi) | |
3845 | + | ; ("java-jline" ,java-jline))) | |
3846 | + | ; (home-page "") | |
3847 | + | ; (synopsis "") | |
3848 | + | ; (description "") | |
3849 | + | ; (license (list license:gpl2 | |
3850 | + | ; license:cddl1.1)))) | |
3825 | 3851 | ||
3826 | 3852 | (define-public java-apache-ivy-bootstrap | |
3827 | 3853 | (package | |
… | |||
3850 | 3876 | (description "") | |
3851 | 3877 | (license license:asl2.0))) | |
3852 | 3878 | ||
3853 | - | (define-public groovy-bootstrap | |
3854 | - | (package | |
3855 | - | (name "groovy") | |
3856 | - | (version "2.0.0beta3") | |
3857 | - | (source (origin | |
3858 | - | (method url-fetch) | |
3859 | - | (uri (string-append "https://github.com/apache/groovy/archive/GROOVY_" | |
3860 | - | "2_0_0_BETA_3.tar.gz")) | |
3861 | - | (file-name (string-append "groovy-" version ".tar.gz")) | |
3862 | - | (sha256 | |
3863 | - | (base32 | |
3864 | - | "1hm6kbwy5yhkzz7d2ln29k51iar6m7rwrzimsawgschvvqyrdxna")))) | |
3865 | - | (build-system ant-build-system) | |
3866 | - | (arguments | |
3867 | - | `(#:build-target "createJars" | |
3868 | - | #:tests? #f; part of build | |
3869 | - | #:make-flags | |
3870 | - | (list "-D_skipFetch_=true" | |
3871 | - | ;; FIXME: Tests require at least hsqldb and a part of ant testsuite | |
3872 | - | "-D_skipTests_=true" | |
3873 | - | ;; FIXME: Find aQute/bnd/ant/taskdef.properties. | |
3874 | - | "-D_skipOsgi_=true" | |
3875 | - | (string-append "-DinstallDirectory=" (assoc-ref %outputs "out"))) | |
3876 | - | #:phases | |
3877 | - | (modify-phases %standard-phases | |
3878 | - | (add-before 'build 'make-build-dir | |
3879 | - | (lambda* (#:key inputs #:allow-other-keys) | |
3880 | - | (substitute* "build.xml" | |
3881 | - | (("<property file=\"local.build.properties\"/>") | |
3882 | - | (string-append "<property file=\"local.build.properties\"/> | |
3883 | - | <path id=\"classpath\"> | |
3884 | - | <fileset dir=\"" (assoc-ref inputs "java-asm") "\"> | |
3885 | - | <include name=\"**/*.jar\" /> | |
3886 | - | </fileset> | |
3887 | - | <fileset dir=\"" (assoc-ref inputs "antlr2") "\"> | |
3888 | - | <include name=\"**/*.jar\" /> | |
3889 | - | </fileset> | |
3890 | - | <fileset dir=\"" (assoc-ref inputs "java-classpathx-servletapi") "\"> | |
3891 | - | <include name=\"**/*.jar\" /> | |
3892 | - | </fileset> | |
3893 | - | <fileset dir=\"" (assoc-ref inputs "java-xstream") "\"> | |
3894 | - | <include name=\"**/*.jar\" /> | |
3895 | - | </fileset> | |
3896 | - | <fileset dir=\"" (assoc-ref inputs "java-commons-cli") "\"> | |
3897 | - | <include name=\"**/*.jar\" /> | |
3898 | - | </fileset> | |
3899 | - | <fileset dir=\"" (assoc-ref inputs "ant") "\"> | |
3900 | - | <include name=\"**/*.jar\" /> | |
3901 | - | </fileset> | |
3902 | - | <fileset dir=\"" (assoc-ref inputs "java-jline") "\"> | |
3903 | - | <include name=\"**/*.jar\" /> | |
3904 | - | </fileset> | |
3905 | - | <fileset dir=\"" (assoc-ref inputs "java-junit") "\"> | |
3906 | - | <include name=\"**/*.jar\" /> | |
3907 | - | </fileset> | |
3908 | - | <fileset dir=\"" (assoc-ref inputs "java-jansi") "\"> | |
3909 | - | <include name=\"**/*.jar\" /> | |
3910 | - | </fileset> | |
3911 | - | <fileset dir=\"" (assoc-ref inputs "java-commons-bsf") "\"> | |
3912 | - | <include name=\"**/*.jar\" /> | |
3913 | - | </fileset> | |
3914 | - | <fileset dir=\"" (assoc-ref inputs "java-apache-ivy-bootstrap") "\"> | |
3915 | - | <include name=\"**/*.jar\" /> | |
3916 | - | </fileset> | |
3917 | - | </path>")) | |
3918 | - | (("compilePath") "classpath")) | |
3919 | - | (substitute* "config/ant/build-setup.xml" | |
3920 | - | (("runtimePath") "classpath")) | |
3921 | - | ;; --classpath is not recognized (bug in commons-cli?) | |
3922 | - | (substitute* "src/main/org/codehaus/groovy/ant/Groovyc.java" | |
3923 | - | (("--classpath") "-cp")) | |
3924 | - | ;; These directories would have been created by maven initialization | |
3925 | - | (mkdir-p "target/lib/compile") | |
3926 | - | (mkdir-p "target/lib/test") | |
3927 | - | (mkdir-p "target/lib/tools") | |
3928 | - | (mkdir-p "target/lib/runtime") | |
3929 | - | #t)) | |
3930 | - | (add-after 'install 'remove-embeddable | |
3931 | - | (lambda* (#:key outputs #:allow-other-keys) | |
3932 | - | (delete-file (string-append (assoc-ref outputs "out") | |
3933 | - | "/embeddable/groovy-all-2.0.0-beta-3.jar")) | |
3934 | - | #t))))) | |
3935 | - | (inputs | |
3936 | - | `(("java-commons-cli" ,java-commons-cli) | |
3937 | - | ("java-asm" ,java-asm) | |
3938 | - | ("ant-junit-tests" ,ant-junit-tests) | |
3939 | - | ("java-commons-bsf" ,java-commons-bsf) | |
3940 | - | ("java-classpathx-servletapi" ,java-classpathx-servletapi) | |
3941 | - | ("java-xstream" ,java-xstream) | |
3942 | - | ("java-jansi" ,java-jansi) | |
3943 | - | ("java-jline" ,java-jline) | |
3944 | - | ("java-apache-ivy-bootstrap" ,java-apache-ivy-bootstrap) | |
3945 | - | ("antlr2" ,antlr2))) | |
3946 | - | (native-inputs | |
3947 | - | `(("ant-antlr" ,ant-antlr) | |
3948 | - | ("java-aqute-bndlib" ,java-aqute-bndlib) | |
3949 | - | ("ant-junit-tests" ,ant-junit-tests) | |
3950 | - | ("java-jarjar" ,java-jarjar) | |
3951 | - | ("java-junit" ,java-junit) | |
3952 | - | ("java-jmock-1" ,java-jmock-1) | |
3953 | - | ("java-xmlunit-legacy" ,java-xmlunit-legacy))) | |
3954 | - | (home-page "") | |
3955 | - | (synopsis "") | |
3956 | - | (description "") | |
3957 | - | (license (list license:gpl2 | |
3958 | - | license:cddl1.1)))) | |
3959 | - | ||
3960 | - | (define-public groovy-2.4 | |
3961 | - | (package | |
3962 | - | (inherit groovy-bootstrap) | |
3963 | - | (name "groovy") | |
3964 | - | (version "2.2.0") | |
3965 | - | (source (origin | |
3966 | - | (method url-fetch) | |
3967 | - | (uri (string-append "https://github.com/apache/groovy/archive/GROOVY_" | |
3968 | - | "2_2_0.tar.gz")) | |
3969 | - | (file-name (string-append name "-" version ".tar.gz")) | |
3970 | - | (sha256 | |
3971 | - | (base32 | |
3972 | - | "1fx9a71f0n5jr52zzyayia2hmbsr9pnd76rnh0z3y9ys1c5k8g7w")) | |
3973 | - | (patches | |
3974 | - | (search-patches | |
3975 | - | "groovy-Add-exceptionutilsgenerator.patch")))) | |
3976 | - | (arguments | |
3977 | - | `(#:build-target "createJars" | |
3978 | - | #:tests? #f; part of build | |
3979 | - | #:jdk ,icedtea-8 | |
3980 | - | #:make-flags | |
3981 | - | (list "-D_skipFetch_=true" | |
3982 | - | ;; FIXME: Tests require at least hsqldb and a part of ant testsuite | |
3983 | - | "-D_skipTests_=true" | |
3984 | - | ;; FIXME: Find aQute/bnd/ant/taskdef.properties. | |
3985 | - | "-D_skipOsgi_=true" | |
3986 | - | (string-append "-DinstallDirectory=" (assoc-ref %outputs "out"))) | |
3987 | - | #:phases | |
3988 | - | (modify-phases %standard-phases | |
3989 | - | ;; FIXME: This should be taken care of by build.xml. Why doesn't it work? | |
3990 | - | (add-before 'build 'generate-parser | |
3991 | - | (lambda _ | |
3992 | - | (with-directory-excursion "src/main/org/codehaus/groovy/antlr/java" | |
3993 | - | (zero? (system* "antlr" "java.g"))) | |
3994 | - | (with-directory-excursion "src/main/org/codehaus/groovy/antlr" | |
3995 | - | (mkdir "parser") | |
3996 | - | (with-directory-excursion "parser" | |
3997 | - | (zero? (system* "antlr" "../groovy.g")))))) | |
3998 | - | (add-before 'build 'generate-exception-utils | |
3999 | - | (lambda _ | |
4000 | - | (system* "javac" "-cp" (getenv "CLASSPATH") | |
4001 | - | "config/ant/src/org/codehaus/groovy/ExceptionUtilsGenerator.java") | |
4002 | - | (zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH") | |
4003 | - | ":config/ant/src") | |
4004 | - | "org.codehaus.groovy.ExceptionUtilsGenerator" | |
4005 | - | "target/classes/org/codehaus/groovy/runtime/ExceptionUtils.class")))) | |
4006 | - | (add-before 'configure 'copy-build.xml | |
4007 | - | (lambda* (#:key inputs #:allow-other-keys) | |
4008 | - | (mkdir "old-groovy-tmp") | |
4009 | - | (mkdir-p "config/ant") | |
4010 | - | (with-directory-excursion "old-groovy-tmp" | |
4011 | - | (system* "tar" "xf" (assoc-ref inputs "build.xml")) | |
4012 | - | (copy-file "groovy-GROOVY_2_0_0_BETA_3/build.xml" | |
4013 | - | "../build.xml") | |
4014 | - | (copy-recursively "groovy-GROOVY_2_0_0_BETA_3/config/ant" | |
4015 | - | "../config/ant")) | |
4016 | - | #t)) | |
4017 | - | (add-before 'build 'make-build-dir | |
4018 | - | (lambda* (#:key inputs #:allow-other-keys) | |
4019 | - | (substitute* "build.xml" | |
4020 | - | (("<property file=\"local.build.properties\"/>") | |
4021 | - | (string-append "<property file=\"local.build.properties\"/> | |
4022 | - | <path id=\"classpath\"> | |
4023 | - | <pathelement path=\"${mainClassesDirectory}\" /> | |
4024 | - | <fileset dir=\"" (assoc-ref inputs "java-asm") "\"> | |
4025 | - | <include name=\"**/*.jar\" /> | |
4026 | - | </fileset> | |
4027 | - | <fileset dir=\"" (assoc-ref inputs "antlr2") "\"> | |
4028 | - | <include name=\"**/*.jar\" /> | |
4029 | - | </fileset> | |
4030 | - | <fileset dir=\"" (assoc-ref inputs "java-classpathx-servletapi") "\"> | |
4031 | - | <include name=\"**/*.jar\" /> | |
4032 | - | </fileset> | |
4033 | - | <fileset dir=\"" (assoc-ref inputs "java-xstream") "\"> | |
4034 | - | <include name=\"**/*.jar\" /> | |
4035 | - | </fileset> | |
4036 | - | <fileset dir=\"" (assoc-ref inputs "java-commons-cli") "\"> | |
4037 | - | <include name=\"**/*.jar\" /> | |
4038 | - | </fileset> | |
4039 | - | <fileset dir=\"" (assoc-ref inputs "ant") "\"> | |
4040 | - | <include name=\"**/*.jar\" /> | |
4041 | - | </fileset> | |
4042 | - | <fileset dir=\"" (assoc-ref inputs "java-jline") "\"> | |
4043 | - | <include name=\"**/*.jar\" /> | |
4044 | - | </fileset> | |
4045 | - | <fileset dir=\"" (assoc-ref inputs "java-junit") "\"> | |
4046 | - | <include name=\"**/*.jar\" /> | |
4047 | - | </fileset> | |
4048 | - | <fileset dir=\"" (assoc-ref inputs "java-jansi") "\"> | |
4049 | - | <include name=\"**/*.jar\" /> | |
4050 | - | </fileset> | |
4051 | - | <fileset dir=\"" (assoc-ref inputs "java-commons-bsf") "\"> | |
4052 | - | <include name=\"**/*.jar\" /> | |
4053 | - | </fileset> | |
4054 | - | <fileset dir=\"" (assoc-ref inputs "java-apache-ivy-bootstrap") "\"> | |
4055 | - | <include name=\"**/*.jar\" /> | |
4056 | - | </fileset> | |
4057 | - | </path>")) | |
4058 | - | (("compilePath") "classpath") | |
4059 | - | ;; groovy-ant is no longer in the main sources | |
4060 | - | (("<path id=\"groovyMainClasses\">") | |
4061 | - | "<javac srcdir=\"./subprojects/groovy-groovydoc/src/main/java\" | |
4062 | - | includeantruntime=\"false\" destdir=\"${mainClassesDirectory}\" | |
4063 | - | deprecation=\"on\" debug=\"yes\" source=\"1.5\" target=\"1.5\" fork=\"true\" | |
4064 | - | classpathref=\"classpath\" /> | |
4065 | - | <javac srcdir=\"./subprojects/groovy-ant/src/main/java\" | |
4066 | - | includeantruntime=\"false\" destdir=\"${mainClassesDirectory}\" | |
4067 | - | deprecation=\"on\" debug=\"yes\" source=\"1.5\" target=\"1.5\" fork=\"true\" | |
4068 | - | classpathref=\"classpath\" /> | |
4069 | - | <path id=\"groovyMainClasses\">")) | |
4070 | - | (substitute* "config/ant/build-setup.xml" | |
4071 | - | (("runtimePath") "classpath")) | |
4072 | - | ;; --classpath is not recognized (bug in commons-cli?) | |
4073 | - | ;(substitute* "subprojects/groovy-ant/src/main/java/org/codehaus/groovy/ant/Groovyc.java" | |
4074 | - | ; (("--classpath") "-cp")) | |
4075 | - | ;; These directories would have been created by maven initialization | |
4076 | - | (mkdir-p "target/lib/compile") | |
4077 | - | (mkdir-p "target/lib/test") | |
4078 | - | (mkdir-p "target/lib/tools") | |
4079 | - | (mkdir-p "target/lib/runtime") | |
4080 | - | #t)) | |
4081 | - | (add-after 'install 'remove-embeddable | |
4082 | - | (lambda* (#:key outputs #:allow-other-keys) | |
4083 | - | (delete-file (string-append (assoc-ref outputs "out") | |
4084 | - | "/embeddable/groovy-all-2.0.0-beta-3.jar")) | |
4085 | - | #t))))) | |
4086 | - | (native-inputs | |
4087 | - | `(("build.xml" ,(package-source groovy-bootstrap)) | |
4088 | - | ,@(package-native-inputs groovy-bootstrap))))) | |
3879 | + | ;(define-public groovy-bootstrap | |
3880 | + | ; (package | |
3881 | + | ; (name "groovy") | |
3882 | + | ; (version "2.0.0beta3") | |
3883 | + | ; (source (origin | |
3884 | + | ; (method url-fetch) | |
3885 | + | ; (uri (string-append "https://github.com/apache/groovy/archive/GROOVY_" | |
3886 | + | ; "2_0_0_BETA_3.tar.gz")) | |
3887 | + | ; (file-name (string-append "groovy-" version ".tar.gz")) | |
3888 | + | ; (sha256 | |
3889 | + | ; (base32 | |
3890 | + | ; "1hm6kbwy5yhkzz7d2ln29k51iar6m7rwrzimsawgschvvqyrdxna")))) | |
3891 | + | ; (build-system ant-build-system) | |
3892 | + | ; (arguments | |
3893 | + | ; `(#:build-target "createJars" | |
3894 | + | ; #:tests? #f; part of build | |
3895 | + | ; #:make-flags | |
3896 | + | ; (list "-D_skipFetch_=true" | |
3897 | + | ; ;; FIXME: Tests require at least hsqldb and a part of ant testsuite | |
3898 | + | ; "-D_skipTests_=true" | |
3899 | + | ; ;; FIXME: Find aQute/bnd/ant/taskdef.properties. | |
3900 | + | ; "-D_skipOsgi_=true" | |
3901 | + | ; (string-append "-DinstallDirectory=" (assoc-ref %outputs "out"))) | |
3902 | + | ; #:phases | |
3903 | + | ; (modify-phases %standard-phases | |
3904 | + | ; (add-before 'build 'make-build-dir | |
3905 | + | ; (lambda* (#:key inputs #:allow-other-keys) | |
3906 | + | ; (substitute* "build.xml" | |
3907 | + | ; (("<property file=\"local.build.properties\"/>") | |
3908 | + | ; (string-append "<property file=\"local.build.properties\"/> | |
3909 | + | ;<path id=\"classpath\"> | |
3910 | + | ;<fileset dir=\"" (assoc-ref inputs "java-asm") "\"> | |
3911 | + | ;<include name=\"**/*.jar\" /> | |
3912 | + | ;</fileset> | |
3913 | + | ;<fileset dir=\"" (assoc-ref inputs "antlr2") "\"> | |
3914 | + | ;<include name=\"**/*.jar\" /> | |
3915 | + | ;</fileset> | |
3916 | + | ;<fileset dir=\"" (assoc-ref inputs "java-classpathx-servletapi") "\"> | |
3917 | + | ;<include name=\"**/*.jar\" /> | |
3918 | + | ;</fileset> | |
3919 | + | ;<fileset dir=\"" (assoc-ref inputs "java-xstream") "\"> | |
3920 | + | ;<include name=\"**/*.jar\" /> | |
3921 | + | ;</fileset> | |
3922 | + | ;<fileset dir=\"" (assoc-ref inputs "java-commons-cli") "\"> | |
3923 | + | ;<include name=\"**/*.jar\" /> | |
3924 | + | ;</fileset> | |
3925 | + | ;<fileset dir=\"" (assoc-ref inputs "ant") "\"> | |
3926 | + | ;<include name=\"**/*.jar\" /> | |
3927 | + | ;</fileset> | |
3928 | + | ;<fileset dir=\"" (assoc-ref inputs "java-jline") "\"> | |
3929 | + | ;<include name=\"**/*.jar\" /> | |
3930 | + | ;</fileset> | |
3931 | + | ;<fileset dir=\"" (assoc-ref inputs "java-junit") "\"> | |
3932 | + | ;<include name=\"**/*.jar\" /> | |
3933 | + | ;</fileset> | |
3934 | + | ;<fileset dir=\"" (assoc-ref inputs "java-jansi") "\"> | |
3935 | + | ;<include name=\"**/*.jar\" /> | |
3936 | + | ;</fileset> | |
3937 | + | ;<fileset dir=\"" (assoc-ref inputs "java-commons-bsf") "\"> | |
3938 | + | ;<include name=\"**/*.jar\" /> | |
3939 | + | ;</fileset> | |
3940 | + | ;<fileset dir=\"" (assoc-ref inputs "java-apache-ivy-bootstrap") "\"> | |
3941 | + | ;<include name=\"**/*.jar\" /> | |
3942 | + | ;</fileset> | |
3943 | + | ;</path>")) | |
3944 | + | ; (("compilePath") "classpath")) | |
3945 | + | ; (substitute* "config/ant/build-setup.xml" | |
3946 | + | ; (("runtimePath") "classpath")) | |
3947 | + | ; ;; --classpath is not recognized (bug in commons-cli?) | |
3948 | + | ; (substitute* "src/main/org/codehaus/groovy/ant/Groovyc.java" | |
3949 | + | ; (("--classpath") "-cp")) | |
3950 | + | ; ;; These directories would have been created by maven initialization | |
3951 | + | ; (mkdir-p "target/lib/compile") | |
3952 | + | ; (mkdir-p "target/lib/test") | |
3953 | + | ; (mkdir-p "target/lib/tools") | |
3954 | + | ; (mkdir-p "target/lib/runtime") | |
3955 | + | ; #t)) | |
3956 | + | ; (add-after 'install 'remove-embeddable | |
3957 | + | ; (lambda* (#:key outputs #:allow-other-keys) | |
3958 | + | ; (delete-file (string-append (assoc-ref outputs "out") | |
3959 | + | ; "/embeddable/groovy-all-2.0.0-beta-3.jar")) | |
3960 | + | ; #t))))) | |
3961 | + | ; (inputs | |
3962 | + | ; `(("java-commons-cli" ,java-commons-cli) | |
3963 | + | ; ("java-asm" ,java-asm) | |
3964 | + | ; ("ant-junit-tests" ,ant-junit-tests) | |
3965 | + | ; ("java-commons-bsf" ,java-commons-bsf) | |
3966 | + | ; ("java-classpathx-servletapi" ,java-classpathx-servletapi) | |
3967 | + | ; ("java-xstream" ,java-xstream) | |
3968 | + | ; ("java-jansi" ,java-jansi) | |
3969 | + | ; ("java-jline" ,java-jline) | |
3970 | + | ; ("java-apache-ivy-bootstrap" ,java-apache-ivy-bootstrap) | |
3971 | + | ; ("antlr2" ,antlr2))) | |
3972 | + | ; (native-inputs | |
3973 | + | ; `(("ant-antlr" ,ant-antlr) | |
3974 | + | ; ("java-aqute-bndlib" ,java-aqute-bndlib) | |
3975 | + | ; ("ant-junit-tests" ,ant-junit-tests) | |
3976 | + | ; ("java-jarjar" ,java-jarjar) | |
3977 | + | ; ("java-junit" ,java-junit) | |
3978 | + | ; ("java-jmock-1" ,java-jmock-1) | |
3979 | + | ; ("java-xmlunit-legacy" ,java-xmlunit-legacy))) | |
3980 | + | ; (home-page "") | |
3981 | + | ; (synopsis "") | |
3982 | + | ; (description "") | |
3983 | + | ; (license (list license:gpl2 | |
3984 | + | ; license:cddl1.1)))) | |
3985 | + | ; | |
3986 | + | ;(define-public groovy-2.4 | |
3987 | + | ; (package | |
3988 | + | ; (inherit groovy-bootstrap) | |
3989 | + | ; (name "groovy") | |
3990 | + | ; (version "2.2.0") | |
3991 | + | ; (source (origin | |
3992 | + | ; (method url-fetch) | |
3993 | + | ; (uri (string-append "https://github.com/apache/groovy/archive/GROOVY_" | |
3994 | + | ; "2_2_0.tar.gz")) | |
3995 | + | ; (file-name (string-append name "-" version ".tar.gz")) | |
3996 | + | ; (sha256 | |
3997 | + | ; (base32 | |
3998 | + | ; "1fx9a71f0n5jr52zzyayia2hmbsr9pnd76rnh0z3y9ys1c5k8g7w")) | |
3999 | + | ; (patches | |
4000 | + | ; (search-patches | |
4001 | + | ; "groovy-Add-exceptionutilsgenerator.patch")))) | |
4002 | + | ; (arguments | |
4003 | + | ; `(#:build-target "createJars" | |
4004 | + | ; #:tests? #f; part of build | |
4005 | + | ; #:jdk ,icedtea-8 | |
4006 | + | ; #:make-flags | |
4007 | + | ; (list "-D_skipFetch_=true" | |
4008 | + | ; ;; FIXME: Tests require at least hsqldb and a part of ant testsuite | |
4009 | + | ; "-D_skipTests_=true" | |
4010 | + | ; ;; FIXME: Find aQute/bnd/ant/taskdef.properties. | |
4011 | + | ; "-D_skipOsgi_=true" | |
4012 | + | ; (string-append "-DinstallDirectory=" (assoc-ref %outputs "out"))) | |
4013 | + | ; #:phases | |
4014 | + | ; (modify-phases %standard-phases | |
4015 | + | ; ;; FIXME: This should be taken care of by build.xml. Why doesn't it work? | |
4016 | + | ; (add-before 'build 'generate-parser | |
4017 | + | ; (lambda _ | |
4018 | + | ; (with-directory-excursion "src/main/org/codehaus/groovy/antlr/java" | |
4019 | + | ; (zero? (system* "antlr" "java.g"))) | |
4020 | + | ; (with-directory-excursion "src/main/org/codehaus/groovy/antlr" | |
4021 | + | ; (mkdir "parser") | |
4022 | + | ; (with-directory-excursion "parser" | |
4023 | + | ; (zero? (system* "antlr" "../groovy.g")))))) | |
4024 | + | ; (add-before 'build 'generate-exception-utils | |
4025 | + | ; (lambda _ | |
4026 | + | ; (system* "javac" "-cp" (getenv "CLASSPATH") | |
4027 | + | ; "config/ant/src/org/codehaus/groovy/ExceptionUtilsGenerator.java") | |
4028 | + | ; (zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH") | |
4029 | + | ; ":config/ant/src") | |
4030 | + | ; "org.codehaus.groovy.ExceptionUtilsGenerator" | |
4031 | + | ; "target/classes/org/codehaus/groovy/runtime/ExceptionUtils.class")))) | |
4032 | + | ; (add-before 'configure 'copy-build.xml | |
4033 | + | ; (lambda* (#:key inputs #:allow-other-keys) | |
4034 | + | ; (mkdir "old-groovy-tmp") | |
4035 | + | ; (mkdir-p "config/ant") | |
4036 | + | ; (with-directory-excursion "old-groovy-tmp" | |
4037 | + | ; (system* "tar" "xf" (assoc-ref inputs "build.xml")) | |
4038 | + | ; (copy-file "groovy-GROOVY_2_0_0_BETA_3/build.xml" | |
4039 | + | ; "../build.xml") | |
4040 | + | ; (copy-recursively "groovy-GROOVY_2_0_0_BETA_3/config/ant" | |
4041 | + | ; "../config/ant")) | |
4042 | + | ; #t)) | |
4043 | + | ; (add-before 'build 'make-build-dir | |
4044 | + | ; (lambda* (#:key inputs #:allow-other-keys) | |
4045 | + | ; (substitute* "build.xml" | |
4046 | + | ; (("<property file=\"local.build.properties\"/>") | |
4047 | + | ; (string-append "<property file=\"local.build.properties\"/> | |
4048 | + | ;<path id=\"classpath\"> | |
4049 | + | ;<pathelement path=\"${mainClassesDirectory}\" /> | |
4050 | + | ;<fileset dir=\"" (assoc-ref inputs "java-asm") "\"> | |
4051 | + | ;<include name=\"**/*.jar\" /> | |
4052 | + | ;</fileset> | |
4053 | + | ;<fileset dir=\"" (assoc-ref inputs "antlr2") "\"> | |
4054 | + | ;<include name=\"**/*.jar\" /> | |
4055 | + | ;</fileset> | |
4056 | + | ;<fileset dir=\"" (assoc-ref inputs "java-classpathx-servletapi") "\"> | |
4057 | + | ;<include name=\"**/*.jar\" /> | |
4058 | + | ;</fileset> | |
4059 | + | ;<fileset dir=\"" (assoc-ref inputs "java-xstream") "\"> | |
4060 | + | ;<include name=\"**/*.jar\" /> | |
4061 | + | ;</fileset> | |
4062 | + | ;<fileset dir=\"" (assoc-ref inputs "java-commons-cli") "\"> | |
4063 | + | ;<include name=\"**/*.jar\" /> | |
4064 | + | ;</fileset> | |
4065 | + | ;<fileset dir=\"" (assoc-ref inputs "ant") "\"> | |
4066 | + | ;<include name=\"**/*.jar\" /> | |
4067 | + | ;</fileset> | |
4068 | + | ;<fileset dir=\"" (assoc-ref inputs "java-jline") "\"> | |
4069 | + | ;<include name=\"**/*.jar\" /> | |
4070 | + | ;</fileset> | |
4071 | + | ;<fileset dir=\"" (assoc-ref inputs "java-junit") "\"> | |
4072 | + | ;<include name=\"**/*.jar\" /> | |
4073 | + | ;</fileset> | |
4074 | + | ;<fileset dir=\"" (assoc-ref inputs "java-jansi") "\"> | |
4075 | + | ;<include name=\"**/*.jar\" /> | |
4076 | + | ;</fileset> | |
4077 | + | ;<fileset dir=\"" (assoc-ref inputs "java-commons-bsf") "\"> | |
4078 | + | ;<include name=\"**/*.jar\" /> | |
4079 | + | ;</fileset> | |
4080 | + | ;<fileset dir=\"" (assoc-ref inputs "java-apache-ivy-bootstrap") "\"> | |
4081 | + | ;<include name=\"**/*.jar\" /> | |
4082 | + | ;</fileset> | |
4083 | + | ;</path>")) | |
4084 | + | ; (("compilePath") "classpath") | |
4085 | + | ; ;; groovy-ant is no longer in the main sources | |
4086 | + | ; (("<path id=\"groovyMainClasses\">") | |
4087 | + | ; "<javac srcdir=\"./subprojects/groovy-groovydoc/src/main/java\" | |
4088 | + | ;includeantruntime=\"false\" destdir=\"${mainClassesDirectory}\" | |
4089 | + | ;deprecation=\"on\" debug=\"yes\" source=\"1.5\" target=\"1.5\" fork=\"true\" | |
4090 | + | ;classpathref=\"classpath\" /> | |
4091 | + | ;<javac srcdir=\"./subprojects/groovy-ant/src/main/java\" | |
4092 | + | ;includeantruntime=\"false\" destdir=\"${mainClassesDirectory}\" | |
4093 | + | ;deprecation=\"on\" debug=\"yes\" source=\"1.5\" target=\"1.5\" fork=\"true\" | |
4094 | + | ;classpathref=\"classpath\" /> | |
4095 | + | ;<path id=\"groovyMainClasses\">")) | |
4096 | + | ; (substitute* "config/ant/build-setup.xml" | |
4097 | + | ; (("runtimePath") "classpath")) | |
4098 | + | ; ;; --classpath is not recognized (bug in commons-cli?) | |
4099 | + | ; ;(substitute* "subprojects/groovy-ant/src/main/java/org/codehaus/groovy/ant/Groovyc.java" | |
4100 | + | ; ; (("--classpath") "-cp")) | |
4101 | + | ; ;; These directories would have been created by maven initialization | |
4102 | + | ; (mkdir-p "target/lib/compile") | |
4103 | + | ; (mkdir-p "target/lib/test") | |
4104 | + | ; (mkdir-p "target/lib/tools") | |
4105 | + | ; (mkdir-p "target/lib/runtime") | |
4106 | + | ; #t)) | |
4107 | + | ; (add-after 'install 'remove-embeddable | |
4108 | + | ; (lambda* (#:key outputs #:allow-other-keys) | |
4109 | + | ; (delete-file (string-append (assoc-ref outputs "out") | |
4110 | + | ; "/embeddable/groovy-all-2.0.0-beta-3.jar")) | |
4111 | + | ; #t))))) | |
4112 | + | ; (native-inputs | |
4113 | + | ; `(("build.xml" ,(package-source groovy-bootstrap)) | |
4114 | + | ; ,@(package-native-inputs groovy-bootstrap))))) | |
4089 | 4115 | ||
4090 | 4116 | (define-public ant-junit | |
4091 | 4117 | (package | |
… | |||
4827 | 4853 | ;@code{@@tags}. It is designed to be used by active code generators or | |
4828 | 4854 | ;documentation tools.") | |
4829 | 4855 | ; (license license:asl2.0))) | |
4830 | - | ; | |
4831 | - | ;(define-public java-qdox-1.12 | |
4832 | - | ; (package (inherit java-qdox) | |
4833 | - | ; (version "1.12.1") | |
4834 | - | ; (source | |
4835 | - | ; (origin | |
4836 | - | ; (method url-fetch) | |
4837 | - | ; (uri (string-append "http://central.maven.org/maven2/" | |
4838 | - | ; "com/thoughtworks/qdox/qdox/" version | |
4839 | - | ; "/qdox-" version "-sources.jar")) | |
4840 | - | ; (sha256 | |
4841 | - | ; (base32 "0hlfbqq2avf5s26wxkksqmkdyk6zp9ggqn37c468m96mjv0n9xfl")))) | |
4842 | - | ; (arguments | |
4843 | - | ; `(#:jar-name "qdox.jar" | |
4844 | - | ; #:phases | |
4845 | - | ; (modify-phases %standard-phases | |
4846 | - | ; (add-after 'unpack 'delete-tests | |
4847 | - | ; (lambda _ | |
4848 | - | ; (delete-file-recursively "src/com/thoughtworks/qdox/junit") | |
4849 | - | ; #t))))))) | |
4856 | + | ||
4857 | + | (define-public java-qdox | |
4858 | + | (package | |
4859 | + | (name "java-qdox") | |
4860 | + | ; Newer version exists, but this version is required by java-plexus-component-metadata | |
4861 | + | (version "2.0-M2") | |
4862 | + | (source | |
4863 | + | (origin | |
4864 | + | (method url-fetch) | |
4865 | + | ;; 2.0-M4, -M5 at https://github.com/paul-hammant/qdox | |
4866 | + | ;; Older releases at https://github.com/codehaus/qdox/ | |
4867 | + | (uri (string-append "http://central.maven.org/maven2/" | |
4868 | + | "com/thoughtworks/qdox/qdox/" version | |
4869 | + | "/qdox-" version "-sources.jar")) | |
4870 | + | (sha256 | |
4871 | + | (base32 "10xxrcaicq6axszcr2jpygisa4ch4sinyx5q7kqqxv4lknrmxp5x")))) | |
4872 | + | (build-system ant-build-system) | |
4873 | + | (arguments | |
4874 | + | `(#:jar-name "qdox.jar" | |
4875 | + | #:tests? #f)); no tests | |
4876 | + | (home-page "http://qdox.codehaus.org/") | |
4877 | + | (synopsis "Parse definitions from Java source files") | |
4878 | + | (description "QDox is a high speed, small footprint parser for extracting | |
4879 | + | class/interface/method definitions from source files complete with JavaDoc | |
4880 | + | @code{@@tags}. It is designed to be used by active code generators or | |
4881 | + | documentation tools.") | |
4882 | + | (license license:asl2.0))) | |
4883 | + | ||
4884 | + | (define-public java-qdox-1.12 | |
4885 | + | (package | |
4886 | + | (inherit java-qdox) | |
4887 | + | (version "1.12.1") | |
4888 | + | (source | |
4889 | + | (origin | |
4890 | + | (method url-fetch) | |
4891 | + | (uri (string-append "http://central.maven.org/maven2/" | |
4892 | + | "com/thoughtworks/qdox/qdox/" version | |
4893 | + | "/qdox-" version "-sources.jar")) | |
4894 | + | (sha256 | |
4895 | + | (base32 "0hlfbqq2avf5s26wxkksqmkdyk6zp9ggqn37c468m96mjv0n9xfl")))) | |
4896 | + | (arguments | |
4897 | + | `(#:jar-name "qdox.jar" | |
4898 | + | #:phases | |
4899 | + | (modify-phases %standard-phases | |
4900 | + | (add-after 'unpack 'delete-tests | |
4901 | + | (lambda _ | |
4902 | + | (delete-file-recursively "src/com/thoughtworks/qdox/junit") | |
4903 | + | #t))))))) | |
4850 | 4904 | ||
4851 | 4905 | (define-public java-plexus-cli | |
4852 | 4906 | (package | |
… | |||
4880 | 4934 | (description "") | |
4881 | 4935 | (license license:asl2.0))) | |
4882 | 4936 | ||
4883 | - | (define-public java-qdox | |
4884 | - | (package | |
4885 | - | (name "java-qdox") | |
4886 | - | ; Newer version exists, but this version is required by java-plexus-component-metadata | |
4887 | - | (version "2.0-M2") | |
4888 | - | (source | |
4889 | - | (origin | |
4890 | - | (method url-fetch) | |
4891 | - | ;; 2.0-M4, -M5 at https://github.com/paul-hammant/qdox | |
4892 | - | ;; Older releases at https://github.com/codehaus/qdox/ | |
4893 | - | (uri (string-append "http://central.maven.org/maven2/" | |
4894 | - | "com/thoughtworks/qdox/qdox/" version | |
4895 | - | "/qdox-" version "-sources.jar")) | |
4896 | - | (sha256 | |
4897 | - | (base32 "10xxrcaicq6axszcr2jpygisa4ch4sinyx5q7kqqxv4lknrmxp5x")))) | |
4898 | - | (build-system ant-build-system) | |
4899 | - | (arguments | |
4900 | - | `(#:jar-name "qdox.jar" | |
4901 | - | #:tests? #f)); no tests | |
4902 | - | (home-page "http://qdox.codehaus.org/") | |
4903 | - | (synopsis "Parse definitions from Java source files") | |
4904 | - | (description "QDox is a high speed, small footprint parser for extracting | |
4905 | - | class/interface/method definitions from source files complete with JavaDoc | |
4906 | - | @code{@@tags}. It is designed to be used by active code generators or | |
4907 | - | documentation tools.") | |
4908 | - | (license license:asl2.0))) | |
4909 | - | ||
4910 | 4937 | (define-public java-plexus-component-metadata | |
4911 | 4938 | (package | |
4912 | 4939 | (inherit java-plexus-container-default) |