diff options
author | Julien Lepiller <julien@lepiller.eu> | 2018-03-16 14:27:48 +0100 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2018-05-09 13:36:44 +0200 |
commit | 19ff61f4a58ac18be27b319ed46c862493ad321f (patch) | |
tree | 022379127bcf0e81f47e9486281b823a4cff473f /gnu/packages | |
parent | e0e4bae20b9bcd7fc4bb188526a8a8fc369f6cb3 (diff) | |
download | guix-19ff61f4a58ac18be27b319ed46c862493ad321f.tar.gz guix-19ff61f4a58ac18be27b319ed46c862493ad321f.zip |
gnu: Add groovy-templates.
* gnu/packages/groovy.scm (groovy-templates): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/groovy.scm | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/groovy.scm b/gnu/packages/groovy.scm index 6d535f6a1c..520181c9c8 100644 --- a/gnu/packages/groovy.scm +++ b/gnu/packages/groovy.scm @@ -299,3 +299,39 @@ other groovy submodules."))) ,@(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."))) |