commit:     f808b17ad004cec30081a0c3395d674ffa4a5a6e
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Tue Jan  8 23:02:28 2019 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Tue Jan  8 23:40:27 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f808b17a

sys-apps/exa: switch to cargo.eclass func args

Package-Manager: Portage-2.3.54, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 sys-apps/exa/exa-0.8.0-r1.ebuild | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

diff --git a/sys-apps/exa/exa-0.8.0-r1.ebuild b/sys-apps/exa/exa-0.8.0-r1.ebuild
index 4ebaed05f2f..db54b293100 100644
--- a/sys-apps/exa/exa-0.8.0-r1.ebuild
+++ b/sys-apps/exa/exa-0.8.0-r1.ebuild
@@ -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
 

Reply via email to