commit: 91f85d95e10f957b835022512720ea573f05e284 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Thu Jul 17 15:52:04 2025 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Thu Jul 17 16:00:22 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91f85d95
x11-terms/kitty: add alias symlinks for bash completions Also switch to shell-completion.eclass while at it. Closes: https://bugs.gentoo.org/960346 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> ...{kitty-0.42.2.ebuild => kitty-0.42.2-r1.ebuild} | 22 +++++++++++++--------- x11-terms/kitty/kitty-9999.ebuild | 22 +++++++++++++--------- 2 files changed, 26 insertions(+), 18 deletions(-) diff --git a/x11-terms/kitty/kitty-0.42.2.ebuild b/x11-terms/kitty/kitty-0.42.2-r1.ebuild similarity index 90% rename from x11-terms/kitty/kitty-0.42.2.ebuild rename to x11-terms/kitty/kitty-0.42.2-r1.ebuild index 43e67bb59913..55e9571068af 100644 --- a/x11-terms/kitty/kitty-0.42.2.ebuild +++ b/x11-terms/kitty/kitty-0.42.2-r1.ebuild @@ -3,9 +3,9 @@ EAPI=8 -PYTHON_COMPAT=( python3_{10..13} ) -inherit edo go-env optfeature multiprocessing -inherit python-single-r1 toolchain-funcs xdg +PYTHON_COMPAT=( python3_{11..13} ) +inherit edo go-env optfeature multiprocessing python-single-r1 +inherit shell-completion toolchain-funcs xdg if [[ ${PV} == 9999 ]]; then inherit git-r3 @@ -168,12 +168,9 @@ src_compile() { # 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 + linux-package/bin/kitten __complete__ setup bash > "${T}"/kitty || die + linux-package/bin/kitten __complete__ setup fish > "${T}"/kitty.fish || die + linux-package/bin/kitten __complete__ setup zsh > "${T}"/_kitty || die fi } @@ -188,6 +185,13 @@ src_install() { # time, then uses that rather than the system's at runtime dosym -r /usr/share/fonts/symbols-nerd-font/SymbolsNerdFontMono-Regular.ttf \ /usr/"$(get_libdir)"/kitty/fonts/SymbolsNerdFontMono-Regular.ttf + + if ! tc-is-cross-compiler; then + dobashcomp "${T}"/kitty + bashcomp_alias kitty edit-in-kitty clone-in-kitty kitten + dofishcomp "${T}"/kitty.fish + dozshcomp "${T}"/_kitty + fi } pkg_postinst() { diff --git a/x11-terms/kitty/kitty-9999.ebuild b/x11-terms/kitty/kitty-9999.ebuild index 43e67bb59913..55e9571068af 100644 --- a/x11-terms/kitty/kitty-9999.ebuild +++ b/x11-terms/kitty/kitty-9999.ebuild @@ -3,9 +3,9 @@ EAPI=8 -PYTHON_COMPAT=( python3_{10..13} ) -inherit edo go-env optfeature multiprocessing -inherit python-single-r1 toolchain-funcs xdg +PYTHON_COMPAT=( python3_{11..13} ) +inherit edo go-env optfeature multiprocessing python-single-r1 +inherit shell-completion toolchain-funcs xdg if [[ ${PV} == 9999 ]]; then inherit git-r3 @@ -168,12 +168,9 @@ src_compile() { # 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 + linux-package/bin/kitten __complete__ setup bash > "${T}"/kitty || die + linux-package/bin/kitten __complete__ setup fish > "${T}"/kitty.fish || die + linux-package/bin/kitten __complete__ setup zsh > "${T}"/_kitty || die fi } @@ -188,6 +185,13 @@ src_install() { # time, then uses that rather than the system's at runtime dosym -r /usr/share/fonts/symbols-nerd-font/SymbolsNerdFontMono-Regular.ttf \ /usr/"$(get_libdir)"/kitty/fonts/SymbolsNerdFontMono-Regular.ttf + + if ! tc-is-cross-compiler; then + dobashcomp "${T}"/kitty + bashcomp_alias kitty edit-in-kitty clone-in-kitty kitten + dofishcomp "${T}"/kitty.fish + dozshcomp "${T}"/_kitty + fi } pkg_postinst() {
