summaryrefslogtreecommitdiffstats
path: root/office/evince/0002-build-Allow-building-without-libhandy-1-available.patch
diff options
context:
space:
mode:
Diffstat (limited to 'office/evince/0002-build-Allow-building-without-libhandy-1-available.patch')
-rw-r--r--office/evince/0002-build-Allow-building-without-libhandy-1-available.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/office/evince/0002-build-Allow-building-without-libhandy-1-available.patch b/office/evince/0002-build-Allow-building-without-libhandy-1-available.patch
new file mode 100644
index 0000000000..d0eb04e361
--- /dev/null
+++ b/office/evince/0002-build-Allow-building-without-libhandy-1-available.patch
@@ -0,0 +1,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
+