git: b552eecf8e4a - main - net/cf: fix build on riscv64

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

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

commit b552eecf8e4aa3e0f4aa1153933ccbd282f10b5d
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-03-20 15:51:58 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-03-22 20:15:19 +0000

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

diff --git a/net/cf/Makefile b/net/cf/Makefile
index 8645cac98bb3..0331051e998d 100644
--- a/net/cf/Makefile
+++ b/net/cf/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	cf
 PORTVERSION=	6.49.0
 DISTVERSIONPREFIX=	v
-PORTREVISION=	11
+PORTREVISION=	12
 CATEGORIES=	net
 
 MAINTAINER=	dumbbell@FreeBSD.org
@@ -16,6 +16,7 @@ BUILD_DEPENDS=	${LOCALBASE}/bin/go-bindata:devel/go-bindata
 USE_GITHUB=	yes
 GH_ACCOUNT=	cloudfoundry
 GH_PROJECT=	cli
+GH_TUPLE=	golang:sys:v0.6.0:sys
 
 USES=		go
 
@@ -31,6 +32,10 @@ PORTDOCS=	NOTICE README.md
 
 OPTIONS_DEFINE=	DOCS
 
+pre-patch:
+	${RM} -r ${WRKSRC}/vendor/golang.org/x/sys
+	${LN} -s ${WRKDIR}/sys-* ${WRKSRC}/vendor/golang.org/x/sys
+
 do-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for x in ${PORTDOCS}
diff --git a/net/cf/distinfo b/net/cf/distinfo
index 71112aef9697..989d22621b19 100644
--- a/net/cf/distinfo
+++ b/net/cf/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1581177489
+TIMESTAMP = 1679327145
 SHA256 (cloudfoundry-cli-v6.49.0_GH0.tar.gz) = 7717d3b684c1553b98e13888704d88197447984057b8a4ba0cdf2ec862613761
 SIZE (cloudfoundry-cli-v6.49.0_GH0.tar.gz) = 22715242
-SHA256 (golang-sys-fead79001313_GH0.tar.gz) = c8e102db152c51438f426a92b338f924827b960e75bd9d871ae9438135366073
-SIZE (golang-sys-fead79001313_GH0.tar.gz) = 1258330
+SHA256 (golang-sys-v0.6.0_GH0.tar.gz) = b4f6d17c7a128f76169964b437cb66b3f2dbf9a33361928ec19dfecf7b03fc54
+SIZE (golang-sys-v0.6.0_GH0.tar.gz) = 1434234