summaryrefslogtreecommitdiff
path: root/dev-util/devhelp/files/41.2-optional-introspection.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/devhelp/files/41.2-optional-introspection.patch')
-rw-r--r--dev-util/devhelp/files/41.2-optional-introspection.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-util/devhelp/files/41.2-optional-introspection.patch b/dev-util/devhelp/files/41.2-optional-introspection.patch
new file mode 100644
index 000000000000..7fb4e719cbff
--- /dev/null
+++ b/dev-util/devhelp/files/41.2-optional-introspection.patch
@@ -0,0 +1,47 @@
+From 0e2e1de8015abc77ead34e25d9822a183b1f214d Mon Sep 17 00:00:00 2001
+From: Mart Raudsepp <leio@gentoo.org>
+Date: Sun, 3 Oct 2021 23:51:25 +0300
+Subject: [PATCH] build: Add optionality for introspection build
+
+---
+ devhelp/meson.build | 2 ++
+ meson_options.txt | 6 ++++++
+ 2 files changed, 8 insertions(+)
+
+diff --git a/devhelp/meson.build b/devhelp/meson.build
+index 010e563f..fac15888 100644
+--- a/devhelp/meson.build
++++ b/devhelp/meson.build
+@@ -120,6 +120,7 @@ PKG_CONFIG.generate(
+ requires_private: LIBDEVHELP_PRIVATE_DEPS
+ )
+
++if get_option('introspection')
+ libdevhelp_gir = GNOME.generate_gir(
+ libdevhelp_shared_lib,
+ export_packages: 'libdevhelp-@0@'.format(LIBDEVHELP_API_VERSION_FULL),
+@@ -140,3 +141,4 @@ libdevhelp_gir = GNOME.generate_gir(
+ '--quiet',
+ ],
+ )
++endif
+diff --git a/meson_options.txt b/meson_options.txt
+index 17dc85f5..c69a2906 100644
+--- a/meson_options.txt
++++ b/meson_options.txt
+@@ -10,6 +10,12 @@ option(
+ description: 'Build the API reference'
+ )
+
++option(
++ 'introspection',
++ type: 'boolean', value: true,
++ description: 'Build GObject Introspection data'
++)
++
+ option(
+ 'plugin_emacs',
+ type: 'boolean', value: false,
+--
+2.32.0
+