commit:     a2e7eed1e3013782da5426b6aadfaa6a7b67478d
Author:     Leonardo Hernández Hernández <leohdz172 <AT> proton <DOT> me>
AuthorDate: Wed Jul 26 05:45:55 2023 +0000
Commit:     Leonardo Hernandez <leohdz172 <AT> proton <DOT> me>
CommitDate: Wed Jul 26 06:04:16 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a2e7eed1

app-shells/zoxide: switch from bash-completion-r1 to shell-completion eclass

Signed-off-by: Leonardo Hernández Hernández <leohdz172 <AT> proton.me>

 app-shells/zoxide/zoxide-0.9.1.ebuild | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/app-shells/zoxide/zoxide-0.9.1.ebuild 
b/app-shells/zoxide/zoxide-0.9.1.ebuild
index ffe03bab5..121c0c479 100644
--- a/app-shells/zoxide/zoxide-0.9.1.ebuild
+++ b/app-shells/zoxide/zoxide-0.9.1.ebuild
@@ -119,7 +119,7 @@ CRATES="
        windows_x86_64_msvc@0.48.0
 "
 
-inherit cargo bash-completion-r1
+inherit cargo shell-completion
 
 DESCRIPTION="A smarter cd command for your terminal"
 HOMEPAGE="https://github.com/ajeetdsouza/zoxide";
@@ -151,12 +151,8 @@ src_install() {
        dodoc README.md CHANGELOG.md
 
        newbashcomp contrib/completions/"${PN}".bash "${PN}"
-
-       insinto /usr/share/zsh/site-functions
-       doins contrib/completions/_"${PN}"
-
-       insinto /usr/share/fish/vendor_completions.d
-       doins contrib/completions/"${PN}".fish
+       dozshcomp contrib/completions/_"${PN}"
+       dofishcomp contrib/completions/"${PN}".fish
 
        insinto /usr/share/"${PN}"
        doins init.fish

Reply via email to