mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: samtools: Use "modify-phases" syntax.
* gnu/packages/bioinformatics.scm (samtools)[arguments]: Use "modify-phases" syntax.
This commit is contained in:
parent
c62d1a6e6c
commit
c842d42593
1 changed files with 19 additions and 22 deletions
|
@ -4533,29 +4533,26 @@ (define-public samtools
|
|||
#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
|
||||
#:configure-flags (list "--with-ncurses")
|
||||
#:phases
|
||||
(alist-cons-after
|
||||
'unpack 'patch-tests
|
||||
(lambda _
|
||||
(substitute* "test/test.pl"
|
||||
;; The test script calls out to /bin/bash
|
||||
(("/bin/bash") (which "bash")))
|
||||
#t)
|
||||
(alist-cons-after
|
||||
'install 'install-library
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((lib (string-append (assoc-ref outputs "out") "/lib")))
|
||||
(install-file "libbam.a" lib)
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-tests
|
||||
(lambda _
|
||||
(substitute* "test/test.pl"
|
||||
;; The test script calls out to /bin/bash
|
||||
(("/bin/bash") (which "bash")))
|
||||
#t))
|
||||
(alist-cons-after
|
||||
'install 'install-headers
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((include (string-append (assoc-ref outputs "out")
|
||||
"/include/samtools/")))
|
||||
(for-each (lambda (file)
|
||||
(install-file file include))
|
||||
(scandir "." (lambda (name) (string-match "\\.h$" name))))
|
||||
#t))
|
||||
%standard-phases)))))
|
||||
(add-after 'install 'install-library
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((lib (string-append (assoc-ref outputs "out") "/lib")))
|
||||
(install-file "libbam.a" lib)
|
||||
#t)))
|
||||
(add-after 'install 'install-headers
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((include (string-append (assoc-ref outputs "out")
|
||||
"/include/samtools/")))
|
||||
(for-each (lambda (file)
|
||||
(install-file file include))
|
||||
(scandir "." (lambda (name) (string-match "\\.h$" name))))
|
||||
#t))))))
|
||||
(native-inputs `(("pkg-config" ,pkg-config)))
|
||||
(inputs `(("ncurses" ,ncurses)
|
||||
("perl" ,perl)
|
||||
|
|
Loading…
Reference in a new issue