mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: Add groovy-templates.
* gnu/packages/groovy.scm (groovy-templates): New variable.
This commit is contained in:
parent
e0e4bae20b
commit
19ff61f4a5
1 changed files with 36 additions and 0 deletions
|
@ -299,3 +299,39 @@ (define groovy-xml
|
|||
,@(package-native-inputs java-groovy-bootstrap)))
|
||||
(synopsis "Groovy XML")
|
||||
(description "This package contains XML-related utilities for groovy.")))
|
||||
|
||||
(define groovy-templates
|
||||
(package
|
||||
(inherit groovy-bootstrap)
|
||||
(name "groovy-templates")
|
||||
(arguments
|
||||
`(#:jar-name "groovy-templates.jar"
|
||||
#:jdk ,icedtea-8
|
||||
#:test-dir "subprojects/groovy-templates/src/test"
|
||||
#:tests? #f;Requires spock-framework which is a circular dependency
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(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 "subprojects/groovy-templates/src/main"
|
||||
".*\\.(groovy|java)$"))
|
||||
(invoke "jar" "-cf" "build/jar/groovy-templates.jar"
|
||||
"-C" "build/classes" ".")
|
||||
#t)))))
|
||||
(inputs
|
||||
`(("groovy-xml" ,groovy-xml)
|
||||
,@(package-inputs groovy-bootstrap)))
|
||||
(native-inputs
|
||||
`(("groovy-bootstrap" ,groovy-bootstrap)
|
||||
("groovy-test" ,groovy-test)
|
||||
("groovy-tests-bootstrap" ,groovy-tests-bootstrap)
|
||||
,@(package-native-inputs java-groovy-bootstrap)))
|
||||
(synopsis "Groovy template engine")
|
||||
(description "This package contains a template framework which is
|
||||
well-suited to applications where the text to be generated follows the form of
|
||||
a static template.")))
|
||||
|
|
Loading…
Reference in a new issue