commit:     8ba82828c6ba37479be24d115b726ad20e606e8d
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sun May 11 07:34:35 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sun May 11 07:54:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ba82828

x11-terms/kitty-shell-integration: add 0.42.0

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 x11-terms/kitty-shell-integration/Manifest         |  1 +
 .../kitty-shell-integration-0.42.0.ebuild          | 37 ++++++++++++++++++++++
 2 files changed, 38 insertions(+)

diff --git a/x11-terms/kitty-shell-integration/Manifest 
b/x11-terms/kitty-shell-integration/Manifest
index 61dfd5ea06db..61bb759924c1 100644
--- a/x11-terms/kitty-shell-integration/Manifest
+++ b/x11-terms/kitty-shell-integration/Manifest
@@ -1,2 +1,3 @@
 DIST kitty-0.39.1.tar.xz 8942308 BLAKE2B 
cb9eec3a8e568ef2caa5d50b52d13c2a0acc5f090dce40d0a6ae1bd4c2d78164506e6416d0d915f2c0028af1d7bbbc8b98bc81b2ff8831f3ce9e33374a0f27a9
 SHA512 
50d8e083e63fb5ccee5d6a4d7a3d07e775fe609307ad724527cd50ab33a7023d4e6694dd08ce322e643806fdcf92c0e990f14212ad168dbf4f39b8a666634000
 DIST kitty-0.41.1.tar.xz 8907984 BLAKE2B 
9875df797099b893176bc8899d00f40cb57f0056a1ca87c778d2ffdd4480c7b14f58e0fe322c1e3cbdb73a126f3b0664600484764217eccfd4818589fbe43b47
 SHA512 
c4ce7750d4c8716af755e5ec6bb34c34616cf0cc62d7675a94ca77b68f72aa1e23b753836e885883f9eb0033ba1413d326b2dd63b17e8a26f83b04b1a3188836
+DIST kitty-0.42.0.tar.xz 12366996 BLAKE2B 
8da616f758a63bec66c4afc088376e4392fc4e339a3953374962b70924e3aabe4009d71c74be8b6a49c731c4bddf9b430e4d61f86f23f047f068d6a661083edf
 SHA512 
73b4a777c97ff9ffd2b42d11e8447b0c134b51e012acf7836f558fa3038711b53d20687c05a7f81a73a0a5dfbe6619fbd04ac38938f827102cdd03ab2501b03d

diff --git 
a/x11-terms/kitty-shell-integration/kitty-shell-integration-0.42.0.ebuild 
b/x11-terms/kitty-shell-integration/kitty-shell-integration-0.42.0.ebuild
new file mode 100644
index 000000000000..180d8106dfee
--- /dev/null
+++ b/x11-terms/kitty-shell-integration/kitty-shell-integration-0.42.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Shell integration scripts for kitty, a GPU-based terminal 
emulator"
+HOMEPAGE="https://sw.kovidgoyal.net/kitty/";
+SRC_URI="https://github.com/kovidgoyal/kitty/releases/download/v${PV}/kitty-${PV}.tar.xz";
+S="${WORKDIR}/kitty-${PV}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86"
+RESTRICT="test" # intended to be ran on the full kitty package
+
+src_compile() { :; }
+
+src_install() {
+       # install the whole directory in the upstream suggested location
+       # for consistency (i.e. less variation between distros if someone
+       # ssh into Gentoo), then set symlinks to autoload where possible
+       # (these exit immediately if KITTY_SHELL_INTEGRATION is unset)
+       insinto /usr/share/kitty
+       doins -r shell-integration
+
+       dosym -r 
{/usr/share/kitty/shell-integration/bash/,/etc/bash/bashrc.d/90-}kitty.bash
+
+       dosym -r 
/usr/share/{kitty/shell-integration/fish,fish}/vendor_completions.d/kitty.fish
+       dosym -r 
/usr/share/{kitty/shell-integration/fish,fish}/vendor_conf.d/kitty-shell-integration.fish
+
+       dosym -r 
/usr/share/{kitty/shell-integration/zsh/completions,zsh/site-functions}/_kitty
+       # zsh integration is handled automatically without needing to modify rc 
files,
+       # but may require user intervention depending on zsh invocation or if 
remote
+
+       # this is used internally by the ssh kitten and is not useful there
+       rm -r "${ED}"/usr/share/kitty/shell-integration/ssh || die
+}

Reply via email to