diff options
| author | Romain GARBAGE <romain.garbage@inria.fr> | 2026-01-16 09:12:00 +0100 |
|---|---|---|
| committer | Romain GARBAGE <romain.garbage@inria.fr> | 2026-01-19 10:00:37 +0100 |
| commit | 1f5c5b2bb6737b44f0e7d9a6b49f202643d12937 (patch) | |
| tree | 34b3d4cedb1e7a80be063ee62b7d6879d1d5d3db /patches/redox-install-pkg-config-file.patch | |
| parent | d0e0be536d95f26115b7e12f5ff72fdb2030730c (diff) | |
databases: Add redox.
* guix-science/packages/databases.scm: New file.
(redox): New variable.
* patches/redox-generate-pkg-config-file.patch: New file.
* patches/redox-install-pkg-config-file.patch: New file.
Diffstat (limited to 'patches/redox-install-pkg-config-file.patch')
| -rw-r--r-- | patches/redox-install-pkg-config-file.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/patches/redox-install-pkg-config-file.patch b/patches/redox-install-pkg-config-file.patch new file mode 100644 index 0000000..a1390b3 --- /dev/null +++ b/patches/redox-install-pkg-config-file.patch | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | From 6728a7582bbd5f0ef37f8893cc0103f82c9fdc05 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Millian Poquet <millian.poquet@inria.fr> | ||
| 3 | Date: Thu, 6 Dec 2018 20:01:15 +0100 | ||
| 4 | Subject: [PATCH] install a pkg-config redox.pc file | ||
| 5 | |||
| 6 | --- | ||
| 7 | CMakeLists.txt | 3 +++ | ||
| 8 | cmake/redox.pc.in | 11 +++++++++++ | ||
| 9 | 2 files changed, 14 insertions(+) | ||
| 10 | create mode 100644 cmake/redox.pc.in | ||
| 11 | |||
| 12 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| 13 | index 11887ad..54dfa35 100644 | ||
| 14 | --- a/CMakeLists.txt | ||
| 15 | +++ b/CMakeLists.txt | ||
| 16 | @@ -193,6 +193,9 @@ endif() | ||
| 17 | if (lib) | ||
| 18 | # Install the dynamic library to /usr/lib[64] | ||
| 19 | install(TARGETS redox DESTINATION lib${LIB_SUFFIX}) | ||
| 20 | + # Generate the redox.pc pkg-config file in /usr/lib[64]/pkgconfig | ||
| 21 | + configure_file("${CMAKE_HOME_DIRECTORY}/cmake/redox.pc.in" "${PROJECT_BINARY_DIR}/redox.pc" @ONLY) | ||
| 22 | + install(FILES "${PROJECT_BINARY_DIR}/redox.pc" DESTINATION lib${LIB_SUFFIX}/pkgconfig/) | ||
| 23 | endif() | ||
| 24 | |||
| 25 | if (static_lib) | ||
| 26 | diff --git a/cmake/redox.pc.in b/cmake/redox.pc.in | ||
| 27 | new file mode 100644 | ||
| 28 | index 0000000..a480d1f | ||
| 29 | --- /dev/null | ||
| 30 | +++ b/cmake/redox.pc.in | ||
| 31 | @@ -0,0 +1,11 @@ | ||
| 32 | +prefix=@CMAKE_INSTALL_PREFIX@ | ||
| 33 | +exec_prefix=${prefix} | ||
| 34 | +libdir=${prefix}/lib@LIB_SUFFIX@ | ||
| 35 | +includedir=${prefix}/include | ||
| 36 | + | ||
| 37 | +Name: redox | ||
| 38 | +Description: Modern, asynchronous, and wicked fast C++11 client for Redis | ||
| 39 | +Version: @REDOX_VERSION_STRING@ | ||
| 40 | + | ||
| 41 | +Libs: -L${libdir} -lredox @HIREDIS_LIBRARIES@ @LIBEV_LIBRARIES@ @CMAKE_THREAD_LIBS_INIT@ | ||
| 42 | +Cflags: -I${includedir} | ||
