forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
broot-1.14.2.ebuild
313 lines (295 loc) · 5.59 KB
/
broot-1.14.2.ebuild
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
adler-1.0.2
adler32-1.2.0
ahash-0.4.7
ahash-0.7.6
aho-corasick-0.7.18
ansi_colours-1.1.1
anyhow-1.0.58
argh-0.1.8
argh_derive-0.1.8
argh_shared-0.1.8
atty-0.2.14
autocfg-1.1.0
base64-0.13.0
bet-1.0.1
bincode-1.3.3
bit_field-0.10.1
bitflags-1.3.2
bstr-0.2.17
bumpalo-3.10.0
bytemuck-1.10.0
byteorder-1.4.3
cc-1.0.73
cfg-if-1.0.0
char_reader-0.1.1
chrono-0.4.19
clap-3.2.8
clap_complete-3.2.3
clap_derive-3.2.7
clap_lex-0.2.4
cli-log-0.1.0
cli-log-2.0.0
clipboard-win-4.4.1
color_quant-1.1.0
coolor-0.5.0
crc32fast-1.3.2
crokey-0.4.1
crokey-proc_macros-0.4.0
crossbeam-0.8.1
crossbeam-channel-0.5.5
crossbeam-deque-0.8.1
crossbeam-epoch-0.9.9
crossbeam-queue-0.3.5
crossbeam-utils-0.8.10
crossterm-0.23.2
crossterm_winapi-0.9.0
csv-1.1.6
csv-core-0.1.10
csv2svg-0.1.7
custom_error-1.9.2
deflate-1.0.0
deser-hjson-1.0.2
directories-4.0.1
directories-next-2.0.0
dirs-sys-0.3.7
dirs-sys-next-0.1.2
doc-comment-0.3.3
either-1.7.0
error-code-2.3.1
exr-1.4.2
fallible-iterator-0.2.0
fallible-streaming-iterator-0.1.9
fastrand-1.7.0
file-size-1.0.3
flate2-1.0.24
flume-0.10.13
fnv-1.0.7
form_urlencoded-1.0.1
futures-core-0.3.21
futures-sink-0.3.21
getrandom-0.2.7
gif-0.11.4
git2-0.14.4
glassbench-0.3.3
glob-0.3.0
half-1.8.2
hashbrown-0.12.1
hashbrown-0.9.1
hashlink-0.6.0
heck-0.3.3
heck-0.4.0
hermit-abi-0.1.19
id-arena-2.2.1
idna-0.2.3
image-0.24.2
include_dir-0.7.2
include_dir_macros-0.7.2
indexmap-1.9.1
inflate-0.4.5
instant-0.1.12
is_executable-1.0.1
itoa-0.4.8
itoa-1.0.2
jobserver-0.1.24
jpeg-decoder-0.2.6
js-sys-0.3.58
lazy-regex-2.3.0
lazy-regex-proc_macros-2.3.0
lazy_static-1.4.0
lebe-0.5.1
lfs-core-0.11.0
libc-0.2.126
libgit2-sys-0.13.4+1.4.2
libsqlite3-sys-0.20.1
libz-sys-1.1.8
line-wrap-0.1.1
linked-hash-map-0.5.6
lock_api-0.4.7
log-0.4.17
matches-0.1.9
memchr-2.5.0
memmap-0.7.0
memoffset-0.6.5
minimad-0.9.0
miniz_oxide-0.5.3
mio-0.8.4
nanorand-0.7.0
nix-0.22.3
num-integer-0.1.45
num-iter-0.1.43
num-rational-0.4.1
num-traits-0.2.15
num_cpus-1.13.1
num_threads-0.1.6
once_cell-1.13.0
onig-6.3.2
onig_sys-69.8.0
open-1.7.1
opener-0.5.0
os_str_bytes-6.1.0
parking_lot-0.12.1
parking_lot_core-0.9.3
pathdiff-0.2.1
percent-encoding-2.1.0
phf-0.10.1
phf_generator-0.10.0
phf_macros-0.10.0
phf_shared-0.10.0
pin-project-1.0.11
pin-project-internal-1.0.11
pkg-config-0.3.25
plist-1.3.1
png-0.17.5
ppv-lite86-0.2.16
proc-macro-error-1.0.4
proc-macro-error-attr-1.0.4
proc-macro-hack-0.5.19
proc-macro2-1.0.40
proc-status-0.1.1
quick-xml-0.22.0
quote-1.0.20
rand-0.8.5
rand_chacha-0.3.1
rand_core-0.6.3
rayon-1.5.3
rayon-core-1.9.3
redox_syscall-0.2.13
redox_users-0.4.3
regex-1.5.6
regex-automata-0.1.10
regex-syntax-0.6.26
remove_dir_all-0.5.3
rgb-0.8.33
rusqlite-0.24.2
ryu-1.0.10
safemem-0.3.3
same-file-1.0.6
scoped_threadpool-0.1.9
scopeguard-1.1.0
secular-1.0.1
serde-1.0.138
serde_derive-1.0.138
serde_json-1.0.82
signal-hook-0.3.14
signal-hook-mio-0.2.3
signal-hook-registry-1.4.0
siphasher-0.3.10
smallvec-1.9.0
snafu-0.7.1
snafu-derive-0.7.1
spin-0.9.3
splitty-0.1.0
str-buf-1.0.6
strict-0.1.4
strsim-0.10.0
svg-0.8.2
syn-1.0.98
syntect-no-panic-4.6.1
tempfile-3.3.0
termcolor-1.1.3
termimad-0.20.2
terminal-clipboard-0.3.1
terminal-light-1.0.0
termux-clipboard-0.1.0
textwrap-0.15.0
thiserror-1.0.31
thiserror-impl-1.0.31
threadpool-1.8.1
tiff-0.7.2
time-0.1.44
time-0.3.11
tinyvec-1.6.0
tinyvec_macros-0.1.0
toml-0.5.9
umask-2.0.0
unicode-bidi-0.3.8
unicode-ident-1.0.1
unicode-normalization-0.1.21
unicode-segmentation-1.9.0
unicode-width-0.1.9
url-2.2.2
users-0.11.0
vcpkg-0.2.15
version_check-0.9.4
walkdir-2.3.2
wasi-0.10.0+wasi-snapshot-preview1
wasi-0.11.0+wasi-snapshot-preview1
wasm-bindgen-0.2.81
wasm-bindgen-backend-0.2.81
wasm-bindgen-macro-0.2.81
wasm-bindgen-macro-support-0.2.81
wasm-bindgen-shared-0.2.81
weezl-0.1.6
winapi-0.3.9
winapi-i686-pc-windows-gnu-0.4.0
winapi-util-0.1.5
winapi-x86_64-pc-windows-gnu-0.4.0
windows-sys-0.36.1
windows_aarch64_msvc-0.36.1
windows_i686_gnu-0.36.1
windows_i686_msvc-0.36.1
windows_x86_64_gnu-0.36.1
windows_x86_64_msvc-0.36.1
x11-clipboard-0.5.3
xcb-0.10.1
xml-rs-0.8.4
xterm-query-0.1.0
xterm-query-0.2.0
yaml-rust-0.4.5
"
inherit bash-completion-r1 cargo
DESCRIPTION="A new way to see and navigate directory trees"
HOMEPAGE="https://dystroy.org/broot/ https://github.com/Canop/broot"
SRC_URI="https://github.com/Canop/broot/archive/v${PV}.tar.gz -> ${P}.tar.gz
$(cargo_crate_uris)"
LICENSE="Apache-2.0 BSD-2 BSD LGPL-3+ MIT ZLIB"
SLOT="0"
KEYWORDS="amd64"
IUSE="X"
RDEPEND="
dev-libs/libgit2:=
X? ( x11-libs/libxcb:= )
"
DEPEND="${RDEPEND}"
BDEPEND=">=virtual/rust-1.60"
QA_FLAGS_IGNORED="usr/bin/${PN}"
src_configure() {
export RUSTFLAGS="-Cstrip=none ${RUSTFLAGS}" #835400
local myfeatures=( $(usev X clipboard) )
cargo_src_configure --no-default-features
}
src_prepare() {
default
local mandate=$(date -r man/page +'%Y/%m/%d' || die)
sed -e "s|#version|${PV}|" \
-e "s|#date|${mandate}|" \
man/page > "${T}"/${PN}.1 || die
}
src_install() {
cargo_src_install
doman "${T}"/${PN}.1
local build_dir=( target/$(usex debug{,} release)/build/${PN}-*/out )
cd ${build_dir[0]} || die
newbashcomp ${PN}.bash ${PN}
newbashcomp br.bash br
insinto /usr/share/zsh/site-functions
doins _${PN}
doins _br
insinto /usr/share/fish/vendor_completions.d
doins ${PN}.fish
doins br.fish
}
pkg_postinst() {
local v
for v in ${REPLACING_VERSIONS}; do
if ver_test "$v" "-lt" "1.14.0"; then
elog "The default configuration changed substantially in 1.14.0."
elog "Consider removing your ~/.config/${PN}/conf.hjson file to"
elog "have ${PN} write the new defaults on the next run."
fi
done
}