git: d82ea23495a3 - main - devel/git-town: fix build on riscv64

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

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

commit d82ea23495a344ea2740b59c515790da8b2876d8
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-03-17 17:50:44 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-03-21 12:53:49 +0000

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

diff --git a/devel/git-town/Makefile b/devel/git-town/Makefile
index 42e7e6d32bd2..77de49e89011 100644
--- a/devel/git-town/Makefile
+++ b/devel/git-town/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	git-town
 DISTVERSIONPREFIX=	v
 DISTVERSION=	7.9.0
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	devel
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -14,9 +14,15 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 RUN_DEPENDS=	git:devel/git
 
 USES=		go:modules
+USE_GITHUB=	nodefault
+GH_TUPLE=	golang:sys:v0.6.0:sys
 
 GO_MODULE=	github.com/git-town/git-town/v7
 
 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/git-town/distinfo b/devel/git-town/distinfo
index e71efb0cc382..892aca8245b6 100644
--- a/devel/git-town/distinfo
+++ b/devel/git-town/distinfo
@@ -1,5 +1,7 @@
-TIMESTAMP = 1674625758
+TIMESTAMP = 1679074996
 SHA256 (go/devel_git-town/git-town-v7.9.0/v7.9.0.mod) = ed5a9c17aa6e16cb36b682244c5fd195c6276df4f3d0d67b2a99603e5f13e8e2
 SIZE (go/devel_git-town/git-town-v7.9.0/v7.9.0.mod) = 1940
 SHA256 (go/devel_git-town/git-town-v7.9.0/v7.9.0.zip) = 08cea46221bb8c067eef4ba7402c1d2b68876a2df9a4b5f80ca4eba145020b04
 SIZE (go/devel_git-town/git-town-v7.9.0/v7.9.0.zip) = 499771
+SHA256 (go/devel_git-town/git-town-v7.9.0/golang-sys-v0.6.0_GH0.tar.gz) = b4f6d17c7a128f76169964b437cb66b3f2dbf9a33361928ec19dfecf7b03fc54
+SIZE (go/devel_git-town/git-town-v7.9.0/golang-sys-v0.6.0_GH0.tar.gz) = 1434234