gnu: Add groovy-docgenerator.

* gnu/packages/groovy.scm (groovy-docgenerator): New variable.
This commit is contained in:
Julien Lepiller 2018-03-16 14:33:42 +01:00
parent 136987cf16
commit a6494dcf8a
No known key found for this signature in database
GPG Key ID: 43111F4520086A0C
1 changed files with 43 additions and 0 deletions

View File

@ -603,3 +603,46 @@ library used to build graphical interfaces.")))
,@(package-native-inputs java-groovy-bootstrap))) ,@(package-native-inputs java-groovy-bootstrap)))
(synopsis "Groovy graphical interface") (synopsis "Groovy graphical interface")
(description "This package contains a graphical interface to run groovy."))) (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.")))