dev-util/binsider: new package
[gentoo-zh.git] / app-misc / yazi / yazi-0.3.3.ebuild
blob79f46c487a00669ded2d4a7ee0caead16d0b71e1
1 # Copyright 2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 # Autogenerated by pycargoebuild 0.13.4
6 EAPI=8
8 CRATES="
9         addr2line@0.22.0
10         adler@1.0.2
11         ahash@0.8.11
12         aho-corasick@1.1.3
13         aligned-vec@0.5.0
14         allocator-api2@0.2.18
15         android-tzdata@0.1.1
16         android_system_properties@0.1.5
17         ansi-to-tui@6.0.0
18         anstream@0.6.15
19         anstyle-parse@0.2.5
20         anstyle-query@1.1.1
21         anstyle-wincon@3.0.3
22         anstyle@1.0.8
23         anyhow@1.0.86
24         arbitrary@1.3.2
25         arc-swap@1.7.1
26         arg_enum_proc_macro@0.3.4
27         arrayvec@0.7.4
28         async-priority-channel@0.2.0
29         autocfg@1.3.0
30         av1-grain@0.2.3
31         avif-serialize@0.8.1
32         backtrace@0.3.73
33         base64@0.21.7
34         base64@0.22.1
35         better-panic@0.3.0
36         bincode@1.3.3
37         bit_field@0.10.2
38         bitflags@1.3.2
39         bitflags@2.6.0
40         bitstream-io@2.5.0
41         block-buffer@0.10.4
42         block2@0.5.1
43         bstr@1.9.1
44         built@0.7.4
45         bumpalo@3.16.0
46         bytemuck@1.16.1
47         byteorder-lite@0.1.0
48         bytes@1.7.1
49         cassowary@0.3.0
50         castaway@0.2.3
51         cc@1.1.15
52         cfg-expr@0.15.8
53         cfg-if@1.0.0
54         chrono@0.4.38
55         clap@4.5.16
56         clap_builder@4.5.15
57         clap_complete@4.5.24
58         clap_complete_fig@4.5.2
59         clap_complete_nushell@4.5.3
60         clap_derive@4.5.13
61         clap_lex@0.7.2
62         clipboard-win@5.4.0
63         color_quant@1.1.0
64         colorchoice@1.0.2
65         compact_str@0.8.0
66         concurrent-queue@2.5.0
67         console@0.15.8
68         core-foundation-sys@0.8.6
69         crc32fast@1.4.2
70         crossbeam-channel@0.5.13
71         crossbeam-deque@0.8.5
72         crossbeam-epoch@0.9.18
73         crossbeam-utils@0.8.20
74         crossterm@0.28.1
75         crossterm_winapi@0.9.1
76         crunchy@0.2.2
77         crypto-common@0.1.6
78         darling@0.20.9
79         darling_core@0.20.9
80         darling_macro@0.20.9
81         deranged@0.3.11
82         derive_builder@0.20.0
83         derive_builder_core@0.20.0
84         derive_builder_macro@0.20.0
85         digest@0.10.7
86         dirs-sys@0.4.1
87         dirs@5.0.1
88         either@1.13.0
89         encode_unicode@0.3.6
90         equivalent@1.0.1
91         erased-serde@0.4.5
92         errno@0.3.9
93         error-code@3.2.0
94         event-listener@4.0.3
95         exr@1.72.0
96         fdeflate@0.3.4
97         fdlimit@0.3.0
98         filedescriptor@0.8.2
99         filetime@0.2.23
100         flate2@1.0.30
101         flume@0.11.0
102         fnv@1.0.7
103         form_urlencoded@1.2.1
104         fsevent-sys@4.1.0
105         futures-channel@0.3.30
106         futures-core@0.3.30
107         futures-executor@0.3.30
108         futures-io@0.3.30
109         futures-macro@0.3.30
110         futures-sink@0.3.30
111         futures-task@0.3.30
112         futures-util@0.3.30
113         futures@0.3.30
114         generic-array@0.14.7
115         getrandom@0.2.15
116         getset@0.1.2
117         gif@0.13.1
118         gimli@0.29.0
119         globset@0.4.14
120         half@2.4.1
121         hashbrown@0.14.5
122         heck@0.5.0
123         hermit-abi@0.3.9
124         home@0.5.9
125         iana-time-zone-haiku@0.1.2
126         iana-time-zone@0.1.60
127         ident_case@1.0.1
128         idna@0.5.0
129         image-webp@0.1.3
130         image@0.25.2
131         imagesize@0.13.0
132         imgref@1.10.1
133         indexmap@2.5.0
134         inotify-sys@0.1.5
135         inotify@0.10.2
136         instability@0.3.2
137         instant@0.1.13
138         interpolate_name@0.2.4
139         is_terminal_polyfill@1.70.1
140         itertools@0.12.1
141         itertools@0.13.0
142         itoa@1.0.11
143         jobserver@0.1.32
144         jpeg-decoder@0.3.1
145         js-sys@0.3.69
146         kamadak-exif@0.5.5
147         kqueue-sys@1.0.4
148         kqueue@1.0.8
149         lazy_static@1.5.0
150         lebe@0.5.2
151         libc@0.2.158
152         libfuzzer-sys@0.4.7
153         libredox@0.1.3
154         line-wrap@0.2.0
155         linux-raw-sys@0.4.14
156         lock_api@0.4.12
157         log@0.4.22
158         loop9@0.1.5
159         lru@0.12.4
160         lua-src@546.0.2
161         luajit-src@210.5.8+5790d25
162         maybe-rayon@0.1.1
163         md-5@0.10.6
164         memchr@2.7.4
165         minimal-lexical@0.2.1
166         miniz_oxide@0.7.4
167         mio@0.8.11
168         mio@1.0.2
169         mlua-sys@0.6.1
170         mlua@0.9.9
171         mlua_derive@0.9.3
172         mutate_once@0.1.1
173         new_debug_unreachable@1.0.6
174         nom@7.1.3
175         noop_proc_macro@0.3.0
176         notify-fork@6.1.1
177         notify-types-fork@1.0.0
178         nu-ansi-term@0.46.0
179         num-bigint@0.4.6
180         num-conv@0.1.0
181         num-derive@0.4.2
182         num-integer@0.1.46
183         num-rational@0.4.2
184         num-traits@0.2.19
185         num_threads@0.1.7
186         objc-sys@0.3.5
187         objc2-encode@4.0.3
188         objc2-foundation@0.2.2
189         objc2@0.5.2
190         object@0.36.1
191         once_cell@1.19.0
192         onig@6.4.0
193         onig_sys@69.8.1
194         option-ext@0.2.0
195         ordered-float@2.10.1
196         overload@0.1.1
197         parking@2.2.0
198         parking_lot@0.12.3
199         parking_lot_core@0.9.10
200         paste@1.0.15
201         percent-encoding@2.3.1
202         pin-project-lite@0.2.14
203         pin-utils@0.1.0
204         pkg-config@0.3.30
205         plist@1.6.1
206         png@0.17.13
207         powerfmt@0.2.0
208         ppv-lite86@0.2.17
209         proc-macro-error-attr@1.0.4
210         proc-macro-error@1.0.4
211         proc-macro2@1.0.86
212         profiling-procmacros@1.0.15
213         profiling@1.0.15
214         qoi@0.4.1
215         quick-error@2.0.1
216         quick-xml@0.31.0
217         quote@1.0.37
218         rand@0.8.5
219         rand_chacha@0.3.1
220         rand_core@0.6.4
221         ratatui@0.28.1
222         rav1e@0.7.1
223         ravif@0.11.9
224         rayon-core@1.12.1
225         rayon@1.10.0
226         redox_syscall@0.4.1
227         redox_syscall@0.5.2
228         redox_users@0.4.5
229         regex-automata@0.4.7
230         regex-syntax@0.8.4
231         regex@1.10.6
232         rgb@0.8.45
233         rustc-demangle@0.1.24
234         rustc-hash@2.0.0
235         rustix@0.38.35
236         rustversion@1.0.17
237         ryu@1.0.18
238         same-file@1.0.6
239         scopeguard@1.2.0
240         serde-value@0.7.0
241         serde@1.0.209
242         serde_derive@1.0.209
243         serde_json@1.0.127
244         serde_spanned@0.6.7
245         sharded-slab@0.1.7
246         shell-words@1.1.0
247         shlex@1.3.0
248         signal-hook-mio@0.2.4
249         signal-hook-registry@1.4.2
250         signal-hook-tokio@0.3.1
251         signal-hook@0.3.17
252         simd-adler32@0.3.7
253         simd_helpers@0.1.0
254         simdutf8@0.1.4
255         slab@0.4.9
256         smallvec@1.13.2
257         socket2@0.5.7
258         spin@0.9.8
259         static_assertions@1.1.0
260         strsim@0.11.1
261         strum@0.26.3
262         strum_macros@0.26.4
263         syn@1.0.109
264         syn@2.0.76
265         syntect@5.2.0
266         system-deps@6.2.2
267         target-lexicon@0.12.15
268         thiserror-impl@1.0.63
269         thiserror@1.0.63
270         thread_local@1.1.8
271         tiff@0.9.1
272         tikv-jemalloc-sys@0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7
273         tikv-jemallocator@0.6.0
274         time-core@0.1.2
275         time-macros@0.2.18
276         time@0.3.36
277         tinyvec@1.6.0
278         tinyvec_macros@0.1.1
279         tokio-macros@2.4.0
280         tokio-stream@0.1.15
281         tokio-util@0.7.11
282         tokio@1.40.0
283         toml@0.8.19
284         toml_datetime@0.6.8
285         toml_edit@0.22.20
286         tracing-appender@0.2.3
287         tracing-attributes@0.1.27
288         tracing-core@0.1.32
289         tracing-log@0.2.0
290         tracing-subscriber@0.3.18
291         tracing@0.1.40
292         trash@5.1.1
293         typeid@1.0.0
294         typenum@1.17.0
295         unicode-bidi@0.3.15
296         unicode-ident@1.0.12
297         unicode-normalization@0.1.23
298         unicode-segmentation@1.11.0
299         unicode-truncate@1.1.0
300         unicode-width@0.1.13
301         url@2.5.2
302         urlencoding@2.1.3
303         utf8parse@0.2.2
304         uzers@0.12.1
305         v_frame@0.3.8
306         validator@0.18.1
307         validator_derive@0.18.1
308         valuable@0.1.0
309         vergen-gitcl@1.0.0
310         vergen-lib@0.1.3
311         vergen@9.0.0
312         version-compare@0.2.0
313         version_check@0.9.5
314         walkdir@2.5.0
315         wasi@0.11.0+wasi-snapshot-preview1
316         wasm-bindgen-backend@0.2.93
317         wasm-bindgen-macro-support@0.2.93
318         wasm-bindgen-macro@0.2.93
319         wasm-bindgen-shared@0.2.93
320         wasm-bindgen@0.2.93
321         weezl@0.1.8
322         which@6.0.1
323         winapi-i686-pc-windows-gnu@0.4.0
324         winapi-util@0.1.8
325         winapi-x86_64-pc-windows-gnu@0.4.0
326         winapi@0.3.9
327         windows-core@0.52.0
328         windows-core@0.56.0
329         windows-implement@0.56.0
330         windows-interface@0.56.0
331         windows-result@0.1.2
332         windows-sys@0.48.0
333         windows-sys@0.52.0
334         windows-sys@0.59.0
335         windows-targets@0.48.5
336         windows-targets@0.52.6
337         windows@0.56.0
338         windows_aarch64_gnullvm@0.48.5
339         windows_aarch64_gnullvm@0.52.6
340         windows_aarch64_msvc@0.48.5
341         windows_aarch64_msvc@0.52.6
342         windows_i686_gnu@0.48.5
343         windows_i686_gnu@0.52.6
344         windows_i686_gnullvm@0.52.6
345         windows_i686_msvc@0.48.5
346         windows_i686_msvc@0.52.6
347         windows_x86_64_gnu@0.48.5
348         windows_x86_64_gnu@0.52.6
349         windows_x86_64_gnullvm@0.48.5
350         windows_x86_64_gnullvm@0.52.6
351         windows_x86_64_msvc@0.48.5
352         windows_x86_64_msvc@0.52.6
353         winnow@0.6.18
354         winsafe@0.0.19
355         yazi-prebuild@0.1.2
356         zerocopy-derive@0.7.35
357         zerocopy@0.7.35
358         zune-core@0.4.12
359         zune-inflate@0.2.54
360         zune-jpeg@0.4.13
363 inherit cargo desktop shell-completion xdg
365 DESCRIPTION="Blazing fast terminal file manager written in Rust, based on async I/O."
366 HOMEPAGE="https://yazi-rs.github.io"
367 SRC_URI="
368         https://github.com/sxyazi/yazi/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
369         ${CARGO_CRATE_URIS}
372 LICENSE="MIT"
373 # Dependent crate licenses
374 LICENSE+="
375         Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD Boost-1.0
376         CC0-1.0 ISC MIT MPL-2.0 Unicode-DFS-2016
378 SLOT="0"
379 KEYWORDS="~amd64"
381 IUSE="+cli"
383 QA_FLAGS_IGNORED="
384         usr/bin/ya.*
387 DOCS=(
388         README.md
391 src_prepare() {
392         export YAZI_GEN_COMPLETIONS=true
393         sed -i -r 's/strip\s+= true/strip = false/' Cargo.toml || die "Sed failed!"
394         eapply_user
397 src_compile() {
398         cargo_src_compile --locked
399         use cli && cargo_src_compile -p "${PN}-cli"
402 src_install() {
403         dobin "$(cargo_target_dir)/${PN}"
404         use cli && dobin "$(cargo_target_dir)/ya"
406         newbashcomp "${S}/yazi-boot/completions/${PN}.bash" "${PN}"
407         dozshcomp "${S}/yazi-boot/completions/_${PN}"
408         dofishcomp "${S}/yazi-boot/completions/${PN}.fish"
410         if use cli
411         then
412                 newbashcomp "${S}/yazi-cli/completions/ya.bash" "ya"
413                 dozshcomp "${S}/yazi-cli/completions/_ya"
414                 dofishcomp "${S}/yazi-cli/completions/ya.fish"
415         fi
417         domenu "assets/${PN}.desktop"
418         einstalldocs