linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / libxmlb / installed-tests-path.patch
blob4207e9a91d74e3e8fc17b6b516a97e373e2cad3d
1 diff --git a/meson.build b/meson.build
2 index 38486c9..c567613 100644
3 --- a/meson.build
4 +++ b/meson.build
5 @@ -110,8 +110,8 @@
6 prefix = get_option('prefix')
7 datadir = join_paths(prefix, get_option('datadir'))
8 libexecdir = join_paths(prefix, get_option('libexecdir'))
9 - installed_test_bindir = join_paths(libexecdir, 'installed-tests', meson.project_name())
10 - installed_test_datadir = join_paths(datadir, 'installed-tests', meson.project_name())
11 + installed_test_bindir = join_paths(get_option('installed_test_prefix'), 'libexec', 'installed-tests', meson.project_name())
12 + installed_test_datadir = join_paths(get_option('installed_test_prefix'), 'share', 'installed-tests', meson.project_name())
13 endif
15 gio = dependency('gio-2.0', version : '>= 2.45.8')
16 diff --git a/meson_options.txt b/meson_options.txt
17 index 27e8cb6..74548ae 100644
18 --- a/meson_options.txt
19 +++ b/meson_options.txt
20 @@ -2,3 +2,4 @@
21 option('introspection', type : 'boolean', value : true, description : 'generate GObject Introspection data')
22 option('tests', type : 'boolean', value : true, description : 'enable tests')
23 option('stemmer', type : 'boolean', value : false, description : 'enable stemmer support')
24 +option('installed_test_prefix', type: 'string', value: '', description: 'Prefix for installed tests')