dev-lang/rust: PDEPEND on dev-util/cargo
authorDoug Goldstein <cardoe@gentoo.org>
Tue, 25 Oct 2016 00:04:20 +0000 (19:04 -0500)
committerDoug Goldstein <cardoe@gentoo.org>
Tue, 25 Oct 2016 00:05:29 +0000 (19:05 -0500)
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 <cardoe@gentoo.org>
dev-lang/rust/rust-1.12.1.ebuild

index e608fbde2b38eff00e513f4ee71b520baf6e64fb..54e3fd4e6ece7f0e2c75acd2c3479ea50a041498 100644 (file)
@@ -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}"