Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: Georgy Yakovlev <gyakovlev@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 1/2] cargo.eclass: allow passing additional arguments to cargo
Date: Mon, 07 Jan 2019 07:27:41
Message-Id: w6gtvil0vxe.fsf@kph.uni-mainz.de
In Reply to: [gentoo-dev] [PATCH 1/2] cargo.eclass: allow passing additional arguments to cargo by Georgy Yakovlev
1 >>>>> On Mon, 07 Jan 2019, Georgy Yakovlev wrote:
2
3 > cargo_src_compile() {
4 > debug-print-function ${FUNCNAME} "$@"
5 >
6 > export CARGO_HOME="${ECARGO_HOME}"
7 >
8 > - cargo build -j $(makeopts_jobs) $(usex debug "" --release) \
9 > + cargo build -j $(makeopts_jobs) $(usex debug "" --release) "${@}" \
10
11 Keep constistent style, "$@" is without braces just above.
12
13 > cargo_src_install() {
14 > debug-print-function ${FUNCNAME} "$@"
15 >
16 > - cargo install -j $(makeopts_jobs) --root="${D}/usr" $(usex debug --debug "") \
17 > + cargo install -j $(makeopts_jobs) --root="${D}/usr" $(usex debug --debug "") "${@}" \
18
19 Ditto.
20
21 Ulrich

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies