guix-commits
[Top][All Lists]
Advanced

[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.")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]