mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2025-02-12 14:28:34 +00:00
meson: Require minimal version for bash-completion
As the bash-completion maintainers have pointed out upstream (https://github.com/scop/bash-completion/issues/1317#issuecomment-2619702773) the script requires at least bash-completions 2.12. So let's check for that also in our meson.build
This commit is contained in:
parent
ff037ab89f
commit
ce2759ab70
@ -1,12 +1,13 @@
|
|||||||
bashcompdir = get_option('bashcompdir')
|
bashcompdir = get_option('bashcompdir')
|
||||||
if bashcompdir == ''
|
if bashcompdir == ''
|
||||||
bashcomp = dependency('bash-completion', required: get_option('bash_completion'))
|
bashcomp = dependency('bash-completion', version: '>= 2.12', required: get_option('bash_completion'))
|
||||||
if bashcomp.found()
|
if bashcomp.found()
|
||||||
bashcompdir = bashcomp.get_pkgconfig_variable('completionsdir')
|
bashcompdir = bashcomp.get_pkgconfig_variable('completionsdir')
|
||||||
else
|
else
|
||||||
message('Won\'t install bash completion due to missing dependencies')
|
message('Won\'t install bash completion due to missing dependencies')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if bashcompdir != ''
|
if bashcompdir != ''
|
||||||
install_data('secret-tool', install_dir: bashcompdir)
|
install_data('secret-tool', install_dir: bashcompdir)
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user