1 |
commit: d77ad67de387f4a2aeeadf90462235f2928c6cd8 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 3 10:52:48 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 3 11:16:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d77ad67d |
7 |
|
8 |
x11-terms/kitty: add 0.24.2 |
9 |
|
10 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
11 |
|
12 |
x11-terms/kitty/Manifest | 2 + |
13 |
x11-terms/kitty/kitty-0.24.2.ebuild | 128 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 130 insertions(+) |
15 |
|
16 |
diff --git a/x11-terms/kitty/Manifest b/x11-terms/kitty/Manifest |
17 |
index 007a587a2047..33f506cf2cee 100644 |
18 |
--- a/x11-terms/kitty/Manifest |
19 |
+++ b/x11-terms/kitty/Manifest |
20 |
@@ -1,3 +1,5 @@ |
21 |
DIST kitty-0.23.1.tar.xz 4444184 BLAKE2B f452e338fb72f723f2c028f90c20654cf80c5ee1aff924954f81f16445c9f4c10c77bd67d47ae5564b45496012dd1b7de447cdf3974b6913a39d170749878a73 SHA512 2d0c822e6bfca41b0a5e5e71e62f5073792b10c236287a509a6c790e19d098205c8719dbcb4aa630abbbaa3d44d6c9986c13efde7a9556772a89709383a0fe94 |
22 |
DIST kitty-0.24.1.tar.xz 4512652 BLAKE2B ea1bf4911a744fb5aaa5fe3d9fc4821880e78c60a0a89ecba12c73623b9b537c2d9d4e494da125669f2fc36f273f49a00cc5825f56184c1b0c69f4c570b2226d SHA512 e590a3abd4ed38ce956ee1e1b9d3679150c83b80df5ed9daf9773d7a278f63dc8a3a563058906d322f9186bece7d479036a502864fd80f45593c4970c056f389 |
23 |
DIST kitty-0.24.1.tar.xz.sig 566 BLAKE2B efff022baff8b16a4b576c1eb1aba83a7a931857850ae2815f54c06d7e9e7110c8bc27f89bec6ba679a4d1df133e1ec13e061cd880dbef02680a2d8021beadf8 SHA512 a2943d1fe20f6c36015db8b9cb8ddef9461fe6503110eb2dce6646afb141b3a3ceb7ab62ec2cbc027d2e2dc2a25c16a207dfc45f619b6464c0ce1995bae54144 |
24 |
+DIST kitty-0.24.2.tar.xz 4601672 BLAKE2B 6e253863d81f2ef04f5d185cfe4379fe08818992a12a06da2ce2b0958912c4a0dc164b2ac6e8e74e383716e7040b2390bd1123ab4d8d282ede602dfea5cc756f SHA512 6d49b20dbd96ed0a1ed49a4523b65593c547ea2fec46f4c2557e26cdb5048ebaadb2c2118c7a2dd346f83ecab2d0a341d2322ae37ebe49184e22055581c631e7 |
25 |
+DIST kitty-0.24.2.tar.xz.sig 566 BLAKE2B f6f179a90acd2572549bc16e42ad637cb5d35e7488050e97fb285cc55b2cf04d1a5188949cc3172401090e2bcabcd239879f07acfef513090d5e1dd6688098a3 SHA512 6b415e87bf1f076e32da61cb7a64c3fd6e3a17ff8606cbfef8f92cfaa6b38123472a827ed4e8ff3cd54e8a74bd328e98b29104fdf18eca6e25bb1b170add3180 |
26 |
|
27 |
diff --git a/x11-terms/kitty/kitty-0.24.2.ebuild b/x11-terms/kitty/kitty-0.24.2.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..f12b599aaa04 |
30 |
--- /dev/null |
31 |
+++ b/x11-terms/kitty/kitty-0.24.2.ebuild |
32 |
@@ -0,0 +1,128 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{8..10} ) |
39 |
+inherit optfeature python-single-r1 toolchain-funcs xdg |
40 |
+ |
41 |
+if [[ ${PV} == 9999 ]] ; then |
42 |
+ inherit git-r3 |
43 |
+ EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git" |
44 |
+else |
45 |
+ inherit verify-sig |
46 |
+ SRC_URI=" |
47 |
+ https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz |
48 |
+ verify-sig? ( https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz.sig )" |
49 |
+ VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/kovidgoyal.gpg" |
50 |
+ KEYWORDS="~amd64 ~ppc64 ~x86" |
51 |
+fi |
52 |
+ |
53 |
+DESCRIPTION="Fast, feature-rich, GPU-based terminal" |
54 |
+HOMEPAGE="https://sw.kovidgoyal.net/kitty/" |
55 |
+ |
56 |
+LICENSE="GPL-3" |
57 |
+SLOT="0" |
58 |
+IUSE="+X debug test transfer wayland" |
59 |
+REQUIRED_USE=" |
60 |
+ || ( X wayland ) |
61 |
+ ${PYTHON_REQUIRED_USE}" |
62 |
+RESTRICT="!X? ( test ) !test? ( test ) !transfer? ( test ) !wayland? ( test )" |
63 |
+ |
64 |
+RDEPEND=" |
65 |
+ ${PYTHON_DEPS} |
66 |
+ media-libs/fontconfig |
67 |
+ media-libs/freetype:2 |
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 |
+PATCHES=( |
100 |
+ "${FILESDIR}"/${PN}-0.23.1-flags.patch |
101 |
+) |
102 |
+ |
103 |
+src_prepare() { |
104 |
+ default |
105 |
+ |
106 |
+ sed -i "s/'x11 wayland'/'$(usev X x11) $(usev wayland)'/" setup.py || die |
107 |
+ |
108 |
+ if use !transfer; then |
109 |
+ sed -i 's/rs_cflag =/& []#/;/files.*rsync/d' setup.py || die |
110 |
+ rm -r kittens/transfer || die |
111 |
+ fi |
112 |
+ |
113 |
+ # test relies on 'who' command which doesn't detect users with pid-sandbox |
114 |
+ rm kitty_tests/utmp.py || die |
115 |
+ |
116 |
+ # skip docs for live version |
117 |
+ [[ ${PV} != 9999 ]] || sed -i '/exists.*_build/,/docs(ddir)/d' setup.py || die |
118 |
+} |
119 |
+ |
120 |
+src_compile() { |
121 |
+ tc-export CC |
122 |
+ export PKGCONFIG_EXE=$(tc-getPKG_CONFIG) |
123 |
+ |
124 |
+ local setup=( |
125 |
+ ${EPYTHON} setup.py linux-package |
126 |
+ --disable-link-time-optimization |
127 |
+ --ignore-compiler-warnings |
128 |
+ --libdir-name=$(get_libdir) |
129 |
+ --shell-integration="enabled no-rc" |
130 |
+ --update-check-interval=0 |
131 |
+ --verbose |
132 |
+ $(usev debug --debug) |
133 |
+ ) |
134 |
+ |
135 |
+ echo "${setup[*]}" |
136 |
+ "${setup[@]}" || die "setup.py failed to compile ${PN}" |
137 |
+ |
138 |
+ [[ ${PV} == 9999 ]] || mv linux-package/share/doc/{${PN},${PF}} || die |
139 |
+ rm -r linux-package/share/terminfo || die |
140 |
+} |
141 |
+ |
142 |
+src_test() { |
143 |
+ PATH=linux-package/bin:${PATH} KITTY_CONFIG_DIRECTORY=${T} \ |
144 |
+ ${EPYTHON} test.py || die |
145 |
+} |
146 |
+ |
147 |
+src_install() { |
148 |
+ insinto /usr |
149 |
+ doins -r linux-package/. |
150 |
+ |
151 |
+ fperms +x /usr/bin/kitty |
152 |
+} |
153 |
+ |
154 |
+pkg_postinst() { |
155 |
+ xdg_icon_cache_update |
156 |
+ |
157 |
+ optfeature "in-terminal image display with kitty icat" media-gfx/imagemagick |
158 |
+ optfeature "audio-based terminal bell support" media-libs/libcanberra |
159 |
+ optfeature "opening links from the terminal" x11-misc/xdg-utils |
160 |
+} |