void-packages/srcpkgs/libgweather/patches/cross.patch

22 lines
829 B
Diff

--- a/meson.build
+++ b/meson.build
@@ -51,7 +51,7 @@ py = import('python').find_installation('python3', modules: ['gi'])
gen_locations_variant = find_program('build-aux/meson/gen_locations_variant.py')
g_ir_scanner = find_program('g-ir-scanner', required: get_option('introspection'))
-build_gir = get_option('introspection') and g_ir_scanner.found() and not meson.is_cross_build()
+build_gir = get_option('introspection') and g_ir_scanner.found()
build_docs = get_option('gtk_doc') and build_gir
schemas_srcdir = meson.project_source_root() / 'schemas'
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -1,6 +1,7 @@
if build_docs
dependency('gi-docgen', version: '>= 2021.6',
fallback: ['gi-docgen', 'dummy_dep'],
+ native: true,
)
gidocgen = find_program('gi-docgen', required: get_option('gtk_doc'))