gnu: htsjdk: Use ant-build-system.

* gnu/packages/bioinformatics.scm (htsjdk)[build-system]: Use
ant-build-system.
[arguments]: Adapt for ant-build-system.
This commit is contained in:
Ricardo Wurmus 2016-03-14 13:02:48 +01:00
parent 5f7a1a4def
commit 10b4a969be
1 changed files with 11 additions and 17 deletions

View File

@ -26,6 +26,7 @@
#:use-module (guix utils) #:use-module (guix utils)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix git-download) #:use-module (guix git-download)
#:use-module (guix build-system ant)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (guix build-system cmake) #:use-module (guix build-system cmake)
#:use-module (guix build-system perl) #:use-module (guix build-system perl)
@ -2002,24 +2003,17 @@ from high-throughput sequencing assays.")
(snippet '(substitute* "build.xml" (snippet '(substitute* "build.xml"
(("failifexecutionfails=\"true\"") (("failifexecutionfails=\"true\"")
"failifexecutionfails=\"false\""))))) "failifexecutionfails=\"false\"")))))
(build-system gnu-build-system) (build-system ant-build-system)
(arguments (arguments
`(#:modules ((srfi srfi-1) `(#:tests? #f ; test require Internet access
(guix build gnu-build-system) #:make-flags
(guix build utils)) (list (string-append "-Ddist=" (assoc-ref %outputs "out")
#:phases (alist-replace "/share/java/htsjdk/"))
'build #:build-target "all"
(lambda _ #:phases
(setenv "JAVA_HOME" (assoc-ref %build-inputs "jdk")) (modify-phases %standard-phases
(zero? (system* "ant" "all" ;; The build phase also installs the jars
(string-append "-Ddist=" (delete 'install))))
(assoc-ref %outputs "out")
"/share/java/htsjdk/"))))
(fold alist-delete %standard-phases
'(configure install check)))))
(native-inputs
`(("ant" ,ant)
("jdk" ,icedtea "jdk")))
(home-page "http://samtools.github.io/htsjdk/") (home-page "http://samtools.github.io/htsjdk/")
(synopsis "Java API for high-throughput sequencing data (HTS) formats") (synopsis "Java API for high-throughput sequencing data (HTS) formats")
(description (description