[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#31333] [PATCH 13/22] gnu: Add groovy-groovysh.
From: |
Julien Lepiller |
Subject: |
[bug#31333] [PATCH 13/22] gnu: Add groovy-groovysh. |
Date: |
Tue, 1 May 2018 17:44:40 +0200 |
* gnu/packages/groovy.scm (groovy-groovysh): New variable.
---
gnu/packages/groovy.scm | 57 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/gnu/packages/groovy.scm b/gnu/packages/groovy.scm
index d211384ba..63a05f933 100644
--- a/gnu/packages/groovy.scm
+++ b/gnu/packages/groovy.scm
@@ -656,3 +656,60 @@ library used to build graphical interfaces.")))
(synopsis "Groovy documentation generation")
(description "This package contains a command line tool to generate
documentation for groovy applications.")))
+
+(define groovy-groovysh
+ (package
+ (inherit groovy-bootstrap)
+ (name "groovy-groovysh")
+ (arguments
+ `(#:jar-name "groovy-groovysh.jar"
+ #:test-dir "src/test"
+ #:jdk ,icedtea-8
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "subprojects/groovy-groovysh")))
+ (add-before 'build 'copy-resources
+ (lambda _
+ (copy-recursively "src/main/resources" "build/classes")))
+ (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-groovysh.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-xml" ,groovy-xml)
+ ("groovy-console" ,groovy-console)
+ ,@(package-inputs groovy-bootstrap)))
+ (native-inputs
+ `(("groovy-bootstrap" ,groovy-bootstrap)
+ ("groovy-test" ,groovy-test)
+ ("groovy-tests-bootstrap" ,groovy-tests-bootstrap)
+ ,@(package-native-inputs groovy-java-bootstrap)))
+ (synopsis "Groovy REPL")
+ (description "This package contains the Groovy REPL.")))
--
2.17.0
- [bug#31333] [PATCH 02/22] gnu: Add groovy-bootstrap., (continued)
[bug#31333] [PATCH 09/22] gnu: Add groovy-bsf., Julien Lepiller, 2018/05/01
[bug#31333] [PATCH 10/22] gnu: Add groovy-swing., Julien Lepiller, 2018/05/01
[bug#31333] [PATCH 12/22] gnu: Add groovy-docgenerator., Julien Lepiller, 2018/05/01
[bug#31333] [PATCH 07/22] gnu: Add groovy-groovydoc., Julien Lepiller, 2018/05/01
[bug#31333] [PATCH 13/22] gnu: Add groovy-groovysh.,
Julien Lepiller <=
[bug#31333] [PATCH 14/22] gnu: Add groovy-jmx., Julien Lepiller, 2018/05/01
[bug#31333] [PATCH 15/22] gnu: Add groovy-json., Julien Lepiller, 2018/05/01
[bug#31333] [PATCH 16/22] gnu: Add groovy-jsr223., Julien Lepiller, 2018/05/01
[bug#31333] [PATCH 04/22] gnu: Add groovy-test., Julien Lepiller, 2018/05/01
[bug#31333] [PATCH 05/22] gnu: Add groovy-xml., Julien Lepiller, 2018/05/01