From 5bdda30b32676528bcfa0a169c30237fabaa4607 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 2 Jul 2015 15:53:47 +0200 Subject: gnu: samtools: Install headers. * gnu/packages/bioinformatics.scm (samtools)[arguments]: Add phase "install-headers" to install header files. --- gnu/packages/bioinformatics.scm | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'gnu/packages') diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 03bb3599d2..f6349cfb8f 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -1774,6 +1774,10 @@ (define-public samtools ;; systems. #:tests? ,(string=? (or (%current-system) (%current-target-system)) "x86_64-linux") + #:modules ((ice-9 ftw) + (ice-9 regex) + (guix build gnu-build-system) + (guix build utils)) #:make-flags (list "LIBCURSES=-lncurses" (string-append "prefix=" (assoc-ref %outputs "out"))) #:phases @@ -1798,7 +1802,18 @@ (define-public samtools (let ((lib (string-append (assoc-ref outputs "out") "/lib"))) (mkdir-p lib) (copy-file "libbam.a" (string-append lib "/libbam.a")))) - (alist-delete 'configure %standard-phases))))) + (alist-cons-after + 'install 'install-headers + (lambda* (#:key outputs #:allow-other-keys) + (let ((include (string-append (assoc-ref outputs "out") + "/include/samtools/"))) + (mkdir-p include) + (for-each (lambda (file) + (copy-file file (string-append include + (basename file)))) + (scandir "." (lambda (name) (string-match "\\.h$" name)))) + #t)) + (alist-delete 'configure %standard-phases)))))) (native-inputs `(("pkg-config" ,pkg-config))) (inputs `(("ncurses" ,ncurses) ("perl" ,perl) -- cgit v1.2.3