commit:     91499964a5762bae4e03146aec998b89e1d59c63
Author:     Leonardo Hernández Hernández <leohdz172 <AT> proton <DOT> me>
AuthorDate: Wed Sep 27 03:28:07 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Sep 27 03:44:41 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91499964

sys-apps/bat: use shell-completion.eclass

Signed-off-by: Leonardo Hernández Hernández <leohdz172 <AT> proton.me>
Closes: https://github.com/gentoo/gentoo/pull/33083
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/bat/bat-0.23.0.ebuild | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/sys-apps/bat/bat-0.23.0.ebuild b/sys-apps/bat/bat-0.23.0.ebuild
index c1f9cd57a92c..74a9d70d51bf 100644
--- a/sys-apps/bat/bat-0.23.0.ebuild
+++ b/sys-apps/bat/bat-0.23.0.ebuild
@@ -169,7 +169,7 @@ CRATES="
        [email protected]
 "
 
-inherit bash-completion-r1 cargo
+inherit cargo shell-completion
 
 DESCRIPTION="cat(1) clone with syntax highlighting and Git integration"
 HOMEPAGE="https://github.com/sharkdp/bat";
@@ -217,10 +217,6 @@ src_install() {
        doman assets/manual/bat.1
 
        newbashcomp assets/completions/${PN}.bash ${PN}
-
-       insinto /usr/share/zsh/site-functions
-       newins assets/completions/${PN}.zsh _${PN}
-
-       insinto /usr/share/fish/vendor_completions.d
-       doins assets/completions/${PN}.fish
+       newzshcomp assets/completions/${PN}.zsh _${PN}
+       dofishcomp assets/completions/${PN}.fish
 }

Reply via email to