mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-19 09:22:05 -05:00
gnu: minimap2: Install more files.
* gnu/packages/bioinformatics.scm (minimap2)[arguments]: Add modules. Adjust custom 'install phase to also install library, headers and a pkg-config file.
This commit is contained in:
parent
36a90d0637
commit
c5f7203e3e
1 changed files with 25 additions and 2 deletions
|
@ -12336,6 +12336,9 @@ (define-public minimap2
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; there are none
|
`(#:tests? #f ; there are none
|
||||||
|
#:modules ((guix build utils)
|
||||||
|
(guix build gnu-build-system)
|
||||||
|
(srfi srfi-26))
|
||||||
#:make-flags
|
#:make-flags
|
||||||
(list (string-append "CC=" ,(cc-for-target))
|
(list (string-append "CC=" ,(cc-for-target))
|
||||||
(let ((system ,(or (%current-target-system)
|
(let ((system ,(or (%current-target-system)
|
||||||
|
@ -12358,10 +12361,30 @@ (define-public minimap2
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(bin (string-append out "/bin"))
|
(bin (string-append out "/bin"))
|
||||||
|
(lib (string-append out "/lib"))
|
||||||
|
(inc (string-append out "/include"))
|
||||||
(man (string-append out "/share/man/man1")))
|
(man (string-append out "/share/man/man1")))
|
||||||
(install-file "minimap2" bin)
|
(install-file "minimap2" bin)
|
||||||
(mkdir-p man)
|
(install-file "libminimap2.a" lib)
|
||||||
(install-file "minimap2.1" man))
|
(install-file "minimap2.1" man)
|
||||||
|
(map (cut install-file <> inc)
|
||||||
|
(find-files "." "\\.h$"))
|
||||||
|
;; Not this file.
|
||||||
|
(delete-file (string-append inc "/emmintrin.h"))
|
||||||
|
(mkdir-p (string-append lib "/pkgconfig"))
|
||||||
|
(with-output-to-file (string-append lib "/pkgconfig/minimap2.pc")
|
||||||
|
(lambda _
|
||||||
|
(format #t "prefix=~a~@
|
||||||
|
exec_prefix=${prefix}~@
|
||||||
|
libdir=${exec_prefix}/lib~@
|
||||||
|
includedir=${prefix}/include~@
|
||||||
|
~@
|
||||||
|
Name: libminimap2~@
|
||||||
|
Version: ~a~@
|
||||||
|
Description: A versatile pairwise aligner for genomic and spliced nucleotide sequence~@
|
||||||
|
Libs: -L${libdir} -lminimap2~@
|
||||||
|
Cflags: -I${includedir}~%"
|
||||||
|
out ,version))))
|
||||||
#t)))))
|
#t)))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("zlib" ,zlib)))
|
`(("zlib" ,zlib)))
|
||||||
|
|
Loading…
Reference in a new issue