diff options
author | Piotr Karbowski <slashbeast@gentoo.org> | 2023-01-07 20:15:19 +0100 |
---|---|---|
committer | Piotr Karbowski <slashbeast@gentoo.org> | 2023-01-07 20:59:48 +0100 |
commit | 435bf8e0890d0a5e5dc3ba8aecd6be4d2dac19cd (patch) | |
tree | 0e315429a3538ef8011b759517e4b1f2856a5419 /net-misc/rclone/rclone-1.61.1.ebuild | |
parent | dev-python/sphinx: add 6.1.2 (diff) | |
download | gentoo-435bf8e0890d0a5e5dc3ba8aecd6be4d2dac19cd.tar.gz gentoo-435bf8e0890d0a5e5dc3ba8aecd6be4d2dac19cd.tar.bz2 gentoo-435bf8e0890d0a5e5dc3ba8aecd6be4d2dac19cd.zip |
net-misc/rclone: 1.61.1 version bump.
Closes: https://bugs.gentoo.org/888914
Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>
Diffstat (limited to 'net-misc/rclone/rclone-1.61.1.ebuild')
-rw-r--r-- | net-misc/rclone/rclone-1.61.1.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/net-misc/rclone/rclone-1.61.1.ebuild b/net-misc/rclone/rclone-1.61.1.ebuild new file mode 100644 index 000000000000..585af0e639a7 --- /dev/null +++ b/net-misc/rclone/rclone-1.61.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit bash-completion-r1 go-module + +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" +SRC_URI=" + https://github.com/rclone/rclone/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~slashbeast/distfiles/${PN}/${P}-deps.tar.xz +" + +DESCRIPTION="A program to sync files to and from various cloud storage providers" +HOMEPAGE="https://rclone.org/" + +LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0" +SLOT="0" +IUSE="" + +src_compile() { + go build -mod=readonly . || die "compile failed" +} + +src_test() { + # Setting CI skips unreliable tests, see fstest/testy/testy.go + # TestAddPlugin and TestRemovePlugin fail + RCLONE_CONFIG="/notfound" CI="true" go test -mod=readonly -v -run "!Test.*Plugin" ./... || die "test failed" +} + +src_install() { + dobin ${PN} + doman ${PN}.1 + dodoc 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} +} |