summaryrefslogtreecommitdiff
path: root/dev-libs/totem-pl-parser/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-01-22 10:09:44 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-01-22 10:09:44 +0000
commit09351e78166b5e864197c4456ebae3f89dd0bed9 (patch)
tree41a96399f56ed3aa399006871bfce4430db84aa2 /dev-libs/totem-pl-parser/files
parentc8a77dfe4d3d307c1d5dd2650b7297447d8b609d (diff)
gentoo resync : 22.01.2019
Diffstat (limited to 'dev-libs/totem-pl-parser/files')
-rw-r--r--dev-libs/totem-pl-parser/files/3.26.2-optional-introspection.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-libs/totem-pl-parser/files/3.26.2-optional-introspection.patch b/dev-libs/totem-pl-parser/files/3.26.2-optional-introspection.patch
new file mode 100644
index 000000000000..f258b20b73da
--- /dev/null
+++ b/dev-libs/totem-pl-parser/files/3.26.2-optional-introspection.patch
@@ -0,0 +1,35 @@
+From e097a4608cafac147546db658a4a37f8a23715ca Mon Sep 17 00:00:00 2001
+From: Mart Raudsepp <leio@gentoo.org>
+Date: Thu, 17 Jan 2019 01:16:40 +0200
+Subject: [PATCH] build: make introspection optional, not based on
+ cross-compiling
+
+This is how most other projects do it - cross-compiling that hits trouble
+can just disable it then.
+
+diff --git a/meson_options.txt b/meson_options.txt
+index 9c32a5f..58e9f8c 100644
+--- a/meson_options.txt
++++ b/meson_options.txt
+@@ -6,3 +6,5 @@ option('enable-libgcrypt', type: 'combo', choices : ['yes', 'no', 'auto'], value
+ description : 'Enable libgcrypt support.')
+ option('enable-gtk-doc', type: 'boolean', value: 'false',
+ description : 'Generate the API reference (depends on GTK-Doc)')
++option('enable-introspection', type: 'boolean', value: 'true',
++ description : 'Generate gobject-introspection bindings')
+diff --git a/plparse/meson.build b/plparse/meson.build
+index bdfde9d..ad4e344 100644
+--- a/plparse/meson.build
++++ b/plparse/meson.build
+@@ -121,7 +121,7 @@ if have_quvi
+ endif
+
+ # Introspection
+-if not meson.is_cross_build()
++if get_option('enable-introspection')
+ gnome.generate_gir(plparser_lib,
+ sources: plparser_public_headers + plparser_sources + [
+ totem_pl_parser_marshalers[1],
+--
+2.17.0
+