(1) On recent meson versions, it fixes this error:
> extensions/goat-exercises/meson.build:108:0: ERROR: i18n.merge_file keyword argument 'output' was of type array[str] but should have been str
As docs explains, 'output' only accepts one item in i18n.merge_file().
This bug also happens on older meson (but there the reported error is a
lot less useful as it doesn't mention local meson build code).
(2) `setup.isl.xml` is a temporary intermediary file used to create the
Windows installer. It must not be installed.
(3) `gimp30-windows-installer.mo` itself is only used to create
`setup.isl.xml`. It must not be installed as well.
(4) gimp-tips.(its|loc) files (same for gimp-tags ones) should not be
installed. They are only temporary data.
(5) Fix environment variable: s/GETTEXT_DATA_DIRS/GETTEXTDATADIRS/
Fixes:
> /usr/bin/msgfmt: cannot locate ITS rules for ../../../data/tips/gimp-tips.xml.in
(6) Fix various bugs in the *.setup.isl files creation in autotools
build (typo, wrong files used, order of options in `xsltproc`
apparently meaningful, and so on. I guess the autotools build was
not as well tested as the meson one :P).
(7) Fixing the unit test verifying language lists consistency.
(8) `setup.isl.xml.in` must be added to the distribution.
36 lines
781 B
Meson
36 lines
781 B
Meson
gimp_tips = i18n.merge_file(
|
|
input : 'gimp-tips.xml.in',
|
|
output: '@BASENAME@',
|
|
data_dirs: meson.current_source_dir(),
|
|
po_dir: potips_dir,
|
|
install: true,
|
|
install_dir: gimpdatadir / 'tips',
|
|
)
|
|
|
|
fortunes_tips = custom_target('fortunes-tips',
|
|
input : [ gimp_tips, 'fortunes.xsl', ],
|
|
output: 'fortunes-tips',
|
|
command: [
|
|
xsltproc,
|
|
'--stringparam', 'lang', 'en',
|
|
'--path', meson.current_source_dir(),
|
|
'--output', '@OUTPUT@',
|
|
'@INPUT1@',
|
|
'@INPUT0@',
|
|
],
|
|
)
|
|
|
|
if xmllint.found()
|
|
custom_target('validate-tips',
|
|
command: [
|
|
xmllint,
|
|
'--output', '@OUTPUT@',
|
|
'--path', meson.current_source_dir(),
|
|
'--valid', gimp_tips,
|
|
],
|
|
output: [ 'validate-tips-output.xml' ],
|
|
build_by_default: true,
|
|
install: false
|
|
)
|
|
endif
|