commit:     15c6f3926cab962372fd58c97dd767627e1b5c78
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 22 14:44:53 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Wed Jan 22 16:20:51 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15c6f392

net-misc/rclone: bump to 1.69.0

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 net-misc/rclone/Manifest             |  2 ++
 net-misc/rclone/rclone-1.69.0.ebuild | 67 ++++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/net-misc/rclone/Manifest b/net-misc/rclone/Manifest
index e878a71b7fea..737839a3a3a5 100644
--- a/net-misc/rclone/Manifest
+++ b/net-misc/rclone/Manifest
@@ -1,2 +1,4 @@
 DIST rclone-1.68.2-deps.tar.xz 313358984 BLAKE2B 
e57d4036e37b041b1c1c34b377683f32a10b6ed147f9a290c223bf1935ef78455ef307bb804ae93dc8577943d858104bcc77eecd6f797875ff7ebb298e95470c
 SHA512 
14cef2b92e6114f902ede83ee502ab50952322ddf1147488eea53f7dc0f80b53d52e3cca49de72efce9b4859d7f915bb1434d87d2061dc56a1ac6148da1d8819
 DIST rclone-1.68.2.tar.gz 17456579 BLAKE2B 
9b8a3cd10690104ef262bac99d676997be1e5aad19172b6536b74a73c5d15bf6d67b0550ed6dcc8c4406d4082de11b5f8e6bcf92c9fdde61b140c0edbe095c23
 SHA512 
02baef752b8537ef5de05c51ce556ee76aee62c6835dc2f0cb6a8ebf0837d524dee1ed69136fb8319511a248d6776e36e53038138bf245f19aa66ea2aac6815c
+DIST rclone-1.69.0-deps.tar.xz 273636708 BLAKE2B 
c78c7e411f0b73fe7679d87c5ef5222e161d5b0fd01dc70f56480d59072d4247eabaaed229be326a130195e3cb3bf5efa8133a374cd7c0ef78ee6e9827aa69c9
 SHA512 
d02143d9b99096579262065f785afbf0cca123356a44123e9cdb724eef741cfa72691979e5735389dcd073e7a680814814ba1eaf6a94b10d14eda762d1571c3e
+DIST rclone-1.69.0.gh.tar.gz 16939883 BLAKE2B 
ec65092e661297397419443ee678c7bb7c6c1ee19ff12cfd8c50f071df8542592f04c7fa56e83a34a9c2a3e52a2f87d1ef58d577fee35f8cfa7491cad5d67fd7
 SHA512 
0a1d544fc12d020cf71ed788481185c178e6d79919f2e7e73014704714e70e4efec84fc126f19b1be284cc7f1f381fbb5ee9f78c472ba993529a8db2d19898b4

diff --git a/net-misc/rclone/rclone-1.69.0.ebuild 
b/net-misc/rclone/rclone-1.69.0.ebuild
new file mode 100644
index 000000000000..f3146e24b8c9
--- /dev/null
+++ b/net-misc/rclone/rclone-1.69.0.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2025 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}.gh.tar.gz
+       https://dev.gentoo.org/~xgqt/distfiles/deps/${PN}-1.69.0-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
+}

Reply via email to