[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/22: gnu: Add groovy-templates.
From: |
julien lepiller |
Subject: |
06/22: gnu: Add groovy-templates. |
Date: |
Wed, 9 May 2018 07:38:43 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit 19ff61f4a58ac18be27b319ed46c862493ad321f
Author: Julien Lepiller <address@hidden>
Date: Fri Mar 16 14:27:48 2018 +0100
gnu: Add groovy-templates.
* gnu/packages/groovy.scm (groovy-templates): New variable.
---
gnu/packages/groovy.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/groovy.scm b/gnu/packages/groovy.scm
index 6d535f6..520181c 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.")))
- branch master updated (27ba976 -> 22103f1), julien lepiller, 2018/05/09
- 03/22: gnu: Add groovy-tests-bootstrap., julien lepiller, 2018/05/09
- 05/22: gnu: Add groovy-xml., julien lepiller, 2018/05/09
- 17/22: gnu: Add groovy-nio., julien lepiller, 2018/05/09
- 19/22: gnu: Add groovy-sql., julien lepiller, 2018/05/09
- 06/22: gnu: Add groovy-templates.,
julien lepiller <=
- 09/22: gnu: Add groovy-bsf., julien lepiller, 2018/05/09
- 16/22: gnu: Add groovy-jsr223., julien lepiller, 2018/05/09
- 15/22: gnu: Add groovy-json., julien lepiller, 2018/05/09
- 18/22: gnu: Add groovy-servlet., julien lepiller, 2018/05/09
- 22/22: gnu: Add groovy., julien lepiller, 2018/05/09
- 02/22: gnu: Add groovy-bootstrap., julien lepiller, 2018/05/09
- 07/22: gnu: Add groovy-groovydoc., julien lepiller, 2018/05/09
- 11/22: gnu: Add groovy-console., julien lepiller, 2018/05/09
- 20/22: gnu: Add groovy-testng., julien lepiller, 2018/05/09
- 04/22: gnu: Add groovy-test., julien lepiller, 2018/05/09