From: Doug Goldstein Date: Tue, 25 Oct 2016 00:04:20 +0000 (-0500) Subject: dev-lang/rust: PDEPEND on dev-util/cargo X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=f6bec6c8995b8932f50356a2853d92343cd7313c;p=gentoo.git dev-lang/rust: PDEPEND on dev-util/cargo A number of people have pointed out to me that on most distros installing Rust results in a fully working environment (e.g. includes Cargo) so we should really provide the same. Signed-off-by: Doug Goldstein --- diff --git a/dev-lang/rust/rust-1.12.1.ebuild b/dev-lang/rust/rust-1.12.1.ebuild index e608fbde2b38..54e3fd4e6ece 100644 --- a/dev-lang/rust/rust-1.12.1.ebuild +++ b/dev-lang/rust/rust-1.12.1.ebuild @@ -23,6 +23,7 @@ else KEYWORDS="~amd64 ~x86" fi +CARGO_VERSION="0.$(($(get_version_component_range 2) + 1)).0" STAGE0_VERSION="1.$(($(get_version_component_range 2) - 1)).0" RUST_STAGE0_amd64="rustc-${STAGE0_VERSION}-x86_64-unknown-linux-gnu" RUST_STAGE0_x86="rustc-${STAGE0_VERSION}-i686-unknown-linux-gnu" @@ -51,7 +52,8 @@ DEPEND="${RDEPEND} clang? ( sys-devel/clang ) " -PDEPEND=">=app-eselect/eselect-rust-0.3_pre20150425" +PDEPEND=">=app-eselect/eselect-rust-0.3_pre20150425 + >=dev-util/cargo-${CARGO_VERSION}" S="${WORKDIR}/${MY_P}"