about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/geocode-glib/installed-tests-path.patch
blob: e5f24abdddd1c9a8956266da547495d0533cf21f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/geocode-glib/tests/meson.build b/geocode-glib/tests/meson.build
index 5cd1fca..c2f9a9d 100644
--- a/geocode-glib/tests/meson.build
+++ b/geocode-glib/tests/meson.build
@@ -1,5 +1,5 @@
-install_dir = get_option('prefix') / get_option('datadir') / 'installed-tests' / library_name
-install_bindir = get_option('prefix') / get_option('libexecdir') / library_name
+install_dir = get_option('installed_test_prefix') / 'share' / 'installed-tests' / library_name
+install_bindir = get_option('installed_test_prefix') / 'libexec' / library_name
 
 e = executable('geo-uri',
                'geo-uri.c',
diff --git a/meson_options.txt b/meson_options.txt
index 62b713d..1454416 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,6 +1,9 @@
 option('enable-installed-tests',
        type: 'boolean', value: true,
        description: 'Build & install test programs')
+option('installed_test_prefix',
+       type: 'string', value: '',
+       description: 'Prefix for installed tests')
 option('enable-introspection',
         type: 'boolean', value: true,
         description: 'Whether to enable the introspection generation')