summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2016-11-25 12:33:03 -0600
committerDoug Goldstein <cardoe@gentoo.org>2016-11-30 11:17:51 -0600
commit3e97513674b556a1deba9b9fb45928d1d129acf8 (patch)
tree801db58661000a8e3e65e361446369b79b719085 /eclass
parenteclass/cargo: support cargo dependency vendoring (diff)
downloadgentoo-3e97513674b556a1deba9b9fb45928d1d129acf8.tar.gz
gentoo-3e97513674b556a1deba9b9fb45928d1d129acf8.tar.bz2
gentoo-3e97513674b556a1deba9b9fb45928d1d129acf8.zip
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@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cargo.eclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index f2b2b12149d1..8089227a159f 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"