1 |
commit: 899d20b625040f94cb4dcf7f89a3fdb856f5e6e4 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 22 09:16:19 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 22 09:16:19 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=899d20b6 |
7 |
|
8 |
x11-terms/kitty: add 0.26.3 |
9 |
|
10 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
11 |
|
12 |
x11-terms/kitty/Manifest | 2 + |
13 |
x11-terms/kitty/kitty-0.26.3.ebuild | 131 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 133 insertions(+) |
15 |
|
16 |
diff --git a/x11-terms/kitty/Manifest b/x11-terms/kitty/Manifest |
17 |
index f6aeece75d47..385893a86dc9 100644 |
18 |
--- a/x11-terms/kitty/Manifest |
19 |
+++ b/x11-terms/kitty/Manifest |
20 |
@@ -1,2 +1,4 @@ |
21 |
DIST kitty-0.26.2.tar.xz 4716932 BLAKE2B fbbd1bbeb42bfb5be1348ead4605d45f93a90e31e707444c901b9f4c20b42d470c1e3cec9e0f135f04ad49bb472824fb7445932403127e8cbc639b5dac6ee982 SHA512 4bfb3d9438bb018dc10503be610df4e6e8bb1f9459b5131f46fde6279ba5423e44dbbcb86a2dc2602ee208266edc78074f6496e99761cf43f7081ea9e88175f7 |
22 |
DIST kitty-0.26.2.tar.xz.sig 566 BLAKE2B 4f36d131143ad4c1ea3dbdd7b094cbfd7ece133e573ec95714d5b778a80cb58b3b89ab02f575442aaf1618985e37528285009bb724721e5d48b1ffc611175672 SHA512 8ec0f237eb0b9f868ea703ab8b5cb85405f9360ad8e7402a0e5a3c4f3268a5a127359a9444c0e7cf05f364ea5dfeb31f9657a110fadc34bb6ed870ef939a4ada |
23 |
+DIST kitty-0.26.3.tar.xz 4730520 BLAKE2B a2d8cccc76eb295256ac420700e941ac9cb0e79c9717a93226cc30db63ab047dcd0be2e11b36b44c7c15daa0b77a451242d32f71024cee724869ba8937b93dd5 SHA512 77a518cd3ec4bb059907f16d01068914951cadbbcf803dcbfae13cc9ce144f65a886d7e986c7191019a0be9ccf902f086c72a24287458d083cbd3fd136d2c589 |
24 |
+DIST kitty-0.26.3.tar.xz.sig 566 BLAKE2B 6e8e622bec031416b0f591c0b53f53ba874c977511c447ab625f52bc7fca04f1003ca5db4cc4138336f5afc4f729b2b8b6e0f5d77e296033422774665fbd5ba3 SHA512 4a8fd60ca1baa619790909243a620f816c44a28a8d889633c5b433af0f46cd1c92bcbcbbd9db942c385764387958db294cdeb3cdffc0369a79d56f41ccb81b57 |
25 |
|
26 |
diff --git a/x11-terms/kitty/kitty-0.26.3.ebuild b/x11-terms/kitty/kitty-0.26.3.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..3ee9cbb30121 |
29 |
--- /dev/null |
30 |
+++ b/x11-terms/kitty/kitty-0.26.3.ebuild |
31 |
@@ -0,0 +1,131 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+inherit edo optfeature multiprocessing python-single-r1 toolchain-funcs xdg |
39 |
+ |
40 |
+if [[ ${PV} == 9999 ]] ; then |
41 |
+ inherit git-r3 |
42 |
+ EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git" |
43 |
+else |
44 |
+ inherit verify-sig |
45 |
+ SRC_URI=" |
46 |
+ https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz |
47 |
+ verify-sig? ( https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz.sig )" |
48 |
+ VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/kovidgoyal.gpg" |
49 |
+ KEYWORDS="~amd64 ~ppc64 ~x86" |
50 |
+fi |
51 |
+ |
52 |
+DESCRIPTION="Fast, feature-rich, GPU-based terminal" |
53 |
+HOMEPAGE="https://sw.kovidgoyal.net/kitty/" |
54 |
+ |
55 |
+LICENSE="GPL-3" |
56 |
+SLOT="0" |
57 |
+IUSE="+X test transfer wayland" |
58 |
+REQUIRED_USE=" |
59 |
+ || ( X wayland ) |
60 |
+ ${PYTHON_REQUIRED_USE}" |
61 |
+RESTRICT="!X? ( test ) !test? ( test ) !transfer? ( test ) !wayland? ( test )" |
62 |
+ |
63 |
+# dlopen: fontconfig,libglvnd |
64 |
+RDEPEND=" |
65 |
+ ${PYTHON_DEPS} |
66 |
+ dev-libs/openssl:= |
67 |
+ media-libs/fontconfig |
68 |
+ media-libs/harfbuzz:= |
69 |
+ media-libs/lcms:2 |
70 |
+ media-libs/libglvnd[X?] |
71 |
+ media-libs/libpng:= |
72 |
+ sys-apps/dbus |
73 |
+ sys-libs/zlib:= |
74 |
+ x11-libs/libxkbcommon[X?] |
75 |
+ x11-misc/xkeyboard-config |
76 |
+ ~x11-terms/kitty-shell-integration-${PV} |
77 |
+ ~x11-terms/kitty-terminfo-${PV} |
78 |
+ X? ( x11-libs/libX11 ) |
79 |
+ transfer? ( net-libs/librsync:= ) |
80 |
+ wayland? ( dev-libs/wayland )" |
81 |
+DEPEND=" |
82 |
+ ${RDEPEND} |
83 |
+ X? ( |
84 |
+ x11-base/xorg-proto |
85 |
+ x11-libs/libXcursor |
86 |
+ x11-libs/libXi |
87 |
+ x11-libs/libXinerama |
88 |
+ x11-libs/libXrandr |
89 |
+ ) |
90 |
+ wayland? ( dev-libs/wayland-protocols )" |
91 |
+BDEPEND=" |
92 |
+ ${PYTHON_DEPS} |
93 |
+ sys-libs/ncurses |
94 |
+ virtual/pkgconfig |
95 |
+ test? ( $(python_gen_cond_dep 'dev-python/pillow[${PYTHON_USEDEP}]') ) |
96 |
+ wayland? ( dev-util/wayland-scanner )" |
97 |
+[[ ${PV} == 9999 ]] || BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-kovidgoyal )" |
98 |
+ |
99 |
+src_prepare() { |
100 |
+ default |
101 |
+ |
102 |
+ # seds unfortunately feel easier on maintainenance than patches here |
103 |
+ sed -e "s/'x11 wayland'/'$(usev X x11) $(usev wayland)'/" \ |
104 |
+ -e "$(usev !X '/gl_libs =/s/=.*/= []/')" \ |
105 |
+ -e "/num_workers =/s/=.*/= $(makeopts_jobs)/" \ |
106 |
+ -e "s/cflags.append.*-O3.*/pass/" -e 's/-O3//' \ |
107 |
+ -i setup.py || die |
108 |
+ |
109 |
+ if use !transfer; then |
110 |
+ sed -i 's/rs_cflag =/& []#/;/files.*rsync/d' setup.py || die |
111 |
+ rm -r kittens/transfer || die |
112 |
+ fi |
113 |
+ |
114 |
+ # test relies on 'who' command which doesn't detect users with pid-sandbox |
115 |
+ rm kitty_tests/utmp.py || die |
116 |
+ |
117 |
+ # test may fail/hang depending on environment and shell initialization scripts |
118 |
+ rm kitty_tests/{shell_integration,ssh}.py || die |
119 |
+ |
120 |
+ # skip docs for live version |
121 |
+ [[ ${PV} != 9999 ]] || sed -i '/exists.*_build/,/docs(ddir)/d' setup.py || die |
122 |
+} |
123 |
+ |
124 |
+src_compile() { |
125 |
+ tc-export CC |
126 |
+ export PKGCONFIG_EXE=$(tc-getPKG_CONFIG) |
127 |
+ |
128 |
+ local conf=( |
129 |
+ --disable-link-time-optimization |
130 |
+ --ignore-compiler-warnings |
131 |
+ --libdir-name=$(get_libdir) |
132 |
+ --shell-integration="enabled no-rc" |
133 |
+ --update-check-interval=0 |
134 |
+ --verbose |
135 |
+ ) |
136 |
+ |
137 |
+ edo ${EPYTHON} setup.py linux-package "${conf[@]}" |
138 |
+ use test && edo ${EPYTHON} setup.py build-launcher "${conf[@]}" |
139 |
+ |
140 |
+ [[ ${PV} == 9999 ]] || mv linux-package/share/doc/{${PN},${PF}} || die |
141 |
+ rm -r linux-package/share/terminfo || die |
142 |
+} |
143 |
+ |
144 |
+src_test() { |
145 |
+ KITTY_CONFIG_DIRECTORY=${T} ./test.py || die # shebang is kitty |
146 |
+} |
147 |
+ |
148 |
+src_install() { |
149 |
+ insinto /usr |
150 |
+ doins -r linux-package/. |
151 |
+ |
152 |
+ fperms +x /usr/bin/kitty \ |
153 |
+ /usr/$(get_libdir)/kitty/shell-integration/ssh/{askpass.py,kitty} |
154 |
+} |
155 |
+ |
156 |
+pkg_postinst() { |
157 |
+ xdg_pkg_postinst |
158 |
+ |
159 |
+ optfeature "in-terminal image display with kitty icat" media-gfx/imagemagick |
160 |
+ optfeature "audio-based terminal bell support" media-libs/libcanberra |
161 |
+ optfeature "opening links from the terminal" x11-misc/xdg-utils |
162 |
+} |