aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2020-08-27 18:16:01 +0300
committerEfraim Flashner <efraim@flashner.co.il>2020-08-27 18:18:55 +0300
commite8bbb29b5910a2d3d8364db161849366f1d84010 (patch)
tree8c7b0a6427618399f16c91f39e956ea9f28c54e6
parent6d8dd5bad773a9bc4eaf0b3c13dd9c373c3546c3 (diff)
downloadguix-e8bbb29b5910a2d3d8364db161849366f1d84010.tar
guix-e8bbb29b5910a2d3d8364db161849366f1d84010.tar.gz
gnu: vcflib: Install pkgconfig file.
* gnu/packages/bioinformatics.scm (vcflib)[arguments]: Adjust custom 'install phase to add vcflib.pc.
-rw-r--r--gnu/packages/bioinformatics.scm18
1 files changed, 17 insertions, 1 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index db69819055..0b4ed9c088 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -15713,7 +15713,23 @@ library automatically handles index file generation and use.")
(for-each
(lambda (file)
(install-file file (string-append out "/include")))
- (find-files "include" "\\.h(pp)?$")))
+ (find-files "include" "\\.h(pp)?$"))
+ (mkdir-p (string-append lib "/pkgconfig"))
+ (with-output-to-file (string-append lib "/pkgconfig/vcflib.pc")
+ (lambda _
+ (format #t "prefix=~a~@
+ exec_prefix=${prefix}~@
+ libdir=${exec_prefix}/lib~@
+ includedir=${prefix}/include~@
+ ~@
+ ~@
+ Name: libvcflib~@
+ Version: ~a~@
+ Requires: smithwaterman, fastahack~@
+ Description: C++ library for parsing and manipulating VCF files~@
+ Libs: -L${libdir} -lvcflib~@
+ Cflags: -I${includedir}~%"
+ out ,version))))
#t)))))
(home-page "https://github.com/vcflib/vcflib/")
(synopsis "Library for parsing and manipulating VCF files")