From f808b17ad004cec30081a0c3395d674ffa4a5a6e Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev Date: Tue, 8 Jan 2019 15:02:28 -0800 Subject: [PATCH] sys-apps/exa: switch to cargo.eclass func args Package-Manager: Portage-2.3.54, Repoman-2.3.12 Signed-off-by: Georgy Yakovlev --- 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 4ebaed05f2ff..db54b293100c 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 -- 2.26.2