commit:     ae6c4f9c21001226f0ad598994896660547c6fa3
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Fri Apr 18 02:43:52 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr 20 08:00:16 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae6c4f9c

media-sound/playerctl: use shell-completion for zsh completions

Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/41643
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-sound/playerctl/playerctl-2.4.1-r1.ebuild | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/media-sound/playerctl/playerctl-2.4.1-r1.ebuild 
b/media-sound/playerctl/playerctl-2.4.1-r1.ebuild
index 258fb2c74c9c..cc04499caebc 100644
--- a/media-sound/playerctl/playerctl-2.4.1-r1.ebuild
+++ b/media-sound/playerctl/playerctl-2.4.1-r1.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{10..13} )
-inherit bash-completion-r1 meson python-any-r1 virtualx xdg-utils
+inherit meson python-any-r1 shell-completion virtualx xdg-utils
 
 DESCRIPTION="A CLI utility to control media players over MPRIS"
 HOMEPAGE="https://github.com/acrisci/playerctl";
@@ -93,7 +93,6 @@ src_install() {
        dodoc -r "${S}"/examples/.
        docompress -x "/usr/share/doc/${PF}/examples"
 
-       newbashcomp data/playerctl.bash "${PN}"
-       insinto /usr/share/zsh/site-functions
-       newins data/playerctl.zsh _playerctl
+       newbashcomp data/playerctl.bash playerctl
+       newzshcomp data/playerctl.zsh _playerctl
 }

Reply via email to