sys-apps/exa: switch to cargo.eclass func args
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Tue, 8 Jan 2019 23:02:28 +0000 (15:02 -0800)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Tue, 8 Jan 2019 23:40:27 +0000 (15:40 -0800)
Package-Manager: Portage-2.3.54, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
sys-apps/exa/exa-0.8.0-r1.ebuild

index 4ebaed05f2ff5412a297fd019109dc4e7539257c..db54b293100cf395977964869e340dfa4cb691a6 100644 (file)
@@ -87,24 +87,16 @@ DEPEND="
 "
 RDEPEND="${DEPEND}"
 
+RESTRICT="test"
+
 QA_FLAGS_IGNORED="/usr/bin/exa"
 
 src_compile() {
-       export CARGO_HOME="${ECARGO_HOME}"
-
-       cargo build -j $(makeopts_jobs) \
-               $(usex debug "" --release) \
-               $(usex git "" --no-default-features) \
-               || die "cargo build failed"
+       cargo_src_compile $(usex git "" --no-default-features)
 }
 
 src_install() {
-       cargo install -j $(makeopts_jobs) --root="${D}/usr" \
-               $(usex debug --debug "") \
-               $(usex git "" --no-default-features) \
-               || die "cargo install failed"
-
-       rm "${D}/usr/.crates.toml" || die
+       cargo_src_install $(usex git "" --no-default-features)
 
        newbashcomp contrib/completions.bash exa