blob: a57295b2dea69e78649d3db518a67eae8193dfa0 (
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
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Autogenerated by pycargoebuild 0.15.0
EAPI=8
RUST_MIN_VER="1.91.0"
CRATES="
ahash@0.8.12
aho-corasick@1.1.4
annotate-snippets@0.12.13
anstyle@1.0.14
anyhow@1.0.102
arraydeque@0.5.1
assert_cmd@2.2.0
assert_fs@1.1.3
autocfg@1.5.0
base64@0.22.1
bit-set@0.8.0
bit-vec@0.8.0
bitflags@2.11.0
bstr@1.12.1
bumpalo@3.20.2
cc@1.2.58
cfg-if@1.0.4
clap@4.6.0
clap_builder@4.6.0
clap_complete@4.6.0
clap_lex@1.1.0
console@0.16.3
crossbeam-channel@0.5.15
crossbeam-deque@0.8.6
crossbeam-epoch@0.9.18
crossbeam-utils@0.8.21
ctor-proc-macro@0.0.6
ctor@0.4.3
difflib@0.4.0
directories@6.0.0
dirs-sys@0.5.0
doc-comment@0.3.4
downcast@0.11.0
dtor-proc-macro@0.0.5
dtor@0.0.6
encode_unicode@1.0.0
encoding_rs@0.8.35
encoding_rs_io@0.1.7
env_filter@1.0.1
env_logger@0.11.10
equivalent@1.0.2
errno@0.3.14
fastrand@2.3.0
find-msvc-tools@0.1.9
float-cmp@0.10.0
fnv@1.0.7
foldhash@0.1.5
fragile@2.0.1
getrandom@0.2.17
getrandom@0.3.4
getrandom@0.4.2
globset@0.4.18
globwalk@0.9.1
hashbrown@0.15.5
hashbrown@0.16.1
heck@0.5.0
id-arena@2.3.0
ignore@0.4.25
indexmap@2.13.0
insta@1.47.2
itoa@1.0.18
jiff-static@0.2.23
jiff@0.2.23
js-sys@0.3.93
leb128fmt@0.1.0
libc@0.2.183
libredox@0.1.15
linux-raw-sys@0.12.1
log@0.4.29
memchr@2.8.0
mockall@0.14.0
mockall_derive@0.14.0
nohash-hasher@0.2.0
normalize-line-endings@0.3.0
num-traits@0.2.19
once_cell@1.21.4
option-ext@0.2.0
portable-atomic-util@0.2.6
portable-atomic@1.13.1
ppv-lite86@0.2.21
predicates-core@1.0.10
predicates-tree@1.0.13
predicates@3.1.4
prettyplease@0.2.37
proc-macro2@1.0.106
proptest@1.11.0
quick-error@1.2.3
quote@1.0.45
r-efi@5.3.0
r-efi@6.0.0
rand@0.9.2
rand_chacha@0.9.0
rand_core@0.9.5
rand_xorshift@0.4.0
redox_users@0.5.2
regex-automata@0.4.14
regex-syntax@0.8.10
regex@1.12.3
rustix@1.1.4
rustversion@1.0.22
rusty-fork@0.3.1
same-file@1.0.6
saphyr-parser-bw@0.0.610
semver@1.0.27
serde-saphyr@0.0.22
serde@1.0.228
serde_core@1.0.228
serde_derive@1.0.228
serde_json@1.0.149
shell-words@1.1.1
shlex@1.3.0
signal-hook-registry@1.4.8
signal-hook@0.3.18
similar@2.7.0
smallvec@1.15.1
strsim@0.11.1
syn@2.0.117
tempfile@3.27.0
termtree@0.5.1
thiserror-impl@2.0.18
thiserror@2.0.18
unarray@0.1.4
unicode-ident@1.0.24
unicode-width@0.2.2
unicode-xid@0.2.6
version_check@0.9.5
wait-timeout@0.2.1
walkdir@2.5.0
wasi@0.11.1+wasi-snapshot-preview1
wasip2@1.0.2+wasi-0.2.9
wasip3@0.4.0+wasi-0.3.0-rc-2026-01-06
wasm-bindgen-macro-support@0.2.116
wasm-bindgen-macro@0.2.116
wasm-bindgen-shared@0.2.116
wasm-bindgen@0.2.116
wasm-encoder@0.244.0
wasm-metadata@0.244.0
wasmparser@0.244.0
which@8.0.2
winapi-util@0.1.11
windows-link@0.2.1
windows-sys@0.61.2
wit-bindgen-core@0.51.0
wit-bindgen-rust-macro@0.51.0
wit-bindgen-rust@0.51.0
wit-bindgen@0.51.0
wit-component@0.244.0
wit-parser@0.244.0
zerocopy-derive@0.8.48
zerocopy@0.8.48
zmij@1.0.21
"
inherit cargo prefix sysroot
DESCRIPTION="A tool that generates a compilation database for clang tooling"
HOMEPAGE="https://github.com/rizsotto/Bear"
SRC_URI="
https://github.com/rizsotto/Bear/archive/${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}
"
S="${WORKDIR}/${P^}"
LICENSE="GPL-3+"
# Dependent crate licenses
LICENSE+=" Apache-2.0 BSD MIT MPL-2.0 Unicode-3.0 ZLIB"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="app-shells/bash" # for the wrapper in /usr/bin
BDEPEND="llvm-core/lld"
QA_FLAGS_IGNORED="
usr/libexec/bear/.*/libexec.so
usr/libexec/bear/bin/bear-driver
usr/libexec/bear/bin/bear-wrapper
"
PATCHES=(
"${FILESDIR}/bear-4.1.1-libexec.patch"
)
src_compile() {
cargo_src_compile
sysroot_try_run_prefixed \
"$(cargo_target_dir)"/generate-completions \
"$(cargo_target_dir)"/completions
}
src_install() {
SRCDIR="$(cargo_target_dir)" \
DESTDIR="${D}" \
PREFIX="${EPREFIX}/usr" \
scripts/install.sh
rm "${ED}"/usr/share/bear/uninstall.sh || die
rmdir "${ED}"/usr/share/bear || die
rm -r "${ED}"/usr/share/doc || die
local DOCS=( *.md )
default
# use /bin/sh from prefix
hprefixify "${ED}"/usr/bin/bear
}
|