meson: stop using deprecated functions, require meson >= 0.58

* get_pkgconfig_variable() -> get_variable()
* prog.path() -> prog.full_path()
* meson.build_root() -> meson.global_build_root()
This commit is contained in:
Daniel Eklöf 2022-02-27 11:26:40 +01:00
parent a65804139d
commit 9b343fd9fb
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 8 additions and 7 deletions

View file

@ -1,6 +1,6 @@
sh = find_program('sh', native: true)
scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true)
scdoc_prog = find_program(scdoc.get_variable('scdoc'), native: true)
conf_data = configuration_data(
{
@ -26,7 +26,7 @@ foreach man_src : [{'name': 'foot', 'section' : 1},
out,
output: out,
input: preprocessed,
command: [sh, '-c', '@0@ < @INPUT@'.format(scdoc_prog.path())],
command: [sh, '-c', '@0@ < @INPUT@'.format(scdoc_prog.full_path())],
capture: true,
install: true,
install_dir: join_paths(get_option('mandir'), 'man@0@'.format(section)))