Skip to content
Snippets Groups Projects
Commit 3062d750 authored by Ricardo Wurmus's avatar Ricardo Wurmus
Browse files

gnu: star: Update to 2.5.1b.

* gnu/packages/bioinformatics.scm (star): Update to 2.5.1b.
[source]: Remove bundled htslib sources and pre-built binaries.
[arguments]: Add phase "do-not-use-bundled-htslib".
[inputs]: Add "htslib".
parent c0266e8d
No related branches found
No related tags found
No related merge requests found
...@@ -3019,19 +3019,25 @@ (define-public snap-aligner ...@@ -3019,19 +3019,25 @@ (define-public snap-aligner
(define-public star (define-public star
(package (package
(name "star") (name "star")
(version "2.4.2a") (version "2.5.1b")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append "https://github.com/alexdobin/STAR/archive/"
"https://github.com/alexdobin/STAR/archive/STAR_" version ".tar.gz"))
version ".tar.gz")) (file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"1c3rnm7r5l0kl3d04gl1g7938xqf1c2l0mla87rlplqg1hcns5mc")) "0wzcfhkg10apnh0y73xlarfa79xxwxdizicbdl11wb48awk44iq4"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
'(substitute* "source/Makefile" '(begin
(("/bin/rm") "rm"))))) (substitute* "source/Makefile"
(("/bin/rm") "rm"))
;; Remove pre-built binaries and bundled htslib sources.
(delete-file-recursively "bin/MacOSX_x86_64")
(delete-file-recursively "bin/Linux_x86_64")
(delete-file-recursively "source/htslib")
#t))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
'(#:tests? #f ;no check target '(#:tests? #f ;no check target
...@@ -3040,6 +3046,23 @@ (define-public star ...@@ -3040,6 +3046,23 @@ (define-public star
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'enter-source-dir (add-after 'unpack 'enter-source-dir
(lambda _ (chdir "source") #t)) (lambda _ (chdir "source") #t))
(add-after 'enter-source-dir 'do-not-use-bundled-htslib
(lambda _
(substitute* "Makefile"
(("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
_ prefix) prefix))
(substitute* '("BAMfunctions.cpp"
"signalFromBAM.h"
"bam_cat.h"
"bam_cat.c"
"STAR.cpp"
"bamRemoveDuplicates.cpp")
(("#include \"htslib/([^\"]+\\.h)\"" _ header)
(string-append "#include <" header ">")))
(substitute* "IncludeDefine.h"
(("\"htslib/(htslib/[^\"]+.h)\"" _ header)
(string-append "<" header ">")))
#t))
(replace 'install (replace 'install
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let ((bin (string-append (assoc-ref outputs "out") "/bin/"))) (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
...@@ -3049,7 +3072,8 @@ (define-public star ...@@ -3049,7 +3072,8 @@ (define-public star
(native-inputs (native-inputs
`(("vim" ,vim))) ; for xxd `(("vim" ,vim))) ; for xxd
(inputs (inputs
`(("zlib" ,zlib))) `(("htslib" ,htslib)
("zlib" ,zlib)))
(home-page "https://github.com/alexdobin/STAR") (home-page "https://github.com/alexdobin/STAR")
(synopsis "Universal RNA-seq aligner") (synopsis "Universal RNA-seq aligner")
(description (description
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment