pidgin/pidgin

1692f596a13d
Parents 5496016b3c00
Children 51a4fc3b947a
Manually check for xgettext as we need it for NLS support.

See https://github.com/mesonbuild/meson/issues/8436 for the upstream bug this is working around.

Also fixed an issue where the appdata file was causing configuration to fail if nls was turned off.

Testing Done:
Ran locally with `-Dnls=true` and `-Dnls=false`.

Reviewed at https://reviews.imfreedom.org/r/548/
--- a/meson.build Tue Mar 02 23:22:34 2021 -0600
+++ b/meson.build Tue Mar 02 23:27:31 2021 -0600
@@ -92,6 +92,11 @@
# Check for Sun compiler
SUNCC = compiler.compiles('void main() {__SUNPRO_C;};')
+# Make sure we have xgettext
+if get_option('nls')
+ find_program('xgettext')
+endif
+
# Check for Win32
if host_machine.system() == 'windows'
windows = import('windows')
--- a/pidgin/meson.build Tue Mar 02 23:22:34 2021 -0600
+++ b/pidgin/meson.build Tue Mar 02 23:27:31 2021 -0600
@@ -295,6 +295,7 @@
configure_file(
input : 'data/im.pidgin.Pidgin3.appdata.xml.in',
output : 'im.pidgin.Pidgin3.appdata.xml',
+ configuration : configuration_data(),
install : true,
install_dir : get_option('datadir') / 'metainfo')
endif # INSTALL_I18N