guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: htsjdk: Use ant-build-system.


From: Ricardo Wurmus
Subject: 01/01: gnu: htsjdk: Use ant-build-system.
Date: Mon, 14 Mar 2016 13:30:09 +0000

rekado pushed a commit to branch master
in repository guix.

commit 10b4a969beb6e5ae22faa314ba9ef5a2ea7639b1
Author: Ricardo Wurmus <address@hidden>
Date:   Mon Mar 14 13:02:48 2016 +0100

    gnu: htsjdk: Use ant-build-system.
    
    * gnu/packages/bioinformatics.scm (htsjdk)[build-system]: Use
    ant-build-system.
    [arguments]: Adapt for ant-build-system.
---
 gnu/packages/bioinformatics.scm |   28 +++++++++++-----------------
 1 files changed, 11 insertions(+), 17 deletions(-)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]