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: Mon, 29 Aug 2022 05:10:02
Message-Id: 1661749225.4a0bad0d4eca4a5aead22bc651b89f8d0dc17d22.ionen@gentoo
1 commit: 4a0bad0d4eca4a5aead22bc651b89f8d0dc17d22
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 29 04:56:27 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 29 05:00:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a0bad0d
7
8 x11-terms/kitty-shell-integration: add 0.26.0
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.0.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 96283c4cadf3..d9ff49c233df 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.25.2.tar.xz 4681940 BLAKE2B 9aa43711c833541f364100465dfd1c13251ed59d5777634a5f193cc0544743295a772de85c64b4657e2cbca3d88f77019b0fe26b25c8b0908c1cc108b480ecf6 SHA512 ac858b525abbdeb137989a7971c51651d46bffedde048ed572bbb4c31119a4e0f9f424edbdbfd14fe2e043b4a7c8a1a1f8ee6591906e40a655d9f783b21f31a6
22 +DIST kitty-0.26.0.tar.xz 4719488 BLAKE2B 02e06ed8dd6bfdca789efe53211a27855582b2baa845558efd454a9ee8d2d6a71749f8baaad6ac6ba3f5b0878b2786302a26be190dec544488c3918de70ab581 SHA512 e8e041cb8cbe8560e35126d9f717111e0094ef9dd260ade07017f36d8e8e18fd4198cf186198b78089b8a05baa98a512d273b24b7f3f0d4f9f6d06107eb76c58
23
24 diff --git a/x11-terms/kitty-shell-integration/kitty-shell-integration-0.26.0.ebuild b/x11-terms/kitty-shell-integration/kitty-shell-integration-0.26.0.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.0.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 +}