[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/22: gnu: Add groovy-nio.
From: |
julien lepiller |
Subject: |
17/22: gnu: Add groovy-nio. |
Date: |
Wed, 9 May 2018 07:38:45 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit 4ab3b0c544765363d7435712261b0022598c163e
Author: Julien Lepiller <address@hidden>
Date: Fri Mar 16 14:37:54 2018 +0100
gnu: Add groovy-nio.
* gnu/packages/groovy.scm (groovy-nio): New variable.
---
gnu/packages/groovy.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/groovy.scm b/gnu/packages/groovy.scm
index c74fa11..ecaa942 100644
--- a/gnu/packages/groovy.scm
+++ b/gnu/packages/groovy.scm
@@ -844,3 +844,38 @@ management and monitoring of JVM-based solutions.")))
(synopsis "Groovy's own JSR223 implementation")
(description "This package contains Groovy's own JSR223 implementation.
This
module is used for interaction between Groovy and Java code.")))
+
+(define groovy-nio
+ (package
+ (inherit groovy-bootstrap)
+ (name "groovy-nio")
+ (arguments
+ `(#:jar-name "groovy-nio.jar"
+ #:test-dir "src/test"
+ #:jdk ,icedtea-8
+ #:tests? #f; Requires spock-framework
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "subprojects/groovy-nio")
+ #t))
+ (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 "src/main" ".*\\.(groovy|java)$"))
+ (invoke "jar" "-cf" "build/jar/groovy-nio.jar"
+ "-C" "build/classes" ".")
+ #t)))))
+ (native-inputs
+ `(("groovy-bootstrap" ,groovy-bootstrap)
+ ("groovy-test" ,groovy-test)
+ ("groovy-tests-bootstrap" ,groovy-tests-bootstrap)
+ ,@(package-native-inputs java-groovy-bootstrap)))
+ (synopsis "Groovy input-output library")
+ (description "This package implements an input/output library that extends
+the functionality of the common library of Java.")))
- 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 <=
- 19/22: gnu: Add groovy-sql., julien lepiller, 2018/05/09
- 06/22: gnu: Add groovy-templates., julien lepiller, 2018/05/09
- 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