commit:     75d82ba5befd03bbe680ab1cc34c0dc37fc8c7b3
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 16 06:36:21 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Jul 16 07:38:57 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75d82ba5

x11-terms/kitty: install shell completion files in live

Some of this was already done by x11-terms/kitty-shell-integration but
there was little reason to have that package install these (see
bug #960075) and the pre-generated files it installed were missing
things (most notably it did not have a pre-gen file for bash).

Note that for 9999 this will cause conflicts unless update
kitty-shell-integration first (normally these are always supposed
to be updated together and in order either way, albeit for 9999
that is not enforced). Otherwise blockers are not needed given
kitty pins to exact versions forcing the update first.

Bug: https://bugs.gentoo.org/960075
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 x11-terms/kitty/kitty-9999.ebuild | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/x11-terms/kitty/kitty-9999.ebuild 
b/x11-terms/kitty/kitty-9999.ebuild
index 16ecbab67df8..dfa4af207290 100644
--- a/x11-terms/kitty/kitty-9999.ebuild
+++ b/x11-terms/kitty/kitty-9999.ebuild
@@ -160,11 +160,20 @@ src_compile() {
                mv linux-package/share/doc/{${PN},${PF}} || die
        fi
 
-       # generate default config as reference, command taken from docs/conf.rst
        if ! tc-is-cross-compiler; then
+               # generate default config reference, command taken from 
docs/conf.rst
                linux-package/bin/kitty +runpy \
                        'from kitty.config import *; 
print(commented_out_default_config())' \
                        > linux-package/share/doc/${PF}/kitty.conf || die
+
+               # generate shell completions, shell-integration/ has some "old" 
pre-gen
+               # ones that currently miss things (no bash, no kitten for zsh, 
etc...)
+               mkdir -p linux-package/share/bash-completion/completions || die
+               linux-package/bin/kitten __complete__ setup bash > ${_}/kitty 
|| die
+               mkdir -p linux-package/share/fish/vendor_completions.d || die
+               linux-package/bin/kitten __complete__ setup fish > 
${_}/kitty.fish || die
+               mkdir -p linux-package/share/zsh/site-functions || die
+               linux-package/bin/kitten __complete__ setup zsh > ${_}/_kitty 
|| die
        fi
 }
 

Reply via email to