1 |
commit: 67242aa2f786dd7cec27383a790bfe7f2a606d9b |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 31 12:31:28 2023 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 31 13:44:45 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67242aa2 |
7 |
|
8 |
x11-terms/kitty-shell-integration: add 0.27.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.27.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 16dd9be0cb92..1611ede2ced2 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.5.tar.xz 4749988 BLAKE2B 488969b4d7c6aed489a540a8e3bee183345fcfb7e05ae5604f4af40f0720ed931cff82cf389e2fa4015eed74762c0630481a99eeb9302c22c89c4f3e247170d4 SHA512 086ae03d0e382afbe3001e357ef51388c7a8e81fa5b4bf9ce8b123a7fc8bfff3bd68d074e926f540a1f2b83062baa831e44d29c017cabfe8221bebe49b64e808 |
22 |
+DIST kitty-0.27.0.tar.xz 5067860 BLAKE2B 5c9126dd9e76afcd6d53aa025adc36912145129b16b0db60c9cb12736df895166d417cbce9198e1feddd3f07c216e557136a130853fa0ddd91833c67fe236c4e SHA512 8063008df261747a7089c69ad9ae3a3d3c24286014f02d04faee9f0b5b6f452172cf99ff8a520ca8e314ba0009e0009701292656db913c23d84b6a2311085813 |
23 |
|
24 |
diff --git a/x11-terms/kitty-shell-integration/kitty-shell-integration-0.27.0.ebuild b/x11-terms/kitty-shell-integration/kitty-shell-integration-0.27.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..b39d00301084 |
27 |
--- /dev/null |
28 |
+++ b/x11-terms/kitty-shell-integration/kitty-shell-integration-0.27.0.ebuild |
29 |
@@ -0,0 +1,37 @@ |
30 |
+# Copyright 2022-2023 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 ~riscv ~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 |
+} |