From ab3da91fb6c91a9df52fff8f991570f456fd3c7a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 18 Dec 2020 11:06:49 +0000 Subject: gentoo resync : 18.12.2020 --- 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