guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/09: gnu: tabixpp: Install pkgconfig file.


From: guix-commits
Subject: 02/09: gnu: tabixpp: Install pkgconfig file.
Date: Thu, 27 Aug 2020 11:20:10 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 261bc778b6b7970937bda6996972f27f996be4bd
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Aug 27 18:03:13 2020 +0300

    gnu: tabixpp: Install pkgconfig file.
    
    * gnu/packages/bioinformatics.scm (tabixpp)[arguments]: Adjust custom
    'install phase to add tabixpp.pc file.
---
 gnu/packages/bioinformatics.scm | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index f7887b5..5377867 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -15412,6 +15412,21 @@ mutations from scRNA-Seq data.")
               (install-file "libtabixpp.so" lib)
               (install-file "libtabixpp.a" lib)
               (install-file "tabix.hpp" (string-append out "/include"))
+              (mkdir-p (string-append lib "/pkgconfig"))
+              (with-output-to-file (string-append lib "/pkgconfig/tabixpp.pc")
+                (lambda _
+                  (format #t "prefix=~a~@
+                          exec_prefix=${prefix}~@
+                          libdir=${exec_prefix}/lib~@
+                          includedir=${prefix}/include~@
+                          ~@
+                          ~@
+                          Name: libtabixpp~@
+                          Version: ~a~@
+                          Description: C++ wrapper around tabix project~@
+                          Libs: -L${libdir} -ltabixpp~@
+                          Cflags: -I${includedir}~%"
+                          out ,version)))
               #t))))))
    (home-page "https://github.com/ekg/tabixpp";)
    (synopsis "C++ wrapper around tabix project")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]