commit:     37c41514092a534510ddba45bee458154e9657f5
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 29 01:26:44 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Mar 29 01:26:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37c41514

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

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

 x11-terms/kitty-shell-integration/Manifest         |  1 +
 .../kitty-shell-integration-0.41.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 fe61be8f8995..2fa20a213338 100644
--- a/x11-terms/kitty-shell-integration/Manifest
+++ b/x11-terms/kitty-shell-integration/Manifest
@@ -1,3 +1,4 @@
 DIST kitty-0.39.1.tar.xz 8942308 BLAKE2B 
cb9eec3a8e568ef2caa5d50b52d13c2a0acc5f090dce40d0a6ae1bd4c2d78164506e6416d0d915f2c0028af1d7bbbc8b98bc81b2ff8831f3ce9e33374a0f27a9
 SHA512 
50d8e083e63fb5ccee5d6a4d7a3d07e775fe609307ad724527cd50ab33a7023d4e6694dd08ce322e643806fdcf92c0e990f14212ad168dbf4f39b8a666634000
 DIST kitty-0.40.0.tar.xz 9000332 BLAKE2B 
cd0fe553b0500e914d9b410176bf0a0420d97a6842b5794c90fd6f5904f7105408b124f475bd4df4859430d81d1ff17d842d658ce12d3696aa2fdc5fac82183f
 SHA512 
9e10c38f117030ed0a0b38a65d8cd3921bba120ab5d1475850e87e3c5e342773b7f5844ea50ea341bf1bd083270a608da87de18f521a6b9d6b23c36ec64a3df5
 DIST kitty-0.40.1.tar.xz 9063044 BLAKE2B 
0e7551051059eb9a67e68b051f57a34a1e4c6413a53ec3db3cdae1352c2d694d458036fccd8cb3d55590aef4e1ae2dc65731c46ccd9f294fc728440f3f1cfe1a
 SHA512 
3435a133abbd65993a5841f9c4914859ecb65d612ea616a176e6d717f1f05abe0bf7bb4940f5ce6f52317ad2da72e64542af4139375d7f57efe438a958780ba6
+DIST kitty-0.41.0.tar.xz 8892040 BLAKE2B 
d0324d99cb2643e229e6848620c3ef38f3ec3bb31201c5f29574a4bca3427cb455c5204497a49fe9b2a0c50d59fefaa1d7774ec81c1c7918b2314d709d0d49a1
 SHA512 
71c25f4df0362a15e21ba7b5d0ccd32b734715a0b5bb0701b69bb5930304f67496311618eedf332c7b80cec34fb69cdcea07a2636dc11a085c11a372156e0003

diff --git 
a/x11-terms/kitty-shell-integration/kitty-shell-integration-0.41.0.ebuild 
b/x11-terms/kitty-shell-integration/kitty-shell-integration-0.41.0.ebuild
new file mode 100644
index 000000000000..180d8106dfee
--- /dev/null
+++ b/x11-terms/kitty-shell-integration/kitty-shell-integration-0.41.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