blob: 78bd8686dc0f9124d6886ee02cd548546cc4962c (
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
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
314
315
316
317
318
319
320
321
322
323
324
325
326
327
|
# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Autogenerated by pycargoebuild 0.13.4
EAPI=8
CRATES="
adler2@2.0.0
aho-corasick@1.1.3
android-tzdata@0.1.1
android_system_properties@0.1.5
arbitrary@1.4.1
attohttpc@0.28.2
autocfg@1.4.0
base64@0.22.1
bitflags@2.8.0
block-buffer@0.10.4
bstr@1.11.3
bumpalo@3.16.0
byteorder@1.5.0
bytes@1.9.0
bzip2-sys@0.1.11+1.0.8
bzip2@0.4.4
camino@1.1.9
cargo-platform@0.1.9
cargo_metadata@0.19.1
cc@1.2.10
cfg-if@1.0.0
cfg_aliases@0.2.1
chrono@0.4.39
ci_info@0.14.14
cliparser@0.1.2
colored@2.2.0
colored@3.0.0
core-foundation-sys@0.8.7
core-foundation@0.9.4
cpufeatures@0.2.16
crc32fast@1.4.2
crossbeam-deque@0.8.6
crossbeam-epoch@0.9.18
crossbeam-utils@0.8.21
crypto-common@0.1.6
ctrlc@3.4.5
deranged@0.3.11
derive_arbitrary@1.4.1
digest@0.10.7
dirs-next@2.0.0
dirs-sys-next@0.1.2
displaydoc@0.2.5
dissimilar@1.0.9
duckscript@0.10.0
duckscriptsdk@0.11.1
dunce@1.0.5
either@1.13.0
encoding_rs@0.8.35
envmnt@0.10.4
equivalent@1.0.1
errno@0.3.10
evalexpr@11.3.1
expect-test@1.5.1
fastrand@2.3.0
fern@0.7.1
fixedbitset@0.5.7
flate2@1.0.35
fnv@1.0.7
foreign-types-shared@0.1.1
foreign-types@0.3.2
form_urlencoded@1.2.1
fs_extra@1.3.0
fsio@0.4.0
futures-core@0.3.31
futures-io@0.3.31
futures-lite@2.6.0
generic-array@0.14.7
getrandom@0.2.15
git_info@0.1.3
glob@0.3.2
globset@0.4.15
hashbrown@0.12.3
hashbrown@0.15.2
heck@0.5.0
hermit-abi@0.3.9
hex@0.4.3
home@0.5.11
http@1.2.0
iana-time-zone-haiku@0.1.2
iana-time-zone@0.1.61
icu_collections@1.5.0
icu_locid@1.5.0
icu_locid_transform@1.5.0
icu_locid_transform_data@1.5.0
icu_normalizer@1.5.0
icu_normalizer_data@1.5.0
icu_properties@1.5.1
icu_properties_data@1.5.0
icu_provider@1.5.0
icu_provider_macros@1.5.0
idna@1.0.3
idna_adapter@1.2.0
ignore@0.4.23
indexmap@1.9.3
indexmap@2.7.0
itertools@0.14.0
itoa@1.0.14
java-properties@2.0.0
js-sys@0.3.77
lazy-regex-proc_macros@3.4.1
lazy-regex@3.4.1
lazy_static@1.5.0
lenient_semver@0.4.2
lenient_semver_parser@0.4.2
lenient_semver_version_builder@0.4.2
libc@0.2.169
libredox@0.1.3
linux-raw-sys@0.4.15
litemap@0.7.4
lockfree-object-pool@0.1.6
log@0.4.25
memchr@2.7.4
miniz_oxide@0.8.3
native-tls@0.2.12
nix@0.29.0
nu-ansi-term@0.50.1
num-conv@0.1.0
num-traits@0.2.19
num_cpus@1.16.0
once_cell@1.20.2
openssl-macros@0.1.1
openssl-probe@0.1.5
openssl-sys@0.9.104
openssl@0.10.68
parking@2.2.1
percent-encoding@2.3.1
petgraph@0.7.1
pin-project-lite@0.2.16
pkg-config@0.3.31
powerfmt@0.2.0
ppv-lite86@0.2.20
proc-macro2@1.0.93
quote@1.0.38
rand@0.8.5
rand_chacha@0.3.1
rand_core@0.6.4
redox_syscall@0.5.8
redox_users@0.4.6
regex-automata@0.4.9
regex-syntax@0.8.5
regex@1.11.1
ring@0.17.8
run_script@0.11.0
rust_info@0.3.3
rustix@0.38.43
rustls-pki-types@1.10.1
rustls-webpki@0.102.8
rustls@0.23.21
rustversion@1.0.19
ryu@1.0.18
same-file@1.0.6
schannel@0.1.27
security-framework-sys@2.14.0
security-framework@2.11.1
semver@1.0.24
serde@1.0.217
serde_derive@1.0.217
serde_ignored@0.1.10
serde_json@1.0.135
serde_spanned@0.6.8
sha2@0.10.8
shell2batch@0.4.5
shlex@1.3.0
simd-adler32@0.3.7
smallvec@1.13.2
spin@0.9.8
stable_deref_trait@1.2.0
strip-ansi-escapes@0.2.1
strum_macros@0.26.4
subtle@2.6.1
suppaftp@6.0.7
syn@2.0.96
synstructure@0.13.1
tempfile@3.15.0
thiserror-impl@1.0.69
thiserror-impl@2.0.11
thiserror@1.0.69
thiserror@2.0.11
time-core@0.1.2
time@0.3.37
tinystr@0.7.6
toml@0.8.19
toml_datetime@0.6.8
toml_edit@0.22.22
typenum@1.17.0
uname@0.1.1
unicode-ident@1.0.14
untrusted@0.9.0
url@2.5.4
utf16_iter@1.0.5
utf8_iter@1.0.4
vcpkg@0.2.15
version_check@0.9.5
vte@0.14.1
walkdir@2.5.0
wasi@0.11.0+wasi-snapshot-preview1
wasite@0.1.0
wasm-bindgen-backend@0.2.100
wasm-bindgen-macro-support@0.2.100
wasm-bindgen-macro@0.2.100
wasm-bindgen-shared@0.2.100
wasm-bindgen@0.2.100
web-sys@0.3.77
webpki-roots@0.26.7
which@6.0.3
whoami@1.5.2
winapi-i686-pc-windows-gnu@0.4.0
winapi-util@0.1.9
winapi-x86_64-pc-windows-gnu@0.4.0
winapi@0.3.9
windows-core@0.52.0
windows-sys@0.52.0
windows-sys@0.59.0
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@0.6.24
winsafe@0.0.19
write16@1.0.0
writeable@0.5.5
yoke-derive@0.7.5
yoke@0.7.5
zerocopy-derive@0.7.35
zerocopy@0.7.35
zerofrom-derive@0.1.5
zerofrom@0.1.5
zeroize@1.8.1
zerovec-derive@0.10.3
zerovec@0.10.4
zip@2.2.2
zopfli@0.8.1
"
inherit cargo
DESCRIPTION="Rust task runner and build tool"
HOMEPAGE="https://sagiegurari.github.io/cargo-make/"
SRC_URI="
https://github.com/sagiegurari/cargo-make/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}
"
LICENSE="Apache-2.0"
# Dependent crate licenses
LICENSE+=" Apache-2.0 BSD Boost-1.0 ISC MIT MPL-2.0 Unicode-3.0"
# ring
LICENSE+=" openssl"
SLOT="0"
KEYWORDS="~amd64"
IUSE="openssl +rustls test"
REQUIRED_USE="?? ( openssl rustls )"
RESTRICT="!test? ( test )"
DEPEND="openssl? ( dev-libs/openssl:= )"
RDEPEND="${DEPEND}"
BDEPEND="
virtual/pkgconfig
test? (
dev-build/cargo-make
dev-util/rust-script
)
"
QA_FLAGS_IGNORED="usr/bin/.*"
src_configure() {
local myfeatures=(
$(usev openssl tls-native)
$(usev rustls tls-rustls)
)
cargo_src_configure --no-default-features
}
src_test() {
local CARGO_SKIP=(
# Test checks that S directory name matches PN. This fails as expected.
environment::mod_test::get_base_directory_name_valid
# Not a git repo
io::io_test::get_path_list_dirs_with_gitignore
# Requires working rustup https://bugs.gentoo.org/834741
installer::crate_installer::crate_installer_test::install_test_with_toolchain_test
installer::crate_installer::crate_installer_test::invoke_cargo_install_with_toolchain_test
installer::crate_version_check::crate_version_check_test::get_crate_version_for_rustup_component
installer::rustup_component_installer::rustup_component_installer_test::install_with_toolchain_test
installer::rustup_component_installer::rustup_component_installer_test::is_installed_with_toolchain_non_zero
toolchain::toolchain_test::get_cargo_binary_path_valid
toolchain::toolchain_test::wrap_command_empty_args
toolchain::toolchain_test::wrap_command_none_args
toolchain::toolchain_test::wrap_command_with_args
toolchain::toolchain_test::wrap_command_with_args_and_simple_variable_toolchain
# Requires network access
installer::cargo_plugin_installer::cargo_plugin_installer_test::install_crate_already_installed_cargo_make_without_check
installer::crate_installer::crate_installer_test::install_already_installed_crate_only_min_version_equal
installer::crate_installer::crate_installer_test::install_already_installed_crate_only_min_version_smaller
installer::crate_installer::crate_installer_test::install_already_installed_crate_only_version_equal
# cargo.eclass removes .crates.toml, which is needed by crate version checks
installer::crate_version_check::crate_version_check_test::is_min_version_valid_newer_version
installer::crate_version_check::crate_version_check_test::is_version_valid_newer_version
installer::crate_version_check::crate_version_check_test::is_version_valid_old_version
installer::crate_version_check::crate_version_check_test::is_min_version_valid_same_version
installer::crate_version_check::crate_version_check_test::is_version_valid_same_version
)
# https://github.com/sagiegurari/cargo-make/issues/573#issuecomment-886147300
set -- cargo make --env CARGO_MAKE_CARGO_BUILD_TEST_FLAGS="-- ${CARGO_SKIP[*]/#/--skip }" test
einfo "${@}"
"${@}" || die "cargo make test failed"
}
src_install() {
cargo_src_install
dodoc README.md
}
|