commit:     3e97513674b556a1deba9b9fb45928d1d129acf8
Author:     Doug Goldstein <cardoe <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 25 18:33:03 2016 +0000
Commit:     Doug Goldstein <cardoe <AT> gentoo <DOT> org>
CommitDate: Wed Nov 30 17:17:51 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e975136

eclass/cargo: ensure people have a good cargo depend

We need at least Cargo 0.13.0 to use the new bits in this eclass.

Signed-off-by: Doug Goldstein <cardoe <AT> gentoo.org>

 eclass/cargo.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index f2b2b12..8089227 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -21,6 +21,8 @@ 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"
 

Reply via email to