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 6A2A3138359 for ; Wed, 9 Sep 2020 06:50:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 840D8E084A; Wed, 9 Sep 2020 06:50:28 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 6AEEFE084A for ; Wed, 9 Sep 2020 06:50:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1D29A340F0F for ; Wed, 9 Sep 2020 06:50:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 942D634A for ; Wed, 9 Sep 2020 06:50:25 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1599633787.6ffd3532933434373dbf15979146b839c6210b3e.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rustup/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/rustup/rustup-1.22.1.ebuild X-VCS-Directories: dev-util/rustup/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: 6ffd3532933434373dbf15979146b839c6210b3e X-VCS-Branch: master Date: Wed, 9 Sep 2020 06:50:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fda468c5-88ed-42ca-bccb-b3f014929760 X-Archives-Hash: db4c724a90a071ab5be85aa9e2f544f0 commit: 6ffd3532933434373dbf15979146b839c6210b3e Author: Georgy Yakovlev gentoo org> AuthorDate: Wed Sep 9 06:42:56 2020 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Wed Sep 9 06:43:07 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ffd3532 dev-util/rustup: add shell completions Package-Manager: Portage-3.0.6, Repoman-3.0.1 Signed-off-by: Georgy Yakovlev gentoo.org> dev-util/rustup/rustup-1.22.1.ebuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dev-util/rustup/rustup-1.22.1.ebuild b/dev-util/rustup/rustup-1.22.1.ebuild index f3990688984..6b91f916003 100644 --- a/dev-util/rustup/rustup-1.22.1.ebuild +++ b/dev-util/rustup/rustup-1.22.1.ebuild @@ -239,7 +239,7 @@ zeroize-1.1.0 zeroize_derive-1.0.0 " -inherit cargo +inherit bash-completion-r1 cargo HOME_CRATE_COMMIT="a243ee2fbee6022c57d56f5aa79aefe194eabe53" @@ -284,6 +284,15 @@ src_install() { einstalldocs exeinto /usr/share/rustup newexe "${FILESDIR}/symlink_rustup.sh" symlink_rustup + + ln -s "${ED}/usr/bin/rustup-init" rustup || die + ./rustup completions bash rustup > "${T}/rustup" || die + ./rustup completions zsh rustup > "${T}/_rustup" || die + + dobashcomp "${T}/rustup" + + insinto /usr/share/zsh/site-functions + doins "${T}/_rustup" } src_test() {