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 686F71382C5 for ; Sun, 18 Mar 2018 02:38:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 57110E087B; Sun, 18 Mar 2018 02:38:33 +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 2AADAE087B for ; Sun, 18 Mar 2018 02:38:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 2B490335D08 for ; Sun, 18 Mar 2018 02:38:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 96765246 for ; Sun, 18 Mar 2018 02:38:29 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1521338439.83a37b26ab6136b35baa1f1867c8766ae8e8c023.perfinion@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/rclone/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/rclone/rclone-1.39.ebuild net-misc/rclone/rclone-9999.ebuild X-VCS-Directories: net-misc/rclone/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 83a37b26ab6136b35baa1f1867c8766ae8e8c023 X-VCS-Branch: master Date: Sun, 18 Mar 2018 02:38:29 +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-Archives-Salt: 5ad23b53-67a5-44fe-b7bd-1d329cf371bb X-Archives-Hash: 8162e3a7f850b45213a17dfa602974f8 commit: 83a37b26ab6136b35baa1f1867c8766ae8e8c023 Author: Jason Zaman gentoo org> AuthorDate: Sun Mar 18 02:00:17 2018 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Mar 18 02:00:39 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83a37b26 net-misc/rclone: Add bash & zfs autocompletion Closes: https://bugs.gentoo.org/650726 Package-Manager: Portage-2.3.24, Repoman-2.3.6 net-misc/rclone/rclone-1.39.ebuild | 17 +++++++++++++---- net-misc/rclone/rclone-9999.ebuild | 11 +++++++++-- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/net-misc/rclone/rclone-1.39.ebuild b/net-misc/rclone/rclone-1.39.ebuild index ab1b0c69b3d..2c530609ee7 100644 --- a/net-misc/rclone/rclone-1.39.ebuild +++ b/net-misc/rclone/rclone-1.39.ebuild @@ -1,10 +1,8 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 - -inherit golang-build - +inherit golang-build bash-completion-r1 EGO_PN="github.com/ncw/${PN}" if [[ ${PV} == *9999* ]]; then @@ -21,9 +19,20 @@ HOMEPAGE="https://rclone.org/" LICENSE="MIT" SLOT="0" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" src_install() { dobin ${PN} doman src/${EGO_PN}/${PN}.1 dodoc src/${EGO_PN}/README.md + + ./rclone genautocomplete bash ${PN}.bash || die + newbashcomp ${PN}.bash ${PN} + + ./rclone genautocomplete zsh ${PN}.zsh || die + insinto /usr/share/zsh/site-functions + newins ${PN}.zsh _${PN} } diff --git a/net-misc/rclone/rclone-9999.ebuild b/net-misc/rclone/rclone-9999.ebuild index 0c936bdca50..2c530609ee7 100644 --- a/net-misc/rclone/rclone-9999.ebuild +++ b/net-misc/rclone/rclone-9999.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 -inherit golang-build +inherit golang-build bash-completion-r1 EGO_PN="github.com/ncw/${PN}" if [[ ${PV} == *9999* ]]; then @@ -28,4 +28,11 @@ src_install() { dobin ${PN} doman src/${EGO_PN}/${PN}.1 dodoc src/${EGO_PN}/README.md + + ./rclone genautocomplete bash ${PN}.bash || die + newbashcomp ${PN}.bash ${PN} + + ./rclone genautocomplete zsh ${PN}.zsh || die + insinto /usr/share/zsh/site-functions + newins ${PN}.zsh _${PN} }