commit:     97c0530ac0628b5931a2a941406617df7c8e2457
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 15 02:33:02 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Apr 15 02:36:24 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97c0530a

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

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

 x11-terms/kitty-shell-integration/Manifest         |  1 +
 .../kitty-shell-integration-0.34.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 647fa679fd7b..8922d7b2e08b 100644
--- a/x11-terms/kitty-shell-integration/Manifest
+++ b/x11-terms/kitty-shell-integration/Manifest
@@ -1,2 +1,3 @@
 DIST kitty-0.32.2.tar.xz 8103024 BLAKE2B 
637449eb655973700493f725846263bfba193729725b6f14490fc44872e191c5e47b272bc3955b5ca47d400a497931be0749d338354ae8a5402fd867f7b941d3
 SHA512 
245d399366c0b2174bb80d557c08edf49e96a034a3cf33d2027180ef418581cc9bea2566d9ead9f96094bdc01655aeddd251b07b1bc444e7af59c864eb2bcd01
 DIST kitty-0.33.1.tar.xz 8166164 BLAKE2B 
6592ae99f3e05bda5367186096804175f00f21770e7112bf45fa968d161e70d2fdcf956214e29e048e6973ee14457f5eaca753a761824f1c104ba32552122e33
 SHA512 
5fa2421baf9fac41d4a8ff89bb5e44d1820012e8c960e25980d597dcebbb44ffa97c03818e8a91015691321eedb9d9f53139a97cbb6bd673053fbfd73c77739b
+DIST kitty-0.34.0.tar.xz 8227440 BLAKE2B 
8e5b27d095a73711995f5f9c7b320e13632893ae3040204d643e5fe29a98c0337aff3abd4aa91300c84fa8fc435a077beddbbec123937b6db29a2c2f3fb1e89c
 SHA512 
310084af59fb5832c9b87961d278601a8408fdcf4500083ffa5d4980ae600a2122a7477be23bfe0c374dec7955707894cb74cfd550ae577d66e39ed2e8b9c0f8

diff --git 
a/x11-terms/kitty-shell-integration/kitty-shell-integration-0.34.0.ebuild 
b/x11-terms/kitty-shell-integration/kitty-shell-integration-0.34.0.ebuild
new file mode 100644
index 000000000000..c3b309c79626
--- /dev/null
+++ b/x11-terms/kitty-shell-integration/kitty-shell-integration-0.34.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2022-2024 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="~amd64 ~arm64 ~ppc64 ~riscv ~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}/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