presenterm: 0.9.0 -> 0.10.0 (#378946)
[NixPkgs.git] / pkgs / by-name / li / libxmlb / installed-tests-path.patch
blobb35c8dfc8cdfc44c649f1f412a6dfb927fb1391e
1 --- a/meson.build
2 +++ b/meson.build
3 @@ -111,7 +111,7 @@ else
4 datadir = join_paths(prefix, get_option('datadir'))
5 libexecdir = join_paths(prefix, get_option('libexecdir'))
6 - installed_test_bindir = join_paths(libexecdir, 'installed-tests', meson.project_name())
7 - installed_test_datadir = join_paths(datadir, 'installed-tests', meson.project_name())
8 + installed_test_bindir = join_paths(get_option('installed_test_prefix'), 'libexec', 'installed-tests', meson.project_name())
9 + installed_test_datadir = join_paths(get_option('installed_test_prefix'), 'share', 'installed-tests', meson.project_name())
10 endif
12 gio = dependency('gio-2.0', version : '>= 2.45.8')
13 --- a/meson_options.txt
14 +++ b/meson_options.txt
15 @@ -3,4 +3,5 @@ option('introspection', type : 'boolean', value : true, description : 'generate
16 option('tests', type : 'boolean', value : true, description : 'enable tests')
17 option('stemmer', type : 'boolean', value : false, description : 'enable stemmer support')
18 +option('installed_test_prefix', type: 'string', value: '', description: 'Prefix for installed tests')
19 option('cli', type : 'boolean', value : true, description : 'build and install the xb-tool CLI')