gnu: Add groovy-nio.

* gnu/packages/groovy.scm (groovy-nio): New variable.
This commit is contained in:
Julien Lepiller 2018-03-16 14:37:54 +01:00
parent 3537fb61fc
commit 4ab3b0c544
No known key found for this signature in database
GPG Key ID: 43111F4520086A0C

View File

@ -844,3 +844,38 @@ management and monitoring of JVM-based solutions.")))
(synopsis "Groovy's own JSR223 implementation")
(description "This package contains Groovy's own JSR223 implementation. This
module is used for interaction between Groovy and Java code.")))
(define groovy-nio
(package
(inherit groovy-bootstrap)
(name "groovy-nio")
(arguments
`(#:jar-name "groovy-nio.jar"
#:test-dir "src/test"
#:jdk ,icedtea-8
#:tests? #f; Requires spock-framework
#:phases
(modify-phases %standard-phases
(add-before 'configure 'chdir
(lambda _
(chdir "subprojects/groovy-nio")
#t))
(replace 'build
(lambda _
(mkdir-p "build/classes")
(mkdir-p "build/jar")
(apply invoke "java" "-cp" (getenv "CLASSPATH")
"org.codehaus.groovy.tools.FileSystemCompiler"
"-d" "build/classes" "-j"; joint compilation
(find-files "src/main" ".*\\.(groovy|java)$"))
(invoke "jar" "-cf" "build/jar/groovy-nio.jar"
"-C" "build/classes" ".")
#t)))))
(native-inputs
`(("groovy-bootstrap" ,groovy-bootstrap)
("groovy-test" ,groovy-test)
("groovy-tests-bootstrap" ,groovy-tests-bootstrap)
,@(package-native-inputs java-groovy-bootstrap)))
(synopsis "Groovy input-output library")
(description "This package implements an input/output library that extends
the functionality of the common library of Java.")))