summaryrefslogtreecommitdiffstats
path: root/office/evince/0002-build-Allow-building-without-libhandy-1-available.patch
blob: d0eb04e361b60a843d79706c6f687d81aeeef939 (plain)
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
33
34
35
36
37
38
39
From 2408fd4a4d97aae5cb47bd5032bafa34f1e3b56f Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Sun, 21 Feb 2021 17:17:15 +0100
Subject: [PATCH 2/2] build: Allow building without libhandy-1 available

---
 meson.build               | 3 ++-
 subprojects/libhandy.wrap | 5 +++++
 2 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100644 subprojects/libhandy.wrap

diff --git a/meson.build b/meson.build
index ed628182..64b780c5 100644
--- a/meson.build
+++ b/meson.build
@@ -163,7 +163,8 @@ gmodule_dep = dependency('gmodule-2.0')
 gmodule_no_export_dep = dependency('gmodule-no-export-2.0', version: glib_req_version)
 gtk_dep = dependency('gtk+-3.0', version: gtk_req_version)
 gthread_dep = dependency('gthread-2.0', version: glib_req_version)
-hdy_dep = dependency('libhandy-1', version: hdy_req_version)
+# Keep the version here synchronised with subprojects/libhandy.wrap
+hdy_dep = dependency('libhandy-1', version: hdy_req_version, fallback: ['libhandy', 'libhandy_dep'])
 
 m_dep = cc.find_library('m')
 
diff --git a/subprojects/libhandy.wrap b/subprojects/libhandy.wrap
new file mode 100644
index 00000000..24c18155
--- /dev/null
+++ b/subprojects/libhandy.wrap
@@ -0,0 +1,5 @@
+[wrap-git]
+directory=libhandy
+url=https://gitlab.gnome.org/GNOME/libhandy.git
+# See comment in meson.build
+revision=e455f608e7a4ac4ab51e0bb70296f40862054f2b
-- 
2.33.0