Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/alacritty/
Date: Thu, 29 Aug 2019 18:35:57
Message-Id: 1567103247.2a9a4c5b8fec06003eb6b0f478cdda4ee84c77c3.gyakovlev@gentoo
1 commit: 2a9a4c5b8fec06003eb6b0f478cdda4ee84c77c3
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 29 06:02:19 2019 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 29 18:27:27 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a9a4c5b
7
8 x11-terms/alacritty: add live ebuild
9
10 Package-Manager: Portage-2.3.73, Repoman-2.3.17
11 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
12
13 x11-terms/alacritty/alacritty-9999.ebuild | 363 ++++++++++++++++++++++++++++++
14 1 file changed, 363 insertions(+)
15
16 diff --git a/x11-terms/alacritty/alacritty-9999.ebuild b/x11-terms/alacritty/alacritty-9999.ebuild
17 new file mode 100644
18 index 00000000000..fe1402f1e10
19 --- /dev/null
20 +++ b/x11-terms/alacritty/alacritty-9999.ebuild
21 @@ -0,0 +1,363 @@
22 +# Copyright 2017-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +CRATES="
28 +adler32-1.0.3
29 +aho-corasick-0.6.10
30 +aho-corasick-0.7.3
31 +andrew-0.2.1
32 +android_glue-0.2.3
33 +ansi_term-0.11.0
34 +approx-0.3.2
35 +arc-swap-0.3.11
36 +argon2rs-0.2.5
37 +arrayvec-0.4.10
38 +atty-0.2.11
39 +autocfg-0.1.4
40 +backtrace-0.3.30
41 +backtrace-sys-0.1.28
42 +base64-0.10.1
43 +bindgen-0.33.2
44 +bitflags-1.1.0
45 +blake2-rfc-0.2.18
46 +block-0.1.6
47 +byteorder-1.3.2
48 +bzip2-0.3.3
49 +bzip2-sys-0.1.7
50 +cc-1.0.37
51 +cexpr-0.2.3
52 +cfg-if-0.1.9
53 +cgl-0.2.3
54 +clang-sys-0.22.0
55 +clap-2.33.0
56 +clipboard-win-2.2.0
57 +cloudabi-0.0.3
58 +cmake-0.1.40
59 +cocoa-0.18.4
60 +color_quant-1.0.1
61 +constant_time_eq-0.1.3
62 +core-foundation-0.6.4
63 +core-foundation-sys-0.6.2
64 +core-graphics-0.17.3
65 +core-text-13.2.0
66 +crc32fast-1.2.0
67 +crossbeam-channel-0.3.8
68 +crossbeam-deque-0.6.3
69 +crossbeam-epoch-0.7.1
70 +crossbeam-queue-0.1.2
71 +crossbeam-utils-0.6.5
72 +deflate-0.7.19
73 +derivative-1.0.2
74 +dirs-1.0.5
75 +dlib-0.4.1
76 +downcast-rs-1.0.4
77 +dtoa-0.4.4
78 +dunce-1.0.0
79 +dwrote-0.9.0
80 +either-1.5.2
81 +embed-resource-1.2.0
82 +env_logger-0.5.13
83 +env_logger-0.6.1
84 +errno-0.2.4
85 +errno-dragonfly-0.1.1
86 +euclid-0.19.9
87 +euclid_macros-0.1.0
88 +expat-sys-2.1.6
89 +failure-0.1.5
90 +failure_derive-0.1.5
91 +filetime-0.2.5
92 +fnv-1.0.6
93 +foreign-types-0.3.2
94 +foreign-types-0.4.0
95 +foreign-types-macros-0.1.0
96 +foreign-types-shared-0.1.1
97 +foreign-types-shared-0.2.0
98 +freetype-rs-0.19.1
99 +freetype-sys-0.7.1
100 +fsevent-0.4.0
101 +fsevent-sys-2.0.1
102 +fuchsia-cprng-0.1.1
103 +fuchsia-zircon-0.3.3
104 +fuchsia-zircon-sys-0.3.3
105 +gcc-0.3.55
106 +gif-0.10.2
107 +gleam-0.6.17
108 +gl_generator-0.11.0
109 +glob-0.2.11
110 +glutin-0.21.0
111 +glutin_egl_sys-0.1.3
112 +glutin_emscripten_sys-0.1.0
113 +glutin_gles2_sys-0.1.3
114 +glutin_glx_sys-0.1.5
115 +glutin_wgl_sys-0.1.3
116 +http_req-0.5.0
117 +humantime-1.2.0
118 +idna-0.1.5
119 +image-0.21.2
120 +inflate-0.4.5
121 +inotify-0.6.1
122 +inotify-sys-0.1.3
123 +iovec-0.1.2
124 +itoa-0.4.4
125 +jpeg-decoder-0.1.15
126 +kernel32-sys-0.2.2
127 +khronos_api-3.1.0
128 +lazycell-1.2.1
129 +lazy_static-1.3.0
130 +libc-0.2.58
131 +libflate-0.1.23
132 +libloading-0.5.1
133 +libz-sys-1.0.25
134 +line_drawing-0.7.0
135 +linked-hash-map-0.5.2
136 +lock_api-0.1.5
137 +log-0.4.6
138 +lzw-0.10.0
139 +malloc_buf-0.0.6
140 +matches-0.1.8
141 +memchr-1.0.2
142 +memchr-2.2.0
143 +memmap-0.7.0
144 +memoffset-0.2.1
145 +mio-0.6.19
146 +mio-anonymous-pipes-0.1.0
147 +mio-extras-2.0.5
148 +mio-named-pipes-0.1.6
149 +mio-uds-0.6.7
150 +miow-0.2.1
151 +miow-0.3.3
152 +named_pipe-0.3.0
153 +native-tls-0.2.3
154 +net2-0.2.33
155 +nix-0.14.1
156 +nodrop-0.1.13
157 +nom-3.2.1
158 +nom-4.2.3
159 +notify-4.0.12
160 +num_cpus-1.10.1
161 +num-derive-0.2.5
162 +num-integer-0.1.41
163 +num-iter-0.1.39
164 +num-rational-0.2.2
165 +numtoa-0.1.0
166 +num-traits-0.2.8
167 +objc-0.2.6
168 +objc-foundation-0.1.1
169 +objc_id-0.1.1
170 +openssl-0.10.23
171 +openssl-probe-0.1.2
172 +openssl-sys-0.9.47
173 +ordered-float-1.0.2
174 +osmesa-sys-0.1.2
175 +owning_ref-0.4.0
176 +parking_lot-0.7.1
177 +parking_lot_core-0.4.0
178 +peeking_take_while-0.1.2
179 +percent-encoding-1.0.1
180 +phf-0.7.24
181 +phf_codegen-0.7.24
182 +phf_generator-0.7.24
183 +phf_shared-0.7.24
184 +pkg-config-0.3.14
185 +png-0.14.1
186 +podio-0.1.6
187 +proc-macro2-0.4.30
188 +quick-error-1.2.2
189 +quote-0.3.15
190 +quote-0.6.12
191 +rand-0.6.5
192 +rand_chacha-0.1.1
193 +rand_core-0.3.1
194 +rand_core-0.4.0
195 +rand_hc-0.1.0
196 +rand_isaac-0.1.1
197 +rand_jitter-0.1.4
198 +rand_os-0.1.3
199 +rand_pcg-0.1.2
200 +rand_xorshift-0.1.1
201 +rayon-1.1.0
202 +rayon-core-1.5.0
203 +rdrand-0.4.0
204 +redox_syscall-0.1.54
205 +redox_termios-0.1.1
206 +redox_users-0.3.0
207 +regex-0.2.11
208 +regex-1.1.7
209 +regex-syntax-0.5.6
210 +regex-syntax-0.6.7
211 +remove_dir_all-0.5.2
212 +rustc-demangle-0.1.15
213 +rustc_tools_util-0.2.0
214 +rustc_version-0.2.3
215 +rusttype-0.7.7
216 +ryu-0.2.8
217 +same-file-1.0.4
218 +schannel-0.1.15
219 +scoped_threadpool-0.1.9
220 +scopeguard-0.3.3
221 +security-framework-0.3.1
222 +security-framework-sys-0.3.1
223 +semver-0.9.0
224 +semver-parser-0.7.0
225 +serde-1.0.92
226 +serde_derive-1.0.92
227 +serde_json-1.0.39
228 +serde_yaml-0.8.9
229 +servo-fontconfig-0.4.0
230 +servo-fontconfig-sys-4.0.7
231 +shared_library-0.1.9
232 +signal-hook-0.1.9
233 +signal-hook-registry-1.0.1
234 +siphasher-0.2.3
235 +slab-0.4.2
236 +smallvec-0.6.10
237 +smithay-client-toolkit-0.4.6
238 +smithay-client-toolkit-0.6.2
239 +smithay-clipboard-0.3.3
240 +socket2-0.3.9
241 +spsc-buffer-0.1.1
242 +stable_deref_trait-1.1.1
243 +static_assertions-0.3.3
244 +stb_truetype-0.2.6
245 +strsim-0.8.0
246 +syn-0.15.36
247 +synstructure-0.10.2
248 +tempfile-3.0.8
249 +termcolor-1.0.5
250 +terminfo-0.6.1
251 +termion-1.5.3
252 +textwrap-0.11.0
253 +thread_local-0.3.6
254 +tiff-0.2.2
255 +time-0.1.42
256 +ucd-util-0.1.3
257 +unicase-2.4.0
258 +unicode-bidi-0.3.4
259 +unicode-normalization-0.1.8
260 +unicode-width-0.1.5
261 +unicode-xid-0.1.0
262 +url-1.7.2
263 +utf8parse-0.1.1
264 +utf8-ranges-1.0.3
265 +vcpkg-0.2.6
266 +vec_map-0.8.1
267 +version_check-0.1.5
268 +void-1.0.2
269 +vswhom-0.1.0
270 +vswhom-sys-0.1.0
271 +vte-0.3.3
272 +walkdir-2.2.8
273 +wayland-client-0.21.13
274 +wayland-client-0.23.5
275 +wayland-commons-0.21.13
276 +wayland-commons-0.23.5
277 +wayland-protocols-0.21.13
278 +wayland-protocols-0.23.5
279 +wayland-scanner-0.21.13
280 +wayland-scanner-0.23.5
281 +wayland-sys-0.21.13
282 +wayland-sys-0.23.5
283 +which-1.0.5
284 +widestring-0.4.0
285 +winapi-0.2.8
286 +winapi-0.3.7
287 +winapi-build-0.1.1
288 +winapi-i686-pc-windows-gnu-0.4.0
289 +winapi-util-0.1.2
290 +winapi-x86_64-pc-windows-gnu-0.4.0
291 +wincolor-1.0.1
292 +winit-0.19.1
293 +winpty-sys-0.4.3
294 +winreg-0.5.1
295 +ws2_32-sys-0.2.1
296 +x11-clipboard-0.3.2
297 +x11-dl-2.18.3
298 +xcb-0.8.2
299 +xdg-2.2.0
300 +xml-rs-0.8.0
301 +yaml-rust-0.4.3
302 +zip-0.5.2
303 +"
304 +
305 +MY_PV="${PV//_rc/-rc}"
306 +
307 +inherit bash-completion-r1 cargo desktop eutils
308 +
309 +DESCRIPTION="GPU-accelerated terminal emulator"
310 +HOMEPAGE="https://github.com/jwilm/alacritty"
311 +
312 +if [ ${PV} == "9999" ] ; then
313 + inherit git-r3
314 + EGIT_REPO_URI="https://github.com/jwilm/alacritty"
315 +else
316 + SRC_URI="https://github.com/jwilm/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz
317 + $(cargo_crate_uris ${CRATES})"
318 + KEYWORDS="amd64 ~ppc64"
319 +fi
320 +
321 +LICENSE="Apache-2.0"
322 +SLOT="0"
323 +IUSE=""
324 +
325 +DEPEND="
326 + media-libs/fontconfig:=
327 + media-libs/freetype:2
328 + x11-libs/libxcb
329 +"
330 +
331 +RDEPEND="${DEPEND}
332 + sys-libs/zlib
333 + sys-libs/ncurses:0
334 + x11-libs/libXcursor
335 + x11-libs/libXi
336 + x11-libs/libXrandr
337 + virtual/opengl
338 +"
339 +
340 +BDEPEND="dev-util/cmake
341 + >=virtual/rust-1.32.0
342 +"
343 +
344 +DOCS=( CHANGELOG.md docs/ansicode.txt INSTALL.md README.md alacritty.yml )
345 +
346 +QA_FLAGS_IGNORED="usr/bin/alacritty"
347 +
348 +S="${WORKDIR}/${PN}-${MY_PV}"
349 +
350 +src_unpack() {
351 + if [[ "${PV}" == *9999* ]]; then
352 + git-r3_src_unpack
353 + cargo_live_src_unpack
354 + else
355 + cargo_src_unpack
356 + fi
357 +}
358 +
359 +src_install() {
360 + cargo_src_install --path=alacritty
361 +
362 + newbashcomp extra/completions/alacritty.bash alacritty
363 +
364 + insinto /usr/share/fish/vendor_completions.d/
365 + doins extra/completions/alacritty.fish
366 +
367 + insinto /usr/share/zsh/site-functions
368 + doins extra/completions/_alacritty
369 +
370 + domenu extra/linux/alacritty.desktop
371 + newicon extra/logo/alacritty-term.svg Alacritty.svg
372 +
373 + newman extra/alacritty.man alacritty.1
374 +
375 + insinto /usr/share/alacritty/scripts
376 + doins -r scripts/*
377 +
378 + einstalldocs
379 +}
380 +
381 +pkg_postinst() {
382 + optfeature "wayland support" dev-libs/wayland
383 + optfeature "apply-tilix-colorscheme script dependency" dev-python/pyyaml
384 +}