aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2018-03-16 14:33:42 +0100
committerJulien Lepiller <julien@lepiller.eu>2018-05-09 13:36:56 +0200
commita6494dcf8a128de6fad7a2429534bc373be60eab (patch)
treefa8202521f2a78d3f100f8869385bebf6e4e611a
parent136987cf162370c3d01f20711cca56845a28f510 (diff)
downloadguix-a6494dcf8a128de6fad7a2429534bc373be60eab.tar
guix-a6494dcf8a128de6fad7a2429534bc373be60eab.tar.gz
gnu: Add groovy-docgenerator.
* gnu/packages/groovy.scm (groovy-docgenerator): New variable.
-rw-r--r--gnu/packages/groovy.scm43
1 files changed, 43 insertions, 0 deletions
diff --git a/gnu/packages/groovy.scm b/gnu/packages/groovy.scm
index 948e309558..54852c05bb 100644
--- a/gnu/packages/groovy.scm
+++ b/gnu/packages/groovy.scm
@@ -603,3 +603,46 @@ library used to build graphical interfaces.")))
,@(package-native-inputs java-groovy-bootstrap)))
(synopsis "Groovy graphical interface")
(description "This package contains a graphical interface to run groovy.")))
+
+(define groovy-docgenerator
+ (package
+ (inherit groovy-bootstrap)
+ (name "groovy-docgenerator")
+ (arguments
+ `(#:jar-name "groovy-docgenerator.jar"
+ #:jdk ,icedtea-8
+ #:tests? #f; No tests
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "subprojects/groovy-docgenerator")
+ #t))
+ (add-before 'build 'copy-resources
+ (lambda _
+ (copy-recursively "src/main/resources" "build/classes")
+ #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-docgenerator.jar"
+ "-C" "build/classes" ".")
+ #t)))))
+ (inputs
+ `(("groovy-templates" ,groovy-templates)
+ ("groovy-swing" ,groovy-swing)
+ ("java-qdox-1.12" ,java-qdox-1.12)
+ ,@(package-inputs groovy-bootstrap)))
+ (native-inputs
+ `(("groovy-bootstrap" ,groovy-bootstrap)
+ ("groovy-test" ,groovy-test)
+ ("groovy-tests-bootstrap" ,groovy-tests-bootstrap)
+ ,@(package-native-inputs java-groovy-bootstrap)))
+ (synopsis "Groovy documentation generation")
+ (description "This package contains a command line tool to generate
+documentation for groovy applications.")))