blob: 35dc79e29b9223c0e1e0b585b1fccaeaadd3354c (
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
|
# Copyright 2020-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
RUST_MIN_VER="1.97.0"
CRATES="
aho-corasick@1.1.5
anstream@1.0.0
anstyle-parse@1.0.0
anstyle-query@1.1.5
anstyle-wincon@3.0.11
anstyle@1.0.14
anyhow@1.0.104
approx@0.5.1
arrayvec@0.7.8
assert_cmd@2.2.2
autocfg@1.5.1
bitflags@2.13.2
borsh-derive@1.8.1
borsh@1.8.1
bstr@1.13.1
bumpalo@3.20.3
bytes@1.12.1
cfg-if@1.0.5
cfg_aliases@0.2.2
chacha20@0.10.2
clap@4.6.7
clap_builder@4.6.7
clap_complete@4.6.11
clap_lex@1.1.1
colorchoice@1.0.5
colored@3.1.1
console@0.15.11
console@0.16.6
cpufeatures@0.3.1
csv-core@0.1.13
csv@1.4.0
difflib@0.4.0
encode_unicode@1.0.0
equivalent@1.0.2
errno@0.3.14
fastrand@2.5.0
float-cmp@0.10.0
getrandom@0.2.17
getrandom@0.3.4
getrandom@0.4.3
hashbrown@0.17.1
indexmap@2.14.2
indicatif@0.17.4
insta-cmd@0.7.0
insta@1.48.0
instant@0.1.13
is_terminal_polyfill@1.70.2
itoa@1.0.18
libc@0.2.189
linux-raw-sys@0.12.1
memchr@2.8.3
nix@0.31.3
normalize-line-endings@0.3.0
num-traits@0.2.19
number_prefix@0.4.0
once_cell@1.21.4
once_cell_polyfill@1.70.2
portable-atomic@1.15.0
ppv-lite86@0.2.21
predicates-core@1.0.10
predicates-tree@1.0.13
predicates@3.1.4
proc-macro-crate@3.5.0
proc-macro2@1.0.107
quote@1.0.47
r-efi@5.3.0
r-efi@6.0.0
rand@0.10.3
rand@0.8.8
rand@0.9.5
rand_chacha@0.3.1
rand_chacha@0.9.0
rand_core@0.10.1
rand_core@0.6.4
rand_core@0.9.5
regex-automata@0.4.18
regex-syntax@0.8.11
regex@1.13.1
rust_decimal@1.43.0
rustix@1.1.5
rustversion@1.0.23
ryu@1.0.23
serde@1.0.229
serde_core@1.0.229
serde_derive@1.0.229
serde_json@1.0.151
shell-words@1.1.1
similar@2.7.0
strip-ansi-escapes@0.2.1
strsim@0.11.1
syn@2.0.119
syn@3.0.6
tempfile@3.27.0
terminal_size@0.4.4
termtree@0.5.1
thiserror-impl@2.0.21
thiserror@2.0.21
toml_datetime@1.1.1+spec-1.1.0
toml_edit@0.25.15+spec-1.1.0
toml_parser@1.1.3+spec-1.1.0
typenum@1.20.1
unicode-ident@1.0.26
unicode-width@0.1.14
unicode-width@0.2.2
uom@0.36.0
utf8parse@0.2.2
vte@0.14.1
wait-timeout@0.2.1
wasi@0.11.1+wasi-snapshot-preview1
wasip2@1.0.4+wasi-0.2.12
wasm-bindgen-macro-support@0.2.129
wasm-bindgen-macro@0.2.129
wasm-bindgen-shared@0.2.129
wasm-bindgen@0.2.129
windows-link@0.2.1
windows-sys@0.59.0
windows-sys@0.61.2
windows-targets@0.52.6
windows_aarch64_gnullvm@0.52.6
windows_aarch64_msvc@0.52.6
windows_i686_gnu@0.52.6
windows_i686_gnullvm@0.52.6
windows_i686_msvc@0.52.6
windows_x86_64_gnu@0.52.6
windows_x86_64_gnullvm@0.52.6
windows_x86_64_msvc@0.52.6
winnow@1.0.4
wit-bindgen@0.57.1
zerocopy-derive@0.8.58
zerocopy@0.8.58
zmij@1.0.23
"
inherit shell-completion cargo
DESCRIPTION="A command-line benchmarking tool"
HOMEPAGE="https://github.com/sharkdp/hyperfine"
SRC_URI="
https://github.com/sharkdp/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}
"
LICENSE="|| ( Apache-2.0 MIT )"
# Dependent crate licenses
LICENSE+=" Apache-2.0 BSD MIT MPL-2.0 Unicode-3.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
QA_FLAGS_IGNORED="usr/bin/${PN}"
src_prepare() {
default
sed -i '/strip =/d' Cargo.toml || die
}
src_test() {
local -x CLICOLOR_FORCE=
cargo_src_test
}
src_install() {
dobin $(cargo_target_dir)/hyperfine
local build_dir="$(dirname $(find "$(cargo_target_dir)" -name ${PN}.bash -print -quit))"
newbashcomp "${build_dir}/${PN}.bash" "${PN}"
dozshcomp "${build_dir}/_${PN}"
dofishcomp "${build_dir}/${PN}.fish"
doman doc/hyperfine.1
einstalldocs
}
|