From d99e42d7f62beab57f1bc2a6aef69b3dd8cd1072 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 20 Jan 2022 15:25:19 +0100 Subject: gnu: samtools-0.1: Install headers and library. * gnu/packages/bioinformatics.scm (samtools-0.1)[arguments]: Add build phases 'install-library and 'install-headers. --- gnu/packages/bioinformatics.scm | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 357baa289b..7e28ae8ed1 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ricardo Wurmus +;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Ricardo Wurmus ;;; Copyright © 2015, 2016, 2017, 2018 Ben Woodcroft ;;; Copyright © 2015, 2016, 2018, 2019, 2020 Pjotr Prins ;;; Copyright © 2015 Andreas Enge @@ -6316,6 +6316,11 @@ viewer.") #:make-flags (list "LIBCURSES=-lncurses") ,@(substitute-keyword-arguments (package-arguments samtools) + ((#:modules _ #f) + '((ice-9 ftw) + (ice-9 regex) + (guix build gnu-build-system) + (guix build utils))) ((#:phases phases) `(modify-phases ,phases (replace 'install @@ -6325,6 +6330,18 @@ viewer.") (mkdir-p bin) (install-file "samtools" bin) #t))) + (add-after 'install 'install-library + (lambda* (#:key outputs #:allow-other-keys) + (let ((lib (string-append (assoc-ref outputs "out") "/lib"))) + (install-file "libbam.a" lib)))) + (add-after 'install 'install-headers + (lambda* (#:key outputs #:allow-other-keys) + (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))))))) (delete 'patch-tests) (delete 'configure)))))))) -- cgit v1.2.3