diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2025-04-03 17:07:06 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2025-04-03 21:33:46 +0200 |
commit | efaa20d2d86bc4f10dfc45a25fca50a0dad6e917 (patch) | |
tree | b54fee9e693727936243dd5352266556b3e85688 | |
parent | e0c92dd6472cb20b1dea9186a45b7a423742d525 (diff) | |
download | guix-efaa20d2d86bc4f10dfc45a25fca50a0dad6e917.tar.gz guix-efaa20d2d86bc4f10dfc45a25fca50a0dad6e917.zip |
gnu: freebayes: Update to 1.3.9.
* gnu/packages/bioinformatics.scm (freebayes): Update to 1.3.9.
[inputs]: Add bzip2 and xz.
[native-inputs]: Drop labels; remove bash-tap and test-simple-bash-src; add
perl6-tap-harness.
[arguments]: Remove phase 'unpack-submodule-sources; adjust other phases.
Change-Id: I7448a95882ae3a900e697f23824abe40444d039c
-rw-r--r-- | gnu/packages/bioinformatics.scm | 103 |
1 files changed, 45 insertions, 58 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 48a503ffbb..22bceb45d6 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -141,6 +141,7 @@ #:use-module (gnu packages perl) #:use-module (gnu packages perl-check) #:use-module (gnu packages perl-web) + #:use-module (gnu packages perl6) #:use-module (gnu packages pkg-config) #:use-module (gnu packages popt) #:use-module (gnu packages protobuf) @@ -22503,76 +22504,62 @@ manipulations on VCF files.") (define-public freebayes (package (name "freebayes") - (version "1.3.7") + (version "1.3.9") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/freebayes/freebayes") - (commit (string-append "v" version)))) + (commit (string-append "v" version)) + (recursive? #true))) (file-name (git-file-name name version)) (sha256 - (base32 "163nd1xkq547za80khlys4qkgal64f3sgl6ap3yvik68r0rgyisv")))) + (base32 "18i8xv5cx4n9924f4gqjk2sg3vi437nh7ssy99ng8ajschgaw1m2")))) (build-system meson-build-system) (inputs - (list fastahack htslib smithwaterman tabixpp vcflib)) + (list bzip2 fastahack htslib smithwaterman tabixpp vcflib xz)) (native-inputs - `(("bash-tap" ,bash-tap) - ("bc" ,bc) - ("grep" ,grep) ; Built with perl support. - ("parallel" ,parallel) - ("perl" ,perl) - ("pkg-config" ,pkg-config) - ("python" ,python) - ("samtools" ,samtools) - ("simde" ,simde) - ;; This submodule is needed to run the tests. - ("test-simple-bash-src" - ,(origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/ingydotnet/test-simple-bash/") - (commit "124673ff204b01c8e96b7fc9f9b32ee35d898acc"))) - (file-name "test-simple-bash-src-checkout") - (sha256 - (base32 "043plp6z0x9yf7mdpky1fw7zcpwn1p47px95w9mh16603zqqqpga")))))) + (list bc + grep ; Built with perl support. + parallel + perl + perl6-tap-harness + pkg-config + python + samtools + simde)) (arguments - `(#:phases - (modify-phases %standard-phases + (list + #:phases + `(modify-phases %standard-phases (add-after 'unpack 'patch-source (lambda* (#:key inputs #:allow-other-keys) - (let ((bash-tap (assoc-ref inputs "bash-tap"))) - (substitute* (find-files "test/t") - (("BASH_TAP_ROOT=bash-tap") - (string-append "BASH_TAP_ROOT=" bash-tap "/bin")) - (("bash-tap/bash-tap-bootstrap") - (string-append bash-tap "/bin/bash-tap-bootstrap")) - (("source.*bash-tap-bootstrap") - (string-append "source " bash-tap "/bin/bash-tap-bootstrap"))) - (substitute* '("src/BedReader.cpp" - "src/BedReader.h") - (("../intervaltree/IntervalTree.h") "IntervalTree.h")) - ;; We don't have Perl support in grep -E. - (substitute* '("test/t/01_call_variants.t" - "test/t/01b_call_variants.t") - (("grep -P") "grep -E") - (("\\\\t") " ")) - (substitute* "meson.build" - ;; Our pkg-config file is vcflib.pc - (("libvcflib") "vcflib") - (("vcflib_inc,") ""))))) - (add-after 'unpack 'unpack-submodule-sources - (lambda* (#:key inputs #:allow-other-keys) - (mkdir-p "test/test-simple-bash") - (copy-recursively (assoc-ref inputs "test-simple-bash-src") - "test/test-simple-bash"))) - ;; The slow tests take longer than the specified timeout. - ,@(if (any (cute string=? <> (%current-system)) - '("armhf-linux" "aarch64-linux")) - '((replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "meson" "test" "--timeout-multiplier" "5"))))) - '())))) + (setenv "CPLUS_INCLUDE_PATH" + (string-append (getcwd) "/contrib/multichoose:" + (getenv "CPLUS_INCLUDE_PATH"))) + (substitute* '("src/BedReader.cpp" + "src/BedReader.h") + (("intervaltree/IntervalTree.h") "vcflib/IntervalTree.h") + (("<IntervalTree.h>") "<vcflib/IntervalTree.h>")) + (substitute* '("src/AlleleParser.h" + "src/ResultData.h") + (("Variant.h") "vcflib/Variant.h")) + (substitute* (find-files "." "\\.(h|c)(pp)?$") + (("\"multichoose.h\"") "<vcflib/multichoose.h>") + (("\"convert.h\"") "<smithwaterman/convert.h>") + (("\"split.h\"") "<fastahack/split.h>") + (("\"join.h\"") "<vcflib/join.h>")) + (substitute* "meson.build" + ;; Our pkg-config file is vcflib.pc + (("libvcflib") "vcflib") + (("vcflib_inc,") "")))) + ;; The slow tests take longer than the specified timeout. + ,@(if (any (cute string=? <> (%current-system)) + '("armhf-linux" "aarch64-linux")) + '((replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "meson" "test" "--timeout-multiplier" "5"))))) + '())))) (home-page "https://github.com/freebayes/freebayes") (synopsis "Haplotype-based variant detector") (description "FreeBayes is a Bayesian genetic variant detector designed to |