summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/cargo.eclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index 799b0618bd25..8bbad012424a 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -11,8 +11,12 @@
if [[ -z ${_CARGO_ECLASS} ]]; then
_CARGO_ECLASS=1
+CARGO_DEPEND=""
+[[ ${CATEGORY}/${PN} != dev-util/cargo ]] && CARGO_DEPEND=">=dev-util/cargo-0.13.0"
+
case ${EAPI} in
- 6) : ;;
+ 6) : DEPEND="${DEPEND} ${CARGO_DEPEND}";;
+ 7) : BDEPEND="${BDEPEND} ${CARGO_DEPEND}";;
*) die "EAPI=${EAPI:-0} is not supported" ;;
esac
@@ -22,8 +26,6 @@ EXPORT_FUNCTIONS src_unpack src_compile src_install
IUSE="${IUSE} debug"
-[[ ${CATEGORY}/${PN} != dev-util/cargo ]] && DEPEND=">=dev-util/cargo-0.13.0"
-
ECARGO_HOME="${WORKDIR}/cargo_home"
ECARGO_VENDOR="${ECARGO_HOME}/gentoo"