git: 4a2365e76d92 - main - devel/gitleaks: fix build on riscv64

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Tue, 21 Mar 2023 12:55:03 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4a2365e76d928964817d9a3eb131a56e1b40db10

commit 4a2365e76d928964817d9a3eb131a56e1b40db10
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-03-18 01:31:21 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-03-21 12:53:50 +0000

    devel/gitleaks: fix build on riscv64
    
    Bump golang.org/x/sys dependency to a version new enough
    to support riscv64-freebsd.
    
    Sponsored by:   Berliner Linux User Group e.V.
    Approved by:    yuri (maintainer)
    Differential Revision: https://reviews.freebsd.org/D39158
---
 devel/gitleaks/Makefile | 7 +++++++
 devel/gitleaks/distinfo | 4 +++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/devel/gitleaks/Makefile b/devel/gitleaks/Makefile
index a5b3881a3166..cd4beac3da87 100644
--- a/devel/gitleaks/Makefile
+++ b/devel/gitleaks/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	gitleaks
 DISTVERSIONPREFIX=	v
 DISTVERSION=	8.16.1
+PORTREVISION=	1
 CATEGORIES=	devel
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -11,9 +12,15 @@ LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USES=		go:modules
+USE_GITHUB=	nodefault
+GH_TUPLE=	golang:sys:v0.6.0:sys
 
 GO_MODULE=	github.com/zricethezav/gitleaks/v8
 GO_TARGET=	.
 PLIST_FILES=	bin/${PORTNAME}
 
+pre-patch:
+	${RM} -r ${WRKSRC}/vendor/golang.org/x/sys
+	${LN} -s ${WRKDIR}/sys-* ${WRKSRC}/vendor/golang.org/x/sys
+
 .include <bsd.port.mk>
diff --git a/devel/gitleaks/distinfo b/devel/gitleaks/distinfo
index 9e5a732fe6ee..d87299976a52 100644
--- a/devel/gitleaks/distinfo
+++ b/devel/gitleaks/distinfo
@@ -1,5 +1,7 @@
-TIMESTAMP = 1678933059
+TIMESTAMP = 1679151844
 SHA256 (go/devel_gitleaks/gitleaks-v8.16.1/v8.16.1.mod) = e2ee6b75c4aa07e7d03da1242f9cc03cfe91843050ed3f1d99c6d5797a6f565c
 SIZE (go/devel_gitleaks/gitleaks-v8.16.1/v8.16.1.mod) = 1802
 SHA256 (go/devel_gitleaks/gitleaks-v8.16.1/v8.16.1.zip) = 514a9c2bad83aefa85775e4e6bcd1b6de523aeaba1ae2459a2daa10a944d8f17
 SIZE (go/devel_gitleaks/gitleaks-v8.16.1/v8.16.1.zip) = 203931
+SHA256 (go/devel_gitleaks/gitleaks-v8.16.1/golang-sys-v0.6.0_GH0.tar.gz) = b4f6d17c7a128f76169964b437cb66b3f2dbf9a33361928ec19dfecf7b03fc54
+SIZE (go/devel_gitleaks/gitleaks-v8.16.1/golang-sys-v0.6.0_GH0.tar.gz) = 1434234