me
/
guix
Archived
1
0
Fork 0

gnu: r-seurat: Fix ModularityOptimizer.jar.

* gnu/packages/bioinformatics.scm (r-seurat)[arguments]: Include Main-Class
attribute in manifest.
master
Ricardo Wurmus 2017-12-18 11:56:12 +01:00
parent b6313997ad
commit 8271b8d22a
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 11 additions and 5 deletions

View File

@ -9427,11 +9427,17 @@ and irregular enzymatic cleavages, mass measurement accuracy, etc.")
(let ((classesdir "tmp-classes"))
(setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
(mkdir classesdir)
(and (zero? (apply system* `("javac" "-d" ,classesdir
,@(find-files "java" "\\.java$"))))
(zero? (system* "jar"
"-cf" "inst/java/ModularityOptimizer.jar"
"-C" classesdir ".")))))))))
(with-output-to-file "manifest"
(lambda _
(display "Manifest-Version: 1.0
Main-Class: ModularityOptimizer\n")))
(and (zero? (apply system* `("javac" "-d" ,classesdir
,@(find-files "java" "\\.java$"))))
(zero? (system* "jar"
"-cmf" "manifest"
"inst/java/ModularityOptimizer.jar"
"-C" classesdir ".")))))))))
(native-inputs
`(("jdk" ,icedtea "jdk")))
(propagated-inputs