Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sat, 03 Jul 2021 07:03:11
Message-Id: 1625295550.d778c17e6e4ddf34b48bd594ed6ba31681bb88a9.gyakovlev@gentoo
1 commit: d778c17e6e4ddf34b48bd594ed6ba31681bb88a9
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 2 00:41:47 2021 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 3 06:59:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d778c17e
7
8 cargo.eclass: make CRATES an eclass variable
9
10 it's needed to be present in all ebuilds for
11 crate auditing tools to work properly.
12
13 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
14
15 eclass/cargo.eclass | 17 +++++++++++++++++
16 1 file changed, 17 insertions(+)
17
18 diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
19 index 9923b1c9deb..50237d302ce 100644
20 --- a/eclass/cargo.eclass
21 +++ b/eclass/cargo.eclass
22 @@ -52,6 +52,23 @@ IUSE="${IUSE} debug"
23 ECARGO_HOME="${WORKDIR}/cargo_home"
24 ECARGO_VENDOR="${ECARGO_HOME}/gentoo"
25
26 +# @ECLASS-VARIABLE: CRATES
27 +# @DEFAULT_UNSET
28 +# @DESCRIPTION:
29 +# bash string containing all crates package wants to download
30 +# used by cargo_crate_uris()
31 +# Example:
32 +# @CODE
33 +# CRATES="
34 +# metal-1.2.3
35 +# bar-4.5.6
36 +# iron_oxide-0.0.1
37 +# "
38 +# inherit cargo
39 +# ...
40 +# SRC_URI="$(cargo_crate_uris ${CRATES})"
41 +# @CODE
42 +
43 # @ECLASS-VARIABLE: CARGO_OPTIONAL
44 # @DEFAULT_UNSET
45 # @PRE_INHERIT