On Thu 15/10/2020 20:39, Bjorn Ketelaars wrote:
> Diff below updates sysutils/rclone to 1.53.1. Overview on changes can be
> found at https://rclone.org/changelog/#v1-53-0-2020-09-02 and
> https://rclone.org/changelog/#v1-53-1-2020-09-13.
>
> Changes to port:
> - Switch to MODGO_* as upstream removed vendor directory in favour of Go
> modules
> - bit of clean-up (indentation)
>
> Testing:
> - Run tested webdav capabilities on amd64
>
> Comments/OK?
I just noticed that upstream provides a vendor tarball, which makes
updating easier (no need to rely on MODGO_*).
Build and run tested on amd64.
OK?
Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/rclone/Makefile,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile
--- Makefile 8 Aug 2020 16:41:13 -0000 1.17
+++ Makefile 15 Oct 2020 19:56:41 -0000
@@ -2,7 +2,7 @@
COMMENT = rsync for cloud storage
-V = 1.52.3
+V = 1.53.1
DISTNAME = rclone-v${V}
PKGNAME = rclone-${V}
@@ -18,15 +18,21 @@ PERMIT_PACKAGE = Yes
WANTLIB += c pthread
MASTER_SITES = https://downloads.rclone.org/v${V}/
+DISTFILES = ${DISTNAME}${EXTRACT_SUFX} \
+ ${DISTNAME}-vendor${EXTRACT_SUFX}
MODULES = lang/go
MODGO_TYPE = bin
ALL_TARGET = github.com/rclone/rclone
+post-extract:
+ mv ${WRKDIR}/vendor ${WRKDIST}
+
post-build:
.for s in bash zsh
- cd ${MODGO_WORKSPACE}/bin && ./rclone genautocomplete $s rclone.$s
+ cd ${MODGO_WORKSPACE}/bin && \
+ HOME=${WRKSRC} ./rclone genautocomplete $s rclone.$s
.endfor
do-install:
Index: distinfo
===================================================================
RCS file: /cvs/ports/sysutils/rclone/distinfo,v
retrieving revision 1.14
diff -u -p -r1.14 distinfo
--- distinfo 8 Aug 2020 16:41:13 -0000 1.14
+++ distinfo 15 Oct 2020 19:56:41 -0000
@@ -1,2 +1,4 @@
-SHA256 (rclone-v1.52.3.tar.gz) = 9IOeAVPu5UYV26N2qFvpQ60EBTAMPupdXgKywn7XsN0=
-SIZE (rclone-v1.52.3.tar.gz) = 19431808
+SHA256 (rclone-v1.53.1-vendor.tar.gz) =
MpBfBIr1b6P9pkQnItAfF3V1PfSJ555BGOxV5In5e+w=
+SHA256 (rclone-v1.53.1.tar.gz) = 1y10qQoZH8CWRwUnD/WdWAlOK/SYL5+gvBUPcpZiDK8=
+SIZE (rclone-v1.53.1-vendor.tar.gz) = 5723919
+SIZE (rclone-v1.53.1.tar.gz) = 14675854