1 |
commit: 26944db515e2a61456e412c3005e0d24b481d561 |
2 |
Author: end222 <pabloorduna98 <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Jun 24 14:50:51 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 28 10:40:59 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26944db5 |
7 |
|
8 |
x11-terms/kitty: bump to 0.18.1 |
9 |
|
10 |
Signed-off-by: Pablo Orduna <pabloorduna98 <AT> gmail.com> |
11 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
12 |
|
13 |
x11-terms/kitty/Manifest | 1 + |
14 |
x11-terms/kitty/kitty-0.18.1.ebuild | 104 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 105 insertions(+) |
16 |
|
17 |
diff --git a/x11-terms/kitty/Manifest b/x11-terms/kitty/Manifest |
18 |
index a441c39bf25..5de3ecb148d 100644 |
19 |
--- a/x11-terms/kitty/Manifest |
20 |
+++ b/x11-terms/kitty/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST kitty-0.17.2.tar.xz 3044140 BLAKE2B 12dcb8ddb7d90a22904f575301e8c2b1672c3212ee29a035fa5e8eec553dafb0e2c8c1cc3a491c8ac6854d619e979e518d83c5218f36647a032a4f847d068ef3 SHA512 bccf1c1d60d1149bc5f849b82db1af80a2d9a7a11c5f2df853daae5700550eef98da389a30f015d67be796f39deacb31f3ee245eb37ba1a41ba377c70cd26d61 |
23 |
DIST kitty-0.17.3.tar.xz 3064216 BLAKE2B f5ab532d97c211ceed463c24758635a9e7168bf03990889a98ebdad7fc8c1c60f5f3726724007f00ac6a5f5e8db44ca54a4a43027dbf6ce1fdfcaa40c7b8e10c SHA512 dc14ba35e77e0ebd1978fde0731b00e726e75137f900952dfa6b06add1f46e3a3f42e8e886ce8c689e4e3500f2d2216a66225d5211522a41d09ef61265065e2d |
24 |
DIST kitty-0.17.4.tar.xz 3068456 BLAKE2B 7c3be1bd9e1be814ca2c98ac8bed5c8ac906021efee9e399bddb8d1f2d6faa4368f08741fd24666892272c5ffc68e62d490f3a3b20a4f1cb1025401741ace29f SHA512 4ea954a59f44b04a1540d814892b08c93e37c07d7dd32b5db3f50806fa6f39a8a89957c216e47b43bf7aa9571dd0200de7dc12266cc672c9e70e39b2133da0d7 |
25 |
+DIST kitty-0.18.1.tar.xz 3098940 BLAKE2B c54f9e7996e8e17182d5cdb3f915964b2626985992dc9f8bf2f11d086475fd7b13ee131aaf942f521cd6356ac13f7efdf436253237022532ffc68cb7923bc645 SHA512 d1870fa8c1c42c9a20251ba7819fb649760a98070653cff6bbc0ef86160d6b20070bbfe4e549b80d75d7a78b37cb3c1153e4be246709cf630129cd4d09a76604 |
26 |
|
27 |
diff --git a/x11-terms/kitty/kitty-0.18.1.ebuild b/x11-terms/kitty/kitty-0.18.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..8c01019befd |
30 |
--- /dev/null |
31 |
+++ b/x11-terms/kitty/kitty-0.18.1.ebuild |
32 |
@@ -0,0 +1,104 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
39 |
+ |
40 |
+inherit eutils python-single-r1 toolchain-funcs xdg |
41 |
+ |
42 |
+if [[ ${PV} == "9999" ]] ; then |
43 |
+ EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git" |
44 |
+ inherit git-r3 |
45 |
+else |
46 |
+ SRC_URI="https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz" |
47 |
+ KEYWORDS="~amd64 ~x86" |
48 |
+fi |
49 |
+ |
50 |
+DESCRIPTION="A modern, hackable, featureful, OpenGL-based terminal emulator" |
51 |
+HOMEPAGE="https://github.com/kovidgoyal/kitty" |
52 |
+ |
53 |
+LICENSE="GPL-3" |
54 |
+SLOT="0" |
55 |
+IUSE="debug wayland" |
56 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ ${PYTHON_DEPS} |
60 |
+ media-libs/fontconfig |
61 |
+ media-libs/freetype:2 |
62 |
+ >=media-libs/harfbuzz-1.5.0:= |
63 |
+ media-libs/libcanberra |
64 |
+ media-libs/libpng:0= |
65 |
+ sys-apps/dbus |
66 |
+ sys-libs/zlib |
67 |
+ x11-libs/libxcb[xkb] |
68 |
+ x11-libs/libXcursor |
69 |
+ x11-libs/libXi |
70 |
+ x11-libs/libXinerama |
71 |
+ x11-libs/libxkbcommon[X] |
72 |
+ x11-libs/libXrandr |
73 |
+ x11-terms/kitty-terminfo |
74 |
+ wayland? ( |
75 |
+ dev-libs/wayland |
76 |
+ >=dev-libs/wayland-protocols-1.17 |
77 |
+ ) |
78 |
+ $(python_gen_cond_dep 'dev-python/importlib_resources[${PYTHON_USEDEP}]' python3_6) |
79 |
+" |
80 |
+ |
81 |
+DEPEND="${RDEPEND} |
82 |
+ media-libs/mesa[X] |
83 |
+ sys-libs/ncurses |
84 |
+" |
85 |
+ |
86 |
+BDEPEND="virtual/pkgconfig" |
87 |
+ |
88 |
+[[ ${PV} == *9999 ]] && BDEPEND+=" >=dev-python/sphinx-1.7" |
89 |
+ |
90 |
+PATCHES=( |
91 |
+ "${FILESDIR}"/${PN}-0.17.2-flags.patch |
92 |
+ "${FILESDIR}"/${PN}-0.14.4-svg-icon.patch |
93 |
+ "${FILESDIR}"/${PN}-0.16.0-remove-terminfo.patch |
94 |
+) |
95 |
+ |
96 |
+src_prepare() { |
97 |
+ default |
98 |
+ |
99 |
+ # disable wayland as required |
100 |
+ if ! use wayland; then |
101 |
+ sed -i "/'x11 wayland'/s/ wayland//" setup.py || die |
102 |
+ fi |
103 |
+ |
104 |
+ # respect doc dir |
105 |
+ sed -i "/htmldir =/s/appname/'${PF}'/" setup.py || die |
106 |
+ |
107 |
+ tc-export CC |
108 |
+} |
109 |
+ |
110 |
+src_compile() { |
111 |
+ "${EPYTHON}" setup.py \ |
112 |
+ --verbose $(usex debug --debug "") \ |
113 |
+ --libdir-name $(get_libdir) \ |
114 |
+ linux-package || die "Failed to compile kitty." |
115 |
+} |
116 |
+ |
117 |
+src_test() { |
118 |
+ export KITTY_CONFIG_DIRECTORY=${T} |
119 |
+ "${EPYTHON}" test.py || die |
120 |
+} |
121 |
+ |
122 |
+src_install() { |
123 |
+ insinto /usr |
124 |
+ doins -r linux-package/* |
125 |
+ dobin linux-package/bin/kitty |
126 |
+ python_fix_shebang "${ED}" |
127 |
+} |
128 |
+ |
129 |
+pkg_postinst() { |
130 |
+ xdg_icon_cache_update |
131 |
+ optfeature "Displaying images in the terminal" virtual/imagemagick-tools |
132 |
+} |
133 |
+ |
134 |
+pkg_postrm() { |
135 |
+ xdg_icon_cache_update |
136 |
+} |