git: 23417a531116 - main - security/totp-cli: fix build on riscv64

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Wed, 22 Mar 2023 20:16:53 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=23417a53111656a7069c4531ff2d38f2693592ac

commit 23417a53111656a7069c4531ff2d38f2693592ac
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-03-20 14:12:31 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-03-22 20:15:17 +0000

    security/totp-cli: 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:    portmgr (build fix blanket)
---
 security/totp-cli/Makefile | 7 +++++++
 security/totp-cli/distinfo | 2 ++
 2 files changed, 9 insertions(+)

diff --git a/security/totp-cli/Makefile b/security/totp-cli/Makefile
index 938b7a1f6153..0e9ba98fd36c 100644
--- a/security/totp-cli/Makefile
+++ b/security/totp-cli/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	totp-cli
 PORTVERSION=	1.2.6
+PORTREVISION=	1
 DISTVERSIONPREFIX=	v
 CATEGORIES=	security
 
@@ -11,9 +12,15 @@ LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USES=		go:modules
+USE_GITHUB=	nodefault
+GH_TUPLE=	golang:sys:v0.6.0:sys
 
 GO_MODULE=	github.com/yitsushi/totp-cli
 
 PLIST_FILES=	bin/totp-cli
 
+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/security/totp-cli/distinfo b/security/totp-cli/distinfo
index d39f85286fdd..73fee5472a05 100644
--- a/security/totp-cli/distinfo
+++ b/security/totp-cli/distinfo
@@ -3,3 +3,5 @@ SHA256 (go/security_totp-cli/totp-cli-v1.2.6/v1.2.6.mod) = 3ac08aba74ac5f0d6729d
 SIZE (go/security_totp-cli/totp-cli-v1.2.6/v1.2.6.mod) = 581
 SHA256 (go/security_totp-cli/totp-cli-v1.2.6/v1.2.6.zip) = 2dcaf967711579ea412e8af798169357ef2a59adcc07eeedcafe232ab6254273
 SIZE (go/security_totp-cli/totp-cli-v1.2.6/v1.2.6.zip) = 34224
+SHA256 (go/security_totp-cli/totp-cli-v1.2.6/golang-sys-v0.6.0_GH0.tar.gz) = b4f6d17c7a128f76169964b437cb66b3f2dbf9a33361928ec19dfecf7b03fc54
+SIZE (go/security_totp-cli/totp-cli-v1.2.6/golang-sys-v0.6.0_GH0.tar.gz) = 1434234