~ruther/guix-local

ref: e68ec94fdb4c00a950480e845bc3746d6f01ce97 guix-local/gnu/packages/patches/opendht-meson-install-headers.patch -rw-r--r-- 788 bytes
e68ec94f — Christopher Baines gnu: guix-build-coordinator: Update to 0-136.a1c18b1. a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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',