media-sound/listenbrainz-mpd: build and install shell completion files

Signed-off-by: Timo van Veen <timovanveen@hotmail.nl>
This commit is contained in:
Timo van Veen
2025-04-13 20:54:08 +02:00
parent f1d0a0dbeb
commit 9192f3296a

View File

@@ -195,7 +195,7 @@ CRATES="
zerocopy@0.7.35
"
inherit cargo systemd
inherit cargo systemd shell-completion
DESCRIPTION="ListenBrainz submission client for MPD"
HOMEPAGE="https://codeberg.org/elomatreb/listenbrainz-mpd"
@@ -225,6 +225,7 @@ QA_FLAGS_IGNORED="usr/bin/listenbrainz-mpd"
src_configure() {
local myfeatures=(
$(usev systemd)
shell_completion
)
cargo_src_configure
}
@@ -234,4 +235,7 @@ src_install() {
cargo_src_install
systemd_douserunit listenbrainz-mpd.service
dobashcomp generated_completions/listenbrainz-mpd.bash
dofishcomp generated_completions/listenbrainz-mpd.fish
dozshcomp generated_completions/_listenbrainz-mpd
}