summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhislain Vaillant <ghislain.vaillant@inria.fr>2026-02-19 15:04:16 +0100
committerGhislain Vaillant <ghislain.vaillant@inria.fr>2026-02-20 10:08:15 +0100
commit03d5a53df9bb0d297f6e032afb0bb7b8697d0dc2 (patch)
tree4472853049bd3e02abb17a34b2ed8c3c1003264b
parent51698f78fe3186eb7c0e540e3cbeb346f9dce771 (diff)
bioinformatics: iqtree3: Use packaged cmaple and lsd2.
* guix-science/packages/bioinformatics.scm (iqtree3) [source]: Disable recursive git fetch. [arguments]<#:phases>: Copy cmaple and lsd2 sources where expected. [native-inputs]: Add (package-source cmaple) and (package-source lsd2).
-rw-r--r--guix-science/packages/bioinformatics.scm28
1 files changed, 13 insertions, 15 deletions
diff --git a/guix-science/packages/bioinformatics.scm b/guix-science/packages/bioinformatics.scm
index 53f06ed..c3f7654 100644
--- a/guix-science/packages/bioinformatics.scm
+++ b/guix-science/packages/bioinformatics.scm
@@ -2582,14 +2582,13 @@ This package provides IQ-TREE version 2.")
2582 (method git-fetch) 2582 (method git-fetch)
2583 (uri (git-reference 2583 (uri (git-reference
2584 (url "https://github.com/iqtree/iqtree3") 2584 (url "https://github.com/iqtree/iqtree3")
2585 (commit (string-append "v" version)) 2585 (commit (string-append "v" version))))
2586 (recursive? #t)))
2587 (file-name (git-file-name name version)) 2586 (file-name (git-file-name name version))
2588 (sha256 2587 (sha256
2589 (base32 "1i0pz0iwv3rgh6syc48icsfchl1h0pmc9fha5yj8l2hjnsxvz779")) 2588 (base32 "14vqa36gxip2hh46wnhsq84abf2hq89d2xvs6rasn6m4zanmy5h9"))
2590 (modules '((guix build utils))) 2589 (modules '((guix build utils)))
2591 ;; FIXME: Look for further opportunities to get rid of vendored 2590 ;; FIXME: Look for further opportunities to get rid of vendored
2592 ;; dependencies, such as cmaple, lsd2 or ncl. 2591 ;; dependencies, such as ncl.
2593 (snippet #~(for-each delete-file-recursively 2592 (snippet #~(for-each delete-file-recursively
2594 (list "yaml-cpp" "zlib-1.2.7"))))) 2593 (list "yaml-cpp" "zlib-1.2.7")))))
2595 (build-system cmake-build-system) 2594 (build-system cmake-build-system)
@@ -2606,27 +2605,26 @@ This package provides IQ-TREE version 2.")
2606 "")))) 2605 ""))))
2607 (add-after 'unpack 'use-system-libraries 2606 (add-after 'unpack 'use-system-libraries
2608 (lambda _ 2607 (lambda _
2608 ;; cmaple
2609 (copy-recursively #$(package-source cmaple) "cmaple")
2610 ;; lsd2
2611 (copy-recursively #$(package-source lsd2) "lsd2")
2609 ;; yaml-cpp 2612 ;; yaml-cpp
2610 (substitute* "CMakeLists.txt" 2613 (substitute* "CMakeLists.txt"
2611 (("add_subdirectory\\(yaml-cpp\\)") 2614 (("add_subdirectory\\(yaml-cpp\\)")
2612 "find_package(yaml-cpp REQUIRED CONFIG) 2615 "find_package(yaml-cpp REQUIRED CONFIG)
2613include_directories(${yaml-cpp_INCLUDE_DIRS})")) 2616include_directories(${yaml-cpp_INCLUDE_DIRS})"))))
2614 ;; googletest
2615 (substitute* "cmaple/CMakeLists.txt"
2616 (("URL .*googletest.*")
2617 "GIT_REPOSITORY https://github.com/google/googletest.git
2618FIND_PACKAGE_ARGS NAMES GTest"))))
2619 (delete 'check) 2617 (delete 'check)
2620 (add-after 'install 'check 2618 (add-after 'install 'check
2621 (lambda* (#:key tests? #:allow-other-keys) 2619 (lambda* (#:key tests? #:allow-other-keys)
2622 (when tests? 2620 (when tests?
2623 (let ((iqtree3 (string-append #$output "/bin/iqtree3"))) 2621 (let ((iqtree3 (string-append #$output "/bin/iqtree3")))
2624 (invoke iqtree3 "-s" 2622 (with-directory-excursion "../source/example"
2625 (string-append #$source "/example/example.phy") 2623 (invoke iqtree3 "-s" "example.phy")))))))))
2626 "--prefix"
2627 (string-append (getcwd) "/example")))))))))
2628 (inputs (list boost eigen yaml-cpp zlib)) 2624 (inputs (list boost eigen yaml-cpp zlib))
2629 (native-inputs (list googletest)) 2625 (native-inputs (list googletest
2626 (package-source cmaple)
2627 (package-source lsd2)))
2630 (home-page "https://iqtree.github.io/") 2628 (home-page "https://iqtree.github.io/")
2631 (synopsis "Efficient and versatile phylogenomic inference (version 3)") 2629 (synopsis "Efficient and versatile phylogenomic inference (version 3)")
2632 (description 2630 (description