1 |
commit: 3e97513674b556a1deba9b9fb45928d1d129acf8 |
2 |
Author: Doug Goldstein <cardoe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 25 18:33:03 2016 +0000 |
4 |
Commit: Doug Goldstein <cardoe <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 30 17:17:51 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e975136 |
7 |
|
8 |
eclass/cargo: ensure people have a good cargo depend |
9 |
|
10 |
We need at least Cargo 0.13.0 to use the new bits in this eclass. |
11 |
|
12 |
Signed-off-by: Doug Goldstein <cardoe <AT> gentoo.org> |
13 |
|
14 |
eclass/cargo.eclass | 2 ++ |
15 |
1 file changed, 2 insertions(+) |
16 |
|
17 |
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass |
18 |
index f2b2b12..8089227 100644 |
19 |
--- a/eclass/cargo.eclass |
20 |
+++ b/eclass/cargo.eclass |
21 |
@@ -21,6 +21,8 @@ EXPORT_FUNCTIONS src_unpack src_compile src_install |
22 |
|
23 |
IUSE="${IUSE} debug" |
24 |
|
25 |
+[[ ${CATEGORY}/${PN} != dev-util/cargo ]] && DEPEND=">=dev-util/cargo-0.13.0" |
26 |
+ |
27 |
ECARGO_HOME="${WORKDIR}/cargo_home" |
28 |
ECARGO_VENDOR="${ECARGO_HOME}/gentoo" |