summary refs log tree commit diff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2020-08-27 18:06:25 +0300
committerEfraim Flashner <efraim@flashner.co.il>2020-08-27 18:06:25 +0300
commit5c789971881a536e98dd466717c709f9ce77498b (patch)
tree3fc805e8b001604e5a526b96c22f478056fc8611
parentafa352223f103388ddbc2d7aae82949a561ec4e1 (diff)
downloadguix-5c789971881a536e98dd466717c709f9ce77498b.tar.gz
gnu: smithwaterman: Install pkgconfig file.
* gnu/packages/bioinformatics.scm (smithwaterman)[arguments]: Adjust
custom 'install phase to add smithwaterman.pc file.
-rw-r--r--gnu/packages/bioinformatics.scm17
1 files changed, 16 insertions, 1 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 49122aa714..c188500620 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -15477,7 +15477,22 @@ some of the details of opening and jumping in tabix-indexed files.")
                      (install-file file (string-append out "/include/smithwaterman")))
                    (find-files "." "\\.h$"))
                  (install-file "libsmithwaterman.so" lib)
-                 (install-file "libsw.a" lib))
+                 (install-file "libsw.a" lib)
+                 (mkdir-p (string-append lib "/pkgconfig"))
+                 (with-output-to-file (string-append lib "/pkgconfig/smithwaterman.pc")
+                   (lambda _
+                     (format #t "prefix=~a~@
+                             exec_prefix=${prefix}~@
+                             libdir=${exec_prefix}/lib~@
+                             includedir=${prefix}/include/smithwaterman~@
+                             ~@
+                             ~@
+                             Name: smithwaterman~@
+                             Version: ~a~@
+                             Description: smith-waterman-gotoh alignment algorithm~@
+                             Libs: -L${libdir} -lsmithwaterman~@
+                             Cflags: -I${includedir}~%"
+                             out ,version))))
                #t)))))
       (home-page "https://github.com/ekg/smithwaterman")
       (synopsis "Implementation of the Smith-Waterman algorithm")