From meson_options.txt: option('vte', type: 'feature', value: 'auto', description: 'VTE support') ... option('bash_completion', type: 'feature', value: 'auto', description: 'bash-completion support') From meson.build: vte_min_version='>=0.46.0' bash_completion_version='2.0' ... vte_dep = dependency('vte-2.91', version: vte_min_version, required: get_option('vte')) if vte_dep.found() conf_data.set('HAVE_VTE', '1') endif bash_completion_dep = dependency('bash-completion', version: '>=' + bash_completion_version, required: get_option('bash_completion')) if bash_completion_dep.found() bash_completion_dir = get_option('bash_completion_dir') Some other potential tidy-ups: Could add to emesonargs (equivalent used to be in older ebuilds): -Dovirt=disabled although I don't think govirt is available in Gentoo. Don't think there is a need to repeat the USE flag when the option has the same name e.g.: $(meson_feature libvirt libvirt)
Possible dev-lang/perl is no longer a DEPEND. Might only have been needed for build-aux/syntax-check.mk.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1dd22107bb5c42287fb9cb380cf85bcfea2dbd8d commit 1dd22107bb5c42287fb9cb380cf85bcfea2dbd8d Author: Sam James <sam@gentoo.org> AuthorDate: 2022-04-29 07:46:26 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-04-29 07:50:21 +0000 app-emulation/virt-viewer: add 11.0 Bug: https://bugs.gentoo.org/803071 Closes: https://bugs.gentoo.org/835871 Bug: https://bugs.gentoo.org/734234 Signed-off-by: Sam James <sam@gentoo.org> app-emulation/virt-viewer/Manifest | 1 + app-emulation/virt-viewer/metadata.xml | 2 + app-emulation/virt-viewer/virt-viewer-11.0.ebuild | 68 +++++++++++++++++++++++ 3 files changed, 71 insertions(+)