[gnome-boxes/wip/inigomartinez/meson: 13/13] meson: Use localedir option
- From: Iñigo Martínez <inigomartinez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/inigomartinez/meson: 13/13] meson: Use localedir option
- Date: Sun, 10 Dec 2017 13:09:34 +0000 (UTC)
commit 67ebfc284b80f81c60e615e70fc83ec4c2607066
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Sun Dec 10 14:02:19 2017 +0100
meson: Use localedir option
The default location for localedir is used, which is usually under
datadir directory. However, the user might choose another location
by using the available options.
This patch uses the localedir option instead of using the default
location.
https://bugzilla.gnome.org/show_bug.cgi?id=791421
meson.build | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index 197febb..331e756 100644
--- a/meson.build
+++ b/meson.build
@@ -53,7 +53,6 @@ libgd_dep = libgd.get_variable('libgd_dep')
po_dir = join_paths (meson.source_root (), 'po')
data_dir = join_paths (get_option ('prefix'), get_option ('datadir'))
-locale_dir = join_paths (data_dir, '/locale')
conf = configuration_data ()
conf.set_quoted ('DISTRIBUTOR_NAME', get_option ('distributor_name'))
@@ -65,7 +64,7 @@ conf.set_quoted ('GETTEXT_PACKAGE', meson.project_name ())
conf.set('PACKAGE_URL', '"https://wiki.gnome.org/Apps/Boxes"')
conf.set_quoted ('DATADIR', data_dir)
conf.set_quoted ('CACHEDIR', '/var/cache')
-conf.set_quoted ('LOCALEDIR', locale_dir)
+conf.set_quoted ('LOCALEDIR', get_options ('localedir'))
conf.set('PACKAGE_BUGREPORT', '"https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-boxes"')
if get_option ('ovirt')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]