re-add older rust, disable newer by default, allow cargo dep to be disabled

This commit is contained in:
Cody P Schafer
2014-12-02 14:00:40 -05:00
parent 8a698c1e51
commit c42a9f51dd
4 changed files with 28 additions and 0 deletions

View File

@@ -2,6 +2,14 @@ inherit rust
CARGO = "cargo"
def cargo_base_dep(d):
deps = ""
if not d.getVar('INHIBIT_DEFAULT_DEPS') and not d.getVar('INHIBIT_CARGO_DEP'):
deps += " cargo-native"
return deps
BASEDEPENDS_append = " ${@cargo_base_dep(d)}"
# FIXME: this is a workaround for a misbehavior in cargo when used with quilt.
# See https://github.com/rust-lang/cargo/issues/978
PATCHTOOL = "patch"