1 |
|
# Copyright 1999-2022 Gentoo Authors
|
|
1 |
# Copyright 1999-2023 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
6 |
CRATES="
|
7 |
|
aho-corasick-0.7.18
|
8 |
|
ansi_term-0.12.1
|
9 |
|
anyhow-1.0.57
|
10 |
|
argmax-0.3.0
|
|
7 |
aho-corasick-0.7.19
|
|
8 |
android_system_properties-0.1.5
|
|
9 |
anyhow-1.0.68
|
|
10 |
argmax-0.3.1
|
11 |
11 |
atty-0.2.14
|
12 |
12 |
autocfg-1.1.0
|
13 |
13 |
bitflags-1.3.2
|
14 |
14 |
bstr-0.2.17
|
|
15 |
bumpalo-3.11.1
|
15 |
16 |
cc-1.0.73
|
16 |
17 |
cfg-if-1.0.0
|
17 |
|
chrono-0.4.19
|
18 |
|
clap-3.1.18
|
19 |
|
clap_complete-3.1.4
|
20 |
|
clap_lex-0.2.0
|
21 |
|
crossbeam-utils-0.8.8
|
22 |
|
ctrlc-3.2.2
|
23 |
|
diff-0.1.12
|
|
18 |
chrono-0.4.23
|
|
19 |
clap-4.1.1
|
|
20 |
clap_complete-4.0.6
|
|
21 |
clap_derive-4.1.0
|
|
22 |
clap_lex-0.3.0
|
|
23 |
codespan-reporting-0.11.1
|
|
24 |
core-foundation-sys-0.8.3
|
|
25 |
crossbeam-channel-0.5.6
|
|
26 |
crossbeam-utils-0.8.12
|
|
27 |
ctrlc-3.2.3
|
|
28 |
cxx-1.0.82
|
|
29 |
cxx-build-1.0.82
|
|
30 |
cxxbridge-flags-1.0.82
|
|
31 |
cxxbridge-macro-1.0.82
|
|
32 |
diff-0.1.13
|
24 |
33 |
dirs-next-2.0.0
|
25 |
34 |
dirs-sys-next-0.1.2
|
26 |
|
filetime-0.2.16
|
|
35 |
errno-0.2.8
|
|
36 |
errno-dragonfly-0.1.2
|
|
37 |
faccess-0.2.4
|
|
38 |
fastrand-1.8.0
|
|
39 |
filetime-0.2.18
|
27 |
40 |
fnv-1.0.7
|
28 |
41 |
fs_extra-1.2.0
|
29 |
|
fuchsia-cprng-0.1.1
|
30 |
|
getrandom-0.2.6
|
31 |
|
globset-0.4.8
|
32 |
|
hashbrown-0.11.2
|
|
42 |
getrandom-0.2.8
|
|
43 |
globset-0.4.9
|
|
44 |
heck-0.4.0
|
33 |
45 |
hermit-abi-0.1.19
|
|
46 |
hermit-abi-0.2.6
|
34 |
47 |
humantime-2.1.0
|
|
48 |
iana-time-zone-0.1.53
|
|
49 |
iana-time-zone-haiku-0.1.1
|
35 |
50 |
ignore-0.4.18
|
36 |
|
indexmap-1.8.2
|
37 |
|
jemalloc-sys-0.5.0+5.3.0
|
|
51 |
instant-0.1.12
|
|
52 |
io-lifetimes-0.7.4
|
|
53 |
io-lifetimes-1.0.4
|
|
54 |
is-terminal-0.4.2
|
|
55 |
jemalloc-sys-0.5.2+5.3.0-patched
|
38 |
56 |
jemallocator-0.5.0
|
|
57 |
js-sys-0.3.60
|
39 |
58 |
lazy_static-1.4.0
|
40 |
|
libc-0.2.126
|
|
59 |
libc-0.2.137
|
|
60 |
link-cplusplus-1.0.7
|
|
61 |
linux-raw-sys-0.0.46
|
|
62 |
linux-raw-sys-0.1.4
|
41 |
63 |
log-0.4.17
|
42 |
|
lscolors-0.10.0
|
|
64 |
lscolors-0.13.0
|
43 |
65 |
memchr-2.5.0
|
44 |
|
memoffset-0.6.5
|
45 |
|
nix-0.23.1
|
46 |
|
nix-0.24.1
|
|
66 |
nix-0.24.3
|
|
67 |
nix-0.25.1
|
|
68 |
nix-0.26.2
|
47 |
69 |
normpath-0.3.2
|
|
70 |
nu-ansi-term-0.46.0
|
48 |
71 |
num-integer-0.1.45
|
49 |
72 |
num-traits-0.2.15
|
50 |
|
num_cpus-1.13.1
|
51 |
|
once_cell-1.12.0
|
52 |
|
os_str_bytes-6.1.0
|
|
73 |
num_cpus-1.15.0
|
|
74 |
once_cell-1.17.0
|
|
75 |
os_str_bytes-6.3.0
|
|
76 |
overload-0.1.1
|
53 |
77 |
proc-macro-error-1.0.4
|
54 |
78 |
proc-macro-error-attr-1.0.4
|
55 |
|
proc-macro2-1.0.39
|
56 |
|
quote-1.0.18
|
57 |
|
rand-0.4.6
|
58 |
|
rand_core-0.3.1
|
59 |
|
rand_core-0.4.2
|
60 |
|
rdrand-0.4.0
|
61 |
|
redox_syscall-0.2.13
|
|
79 |
proc-macro2-1.0.47
|
|
80 |
quote-1.0.21
|
|
81 |
redox_syscall-0.2.16
|
62 |
82 |
redox_users-0.4.3
|
63 |
|
regex-1.5.6
|
64 |
|
regex-syntax-0.6.26
|
|
83 |
regex-1.7.1
|
|
84 |
regex-syntax-0.6.28
|
65 |
85 |
remove_dir_all-0.5.3
|
|
86 |
rustix-0.35.12
|
|
87 |
rustix-0.36.6
|
66 |
88 |
same-file-1.0.6
|
|
89 |
scratch-1.0.2
|
|
90 |
static_assertions-1.1.0
|
67 |
91 |
strsim-0.10.0
|
68 |
|
syn-1.0.95
|
69 |
|
tempdir-0.3.7
|
|
92 |
syn-1.0.103
|
|
93 |
tempfile-3.3.0
|
70 |
94 |
termcolor-1.1.3
|
71 |
|
terminal_size-0.1.17
|
72 |
|
test-case-2.1.0
|
73 |
|
test-case-macros-2.1.0
|
74 |
|
textwrap-0.15.0
|
75 |
|
thiserror-1.0.31
|
76 |
|
thiserror-impl-1.0.31
|
|
95 |
terminal_size-0.2.1
|
|
96 |
test-case-2.2.2
|
|
97 |
test-case-macros-2.2.2
|
|
98 |
thiserror-1.0.37
|
|
99 |
thiserror-impl-1.0.37
|
77 |
100 |
thread_local-1.1.4
|
78 |
|
time-0.1.43
|
79 |
|
unicode-ident-1.0.0
|
|
101 |
unicode-ident-1.0.5
|
|
102 |
unicode-width-0.1.10
|
80 |
103 |
users-0.11.0
|
81 |
104 |
version_check-0.9.4
|
82 |
105 |
walkdir-2.3.2
|
83 |
|
wasi-0.10.2+wasi-snapshot-preview1
|
|
106 |
wasi-0.11.0+wasi-snapshot-preview1
|
|
107 |
wasm-bindgen-0.2.83
|
|
108 |
wasm-bindgen-backend-0.2.83
|
|
109 |
wasm-bindgen-macro-0.2.83
|
|
110 |
wasm-bindgen-macro-support-0.2.83
|
|
111 |
wasm-bindgen-shared-0.2.83
|
84 |
112 |
winapi-0.3.9
|
85 |
113 |
winapi-i686-pc-windows-gnu-0.4.0
|
86 |
114 |
winapi-util-0.1.5
|
87 |
115 |
winapi-x86_64-pc-windows-gnu-0.4.0
|
|
116 |
windows-sys-0.36.1
|
|
117 |
windows-sys-0.42.0
|
|
118 |
windows_aarch64_gnullvm-0.42.0
|
|
119 |
windows_aarch64_msvc-0.36.1
|
|
120 |
windows_aarch64_msvc-0.42.0
|
|
121 |
windows_i686_gnu-0.36.1
|
|
122 |
windows_i686_gnu-0.42.0
|
|
123 |
windows_i686_msvc-0.36.1
|
|
124 |
windows_i686_msvc-0.42.0
|
|
125 |
windows_x86_64_gnu-0.36.1
|
|
126 |
windows_x86_64_gnu-0.42.0
|
|
127 |
windows_x86_64_gnullvm-0.42.0
|
|
128 |
windows_x86_64_msvc-0.36.1
|
|
129 |
windows_x86_64_msvc-0.42.0
|
88 |
130 |
"
|
89 |
131 |
|
90 |
132 |
inherit bash-completion-r1 cargo
|
... | ... | |
92 |
134 |
DESCRIPTION="Alternative to find that provides sensible defaults for 80% of the use cases"
|
93 |
135 |
HOMEPAGE="https://github.com/sharkdp/fd"
|
94 |
136 |
SRC_URI="https://github.com/sharkdp/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
|
137 |
https://github.com/sharkdp/${PN}/releases/download/v${PV}/${PN}-v${PV}-i686-unknown-linux-gnu.tar.gz
|
95 |
138 |
$(cargo_crate_uris)"
|
96 |
139 |
|
97 |
|
LICENSE="Apache-2.0 BSD-2 ISC MIT Unlicense"
|
|
140 |
LICENSE="Apache-2.0 BSD MIT Unicode-DFS-2016"
|
|
141 |
|
98 |
142 |
SLOT="0"
|
99 |
143 |
KEYWORDS="amd64 arm64 ppc64 x86"
|
100 |
144 |
IUSE=""
|
... | ... | |
105 |
149 |
QA_FLAGS_IGNORED="/usr/bin/fd"
|
106 |
150 |
|
107 |
151 |
src_compile() {
|
108 |
|
export SHELL_COMPLETIONS_DIR="${T}/shell_completions"
|
109 |
152 |
# this enables to build with system jemallloc, but musl targets do not use it at all
|
110 |
153 |
if ! use elibc_musl; then
|
111 |
154 |
export JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)/libjemalloc.so"
|
... | ... | |
117 |
160 |
src_install() {
|
118 |
161 |
cargo_src_install
|
119 |
162 |
|
120 |
|
newbashcomp "${T}"/shell_completions/fd.bash fd
|
|
163 |
# pre-downloaded to avoid generation via running itself.
|
|
164 |
local compdir="${WORKDIR}/${PN}-v${PV}-i686-unknown-linux-gnu"
|
|
165 |
|
|
166 |
newbashcomp "${compdir}"/autocomplete/fd.bash fd
|
|
167 |
|
121 |
168 |
insinto /usr/share/fish/vendor_completions.d
|
122 |
|
doins "${T}"/shell_completions/fd.fish
|
|
169 |
doins "${compdir}"/autocomplete/fd.fish
|
123 |
170 |
|
124 |
171 |
# zsh completion is in contrib
|
125 |
172 |
insinto /usr/share/zsh/site-functions
|