summaryrefslogtreecommitdiff
blob: 5556a2e4259d852a7999f2dc1cc4477af720334d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
# Copyright 2017-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

CRATES="
aho-corasick-0.6.8
android_glue-0.2.3
ansi_term-0.11.0
approx-0.1.1
arraydeque-0.4.3
atty-0.2.11
base64-0.9.3
bitflags-0.7.0
bitflags-1.0.4
block-0.1.6
byteorder-1.2.6
bytes-0.4.10
cc-1.0.25
cfg-if-0.1.5
cgl-0.2.3
cgmath-0.16.1
clap-2.32.0
cloudabi-0.0.3
cmake-0.1.34
cocoa-0.15.0
copypasta-0.0.1
core-foundation-0.6.1
core-foundation-sys-0.6.1
core-graphics-0.14.0
core-graphics-0.17.1
core-text-13.0.0
crossbeam-utils-0.5.0
dirs-1.0.3
dlib-0.4.1
downcast-rs-1.0.3
dtoa-0.4.3
env_logger-0.5.13
errno-0.2.4
errno-dragonfly-0.1.1
euclid-0.17.3
expat-sys-2.1.5
filetime-0.2.1
fnv-1.0.6
font-0.1.0
foreign-types-0.3.2
foreign-types-shared-0.1.1
freetype-rs-0.19.0
freetype-sys-0.7.0
fsevent-0.2.17
fsevent-sys-0.1.6
fuchsia-zircon-0.3.3
fuchsia-zircon-sys-0.3.3
futures-0.1.24
gcc-0.3.54
gl_generator-0.9.0
gleam-0.6.0
glutin-0.16.0
humantime-1.1.1
inotify-0.6.1
inotify-sys-0.1.3
iovec-0.1.2
itoa-0.4.3
kernel32-sys-0.2.2
khronos_api-2.2.0
lazy_static-1.1.0
lazycell-0.4.0
lazycell-1.2.0
libc-0.2.43
libloading-0.5.0
libz-sys-1.0.22
linked-hash-map-0.5.1
lock_api-0.1.3
log-0.3.9
log-0.4.5
malloc_buf-0.0.6
memchr-2.1.0
memmap-0.6.2
mio-0.6.16
mio-extras-2.0.5
mio-more-0.1.0
miow-0.2.1
net2-0.2.33
nix-0.11.0
nom-4.0.0
notify-4.0.6
num-traits-0.1.43
num-traits-0.2.6
num_cpus-1.8.0
objc-0.2.5
objc-foundation-0.1.1
objc_id-0.1.1
osmesa-sys-0.1.2
owning_ref-0.3.3
parking_lot-0.5.5
parking_lot-0.6.4
parking_lot_core-0.2.14
parking_lot_core-0.3.1
percent-encoding-1.0.1
phf-0.7.23
phf_codegen-0.7.23
phf_generator-0.7.23
phf_shared-0.7.23
pkg-config-0.3.14
proc-macro2-0.4.19
quick-error-1.2.2
quote-0.6.8
rand-0.4.3
rand-0.5.5
rand_core-0.2.1
redox_syscall-0.1.40
redox_termios-0.1.1
regex-1.0.5
regex-syntax-0.6.2
remove_dir_all-0.5.1
rustc_version-0.2.3
ryu-0.2.6
safemem-0.3.0
same-file-1.0.3
scopeguard-0.3.3
semver-0.9.0
semver-parser-0.7.0
serde-1.0.79
serde_derive-1.0.79
serde_json-1.0.28
serde_yaml-0.7.5
servo-fontconfig-0.4.0
servo-fontconfig-sys-4.0.7
servo-freetype-sys-4.0.4
shared_library-0.1.9
siphasher-0.2.3
slab-0.3.0
slab-0.4.1
smallvec-0.6.5
smithay-client-toolkit-0.2.6
stable_deref_trait-1.1.1
static_assertions-0.2.5
strsim-0.7.0
syn-0.15.4
tempfile-3.0.4
termcolor-1.0.4
terminfo-0.6.1
termion-1.5.1
textwrap-0.10.0
thread_local-0.3.6
tokio-executor-0.1.4
tokio-io-0.1.8
tokio-reactor-0.1.5
ucd-util-0.1.1
unicode-width-0.1.5
unicode-xid-0.1.0
unreachable-1.0.0
utf8-ranges-1.0.1
utf8parse-0.1.0
vcpkg-0.2.6
vec_map-0.8.1
version_check-0.1.4
void-1.0.2
vte-0.3.3
walkdir-2.2.5
wayland-client-0.20.12
wayland-commons-0.20.12
wayland-protocols-0.20.12
wayland-scanner-0.20.12
wayland-sys-0.20.12
winapi-0.2.8
winapi-0.3.5
winapi-build-0.1.1
winapi-i686-pc-windows-gnu-0.4.0
winapi-util-0.1.1
winapi-x86_64-pc-windows-gnu-0.4.0
wincolor-1.0.1
winit-0.15.1
ws2_32-sys-0.2.1
x11-dl-2.18.3
xdg-2.1.0
xml-rs-0.7.0
yaml-rust-0.4.2
"

inherit bash-completion-r1 cargo desktop

DESCRIPTION="GPU-accelerated terminal emulator"
HOMEPAGE="https://github.com/jwilm/alacritty"
SRC_URI="https://github.com/jwilm/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
	$(cargo_crate_uris ${CRATES})"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test wayland"

DEPEND="
	media-libs/fontconfig:=
	media-libs/freetype:2
"

RDEPEND="${DEPEND}
	sys-libs/zlib
	x11-libs/libXcursor
	x11-libs/libXi
	x11-libs/libXrandr
	x11-misc/xclip
	virtual/opengl
	wayland? ( dev-libs/wayland )
"

BDEPEND="dev-util/cmake
	sys-libs/ncurses
"

DOCS=( CHANGELOG.md docs/ansicode.txt README.md  )

src_install() {
	cargo_src_install

	newbashcomp alacritty-completions.bash alacritty

	insinto /usr/share/fish/vendor_completions.d/
	newins alacritty-completions.fish alacritty.fish

	insinto /usr/share/zsh/site-functions
	newins alacritty-completions.zsh _alacritty

	tic -e alacritty,alacritty-direct -o "${T}" alacritty.info || die "generating terminfo failed"
	insinto /usr/share/terminfo/a/
	doins  "${T}"/a/alacritty*

	domenu alacritty.desktop

	newman alacritty.man alacritty.1

	einstalldocs
}

src_test() {
	cargo test -j $(makeopts_jobs) $(usex debug "" --release) -v || die "tests failed"
}