[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: gnu: samtools-0.1: Install headers and library.
From: |
guix-commits |
Subject: |
02/02: gnu: samtools-0.1: Install headers and library. |
Date: |
Thu, 20 Jan 2022 09:26:43 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit d99e42d7f62beab57f1bc2a6aef69b3dd8cd1072
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Thu Jan 20 15:25:19 2022 +0100
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(-)
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
<rekado@elephly.net>
+;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Ricardo
Wurmus <rekado@elephly.net>
;;; Copyright © 2015, 2016, 2017, 2018 Ben Woodcroft <donttrustben@gmail.com>
;;; Copyright © 2015, 2016, 2018, 2019, 2020 Pjotr Prins
<pjotr.guix@thebird.nl>
;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
@@ -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))))))))