gnu: star: Update to 2.7.0b.

* gnu/packages/bioinformatics.scm (star): Update to 2.7.0b.
[arguments]: Add "add-missing-header" build phase.
This commit is contained in:
Ricardo Wurmus 2019-02-06 21:24:42 +01:00
parent d11840b43e
commit 6df215f8c8
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -6020,7 +6020,7 @@ (define-public sortmerna
(define-public star (define-public star
(package (package
(name "star") (name "star")
(version "2.7.0a") (version "2.7.0b")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@ -6029,7 +6029,7 @@ (define-public star
(file-name (string-append name "-" version "-checkout")) (file-name (string-append name "-" version "-checkout"))
(sha256 (sha256
(base32 (base32
"1yx28gra6gqdx1ps5y8mpdinsn8r0dhsc2m3gcvjfrk71i9yhd6l")) "1lih6cbpvnvhyvvswdhy06mwyzvwax96m723378v4z6psqzsh11d"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
'(begin '(begin
@ -6055,6 +6055,13 @@ (define-public star
(("(COMPILATION_TIME_PLACE=\")(.*)(\")" _ pre mid post) (("(COMPILATION_TIME_PLACE=\")(.*)(\")" _ pre mid post)
(string-append pre "Built with Guix" post))) (string-append pre "Built with Guix" post)))
#t)) #t))
;; See https://github.com/alexdobin/STAR/pull/562
(add-after 'enter-source-dir 'add-missing-header
(lambda _
(substitute* "SoloReadFeature_inputRecords.cpp"
(("#include \"binarySearch2.h\"" h)
(string-append h "\n#include <math.h>")))
#t))
(add-after 'enter-source-dir 'do-not-use-bundled-htslib (add-after 'enter-source-dir 'do-not-use-bundled-htslib
(lambda _ (lambda _
(substitute* "Makefile" (substitute* "Makefile"