[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#31333] [PATCH 18/22] gnu: Add groovy-servlet.
From: |
Julien Lepiller |
Subject: |
[bug#31333] [PATCH 18/22] gnu: Add groovy-servlet. |
Date: |
Tue, 1 May 2018 17:44:45 +0200 |
* gnu/packages/groovy.scm (groovy-servlet): New variable.
---
gnu/packages/groovy.scm | 56 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
diff --git a/gnu/packages/groovy.scm b/gnu/packages/groovy.scm
index 8f50ee023..c6a7dcaca 100644
--- a/gnu/packages/groovy.scm
+++ b/gnu/packages/groovy.scm
@@ -904,3 +904,59 @@ module is used for interaction between Groovy and Java
code.")))
(synopsis "Groovy input-output library")
(description "This package implements an input/output library that extends
the functionnality of the common library of Java.")))
+
+(define groovy-servlet
+ (package
+ (inherit groovy-bootstrap)
+ (name "groovy-servlet")
+ (arguments
+ `(#:jar-name "groovy-servlet.jar"
+ #:test-dir "src/test"
+ #:jdk ,icedtea-8
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "subprojects/groovy-servlet")))
+ (replace 'build
+ (lambda _
+ (mkdir-p "build/classes")
+ (mkdir-p "build/jar")
+ (and
+ (zero? (apply system* "java" "-cp" (getenv "CLASSPATH")
+ "org.codehaus.groovy.tools.FileSystemCompiler"
+ "-d" "build/classes"
+ "-j"; joint compilation
+ (find-files "src/main"
+ ".*\\.(groovy|java)$")))
+ (zero? (system* "jar" "-cf" "build/jar/groovy-servlet.jar"
+ "-C" "build/classes" ".")))))
+ (replace 'check
+ (lambda _
+ (mkdir-p "build/test-classes")
+ (substitute* "build.xml"
+ (("depends=\"compile-tests\"") "depends=\"\"")
+ (("}/java") "}/groovy"))
+ (and
+ (zero? (apply system* "java" "-cp"
+ (string-append (getenv "CLASSPATH")
":build/classes")
+ "org.codehaus.groovy.tools.FileSystemCompiler"
+ "-d" "build/test-classes"
+ "-j"
+ (append
+ (find-files "src/test"
+ ".*\\.(groovy|java)$"))))
+ (zero? (system* "ant" "check"))))))))
+ (inputs
+ `(("groovy-templates" ,groovy-templates)
+ ("groovy-xml" ,groovy-xml)
+ ,@(package-inputs groovy-bootstrap)))
+ (native-inputs
+ `(("groovy-bootstrap" ,groovy-bootstrap)
+ ("groovy-json" ,groovy-json)
+ ("groovy-test" ,groovy-test)
+ ("groovy-tests-bootstrap" ,groovy-tests-bootstrap)
+ ,@(package-native-inputs groovy-java-bootstrap)))
+ (synopsis "Groovy's servlet implementation")
+ (description "This package contains a library to create groovlets, Groovy's
+version of Java servlets.")))
--
2.17.0
- [bug#31333] [PATCH 08/22] gnu: Add groovy-ant., (continued)
[bug#31333] [PATCH 03/22] gnu: Add groovy-tests-bootstrap., Julien Lepiller, 2018/05/01
[bug#31333] [PATCH 11/22] gnu: Add groovy-console., Julien Lepiller, 2018/05/01
[bug#31333] [PATCH 17/22] gnu: Add groovy-nio., Julien Lepiller, 2018/05/01
[bug#31333] [PATCH 19/22] gnu: Add groovy-sql., Julien Lepiller, 2018/05/01
[bug#31333] [PATCH 18/22] gnu: Add groovy-servlet.,
Julien Lepiller <=
[bug#31333] [PATCH 22/22] gnu: Add groovy., Julien Lepiller, 2018/05/01
[bug#31333] [PATCH 21/22] gnu: Add groovy-macro., Julien Lepiller, 2018/05/01
[bug#31333] [PATCH 20/22] gnu: Add groovy-testng., Julien Lepiller, 2018/05/01
[bug#31333] [PATCH 01/22] gnu: Add groovy-java-bootstrap., Danny Milosavljevic, 2018/05/07
[bug#31333] [PATCH 01/22] gnu: Add groovy-java-bootstrap., Björn Höfling, 2018/05/07
bug#31333: [PATCH] Add groovy, Julien Lepiller, 2018/05/09