gnu: samtools-0.1: Adapt to changes in "samtools" variable.

* gnu/packages/bioinformatics.scm (samtools-0.1)[arguments]: Add
  "LIBCURSES" make flag; delete "configure" phase; disable tests outside
  of "substitute-keyword-arguments".
This commit is contained in:
Ricardo Wurmus 2016-01-16 15:48:51 +01:00
parent e90cf6c14a
commit 2309ed6862
1 changed files with 15 additions and 12 deletions

View File

@ -2456,18 +2456,21 @@ viewer.")
(sha256 (sha256
(base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h")))) (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
(arguments (arguments
(substitute-keyword-arguments (package-arguments samtools) `(#:tests? #f ;no "check" target
((#:tests? tests) #f) ;no "check" target ,@(substitute-keyword-arguments (package-arguments samtools)
((#:phases phases) ((#:make-flags flags)
`(modify-phases ,phases `(cons "LIBCURSES=-lncurses" ,flags))
(replace 'install ((#:phases phases)
(lambda* (#:key outputs #:allow-other-keys) `(modify-phases ,phases
(let ((bin (string-append (replace 'install
(assoc-ref outputs "out") "/bin"))) (lambda* (#:key outputs #:allow-other-keys)
(mkdir-p bin) (let ((bin (string-append
(copy-file "samtools" (assoc-ref outputs "out") "/bin")))
(string-append bin "/samtools"))))) (mkdir-p bin)
(delete 'patch-tests))))))) (copy-file "samtools"
(string-append bin "/samtools")))))
(delete 'patch-tests)
(delete 'configure))))))))
(define-public mosaik (define-public mosaik
(let ((commit "5c25216d")) (let ((commit "5c25216d"))