1 |
commit: ad2e4b78b1d0b8a6994170436c9f1a844c91d734 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 26 04:40:54 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 26 06:06:02 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad2e4b78 |
7 |
|
8 |
x11-terms/kitty-shell-integration: add 0.25.1 |
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.25.1.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 c84732ba070b..aaf0e56276fb 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.0.tar.xz 4640360 BLAKE2B 2f982ecb2d13c49a6971d4a863f2215f22ccae2cc50fd7b6c6b5c2facf781ac23ec627edcbec8ebaa538c5d67b0b62ad4cc05aedf90fd722d9d886c2f62d5b42 SHA512 fed8d66a9f7f2117f4b495305db0d56d8b85ef03bf7ef24a7dca31e63e16fc90e026aa8022237ad45678efb026f11fdd8aa377eb53917fd8ec885f2ccea721f8 |
22 |
+DIST kitty-0.25.1.tar.xz 4671008 BLAKE2B f5110c64e3659499351875dfb4ad9dba85724184cbb742d4b2fe63dcb604b5c8e8736c51ae126345736cbb90238ba3c9e3de099cd6ebfdd0e50b5dfb36c2d2b6 SHA512 6d9862f8411372e0cf692114d6e29eb92db3a2e324282a21ca35b2ca5229c9d87ab988e802e44d47e98b6e64ae7abc5ff0cc677c082eb287e14ee68cd1a4c31e |
23 |
|
24 |
diff --git a/x11-terms/kitty-shell-integration/kitty-shell-integration-0.25.1.ebuild b/x11-terms/kitty-shell-integration/kitty-shell-integration-0.25.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..4c3e987c411b |
27 |
--- /dev/null |
28 |
+++ b/x11-terms/kitty-shell-integration/kitty-shell-integration-0.25.1.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 |
+} |