Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/kitty-shell-integration/
Date: Thu, 22 Sep 2022 09:22:11
Message-Id: 1663838138.f33e9d087139b3b5ce6eea736cddc87be8fcf742.ionen@gentoo
1 commit: f33e9d087139b3b5ce6eea736cddc87be8fcf742
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 22 09:15:38 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 22 09:15:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f33e9d08
7
8 x11-terms/kitty-shell-integration: add 0.26.3
9
10 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
11
12 x11-terms/kitty-shell-integration/Manifest | 1 +
13 .../kitty-shell-integration-0.26.3.ebuild | 37 ++++++++++++++++++++++
14 2 files changed, 38 insertions(+)
15
16 diff --git a/x11-terms/kitty-shell-integration/Manifest b/x11-terms/kitty-shell-integration/Manifest
17 index 3ea236ddc574..72aaaddc4ea9 100644
18 --- a/x11-terms/kitty-shell-integration/Manifest
19 +++ b/x11-terms/kitty-shell-integration/Manifest
20 @@ -1 +1,2 @@
21 DIST kitty-0.26.2.tar.xz 4716932 BLAKE2B fbbd1bbeb42bfb5be1348ead4605d45f93a90e31e707444c901b9f4c20b42d470c1e3cec9e0f135f04ad49bb472824fb7445932403127e8cbc639b5dac6ee982 SHA512 4bfb3d9438bb018dc10503be610df4e6e8bb1f9459b5131f46fde6279ba5423e44dbbcb86a2dc2602ee208266edc78074f6496e99761cf43f7081ea9e88175f7
22 +DIST kitty-0.26.3.tar.xz 4730520 BLAKE2B a2d8cccc76eb295256ac420700e941ac9cb0e79c9717a93226cc30db63ab047dcd0be2e11b36b44c7c15daa0b77a451242d32f71024cee724869ba8937b93dd5 SHA512 77a518cd3ec4bb059907f16d01068914951cadbbcf803dcbfae13cc9ce144f65a886d7e986c7191019a0be9ccf902f086c72a24287458d083cbd3fd136d2c589
23
24 diff --git a/x11-terms/kitty-shell-integration/kitty-shell-integration-0.26.3.ebuild b/x11-terms/kitty-shell-integration/kitty-shell-integration-0.26.3.ebuild
25 new file mode 100644
26 index 000000000000..4c3e987c411b
27 --- /dev/null
28 +++ b/x11-terms/kitty-shell-integration/kitty-shell-integration-0.26.3.ebuild
29 @@ -0,0 +1,37 @@
30 +# Copyright 2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DESCRIPTION="Shell integration scripts for kitty, a GPU-based terminal emulator"
36 +HOMEPAGE="https://sw.kovidgoyal.net/kitty/"
37 +SRC_URI="https://github.com/kovidgoyal/kitty/releases/download/v${PV}/kitty-${PV}.tar.xz"
38 +S="${WORKDIR}/kitty-${PV}"
39 +
40 +LICENSE="GPL-3"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~ppc64 ~x86"
43 +RESTRICT="test" # intended to be ran on the full kitty package
44 +
45 +src_compile() { :; }
46 +
47 +src_install() {
48 + # install the whole directory in the upstream suggested location
49 + # for consistency (i.e. less variation between distros if someone
50 + # ssh into Gentoo), then set symlinks to autoload where possible
51 + # (these exit immediately if KITTY_SHELL_INTEGRATION is unset)
52 + insinto /usr/share/kitty
53 + doins -r shell-integration
54 +
55 + dosym -r {/usr/share/kitty/shell-integration/bash,/etc/bash/bashrc.d}/kitty.bash
56 +
57 + dosym -r /usr/share/{kitty/shell-integration/fish,fish}/vendor_completions.d/kitty.fish
58 + dosym -r /usr/share/{kitty/shell-integration/fish,fish}/vendor_conf.d/kitty-shell-integration.fish
59 +
60 + dosym -r /usr/share/{kitty/shell-integration/zsh/completions,zsh/site-functions}/_kitty
61 + # zsh integration is handled automatically without needing to modify rc files,
62 + # but may require user intervention depending on zsh invocation or if remote
63 +
64 + # this is used internally by the ssh kitten and is not useful there
65 + rm -r "${ED}"/usr/share/kitty/shell-integration/ssh || die
66 +}