summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2024-09-11 23:45:23 +0200
committerMaciej Barć <xgqt@gentoo.org>2024-09-12 01:30:53 +0200
commitceda76bde393b815f4ce0c351644ed8a532e4c05 (patch)
treea6a6f6517ab804eda99bff153fc1f85038203ff7 /net-misc
parentdev-build/bazelisk: bump to 1.21.0 (diff)
downloadgentoo-ceda76bde393b815f4ce0c351644ed8a532e4c05.tar.gz
gentoo-ceda76bde393b815f4ce0c351644ed8a532e4c05.tar.bz2
gentoo-ceda76bde393b815f4ce0c351644ed8a532e4c05.zip
net-misc/rclone: bump to 1.68.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/rclone/Manifest2
-rw-r--r--net-misc/rclone/rclone-1.68.0.ebuild67
2 files changed, 69 insertions, 0 deletions
diff --git a/net-misc/rclone/Manifest b/net-misc/rclone/Manifest
index 29ddf91d5457..a118c36f5a7e 100644
--- a/net-misc/rclone/Manifest
+++ b/net-misc/rclone/Manifest
@@ -1,2 +1,4 @@
DIST rclone-1.67.0-deps.tar.xz 367523832 BLAKE2B 45e33614658aa619f0abe4cb48ae8eb82d39cf3f56ef9c9f0fcfbc14c2ba2868ff237ae0ab1f308bab31352e176209029604c18c22d180d68c0605a6a671a3c2 SHA512 2e4aba47f37ca67c7ba827d9c70bae858cb9633861c546e9cf19205a11109c52ea8e3e7b13f3073be5ab6405770b7c58bb00124393b712bd59fa25da6930987e
DIST rclone-1.67.0.tar.gz 17232236 BLAKE2B 8241234a970335bb67a5f51b11fdc79afe4a3894c1df2409d141cc8662fec669c1d273e7e67383291703cf66a4168a0ff3c3f8e28d569b0df340c0e7b4a4c324 SHA512 9d336c6a03ba7711f88fbd6ff019b4ce02825467b9656bba8811e9c27fe857ba5d64d863e1f5f3129cbcc89509891615d911794376c90775901a7de1b0741448
+DIST rclone-1.68.0-deps.tar.xz 313382892 BLAKE2B 5dbf928d1a9ee4eccd796c5d083da1fefc115af9b087072708fa5a9e98a5bc74f824e922c1cad8f132c2549d4c335877c4fa78f8842a1732972bbe862b0bba28 SHA512 e32a8489ab822648f26b47e58ef7a7a1f3776ee08b585a642a21e02b31095ddef22b068e97cf21545e6a806b467d4d5e79eab4ae31da9ccf238d7735ca6dc35f
+DIST rclone-1.68.0.tar.gz 17441116 BLAKE2B 445cd8607950b25cf973350a62d884c3b786eadd6e781d36a1886e085871accc6743672f993f6da8a15a1af7e0146110ff931fe169d6f8a4586cf772e6e17fc9 SHA512 899255f6a22c53b7ab5b59c0f3532bc64b9b3b2691e7202a97fea5047cc8cdf042c2e235cdac67c8cf18e3d68ca2b2ca1eb4d871bffcba8c97514c7ef8db0e13
diff --git a/net-misc/rclone/rclone-1.68.0.ebuild b/net-misc/rclone/rclone-1.68.0.ebuild
new file mode 100644
index 000000000000..b59ebe324c66
--- /dev/null
+++ b/net-misc/rclone/rclone-1.68.0.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1 check-reqs edo go-module
+
+DESCRIPTION="A program to sync files to and from various cloud storage providers"
+HOMEPAGE="https://rclone.org/
+ https://github.com/rclone/rclone/"
+SRC_URI="
+ https://github.com/rclone/rclone/archive/v${PV}.tar.gz
+ -> ${P}.tar.gz
+ https://dev.gentoo.org/~xgqt/distfiles/deps/${P}-deps.tar.xz
+"
+
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+
+RDEPEND="
+ sys-fs/fuse:3
+"
+
+CHECKREQS_DISK_BUILD="2500M"
+
+pkg_setup() {
+ check-reqs_pkg_setup
+}
+
+src_compile() {
+ local go_ldflags="
+ -X github.com/rclone/rclone/fs.Version=${PV}
+ "
+ local -a go_buildargs=(
+ -ldflags "${go_ldflags}"
+ -mod=readonly
+ -o ./
+ )
+ ego build "${go_buildargs[@]}" .
+
+ edob ./rclone genautocomplete bash "${PN}.bash"
+ edob ./rclone genautocomplete zsh "${PN}.zsh"
+}
+
+src_test() {
+ # Setting CI skips unreliable tests, see "fstest/testy/testy.go"
+ # "TestAddPlugin" and "TestRemovePlugin" fail.
+ local -x CI="true"
+ local -x RCLONE_CONFIG="/not_found"
+
+ edob go test -mod=readonly -v -run "!Test.*Plugin" ./...
+}
+
+src_install() {
+ exeinto /usr/bin
+ doexe "${PN}"
+ dosym -r "/usr/bin/${PN}" /usr/bin/mount.rclone
+ dosym -r "/usr/bin/${PN}" /usr/bin/rclonefs
+
+ newbashcomp "${PN}.bash" "${PN}"
+ insinto /usr/share/zsh/site-functions
+ newins "${PN}.zsh" "_${PN}"
+
+ doman "${PN}.1"
+ einstalldocs
+}