guix/gnu/packages/patches/opendht-meson-install-headers.patch
Maxim Cournoyer d54d98ccc7
gnu: opendht: Modernize and build with liburing.
* gnu/packages/networking.scm (opendht) [source]: Apply patches.
[build-system]: Switch to meson-build-system.
[#:modules]: Adjust accordingly.  Add (ice-9 ftw) and (srfi srfi-26).
[#:configure-flags]: Migrate to Meson options.
[#:phases] {disable-problematic-tests}: Update phase.
{fix-python-installation-prefix}: Delete.
{specify-runpath-for-python-module}: Likewise.
{pkgconfig-disable-iouring, check, delete-autogen.sh}: Likewise.
{move-and-wrap-tools}: Rename to move-tools and adjust.
{move-python-bindings}: Add.
[native-inputs]: Remove autoconf, automake and libtool.
[inputs]: Delete python.
[propagated-inputs]: Add liburing.  Remove llhttp.
* gnu/packages/patches/opendht-nanosleep.patch: Delete file.
* gnu/packages/patches/opendht-meson-liburing.patch: New file.
* gnu/packages/patches/opendht-meson-install-headers.patch: Likewise.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.

Change-Id: I015e9422dd534106150f2a4a2a89777c47fb5507
2026-01-12 11:25:22 +09:00

32 lines
788 B
Diff

Upstream-status: <https://github.com/savoirfairelinux/opendht/pull/821>
diff --git a/meson.build b/meson.build
index d3c4a500..8d1ed563 100644
--- a/meson.build
+++ b/meson.build
@@ -116,6 +116,13 @@ opendht = library(
install: true,
)
+# Install library headers.
+install_subdir(
+ 'include',
+ install_dir: get_option('includedir'),
+ strip_directory: true
+)
+
conf_data.set('VERSION', meson.project_version())
conf_data.set('prefix', get_option('prefix'))
conf_data.set('exec_prefix', get_option('prefix'))
@@ -145,6 +152,11 @@ if get_option('c').enabled()
install: true,
)
+ install_headers(
+ 'c/opendht_c.h',
+ subdir: 'opendht'
+ )
+
configure_file(
input: 'opendht-c.pc.in',
output: 'opendht-c.pc',