1 |
commit: ea0f299441f24dc10a7506ea33a2d32356d1ece1 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 4 06:39:37 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 4 07:50:05 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea0f2994 |
7 |
|
8 |
x11-terms/kitty-shell-integration: add live ebuild |
9 |
|
10 |
Needed by kitty-9999 and, similarly to terminfo, should |
11 |
preferably be kept in sync if updating kitty-9999 |
12 |
|
13 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
14 |
|
15 |
.../kitty-shell-integration-9999.ebuild | 34 ++++++++++++++++++++++ |
16 |
1 file changed, 34 insertions(+) |
17 |
|
18 |
diff --git a/x11-terms/kitty-shell-integration/kitty-shell-integration-9999.ebuild b/x11-terms/kitty-shell-integration/kitty-shell-integration-9999.ebuild |
19 |
new file mode 100644 |
20 |
index 000000000000..4bf3e29efd4b |
21 |
--- /dev/null |
22 |
+++ b/x11-terms/kitty-shell-integration/kitty-shell-integration-9999.ebuild |
23 |
@@ -0,0 +1,34 @@ |
24 |
+# Copyright 2022 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=8 |
28 |
+ |
29 |
+inherit git-r3 |
30 |
+ |
31 |
+DESCRIPTION="Shell integration scripts for kitty, a GPU-based terminal emulator" |
32 |
+HOMEPAGE="https://sw.kovidgoyal.net/kitty/" |
33 |
+EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git" |
34 |
+ |
35 |
+LICENSE="GPL-3" |
36 |
+SLOT="0" |
37 |
+RESTRICT="test" # intended to be ran on the full kitty package |
38 |
+ |
39 |
+src_compile() { :; } |
40 |
+ |
41 |
+src_install() { |
42 |
+ # install the whole directory in the upstream suggested location |
43 |
+ # for consistency (i.e. less variation between distros if someone |
44 |
+ # ssh into Gentoo), then set symlinks to autoload where possible |
45 |
+ # (these exit immediately if KITTY_SHELL_INTEGRATION is unset) |
46 |
+ insinto /usr/share/kitty |
47 |
+ doins -r shell-integration |
48 |
+ |
49 |
+ dosym -r {/usr/share/kitty/shell-integration/bash,/etc/bash/bashrc.d}/kitty.bash |
50 |
+ |
51 |
+ dosym -r /usr/share/{kitty/shell-integration/fish,fish}/vendor_completions.d/kitty.fish |
52 |
+ dosym -r /usr/share/{kitty/shell-integration/fish,fish}/vendor_conf.d/kitty-shell-integration.fish |
53 |
+ |
54 |
+ dosym -r /usr/share/{kitty/shell-integration/zsh/completions,zsh/site-functions}/_kitty |
55 |
+ # zsh integration is handled automatically without needing to modify rc files, |
56 |
+ # but may require user intervention depending on zsh invocation or if remote |
57 |
+} |