From 839fe58f53bed7ba4233bbdea87e5beebfbb8259 Mon Sep 17 00:00:00 2001 From: Aaron Bauman Date: Wed, 16 Dec 2020 17:48:06 -0500 Subject: eclass/cargo: fixup documentation Signed-off-by: Aaron Bauman --- eclass/cargo.eclass | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'eclass/cargo.eclass') diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index 7f7a681f6f52..d1e968b4e9ce 100644 --- a/eclass/cargo.eclass +++ b/eclass/cargo.eclass @@ -9,10 +9,18 @@ # @SUPPORTED_EAPIS: 6 7 # @BLURB: common functions and variables for cargo builds +# @VARIABLE: _CARGO_ECLASS +# @INTERNAL +# @DESCRIPTION: +# If null set to 1 + if [[ -z ${_CARGO_ECLASS} ]]; then _CARGO_ECLASS=1 +# @VARIABLE: RUST_DEPEND +# @DESCRIPTION: # we need this for 'cargo vendor' subcommand and net.offline config knob + RUST_DEPEND=">=virtual/rust-1.37.0" case "${EAPI:-0}" in @@ -35,7 +43,16 @@ fi IUSE="${IUSE} debug" +# @VARIABLE: ECARGO_HOME +# @DESCRIPTION: +# Adjust the working directory + ECARGO_HOME="${WORKDIR}/cargo_home" + +# @VARIABLE: ECARGO_VENDOR +# @DESCRIPTION: +# Vendorize the working directory + ECARGO_VENDOR="${ECARGO_HOME}/gentoo" # @ECLASS-VARIABLE: CARGO_OPTIONAL -- cgit v1.2.3-65-gdbad