Files
MINGW-packages/mingw-w64-totem-pl-parser/001-win.patch
2017-09-20 10:03:07 +03:00

46 lines
1.6 KiB
Diff

--- ./plparse/totem-pl-parser.c.orig 2015-02-17 15:27:48.000000000 +0100
+++ ./plparse/totem-pl-parser.c 2015-05-22 09:08:18.942765600 +0200
@@ -662,7 +662,13 @@
static gpointer
totem_pl_parser_real_init_i18n (gpointer data)
{
- bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+ gchar *dir;
+ gchar *path;
+ dir = g_win32_get_package_installation_directory_of_module (NULL);
+ path = g_build_filename (dir, "share", "locale", NULL);
+ bindtextdomain (GETTEXT_PACKAGE, path);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ g_free (path);
+ g_free (dir);
return NULL;
}
--- ./plparse/meson.build
+++ ./plparse/meson.build
@@ -117,25 +117,5 @@
install: true)
endif
-# Introspection
-if not meson.is_cross_build()
- gnome.generate_gir(plparser_lib,
- sources: plparser_public_headers + plparser_sources + [
- totem_pl_parser_marshalers[1],
- totem_pl_parser_builtins_h,
- features_h,
- ],
- namespace: 'TotemPlParser',
- nsversion: '1.0',
- identifier_prefix: 'TotemPl',
- symbol_prefix: 'totem_pl',
- includes: ['GObject-2.0', 'Gio-2.0'],
- extra_args: ['--identifier-prefix=TotemDisc',
- '--symbol-prefix=totem_disc',
- '--identifier-prefix=TotemCd',
- '--symbol-prefix=totem_cd',
- '--quiet'],
- install: true)
-endif
subdir('tests')