From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AE813138334 for ; Mon, 7 Jan 2019 20:34:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 847C7E0992; Mon, 7 Jan 2019 20:34:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2F307E091C for ; Mon, 7 Jan 2019 20:34:08 +0000 (UTC) Received: from ws.gaikai.org (unknown [100.42.98.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: gyakovlev) by smtp.gentoo.org (Postfix) with ESMTPSA id 11312335D05; Mon, 7 Jan 2019 20:34:07 +0000 (UTC) From: Georgy Yakovlev To: gentoo-dev@lists.gentoo.org Cc: Georgy Yakovlev Subject: [gentoo-dev] [PATCH 1/2] cargo.eclass: allow passing additional arguments to cargo Date: Mon, 7 Jan 2019 12:33:50 -0800 Message-Id: <20190107203351.5406-1-gyakovlev@gentoo.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 0a1ae718-fbdb-4885-843e-7cfe1840ef94 X-Archives-Hash: 83f9ebbeeb3175600a6d0c81ef8e436f for example: src_compile() { cargo_src_compile $(usex pcre "--features pcre2" "")" } Signed-off-by: Georgy Yakovlev --- eclass/cargo.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index 50f7830c51b..06c85ce9de8 100644 --- a/eclass/cargo.eclass +++ b/eclass/cargo.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: cargo.eclass @@ -122,7 +122,7 @@ cargo_src_compile() { export CARGO_HOME="${ECARGO_HOME}" - cargo build -j $(makeopts_jobs) $(usex debug "" --release) \ + cargo build -j $(makeopts_jobs) $(usex debug "" --release) "$@" \ || die "cargo build failed" } @@ -132,7 +132,7 @@ cargo_src_compile() { cargo_src_install() { debug-print-function ${FUNCNAME} "$@" - cargo install -j $(makeopts_jobs) --root="${D}/usr" $(usex debug --debug "") \ + cargo install -j $(makeopts_jobs) --root="${D}/usr" $(usex debug --debug "") "$@" \ || die "cargo install failed" rm -f "${D}/usr/.crates.toml" -- 2.20.1