[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/22: gnu: Add groovy-json.
From: |
julien lepiller |
Subject: |
15/22: gnu: Add groovy-json. |
Date: |
Wed, 9 May 2018 07:38:45 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit dae9335cf2395f08dc1338a1d41798db61ece7e8
Author: Julien Lepiller <address@hidden>
Date: Fri Mar 16 14:36:06 2018 +0100
gnu: Add groovy-json.
* gnu/packages/groovy.scm (groovy-json): New variable.
---
gnu/packages/groovy.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/groovy.scm b/gnu/packages/groovy.scm
index 8fdb8df..69fe408 100644
--- a/gnu/packages/groovy.scm
+++ b/gnu/packages/groovy.scm
@@ -747,3 +747,49 @@ documentation for groovy applications.")))
(synopsis "Groovy JMX extension")
(description "This package contains the JMX extension of Groovy, for
management and monitoring of JVM-based solutions.")))
+
+(define groovy-json
+ (package
+ (inherit groovy-bootstrap)
+ (name "groovy-json")
+ (arguments
+ `(#:jar-name "groovy-json.jar"
+ #:test-dir "src/test"
+ #:jdk ,icedtea-8
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "subprojects/groovy-json")
+ #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-json.jar"
+ "-C" "build/classes" ".")
+ #t))
+ (replace 'check
+ (lambda _
+ (mkdir-p "build/test-classes")
+ (substitute* "build.xml"
+ (("depends=\"compile-tests\"") "depends=\"\"")
+ (("}/java") "}/groovy"))
+ (apply invoke "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)$")))
+ (invoke "ant" "check")
+ #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 JSON")
+ (description "This package contains JSON-related utilities for groovy.")))
- 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, 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 <=
- 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
- 13/22: gnu: Add groovy-groovysh., julien lepiller, 2018/05/09
- 12/22: gnu: Add groovy-docgenerator., julien lepiller, 2018/05/09
- 14/22: gnu: Add groovy-jmx., julien lepiller, 2018/05/09