summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2018-08-04 14:34:38 +0200
committerDirkjan Ochtman <djc@gentoo.org>2018-08-08 14:30:07 +0200
commit79193548f4bf7d853c86cae4566fc74840be6e8c (patch)
tree215fec1e28168b9a6321f780162fc4d45dc946fe /eclass/cargo.eclass
parentapp-dicts/myspell-lv: Maintainer retired (diff)
downloadgentoo-79193548f4bf7d853c86cae4566fc74840be6e8c.tar.gz
gentoo-79193548f4bf7d853c86cae4566fc74840be6e8c.tar.bz2
gentoo-79193548f4bf7d853c86cae4566fc74840be6e8c.zip
cargo.eclass: support EAPI 7
Diffstat (limited to 'eclass/cargo.eclass')
-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"