Disable localization file updates and make them optional
This commit is contained in:
parent
131b911ab5
commit
065cfd0816
1 changed files with 13 additions and 1 deletions
14
wscript
14
wscript
|
@ -26,7 +26,6 @@ def configure (conf):
|
||||||
if not Params.g_options.disable_nls:
|
if not Params.g_options.disable_nls:
|
||||||
conf.check_tool ('intltool')
|
conf.check_tool ('intltool')
|
||||||
if conf.env['INTLTOOL'] and conf.env['POCOM']:
|
if conf.env['INTLTOOL'] and conf.env['POCOM']:
|
||||||
conf.find_program ('intltool-update', var='INTLTOOL_UPDATE')
|
|
||||||
nls = 'yes'
|
nls = 'yes'
|
||||||
conf.define ('ENABLE_NLS', 1)
|
conf.define ('ENABLE_NLS', 1)
|
||||||
conf.define ('MIDORI_LOCALEDIR', 'LOCALEDIR', 0)
|
conf.define ('MIDORI_LOCALEDIR', 'LOCALEDIR', 0)
|
||||||
|
@ -36,6 +35,16 @@ def configure (conf):
|
||||||
nls = 'no'
|
nls = 'no'
|
||||||
conf.check_message_custom ('localization', 'support', nls)
|
conf.check_message_custom ('localization', 'support', nls)
|
||||||
|
|
||||||
|
if Params.g_options.enable_update_po:
|
||||||
|
conf.find_program ('intltool-update', var='INTLTOOL_UPDATE')
|
||||||
|
if conf.env['INTLTOOL_UPDATE']:
|
||||||
|
update_po = 'yes'
|
||||||
|
else:
|
||||||
|
update_po = 'not available'
|
||||||
|
else:
|
||||||
|
update_po = 'no'
|
||||||
|
conf.check_message_custom ('localization file', 'updates', update_po)
|
||||||
|
|
||||||
if not Params.g_options.disable_unique:
|
if not Params.g_options.disable_unique:
|
||||||
conf.check_pkg ('unique-1.0', destvar='UNIQUE', vnum='0.9', mandatory=False)
|
conf.check_pkg ('unique-1.0', destvar='UNIQUE', vnum='0.9', mandatory=False)
|
||||||
single_instance = ['not available','yes'][conf.env['HAVE_UNIQUE'] == 1]
|
single_instance = ['not available','yes'][conf.env['HAVE_UNIQUE'] == 1]
|
||||||
|
@ -90,6 +99,9 @@ def set_options (opt):
|
||||||
opt.add_option ('--disable-gio', action='store_true', default=False,
|
opt.add_option ('--disable-gio', action='store_true', default=False,
|
||||||
help='Disables GIO support', dest='disable_gio')
|
help='Disables GIO support', dest='disable_gio')
|
||||||
|
|
||||||
|
opt.add_option ('--enable-update-po', action='store_true', default=False,
|
||||||
|
help='Enables localization file updates', dest='enable_update_po')
|
||||||
|
|
||||||
def build (bld):
|
def build (bld):
|
||||||
bld.add_subdirs ('katze midori icons')
|
bld.add_subdirs ('katze midori icons')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue