gnu: mafft: Wrap programs.

* gnu/packages/bioinformatics.scm (mafft)[arguments]: Add 'wrap-programs'
phase.
[propagated-inputs]: Move coreutils from here ...
[inputs]: ... to here.
This commit is contained in:
Ben Woodcroft 2016-08-15 20:46:43 +10:00
parent 93b8316e08
commit 101e8f7171
No known key found for this signature in database
GPG Key ID: E44DCCD146E0CCF4
1 changed files with 37 additions and 27 deletions

View File

@ -3008,13 +3008,23 @@ sequencing tag position and orientation.")
(string-append prefix (which "awk")))
(("grep") (which "grep")))
#t))
(delete 'configure))))
(delete 'configure)
(add-after 'install 'wrap-programs
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin"))
(path (string-append
(assoc-ref %build-inputs "coreutils") "/bin:")))
(for-each (lambda (file)
(wrap-program file
`("PATH" ":" prefix (,path))))
(find-files bin)))
#t)))))
(inputs
`(("perl" ,perl)
("gawk" ,gawk)
("grep" ,grep)))
(propagated-inputs
`(("coreutils" ,coreutils)))
("grep" ,grep)
("coreutils" ,coreutils)))
(home-page "http://mafft.cbrc.jp/alignment/software/")
(synopsis "Multiple sequence alignment program")
(description