commit: 79193548f4bf7d853c86cae4566fc74840be6e8c
Author: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 4 12:34:38 2018 +0000
Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
CommitDate: Wed Aug 8 12:30:07 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79193548
cargo.eclass: support EAPI 7
eclass/cargo.eclass | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index 799b0618bd2..8bbad012424 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"