mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
gnu: sortmerna: Update to 4.3.4.
* gnu/packages/bioinformatics.scm (sortmerna): Update to 4.3.4. [build-system]: Use cmake-build-system. [arguments]: Disable tests; add configure flags; add phase 'find-concurrentqueue-headers; update 'install phase. [inputs]: Add concurrentqueue, gflags, rapidjson, and rocksdb. [native-inputs]: Add pkg-config.
This commit is contained in:
parent
f7139ce79f
commit
62d2c36e77
1 changed files with 40 additions and 11 deletions
|
@ -76,6 +76,7 @@ (define-module (gnu packages bioinformatics)
|
||||||
#:use-module (gnu packages code)
|
#:use-module (gnu packages code)
|
||||||
#:use-module (gnu packages cmake)
|
#:use-module (gnu packages cmake)
|
||||||
#:use-module (gnu packages compression)
|
#:use-module (gnu packages compression)
|
||||||
|
#:use-module (gnu packages cpp)
|
||||||
#:use-module (gnu packages cpio)
|
#:use-module (gnu packages cpio)
|
||||||
#:use-module (gnu packages cran)
|
#:use-module (gnu packages cran)
|
||||||
#:use-module (gnu packages crates-io)
|
#:use-module (gnu packages crates-io)
|
||||||
|
@ -7103,23 +7104,49 @@ (define-public snap-aligner
|
||||||
(define-public sortmerna
|
(define-public sortmerna
|
||||||
(package
|
(package
|
||||||
(name "sortmerna")
|
(name "sortmerna")
|
||||||
(version "2.1b")
|
(version "4.3.4")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/biocore/sortmerna")
|
(url "https://github.com/biocore/sortmerna")
|
||||||
(commit version)))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0j3mbz4n25738yijmjbr5r4fyvkgm8v5vn3sshyfvmyqf5q9byqf"))))
|
"0f8jfc8vsq6llhbb92p9yv7nbp566yqwfcmq3g2hw0n7d8hyl3a8"))))
|
||||||
(build-system gnu-build-system)
|
(build-system cmake-build-system)
|
||||||
(outputs '("out" ;for binaries
|
(outputs '("out" ;for binaries
|
||||||
"db")) ;for sequence databases
|
"db")) ;for sequence databases
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:tests? #false ;unclear how to run them
|
||||||
|
#:configure-flags
|
||||||
|
#~(list "-DWITH_TESTS=ON"
|
||||||
|
"-DCMAKE_CXX_FLAGS=-pthread"
|
||||||
|
"-DZLIB_STATIC=OFF"
|
||||||
|
"-DROCKSDB_STATIC=OFF"
|
||||||
|
"-DPORTABLE=OFF" ;do not use static linking
|
||||||
|
(string-append "-DROCKSDB_HOME="
|
||||||
|
#$(this-package-input "rocksdb"))
|
||||||
|
(string-append "-DRAPIDJSON_HOME="
|
||||||
|
#$(this-package-input "rapidjson"))
|
||||||
|
(string-append "-DRapidJson_DIR="
|
||||||
|
#$(this-package-input "rapidjson")
|
||||||
|
"/lib/cmake/RapidJSON")
|
||||||
|
(string-append "-DRapidJSON_INCLUDE_DIR="
|
||||||
|
#$(this-package-input "rapidjson")
|
||||||
|
"/include"))
|
||||||
|
#:phases
|
||||||
|
'(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'find-concurrentqueue-headers
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
;; Ensure that headers can be found
|
||||||
|
(setenv "CPLUS_INCLUDE_PATH"
|
||||||
|
(string-append (search-input-directory
|
||||||
|
inputs "/include/concurrentqueue")
|
||||||
|
":"
|
||||||
|
(or (getenv "CPLUS_INCLUDE_PATH") "")))))
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
@ -7127,14 +7154,16 @@ (define-public sortmerna
|
||||||
(db (assoc-ref outputs "db"))
|
(db (assoc-ref outputs "db"))
|
||||||
(share
|
(share
|
||||||
(string-append db "/share/sortmerna/rRNA_databases")))
|
(string-append db "/share/sortmerna/rRNA_databases")))
|
||||||
(install-file "sortmerna" bin)
|
(install-file "src/sortmerna" bin)
|
||||||
(install-file "indexdb_rna" bin)
|
|
||||||
(for-each (lambda (file)
|
(for-each (lambda (file)
|
||||||
(install-file file share))
|
(install-file file share))
|
||||||
(find-files "rRNA_databases" ".*fasta"))
|
(find-files "../source/data/rRNA_databases" ".*fasta"))))))))
|
||||||
#t))))))
|
|
||||||
(inputs
|
(inputs
|
||||||
(list zlib))
|
(list concurrentqueue
|
||||||
|
gflags ; because of rocksdb
|
||||||
|
rapidjson rocksdb zlib))
|
||||||
|
(native-inputs
|
||||||
|
(list pkg-config))
|
||||||
(home-page "https://bioinfo.lifl.fr/RNA/sortmerna/")
|
(home-page "https://bioinfo.lifl.fr/RNA/sortmerna/")
|
||||||
(synopsis "Biological sequence analysis tool for NGS reads")
|
(synopsis "Biological sequence analysis tool for NGS reads")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue