diff options
author | Jason Zaman <perfinion@gentoo.org> | 2018-03-18 10:00:17 +0800 |
---|---|---|
committer | Jason Zaman <perfinion@gentoo.org> | 2018-03-18 10:00:39 +0800 |
commit | 83a37b26ab6136b35baa1f1867c8766ae8e8c023 (patch) | |
tree | 2b9aa72fc806c742ec3575c5b0a6fa989d91427e | |
parent | media-gfx/graphicsmagick-1.3.27: alpha stable, bug 640690 (diff) | |
download | gentoo-83a37b26ab6136b35baa1f1867c8766ae8e8c023.tar.gz gentoo-83a37b26ab6136b35baa1f1867c8766ae8e8c023.tar.bz2 gentoo-83a37b26ab6136b35baa1f1867c8766ae8e8c023.zip |
net-misc/rclone: Add bash & zfs autocompletion
Closes: https://bugs.gentoo.org/650726
Package-Manager: Portage-2.3.24, Repoman-2.3.6
-rw-r--r-- | net-misc/rclone/rclone-1.39.ebuild | 17 | ||||
-rw-r--r-- | 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 ab1b0c69b3d5..2c530609ee7b 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 0c936bdca50e..2c530609ee7b 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} } |