summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2021-01-19 11:36:01 +0200
committerEfraim Flashner <efraim@flashner.co.il>2021-01-19 11:36:01 +0200
commit1bbfe1789d07f8ae727a08b8386369ee736582cc (patch)
treef73bd7c91852e1bbc9e1438716f4fa8bcdc29a49 /gnu
parentd6a8148c8d61d7dfcfa14ee45b78e95aad51e2bf (diff)
downloadguix-1bbfe1789d07f8ae727a08b8386369ee736582cc.tar.gz
gnu: vcflib: Add pkg-config file.
* gnu/packages/bioinformatics.scm (vcflib)[arguments]: Add phase to
create pkg-config file.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/bioinformatics.scm23
1 files changed, 22 insertions, 1 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 1164873ecc..95352f948b 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -15083,7 +15083,28 @@ library automatically handles index file generation and use.")
                 (unpack "fsom-src" "fsom")
                 (unpack "intervaltree-src" "intervaltree")
                 (unpack "multichoose-src" "multichoose"))
-               #t))))))
+               #t)))
+         ;; This pkg-config file is provided by other distributions.
+         (add-after 'install 'install-pkg-config-file
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (pkgconfig (string-append out "/lib/pkgconfig")))
+               (mkdir-p pkgconfig)
+               (with-output-to-file (string-append pkgconfig "/libvcflib.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} -llibvcflib~@
+                           Cflags: -I${includedir}~%"
+                           out ,version)))
+                 #t))))))
     (home-page "https://github.com/vcflib/vcflib/")
     (synopsis "Library for parsing and manipulating VCF files")
     (description "Vcflib provides methods to manipulate and interpret