gnu: samtools: Update to 1.14.
* gnu/packages/bioinformatics.scm (samtools): Update to 1.14. [modules]: Delete argument. [phases]{install-library, install-headers}: Delete phases. This version no longer includes the legacy library (it links to htslib directly). (samtools-1.12): New variable.master
parent
74af2dd148
commit
23fdb5a69c
|
@ -6144,6 +6144,44 @@ to the user's query of interest.")
|
||||||
(define-public samtools
|
(define-public samtools
|
||||||
(package
|
(package
|
||||||
(name "samtools")
|
(name "samtools")
|
||||||
|
(version "1.14")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri
|
||||||
|
(string-append "mirror://sourceforge/samtools/samtools/"
|
||||||
|
version "/samtools-" version ".tar.bz2"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0x3xdda78ac5vx66b3jdsv9sfhyz4npl4znl1zbaf3lbm6xdlhck"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet '(begin
|
||||||
|
;; Delete bundled htslib.
|
||||||
|
(delete-file-recursively "htslib-1.14")))))
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:configure-flags (list "--with-ncurses")
|
||||||
|
#:phases
|
||||||
|
(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"))))))))
|
||||||
|
(native-inputs (list pkg-config))
|
||||||
|
(inputs
|
||||||
|
(list htslib ncurses perl python zlib))
|
||||||
|
(home-page "http://samtools.sourceforge.net")
|
||||||
|
(synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
|
||||||
|
(description
|
||||||
|
"Samtools implements various utilities for post-processing nucleotide
|
||||||
|
sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
|
||||||
|
variant calling (in conjunction with bcftools), and a simple alignment
|
||||||
|
viewer.")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public samtools-1.12
|
||||||
|
(package/inherit samtools
|
||||||
(version "1.12")
|
(version "1.12")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
|
@ -6157,47 +6195,31 @@ to the user's query of interest.")
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet '(begin
|
(snippet '(begin
|
||||||
;; Delete bundled htslib.
|
;; Delete bundled htslib.
|
||||||
(delete-file-recursively "htslib-1.12")
|
(delete-file-recursively "htslib-1.12")))))
|
||||||
#t))))
|
|
||||||
(build-system gnu-build-system)
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules ((ice-9 ftw)
|
(substitute-keyword-arguments (package-arguments samtools)
|
||||||
(ice-9 regex)
|
((#:modules _ #f)
|
||||||
(guix build gnu-build-system)
|
'((ice-9 ftw)
|
||||||
(guix build utils))
|
(ice-9 regex)
|
||||||
#:configure-flags (list "--with-ncurses")
|
(guix build gnu-build-system)
|
||||||
#:phases
|
(guix build utils)))
|
||||||
(modify-phases %standard-phases
|
((#:phases phases)
|
||||||
(add-after 'unpack 'patch-tests
|
`(modify-phases ,phases
|
||||||
(lambda _
|
(add-after 'install 'install-library
|
||||||
(substitute* "test/test.pl"
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
;; The test script calls out to /bin/bash
|
(let ((lib (string-append (assoc-ref outputs "out") "/lib")))
|
||||||
(("/bin/bash") (which "bash")))
|
(install-file "libbam.a" lib))))
|
||||||
#t))
|
(add-after 'install 'install-headers
|
||||||
(add-after 'install 'install-library
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(let ((include (string-append (assoc-ref outputs "out")
|
||||||
(let ((lib (string-append (assoc-ref outputs "out") "/lib")))
|
"/include/samtools/")))
|
||||||
(install-file "libbam.a" lib)
|
(for-each (lambda (file)
|
||||||
#t)))
|
(install-file file include))
|
||||||
(add-after 'install 'install-headers
|
(scandir "." (lambda (name)
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(string-match "\\.h$" name)))))))))))
|
||||||
(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 (list pkg-config))
|
(native-inputs (list pkg-config))
|
||||||
(inputs
|
(inputs
|
||||||
(list htslib ncurses perl python zlib))
|
(list htslib-1.12 ncurses perl python zlib))))
|
||||||
(home-page "http://samtools.sourceforge.net")
|
|
||||||
(synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
|
|
||||||
(description
|
|
||||||
"Samtools implements various utilities for post-processing nucleotide
|
|
||||||
sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
|
|
||||||
variant calling (in conjunction with bcftools), and a simple alignment
|
|
||||||
viewer.")
|
|
||||||
(license license:expat)))
|
|
||||||
|
|
||||||
(define-public samtools-1.10
|
(define-public samtools-1.10
|
||||||
(package (inherit samtools)
|
(package (inherit samtools)
|
||||||
|
|
Reference in New Issue