commit: d778c17e6e4ddf34b48bd594ed6ba31681bb88a9 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> AuthorDate: Fri Jul 2 00:41:47 2021 +0000 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> CommitDate: Sat Jul 3 06:59:10 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d778c17e
cargo.eclass: make CRATES an eclass variable it's needed to be present in all ebuilds for crate auditing tools to work properly. Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> eclass/cargo.eclass | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index 9923b1c9deb..50237d302ce 100644 --- a/eclass/cargo.eclass +++ b/eclass/cargo.eclass @@ -52,6 +52,23 @@ IUSE="${IUSE} debug" ECARGO_HOME="${WORKDIR}/cargo_home" ECARGO_VENDOR="${ECARGO_HOME}/gentoo" +# @ECLASS-VARIABLE: CRATES +# @DEFAULT_UNSET +# @DESCRIPTION: +# bash string containing all crates package wants to download +# used by cargo_crate_uris() +# Example: +# @CODE +# CRATES=" +# metal-1.2.3 +# bar-4.5.6 +# iron_oxide-0.0.1 +# " +# inherit cargo +# ... +# SRC_URI="$(cargo_crate_uris ${CRATES})" +# @CODE + # @ECLASS-VARIABLE: CARGO_OPTIONAL # @DEFAULT_UNSET # @PRE_INHERIT