diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2023-04-27 11:37:36 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2023-04-27 11:37:36 +0200 |
commit | 479f2558feb6a98852ac8e7eeeee3ab11414ad99 (patch) | |
tree | 10e545bab0c56188184bd28b0d80d0c3b264f927 /gnu/packages | |
parent | 9d82c475a3abfc16f2e03491a34672c35d9852fb (diff) |
gnu: wfa2-lib: Install pkg-config file.
* gnu/packages/bioinformatics.scm (wfa2-lib)[arguments]: Install libwfa2.pc.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/bioinformatics.scm | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 4b69342a3b..a0f4738933 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -17167,6 +17167,29 @@ library automatically handles index file generation and use.") (sha256 (base32 "110s1s79z8ndjs4qdgmrj708iiaqyagia3gi2fxak101lg263diw")))) (build-system cmake-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + ;; This pkg-config file is provided by other distributions. + (add-after 'install 'install-pkg-config-file + (lambda _ + (let ((pkgconfig (string-append #$output "/lib/pkgconfig"))) + (mkdir-p pkgconfig) + (with-output-to-file (string-append pkgconfig "/libwfa2.pc") + (lambda _ + (format #t "\ +prefix=~a~@ +exec_prefix=${prefix}~@ +libdir=${exec_prefix}/lib~@ +includedir=${prefix}/include/wfa2lib~@ +~@ +Name: libwfa2~@ +Version: ~a~@ +Description: Wavefront alignment algorithm library~@ +Libs: -L${libdir} -lwfa2 -lwfa2cpp~@ +Cflags: -I${includedir}~%" + #$output #$version))))))))) (native-inputs (list pkg-config)) (home-page "https://github.com/smarco/WFA2-lib") |