[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/17: gnu: lmdb: Install pkg-config file.
From: |
guix-commits |
Subject: |
04/17: gnu: lmdb: Install pkg-config file. |
Date: |
Thu, 17 Dec 2020 05:24:33 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit 46c2cf6902c81ef61060337ff25a9e1eb23d8b49
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Dec 16 11:18:48 2020 +0200
gnu: lmdb: Install pkg-config file.
* gnu/packages/databases.scm (lmdb)[arguments]: Add phase to create a
lmdb.pc file.
---
gnu/packages/databases.scm | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 4b1a1ff..3bd2add 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -2352,7 +2352,25 @@ database.")
(chdir "libraries/liblmdb")
(substitute* "Makefile"
(("/usr/local") (assoc-ref outputs "out")))
- #t)))))
+ #t))
+ (add-after 'install 'create-pkg-config-file
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (mkdir-p (string-append out "/lib/pkgconfig"))
+ (with-output-to-file (string-append out
"/lib/pkgconfig/liblmdb.pc")
+ (lambda _
+ (format #t "prefix=~a~@
+ exec_prefix=~a~@
+ libdir=~a/lib~@
+ includedir=~a/include~@
+ ~@
+ Name: liblmdb~@
+ Version: ~a~@
+ Description: Lightning Memory-Mapped Database
library~@
+ Libs: -L${libdir} -llmdb~@
+ Cflags: -I${includedir}~%"
+ out out out out ,version)))
+ #t))))))
(home-page "https://symas.com/lmdb/")
(synopsis "Lightning Memory-Mapped Database library")
(description
- branch master updated (492826e -> 1b02b12), guix-commits, 2020/12/17
- 01/17: gnu: Add rust-tabwriter-1., guix-commits, 2020/12/17
- 02/17: gnu: Add rust-size-format-1., guix-commits, 2020/12/17
- 04/17: gnu: lmdb: Install pkg-config file.,
guix-commits <=
- 06/17: gnu: Add rust-lmdb-rkv-0.14., guix-commits, 2020/12/17
- 03/17: gnu: Add rust-nom-2., guix-commits, 2020/12/17
- 05/17: gnu: Add rust-lmdb-rkv-sys-0.11., guix-commits, 2020/12/17
- 10/17: gnu: rust-indexmap-1: Update to 1.6.1., guix-commits, 2020/12/17
- 07/17: gnu: Add rust-libsqlite3-sys-0.18., guix-commits, 2020/12/17
- 08/17: gnu: Add rust-serde-stacker-0.1., guix-commits, 2020/12/17
- 09/17: gnu: rust-serde-json-1: Update to 1.0.60., guix-commits, 2020/12/17
- 11/17: gnu: Add rust-rusqlite-0.23., guix-commits, 2020/12/17
- 13/17: gnu: rust-sleef-sys-0.1: Adjust inputs., guix-commits, 2020/12/17
- 12/17: gnu: Add rust-packed-simd-2-0.3., guix-commits, 2020/12/17