Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/kitty/, x11-terms/kitty/files/
Date: Wed, 03 Nov 2021 06:41:31
Message-Id: 1635921414.6e9031ed5d4d375652f70b1638c8b2411be59de3.ionen@gentoo
1 commit: 6e9031ed5d4d375652f70b1638c8b2411be59de3
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 27 08:40:09 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 3 06:36:54 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e9031ed
7
8 x11-terms/kitty: drop 0.20.1, 0.20.3, 0.21.2
9
10 Closes: https://github.com/gentoo/gentoo/pull/22724
11 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
12
13 x11-terms/kitty/Manifest | 3 -
14 x11-terms/kitty/files/kitty-0.14.4-svg-icon.patch | 16 ---
15 x11-terms/kitty/files/kitty-0.20.1-flags.patch | 49 ---------
16 .../kitty/files/kitty-0.20.1-remove-terminfo.patch | 16 ---
17 x11-terms/kitty/files/kitty-0.20.3-flags.patch | 53 ----------
18 x11-terms/kitty/kitty-0.20.1.ebuild | 110 ---------------------
19 x11-terms/kitty/kitty-0.20.3.ebuild | 109 --------------------
20 x11-terms/kitty/kitty-0.21.2.ebuild | 110 ---------------------
21 8 files changed, 466 deletions(-)
22
23 diff --git a/x11-terms/kitty/Manifest b/x11-terms/kitty/Manifest
24 index f5db726d325..a7edd803adc 100644
25 --- a/x11-terms/kitty/Manifest
26 +++ b/x11-terms/kitty/Manifest
27 @@ -1,4 +1 @@
28 -DIST kitty-0.20.1.tar.xz 3449932 BLAKE2B aed9a250fbc7005cd67fd22bfc33de845bea7e39a5561e6957b744f03a5438945f9739ca7066a93889144a5d0289185f337ef4d487c754cba37f242030f1c46a SHA512 19dfa66eb2a2115877b25fbff0ba7a81071bff00c732236f20342aeb619cca88ae4a4e8ce4e73908ac7d7d12fca5232a76e0167754f2e658af02e442cf5ba0cd
29 -DIST kitty-0.20.3.tar.xz 3487500 BLAKE2B 49397ac2aef10e5fc41e351af65050ad510e58915392e6b1b8c022db31f2e5e81ac2cce645468ff213dafb609a30d43934b7388b93227fbbba5af7aa35be74e8 SHA512 9e9d81696bcb0d3894c04b08bc52ccf7aaf533125b3ecfb4c894b8d42dbf8511239c49f1c977d81872ce49fc6b3aa8e8c92b9c944bd31fe59fce6e3750295e58
30 -DIST kitty-0.21.2.tar.xz 4341440 BLAKE2B dd97d65ae6eb39b5676cc809d3b5ca48b0fcbbb4bb9cc1d212efeb1b5fb584f61decca9d286fdee6f4512aa4d56e08b3a19be70afa2f0155c8c1815e29fcd7ed SHA512 0ae41dfd61fc70746e8ec2d37c043dea7ceb70205aca056fd156348d4b9a2f6aac520c60de08fb5a3cd9bb908efdd2ad8129bbc01b69e5908f2976e5393269df
31 DIST kitty-0.23.1.tar.xz 4444184 BLAKE2B f452e338fb72f723f2c028f90c20654cf80c5ee1aff924954f81f16445c9f4c10c77bd67d47ae5564b45496012dd1b7de447cdf3974b6913a39d170749878a73 SHA512 2d0c822e6bfca41b0a5e5e71e62f5073792b10c236287a509a6c790e19d098205c8719dbcb4aa630abbbaa3d44d6c9986c13efde7a9556772a89709383a0fe94
32
33 diff --git a/x11-terms/kitty/files/kitty-0.14.4-svg-icon.patch b/x11-terms/kitty/files/kitty-0.14.4-svg-icon.patch
34 deleted file mode 100644
35 index 13f874dd3c1..00000000000
36 --- a/x11-terms/kitty/files/kitty-0.14.4-svg-icon.patch
37 +++ /dev/null
38 @@ -1,16 +0,0 @@
39 -Use SVG icon instead of PNG.
40 -
41 ---- kitty-0.14.4/setup.py
42 -+++ kitty-0.14.4/setup.py
43 -@@ -710,9 +710,9 @@
44 - run_tool(['make', 'docs'])
45 - copy_man_pages(ddir)
46 - copy_html_docs(ddir)
47 -- icdir = os.path.join(ddir, 'share', 'icons', 'hicolor', '256x256', 'apps')
48 -+ icdir = os.path.join(ddir, 'share', 'icons', 'hicolor', 'scalable', 'apps')
49 - safe_makedirs(icdir)
50 -- shutil.copy2('logo/kitty.png', icdir)
51 -+ shutil.copy2('logo/kitty.svg', icdir)
52 - deskdir = os.path.join(ddir, 'share', 'applications')
53 - safe_makedirs(deskdir)
54 - with open(os.path.join(deskdir, 'kitty.desktop'), 'w') as f:
55
56 diff --git a/x11-terms/kitty/files/kitty-0.20.1-flags.patch b/x11-terms/kitty/files/kitty-0.20.1-flags.patch
57 deleted file mode 100644
58 index 27a44f56794..00000000000
59 --- a/x11-terms/kitty/files/kitty-0.20.1-flags.patch
60 +++ /dev/null
61 @@ -1,49 +0,0 @@
62 -diff --git a/setup.py b/setup.py
63 -index ce5309ee..9cb59461 100755
64 ---- a/setup.py
65 -+++ b/setup.py
66 -@@ -278,7 +278,7 @@ def init_env(
67 - df += ' -Og'
68 - float_conversion = '-Wfloat-conversion'
69 - fortify_source = '' if sanitize and is_macos else '-D_FORTIFY_SOURCE=2'
70 -- optimize = df if debug or sanitize else '-O3'
71 -+ optimize = ''
72 - sanitize_args = get_sanitize_args(cc, ccver) if sanitize else set()
73 - cppflags_ = os.environ.get(
74 - 'OVERRIDE_CPPFLAGS', '-D{}DEBUG'.format('' if debug else 'N'),
75 -@@ -289,7 +289,7 @@ def init_env(
76 - cflags_ = os.environ.get(
77 - 'OVERRIDE_CFLAGS', (
78 - '-Wextra {} -Wno-missing-field-initializers -Wall -Wstrict-prototypes {}'
79 -- ' -pedantic-errors -Werror {} {} -fwrapv {} {} -pipe {} -fvisibility=hidden {}'
80 -+ ' -pedantic-errors {} {} -fwrapv {} {} {} -fvisibility=hidden {}'
81 - ).format(
82 - float_conversion,
83 - '' if is_openbsd else '-std=c11',
84 -@@ -306,7 +306,7 @@ def init_env(
85 - )
86 - ldflags_ = os.environ.get(
87 - 'OVERRIDE_LDFLAGS',
88 -- '-Wall ' + ' '.join(sanitize_args) + ('' if debug else ' -O3')
89 -+ '-Wall ' + ' '.join(sanitize_args)
90 - )
91 - ldflags = shlex.split(ldflags_)
92 - ldflags.append('-shared')
93 -@@ -764,7 +764,7 @@ def safe_makedirs(path: str) -> None:
94 -
95 -
96 - def build_launcher(args: Options, launcher_dir: str = '.', bundle_type: str = 'source') -> None:
97 -- cflags = '-Wall -Werror -fpie'.split()
98 -+ cflags = '-Wall -fpie'.split()
99 - cppflags = []
100 - libs: List[str] = []
101 - if args.profile or args.sanitize:
102 -@@ -776,8 +776,6 @@ def build_launcher(args: Options, launcher_dir: str = '.', bundle_type: str = 's
103 - cflags.append('-g')
104 - if args.profile:
105 - libs.append('-lprofiler')
106 -- else:
107 -- cflags.append('-O3')
108 - if bundle_type.endswith('-freeze'):
109 - cppflags.append('-DFOR_BUNDLE')
110 - cppflags.append('-DPYVER="{}"'.format(sysconfig.get_python_version()))
111
112 diff --git a/x11-terms/kitty/files/kitty-0.20.1-remove-terminfo.patch b/x11-terms/kitty/files/kitty-0.20.1-remove-terminfo.patch
113 deleted file mode 100644
114 index aeb40e60118..00000000000
115 --- a/x11-terms/kitty/files/kitty-0.20.1-remove-terminfo.patch
116 +++ /dev/null
117 @@ -1,16 +0,0 @@
118 -diff --git a/setup.py b/setup.py
119 -index ce5309ee..02f38c61 100755
120 ---- a/setup.py
121 -+++ b/setup.py
122 -@@ -1028,11 +1028,6 @@ def package(args: Options, bundle_type: str) -> None:
123 - safe_makedirs(launcher_dir)
124 - build_launcher(args, launcher_dir, bundle_type)
125 - os.makedirs(os.path.join(libdir, 'logo'))
126 -- build_terminfo = runpy.run_path('build-terminfo', run_name='import_build') # type: ignore
127 -- for x in (libdir, os.path.join(ddir, 'share')):
128 -- odir = os.path.join(x, 'terminfo')
129 -- safe_makedirs(odir)
130 -- build_terminfo['compile_terminfo'](odir)
131 - shutil.copy2('__main__.py', libdir)
132 - shutil.copy2('logo/kitty-128.png', os.path.join(libdir, 'logo'))
133 - shutil.copy2('logo/kitty.png', os.path.join(libdir, 'logo'))
134
135 diff --git a/x11-terms/kitty/files/kitty-0.20.3-flags.patch b/x11-terms/kitty/files/kitty-0.20.3-flags.patch
136 deleted file mode 100644
137 index 131d6214b4c..00000000000
138 --- a/x11-terms/kitty/files/kitty-0.20.3-flags.patch
139 +++ /dev/null
140 @@ -1,53 +0,0 @@
141 -diff --git a/setup.py b/setup.py
142 -index f751107f..69bf39d4 100755
143 ---- a/setup.py
144 -+++ b/setup.py
145 -@@ -293,7 +293,7 @@ def init_env(
146 - df += ' -Og'
147 - float_conversion = '-Wfloat-conversion'
148 - fortify_source = '' if sanitize and is_macos else '-D_FORTIFY_SOURCE=2'
149 -- optimize = df if debug or sanitize else '-O3'
150 -+ optimize = ''
151 - sanitize_args = get_sanitize_args(cc, ccver) if sanitize else set()
152 - cppflags_ = os.environ.get(
153 - 'OVERRIDE_CPPFLAGS', '-D{}DEBUG'.format('' if debug else 'N'),
154 -@@ -308,8 +308,8 @@ def init_env(
155 - cflags_ = os.environ.get(
156 - 'OVERRIDE_CFLAGS', (
157 - f'-Wextra {float_conversion} -Wno-missing-field-initializers -Wall -Wstrict-prototypes {std}'
158 -- f' -pedantic-errors {werror} {optimize} {sanitize_flag} -fwrapv {stack_protector} {missing_braces}'
159 -- f' -pipe {march} -fvisibility=hidden {fortify_source}'
160 -+ f' -pedantic-errors {optimize} {sanitize_flag} -fwrapv {stack_protector} {missing_braces}'
161 -+ f' {march} -fvisibility=hidden {fortify_source}'
162 - )
163 - )
164 - cflags = shlex.split(cflags_) + shlex.split(
165 -@@ -317,7 +317,7 @@ def init_env(
166 - )
167 - ldflags_ = os.environ.get(
168 - 'OVERRIDE_LDFLAGS',
169 -- '-Wall ' + ' '.join(sanitize_args) + ('' if debug else ' -O3')
170 -+ '-Wall ' + ' '.join(sanitize_args)
171 - )
172 - ldflags = shlex.split(ldflags_)
173 - ldflags.append('-shared')
174 -@@ -789,9 +789,7 @@ def safe_makedirs(path: str) -> None:
175 -
176 -
177 - def build_launcher(args: Options, launcher_dir: str = '.', bundle_type: str = 'source') -> None:
178 -- cflags = '-Wall -Werror -fpie'.split()
179 -- if args.build_universal_binary:
180 -- cflags += '-arch x86_64 -arch arm64'.split()
181 -+ cflags = '-Wall -fpie'.split()
182 - cppflags = []
183 - libs: List[str] = []
184 - if args.profile or args.sanitize:
185 -@@ -803,8 +801,6 @@ def build_launcher(args: Options, launcher_dir: str = '.', bundle_type: str = 's
186 - cflags.append('-g')
187 - if args.profile:
188 - libs.append('-lprofiler')
189 -- else:
190 -- cflags.append('-O3')
191 - if bundle_type.endswith('-freeze'):
192 - cppflags.append('-DFOR_BUNDLE')
193 - cppflags.append('-DPYVER="{}"'.format(sysconfig.get_python_version()))
194
195 diff --git a/x11-terms/kitty/kitty-0.20.1.ebuild b/x11-terms/kitty/kitty-0.20.1.ebuild
196 deleted file mode 100644
197 index ec22fd9a776..00000000000
198 --- a/x11-terms/kitty/kitty-0.20.1.ebuild
199 +++ /dev/null
200 @@ -1,110 +0,0 @@
201 -# Copyright 1999-2021 Gentoo Authors
202 -# Distributed under the terms of the GNU General Public License v2
203 -
204 -EAPI=7
205 -
206 -PYTHON_COMPAT=( python3_8 )
207 -
208 -inherit optfeature python-single-r1 toolchain-funcs xdg
209 -
210 -if [[ ${PV} == "9999" ]] ; then
211 - EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git"
212 - inherit git-r3
213 -else
214 - SRC_URI="https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz"
215 - KEYWORDS="~amd64 ~x86"
216 -fi
217 -
218 -DESCRIPTION="A modern, hackable, featureful, OpenGL-based terminal emulator"
219 -HOMEPAGE="https://github.com/kovidgoyal/kitty"
220 -
221 -LICENSE="GPL-3"
222 -SLOT="0"
223 -IUSE="debug wayland"
224 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
225 -
226 -RDEPEND="
227 - ${PYTHON_DEPS}
228 - media-libs/fontconfig
229 - media-libs/freetype:2
230 - >=media-libs/harfbuzz-1.5.0:=
231 - media-libs/lcms
232 - media-libs/libcanberra
233 - media-libs/libpng:0=
234 - sys-apps/dbus
235 - sys-libs/zlib
236 - x11-libs/libxcb[xkb]
237 - x11-libs/libXcursor
238 - x11-libs/libXi
239 - x11-libs/libXinerama
240 - x11-libs/libxkbcommon[X]
241 - x11-libs/libXrandr
242 - x11-terms/kitty-terminfo
243 - wayland? (
244 - dev-libs/wayland
245 - >=dev-libs/wayland-protocols-1.17
246 - )
247 - $(python_gen_cond_dep 'dev-python/importlib_resources[${PYTHON_USEDEP}]' python3_6)
248 -"
249 -
250 -DEPEND="${RDEPEND}
251 - media-libs/mesa[X]
252 - sys-libs/ncurses
253 -"
254 -
255 -BDEPEND="virtual/pkgconfig"
256 -
257 -[[ ${PV} == *9999 ]] && BDEPEND+=" >=dev-python/sphinx-1.7"
258 -
259 -PATCHES=(
260 - "${FILESDIR}"/${PN}-0.20.1-flags.patch
261 - "${FILESDIR}"/${PN}-0.14.4-svg-icon.patch
262 - "${FILESDIR}"/${PN}-0.20.1-remove-terminfo.patch
263 - "${FILESDIR}"/${PN}-0.20.1-tests.patch
264 -)
265 -
266 -src_prepare() {
267 - default
268 -
269 - # disable wayland as required
270 - if ! use wayland; then
271 - sed -i "/'x11 wayland'/s/ wayland//" setup.py || die
272 - # also disable wayland tests
273 - sed -i "/if not self.is_ci/d" kitty_tests/check_build.py || die
274 - sed -i "/linux_backends.append('wayland')/d" kitty_tests/check_build.py || die
275 - fi
276 -
277 - # respect doc dir
278 - sed -i "/htmldir =/s/appname/'${PF}'/" setup.py || die
279 -
280 - tc-export CC
281 -}
282 -
283 -src_compile() {
284 - "${EPYTHON}" setup.py \
285 - --verbose $(usex debug --debug "") \
286 - --libdir-name $(get_libdir) \
287 - --update-check-interval=0 \
288 - linux-package || die "Failed to compile kitty."
289 -}
290 -
291 -src_test() {
292 - export KITTY_CONFIG_DIRECTORY=${T}
293 - "${EPYTHON}" test.py || die
294 -}
295 -
296 -src_install() {
297 - insinto /usr
298 - doins -r linux-package/*
299 - dobin linux-package/bin/kitty
300 - python_fix_shebang "${ED}"
301 -}
302 -
303 -pkg_postinst() {
304 - xdg_icon_cache_update
305 - optfeature "Displaying images in the terminal" virtual/imagemagick-tools
306 -}
307 -
308 -pkg_postrm() {
309 - xdg_icon_cache_update
310 -}
311
312 diff --git a/x11-terms/kitty/kitty-0.20.3.ebuild b/x11-terms/kitty/kitty-0.20.3.ebuild
313 deleted file mode 100644
314 index 31b802b51d1..00000000000
315 --- a/x11-terms/kitty/kitty-0.20.3.ebuild
316 +++ /dev/null
317 @@ -1,109 +0,0 @@
318 -# Copyright 1999-2021 Gentoo Authors
319 -# Distributed under the terms of the GNU General Public License v2
320 -
321 -EAPI=7
322 -
323 -PYTHON_COMPAT=( python3_{8,9} )
324 -
325 -inherit optfeature python-single-r1 toolchain-funcs xdg
326 -
327 -if [[ ${PV} == "9999" ]] ; then
328 - EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git"
329 - inherit git-r3
330 -else
331 - SRC_URI="https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz"
332 - KEYWORDS="~amd64 ~x86"
333 -fi
334 -
335 -DESCRIPTION="A modern, hackable, featureful, OpenGL-based terminal emulator"
336 -HOMEPAGE="https://github.com/kovidgoyal/kitty"
337 -
338 -LICENSE="GPL-3"
339 -SLOT="0"
340 -IUSE="debug wayland"
341 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
342 -
343 -RDEPEND="
344 - ${PYTHON_DEPS}
345 - media-libs/fontconfig
346 - media-libs/freetype:2
347 - >=media-libs/harfbuzz-1.5.0:=
348 - media-libs/lcms
349 - media-libs/libcanberra
350 - media-libs/libpng:0=
351 - sys-apps/dbus
352 - sys-libs/zlib
353 - x11-libs/libxcb[xkb]
354 - x11-libs/libXcursor
355 - x11-libs/libXi
356 - x11-libs/libXinerama
357 - x11-libs/libxkbcommon[X]
358 - x11-libs/libXrandr
359 - x11-terms/kitty-terminfo
360 - wayland? (
361 - dev-libs/wayland
362 - >=dev-libs/wayland-protocols-1.17
363 - )
364 -"
365 -
366 -DEPEND="${RDEPEND}
367 - media-libs/mesa[X]
368 - sys-libs/ncurses
369 -"
370 -
371 -BDEPEND="virtual/pkgconfig"
372 -
373 -[[ ${PV} == *9999 ]] && BDEPEND+=" >=dev-python/sphinx-1.7"
374 -
375 -PATCHES=(
376 - "${FILESDIR}"/${PN}-0.20.3-flags.patch
377 - "${FILESDIR}"/${PN}-0.14.4-svg-icon.patch
378 - "${FILESDIR}"/${PN}-0.20.1-remove-terminfo.patch
379 - "${FILESDIR}"/${PN}-0.20.1-tests.patch
380 -)
381 -
382 -src_prepare() {
383 - default
384 -
385 - # disable wayland as required
386 - if ! use wayland; then
387 - sed -i "/'x11 wayland'/s/ wayland//" setup.py || die
388 - # also disable wayland tests
389 - sed -i "/if not self.is_ci/d" kitty_tests/check_build.py || die
390 - sed -i "/linux_backends.append('wayland')/d" kitty_tests/check_build.py || die
391 - fi
392 -
393 - # respect doc dir
394 - sed -i "/htmldir =/s/appname/'${PF}'/" setup.py || die
395 -
396 - tc-export CC
397 -}
398 -
399 -src_compile() {
400 - "${EPYTHON}" setup.py \
401 - --verbose $(usex debug --debug "") \
402 - --libdir-name $(get_libdir) \
403 - --update-check-interval=0 \
404 - linux-package || die "Failed to compile kitty."
405 -}
406 -
407 -src_test() {
408 - export KITTY_CONFIG_DIRECTORY=${T}
409 - "${EPYTHON}" test.py || die
410 -}
411 -
412 -src_install() {
413 - insinto /usr
414 - doins -r linux-package/*
415 - dobin linux-package/bin/kitty
416 - python_fix_shebang "${ED}"
417 -}
418 -
419 -pkg_postinst() {
420 - xdg_icon_cache_update
421 - optfeature "Displaying images in the terminal" virtual/imagemagick-tools
422 -}
423 -
424 -pkg_postrm() {
425 - xdg_icon_cache_update
426 -}
427
428 diff --git a/x11-terms/kitty/kitty-0.21.2.ebuild b/x11-terms/kitty/kitty-0.21.2.ebuild
429 deleted file mode 100644
430 index 38d21756bb2..00000000000
431 --- a/x11-terms/kitty/kitty-0.21.2.ebuild
432 +++ /dev/null
433 @@ -1,110 +0,0 @@
434 -# Copyright 1999-2021 Gentoo Authors
435 -# Distributed under the terms of the GNU General Public License v2
436 -
437 -EAPI=7
438 -
439 -PYTHON_COMPAT=( python3_{8,9} )
440 -
441 -inherit optfeature python-single-r1 toolchain-funcs xdg
442 -
443 -if [[ ${PV} == "9999" ]] ; then
444 - EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git"
445 - inherit git-r3
446 -else
447 - SRC_URI="https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz"
448 - KEYWORDS="~amd64 ~x86"
449 -fi
450 -
451 -DESCRIPTION="A modern, hackable, featureful, OpenGL-based terminal emulator"
452 -HOMEPAGE="https://github.com/kovidgoyal/kitty"
453 -
454 -LICENSE="GPL-3"
455 -SLOT="0"
456 -IUSE="debug wayland"
457 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
458 -
459 -RDEPEND="
460 - ${PYTHON_DEPS}
461 - media-libs/fontconfig
462 - media-libs/freetype:2
463 - >=media-libs/harfbuzz-1.5.0:=
464 - media-libs/lcms
465 - media-libs/libcanberra
466 - media-libs/libpng:0=
467 - sys-apps/dbus
468 - sys-libs/zlib
469 - x11-libs/libxcb[xkb]
470 - x11-libs/libXcursor
471 - x11-libs/libXi
472 - x11-libs/libXinerama
473 - x11-libs/libxkbcommon[X]
474 - x11-libs/libXrandr
475 - x11-misc/xkeyboard-config
476 - x11-terms/kitty-terminfo
477 - wayland? (
478 - dev-libs/wayland
479 - >=dev-libs/wayland-protocols-1.17
480 - )
481 -"
482 -
483 -DEPEND="${RDEPEND}
484 - media-libs/mesa[X]
485 - sys-libs/ncurses
486 -"
487 -
488 -BDEPEND="virtual/pkgconfig"
489 -
490 -[[ ${PV} == *9999 ]] && BDEPEND+=" >=dev-python/sphinx-1.7"
491 -
492 -PATCHES=(
493 - "${FILESDIR}"/${PN}-0.21.2-flags.patch
494 - "${FILESDIR}"/${PN}-0.14.4-svg-icon.patch
495 - "${FILESDIR}"/${PN}-0.21.2-remove-terminfo.patch
496 - "${FILESDIR}"/${PN}-0.20.1-tests.patch
497 -)
498 -
499 -src_prepare() {
500 - default
501 -
502 - # disable wayland as required
503 - if ! use wayland; then
504 - sed -i "/'x11 wayland'/s/ wayland//" setup.py || die
505 - # also disable wayland tests
506 - sed -i "/if not self.is_ci/d" kitty_tests/check_build.py || die
507 - sed -i "/linux_backends.append('wayland')/d" kitty_tests/check_build.py || die
508 - fi
509 -
510 - # respect doc dir
511 - sed -i "/htmldir =/s/appname/'${PF}'/" setup.py || die
512 -
513 - tc-export CC
514 -}
515 -
516 -src_compile() {
517 - "${EPYTHON}" setup.py \
518 - --verbose $(usex debug --debug "") \
519 - --libdir-name $(get_libdir) \
520 - --update-check-interval=0 \
521 - linux-package || die "Failed to compile kitty."
522 -}
523 -
524 -src_test() {
525 - export KITTY_CONFIG_DIRECTORY=${T}
526 - "${EPYTHON}" test.py || die
527 -}
528 -
529 -src_install() {
530 - insinto /usr
531 - doins -r linux-package/*
532 - dobin linux-package/bin/kitty
533 - python_fix_shebang "${ED}"
534 -}
535 -
536 -pkg_postinst() {
537 - xdg_icon_cache_update
538 - optfeature "Displaying images in the terminal" virtual/imagemagick-tools
539 -}
540 -
541 -pkg_postrm() {
542 - xdg_icon_cache_update
543 -}