commit:     65ed7f8954dec9243a7cf5208b51f1775356b221
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  1 09:41:27 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Feb  1 09:54:48 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65ed7f89

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

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

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

diff --git a/x11-terms/kitty-shell-integration/Manifest 
b/x11-terms/kitty-shell-integration/Manifest
index ee4064e1be1f..ef3fd0b1827b 100644
--- a/x11-terms/kitty-shell-integration/Manifest
+++ b/x11-terms/kitty-shell-integration/Manifest
@@ -1,3 +1,4 @@
 DIST kitty-0.35.2.tar.xz 8220608 BLAKE2B 
277803c7036890af34f2e0497ab1d33cb578cba4bfba425d6699e02e2106cde4e10f7dcc6859ce7eea1b4f34795a2f5180328665450ccb49d8a6da4183fa4f50
 SHA512 
edc78046f942965c823a1202a6d7c85cc2d2acb376824a0f5224d4ba6f48ed0978a00eb7a3e1e6053622a7d5fdcf80009ecfb61a63272cf407dd30f828f47b56
 DIST kitty-0.38.1.tar.xz 8935276 BLAKE2B 
3cb8cdd8ecdefcbc0317c0ab343df8a71d257f34e0fd961bf9a5991a0a259545cc87adbc4931330eb7ec380608a67a68690f704c35469a57cc82c119bde5d3cb
 SHA512 
273a9fc959973ad73105f5d589e420df9360bb20818165b05e14981c42f7146cec6cbb17539a91089a5af9b94dbb3f416421671bbe20cdb0b876cde5043b784c
 DIST kitty-0.39.0.tar.xz 8938592 BLAKE2B 
bd9bc47e58824e18c9dd61ab83f8322abcd7b296902dde3e4bb66516b7d83991fce45d3f4580cd9cfb26f7f51f427e0f2a47dfbf695e2236b5f7042643c672fc
 SHA512 
765f1c4bd6aa8fe751c4e0d4a44b924858ed1eb97b37beaa60e5a90b16df353e9b7db32990aa93bc960e8f01ae3de88381fe4cbc1a4dc69c0bdf655077fdf3ab
+DIST kitty-0.39.1.tar.xz 8942308 BLAKE2B 
cb9eec3a8e568ef2caa5d50b52d13c2a0acc5f090dce40d0a6ae1bd4c2d78164506e6416d0d915f2c0028af1d7bbbc8b98bc81b2ff8831f3ce9e33374a0f27a9
 SHA512 
50d8e083e63fb5ccee5d6a4d7a3d07e775fe609307ad724527cd50ab33a7023d4e6694dd08ce322e643806fdcf92c0e990f14212ad168dbf4f39b8a666634000

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