1 |
commit: cf4f959531f026c6f8b7f7062e623222c1ef9181 |
2 |
Author: Louis Regnier <louregni <AT> student <DOT> 42 <DOT> fr> |
3 |
AuthorDate: Wed Aug 25 19:50:06 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 2 06:53:08 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf4f9595 |
7 |
|
8 |
x11-terms/kitty: bump to 0.23.1 |
9 |
|
10 |
Signed-off-by: Louis Regnier <louregni <AT> student.42.fr> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/22102 |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
x11-terms/kitty/Manifest | 1 + |
15 |
x11-terms/kitty/kitty-0.23.1.ebuild | 109 ++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 110 insertions(+) |
17 |
|
18 |
diff --git a/x11-terms/kitty/Manifest b/x11-terms/kitty/Manifest |
19 |
index e1a1774bb2a..41c4a129750 100644 |
20 |
--- a/x11-terms/kitty/Manifest |
21 |
+++ b/x11-terms/kitty/Manifest |
22 |
@@ -2,3 +2,4 @@ DIST kitty-0.19.3.tar.xz 3269628 BLAKE2B b3b673f8ad06baf770b03bcee87b2f405e1ff09 |
23 |
DIST kitty-0.20.1.tar.xz 3449932 BLAKE2B aed9a250fbc7005cd67fd22bfc33de845bea7e39a5561e6957b744f03a5438945f9739ca7066a93889144a5d0289185f337ef4d487c754cba37f242030f1c46a SHA512 19dfa66eb2a2115877b25fbff0ba7a81071bff00c732236f20342aeb619cca88ae4a4e8ce4e73908ac7d7d12fca5232a76e0167754f2e658af02e442cf5ba0cd |
24 |
DIST kitty-0.20.3.tar.xz 3487500 BLAKE2B 49397ac2aef10e5fc41e351af65050ad510e58915392e6b1b8c022db31f2e5e81ac2cce645468ff213dafb609a30d43934b7388b93227fbbba5af7aa35be74e8 SHA512 9e9d81696bcb0d3894c04b08bc52ccf7aaf533125b3ecfb4c894b8d42dbf8511239c49f1c977d81872ce49fc6b3aa8e8c92b9c944bd31fe59fce6e3750295e58 |
25 |
DIST kitty-0.21.2.tar.xz 4341440 BLAKE2B dd97d65ae6eb39b5676cc809d3b5ca48b0fcbbb4bb9cc1d212efeb1b5fb584f61decca9d286fdee6f4512aa4d56e08b3a19be70afa2f0155c8c1815e29fcd7ed SHA512 0ae41dfd61fc70746e8ec2d37c043dea7ceb70205aca056fd156348d4b9a2f6aac520c60de08fb5a3cd9bb908efdd2ad8129bbc01b69e5908f2976e5393269df |
26 |
+DIST kitty-0.23.1.tar.xz 4444184 BLAKE2B f452e338fb72f723f2c028f90c20654cf80c5ee1aff924954f81f16445c9f4c10c77bd67d47ae5564b45496012dd1b7de447cdf3974b6913a39d170749878a73 SHA512 2d0c822e6bfca41b0a5e5e71e62f5073792b10c236287a509a6c790e19d098205c8719dbcb4aa630abbbaa3d44d6c9986c13efde7a9556772a89709383a0fe94 |
27 |
|
28 |
diff --git a/x11-terms/kitty/kitty-0.23.1.ebuild b/x11-terms/kitty/kitty-0.23.1.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..ee7d59c7435 |
31 |
--- /dev/null |
32 |
+++ b/x11-terms/kitty/kitty-0.23.1.ebuild |
33 |
@@ -0,0 +1,109 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{8,9} ) |
40 |
+ |
41 |
+inherit optfeature python-single-r1 toolchain-funcs xdg |
42 |
+ |
43 |
+if [[ ${PV} == "9999" ]] ; then |
44 |
+ EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git" |
45 |
+ inherit git-r3 |
46 |
+else |
47 |
+ SRC_URI="https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz" |
48 |
+ KEYWORDS="~amd64 ~x86" |
49 |
+fi |
50 |
+ |
51 |
+DESCRIPTION="A modern, hackable, featureful, OpenGL-based terminal emulator" |
52 |
+HOMEPAGE="https://github.com/kovidgoyal/kitty" |
53 |
+ |
54 |
+LICENSE="GPL-3" |
55 |
+SLOT="0" |
56 |
+IUSE="debug wayland" |
57 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ ${PYTHON_DEPS} |
61 |
+ media-libs/fontconfig |
62 |
+ media-libs/freetype:2 |
63 |
+ >=media-libs/harfbuzz-1.5.0:= |
64 |
+ media-libs/lcms |
65 |
+ media-libs/libcanberra |
66 |
+ media-libs/libpng:0= |
67 |
+ sys-apps/dbus |
68 |
+ sys-libs/zlib |
69 |
+ x11-libs/libxcb[xkb] |
70 |
+ x11-libs/libXcursor |
71 |
+ x11-libs/libXi |
72 |
+ x11-libs/libXinerama |
73 |
+ x11-libs/libxkbcommon[X] |
74 |
+ x11-libs/libXrandr |
75 |
+ x11-misc/xkeyboard-config |
76 |
+ x11-terms/kitty-terminfo |
77 |
+ wayland? ( |
78 |
+ dev-libs/wayland |
79 |
+ >=dev-libs/wayland-protocols-1.17 |
80 |
+ ) |
81 |
+" |
82 |
+ |
83 |
+DEPEND="${RDEPEND} |
84 |
+ media-libs/mesa[X] |
85 |
+ sys-libs/ncurses |
86 |
+" |
87 |
+ |
88 |
+BDEPEND="virtual/pkgconfig" |
89 |
+ |
90 |
+[[ ${PV} == *9999 ]] && BDEPEND+=" >=dev-python/sphinx-1.7" |
91 |
+ |
92 |
+PATCHES=( |
93 |
+ "${FILESDIR}"/${PN}-0.21.2-flags.patch |
94 |
+ "${FILESDIR}"/${PN}-0.21.2-remove-terminfo.patch |
95 |
+ "${FILESDIR}"/${PN}-0.20.1-tests.patch |
96 |
+) |
97 |
+ |
98 |
+src_prepare() { |
99 |
+ default |
100 |
+ |
101 |
+ # disable wayland as required |
102 |
+ if ! use wayland; then |
103 |
+ sed -i "/'x11 wayland'/s/ wayland//" setup.py || die |
104 |
+ # also disable wayland tests |
105 |
+ sed -i "/if not self.is_ci/d" kitty_tests/check_build.py || die |
106 |
+ sed -i "/linux_backends.append('wayland')/d" kitty_tests/check_build.py || die |
107 |
+ fi |
108 |
+ |
109 |
+ # respect doc dir |
110 |
+ sed -i "/htmldir =/s/appname/'${PF}'/" setup.py || die |
111 |
+ |
112 |
+ tc-export CC |
113 |
+} |
114 |
+ |
115 |
+src_compile() { |
116 |
+ "${EPYTHON}" setup.py \ |
117 |
+ --verbose $(usex debug --debug "") \ |
118 |
+ --libdir-name $(get_libdir) \ |
119 |
+ --update-check-interval=0 \ |
120 |
+ linux-package || die "Failed to compile kitty." |
121 |
+} |
122 |
+ |
123 |
+src_test() { |
124 |
+ export KITTY_CONFIG_DIRECTORY=${T} |
125 |
+ "${EPYTHON}" test.py || die |
126 |
+} |
127 |
+ |
128 |
+src_install() { |
129 |
+ insinto /usr |
130 |
+ doins -r linux-package/* |
131 |
+ dobin linux-package/bin/kitty |
132 |
+ python_fix_shebang "${ED}" |
133 |
+} |
134 |
+ |
135 |
+pkg_postinst() { |
136 |
+ xdg_icon_cache_update |
137 |
+ optfeature "Displaying images in the terminal" virtual/imagemagick-tools |
138 |
+} |
139 |
+ |
140 |
+pkg_postrm() { |
141 |
+ xdg_icon_cache_update |
142 |
+} |