dput-ng: fix eval (#364540)
[NixPkgs.git] / pkgs / by-name / gn / gnome-photos / installed-tests-path.patch
blob218108328dd8a69b35e30d6d54ffa0fa292b9bd4
1 diff --git a/meson.build b/meson.build
2 index dee932dc..f8851913 100644
3 --- a/meson.build
4 +++ b/meson.build
5 @@ -16,8 +16,8 @@
6 photos_docdir = join_paths(photos_datadir, 'doc', meson.project_name())
7 photos_libdir = join_paths(photos_prefix, get_option('libdir'), meson.project_name())
9 -photos_installed_test_metadir = join_paths(photos_datadir, 'installed-tests', meson.project_name())
10 -photos_installed_test_execdir = join_paths(photos_libexecdir, 'installed-tests', meson.project_name())
11 +photos_installed_test_metadir = join_paths(get_option('installed_test_prefix'), 'share', 'installed-tests', meson.project_name())
12 +photos_installed_test_execdir = join_paths(get_option('installed_test_prefix'), 'libexec', 'installed-tests', meson.project_name())
14 photos_namespace = 'org.gnome.Photos'
16 diff --git a/meson_options.txt b/meson_options.txt
17 index f34b5cc0..8e09970b 100644
18 --- a/meson_options.txt
19 +++ b/meson_options.txt
20 @@ -1,2 +1,3 @@
21 option('dogtail', type: 'boolean', value: true, description: 'test using dogtail')
22 option('installed_tests', type: 'boolean', value: false, description: 'Enable installation of some test cases')
23 +option('installed_test_prefix', type: 'string', value: '', description: 'Prefix for installed tests')