git: 60c0cf2db308 - main - irc/ergo: fix build on riscv64

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Fri, 24 Mar 2023 20:56:49 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=60c0cf2db3085541804e82bc0feff60448c0f128

commit 60c0cf2db3085541804e82bc0feff60448c0f128
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-03-23 01:49:17 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-03-24 20:54:49 +0000

    irc/ergo: 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)
---
 irc/ergo/Makefile | 7 ++++++-
 irc/ergo/distinfo | 4 +++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/irc/ergo/Makefile b/irc/ergo/Makefile
index 0af6f903878f..db18a030ba5f 100644
--- a/irc/ergo/Makefile
+++ b/irc/ergo/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	ergo
 DISTVERSIONPREFIX=	v
 DISTVERSION=	2.11.1
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	irc
 PKGNAMESUFFIX=	-irc-server
 
@@ -16,6 +16,7 @@ USES=		go:modules
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	ergochat
+GH_TUPLE=	golang:sys:v0.6.0:sys
 
 CONFLICTS_INSTALL=	ergo
 
@@ -23,4 +24,8 @@ GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}
 
 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/irc/ergo/distinfo b/irc/ergo/distinfo
index 6f9a55aa641a..6675dc53b610 100644
--- a/irc/ergo/distinfo
+++ b/irc/ergo/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1674533596
+TIMESTAMP = 1679535890
 SHA256 (ergochat-ergo-v2.11.1_GH0.tar.gz) = 045cfffd2a387b37a344d6f538de7eeda0b718d71a898fe9919da579bdb25cfd
 SIZE (ergochat-ergo-v2.11.1_GH0.tar.gz) = 3264192
+SHA256 (golang-sys-v0.6.0_GH0.tar.gz) = b4f6d17c7a128f76169964b437cb66b3f2dbf9a33361928ec19dfecf7b03fc54
+SIZE (golang-sys-v0.6.0_GH0.tar.gz) = 1434234