nixpkgs/pkgs/development/libraries/geocode-glib/installed-tests-path.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
791 B
Diff
Raw Normal View History

2018-03-13 02:14:37 +00:00
--- a/geocode-glib/tests/meson.build
+++ b/geocode-glib/tests/meson.build
@@ -1,4 +1,4 @@
-install_dir = get_option('prefix') / get_option('datadir') / 'installed-tests' / library_name
+install_dir = get_option('installed_test_prefix') / 'share' / 'installed-tests' / library_name
2018-03-13 02:14:37 +00:00
e = executable('geo-uri',
'geo-uri.c',
--- 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')