1 |
commit: 56b9600fe85c75041ae61f0d21a8c55ffa3935c7 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 8 13:47:04 2021 +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=56b9600f |
7 |
|
8 |
x11-terms/kitty-shell-integration: initial import, version 0.24.0 |
9 |
|
10 |
Upstream now recommends to split kitty into three packages |
11 |
(kitty, kitty-terminfo, kitty-shell-integration). Go ahead |
12 |
and use this to match what's expected / documentation. |
13 |
|
14 |
Similarly to kitty-terminfo, this is to provide scripts on |
15 |
a remote machine without installing the entire terminal and |
16 |
its GUI dependencies. |
17 |
|
18 |
Not particularly familiar with zsh and fish, so actual users |
19 |
of the shells are welcome to send suggestions if anything |
20 |
is mishandled, albeit integration seems to work on both. |
21 |
|
22 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
23 |
|
24 |
x11-terms/kitty-shell-integration/Manifest | 1 + |
25 |
.../kitty-shell-integration-0.24.0.ebuild | 34 ++++++++++++++++++++++ |
26 |
x11-terms/kitty-shell-integration/metadata.xml | 20 +++++++++++++ |
27 |
3 files changed, 55 insertions(+) |
28 |
|
29 |
diff --git a/x11-terms/kitty-shell-integration/Manifest b/x11-terms/kitty-shell-integration/Manifest |
30 |
new file mode 100644 |
31 |
index 000000000000..23dfe1ff9b95 |
32 |
--- /dev/null |
33 |
+++ b/x11-terms/kitty-shell-integration/Manifest |
34 |
@@ -0,0 +1 @@ |
35 |
+DIST kitty-0.24.0.tar.xz 4503616 BLAKE2B 5a42b4815d25ff9e3a1f9fb6673e4e58ec3b59b5f81dc4098ef24408580d070e92a181e84167f5a343ffc3a9af33556823153d463eaa8e406f31c032ed8bab37 SHA512 b851ed56d16f9a39d47810bf27c2bc8cbb52d476376c4090045db90c1ad0bc7db6fd9e97edd6ce50a6d69e716671e1e909aab889ecac368857ad5c07f68a76af |
36 |
|
37 |
diff --git a/x11-terms/kitty-shell-integration/kitty-shell-integration-0.24.0.ebuild b/x11-terms/kitty-shell-integration/kitty-shell-integration-0.24.0.ebuild |
38 |
new file mode 100644 |
39 |
index 000000000000..fc3c61131372 |
40 |
--- /dev/null |
41 |
+++ b/x11-terms/kitty-shell-integration/kitty-shell-integration-0.24.0.ebuild |
42 |
@@ -0,0 +1,34 @@ |
43 |
+# Copyright 2022 Gentoo Authors |
44 |
+# Distributed under the terms of the GNU General Public License v2 |
45 |
+ |
46 |
+EAPI=8 |
47 |
+ |
48 |
+DESCRIPTION="Shell integration scripts for kitty, a GPU-based terminal emulator" |
49 |
+HOMEPAGE="https://sw.kovidgoyal.net/kitty/" |
50 |
+SRC_URI="https://github.com/kovidgoyal/kitty/releases/download/v${PV}/kitty-${PV}.tar.xz" |
51 |
+S="${WORKDIR}/kitty-${PV}" |
52 |
+ |
53 |
+LICENSE="GPL-3" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~amd64 ~x86" |
56 |
+RESTRICT="test" # intended to be ran on the full kitty package |
57 |
+ |
58 |
+src_compile() { :; } |
59 |
+ |
60 |
+src_install() { |
61 |
+ # install the whole directory in the upstream suggested location |
62 |
+ # for consistency (i.e. less variation between distros if someone |
63 |
+ # ssh into Gentoo), then set symlinks to autoload where possible |
64 |
+ # (these exit immediately if KITTY_SHELL_INTEGRATION is unset) |
65 |
+ insinto /usr/share/kitty |
66 |
+ doins -r shell-integration |
67 |
+ |
68 |
+ dosym -r {/usr/share/kitty/shell-integration/bash,/etc/bash/bashrc.d}/kitty.bash |
69 |
+ |
70 |
+ dosym -r /usr/share/{kitty/shell-integration/fish,fish}/vendor_completions.d/kitty.fish |
71 |
+ dosym -r /usr/share/{kitty/shell-integration/fish,fish}/vendor_conf.d/kitty-shell-integration.fish |
72 |
+ |
73 |
+ dosym -r /usr/share/{kitty/shell-integration/zsh/completions,zsh/site-functions}/_kitty |
74 |
+ # zsh integration is handled automatically without needing to modify rc files, |
75 |
+ # but may require user intervention depending on zsh invocation or if remote |
76 |
+} |
77 |
|
78 |
diff --git a/x11-terms/kitty-shell-integration/metadata.xml b/x11-terms/kitty-shell-integration/metadata.xml |
79 |
new file mode 100644 |
80 |
index 000000000000..60597e252fe3 |
81 |
--- /dev/null |
82 |
+++ b/x11-terms/kitty-shell-integration/metadata.xml |
83 |
@@ -0,0 +1,20 @@ |
84 |
+<?xml version="1.0" encoding="UTF-8"?> |
85 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
86 |
+<pkgmetadata> |
87 |
+ <maintainer type="person"> |
88 |
+ <email>ionen@g.o</email> |
89 |
+ <name>Ionen Wolkens</name> |
90 |
+ </maintainer> |
91 |
+ <maintainer type="person" proxied="yes"> |
92 |
+ <email>pabloorduna98@×××××.com</email> |
93 |
+ <name>Pablo Orduna</name> |
94 |
+ </maintainer> |
95 |
+ <maintainer type="project" proxied="proxy"> |
96 |
+ <email>proxy-maint@g.o</email> |
97 |
+ <name>Proxy Maintainers</name> |
98 |
+ </maintainer> |
99 |
+ <stabilize-allarches/> |
100 |
+ <upstream> |
101 |
+ <remote-id type="github">kovidgoyal/kitty</remote-id> |
102 |
+ </upstream> |
103 |
+</pkgmetadata> |