git: 3c15e7e71767 - main - devel/gitlab-metrics-exporter: fix build on riscv64

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Fri, 17 Mar 2023 09:03:13 UTC
The branch main has been updated by fuz:

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

commit 3c15e7e717675731864a1c854570cd22df313b62
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-03-15 20:05:58 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-03-17 09:02:20 +0000

    devel/gitlab-metrics-exporter: 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:    mfechner (maintainer)
    Differential Revision: https://reviews.freebsd.org/D39111
---
 devel/gitlab-metrics-exporter/Makefile | 8 +++++++-
 devel/gitlab-metrics-exporter/distinfo | 4 +++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/devel/gitlab-metrics-exporter/Makefile b/devel/gitlab-metrics-exporter/Makefile
index 24f011a22e6b..16098c93313f 100644
--- a/devel/gitlab-metrics-exporter/Makefile
+++ b/devel/gitlab-metrics-exporter/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	gitlab-metrics-exporter
 PORTVERSION=	0.1.2
-PORTREVISION=	4
+PORTREVISION=	5
 DISTVERSIONPREFIX=	v
 CATEGORIES=	devel
 
@@ -11,12 +11,18 @@ WWW=		https://gitlab.com/gitlab-org/gitlab-metrics-exporter
 LICENSE=	MIT
 
 USES=		go:modules
+USE_GITHUB=	nodefault
+GH_TUPLE=	golang:sys:v0.6.0:sys
 GO_MODULE=	gitlab.com/gitlab-org/gitlab-metrics-exporter
 
 GO_TARGET=	./cmd/srv
 
 PLIST_FILES+=	bin/srv
 
+pre-patch:
+	${RM} -r ${WRKSRC}/vendor/golang.org/x/sys
+	${LN} -s ${WRKDIR}/sys-* ${WRKSRC}/vendor/golang.org/x/sys
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKDIR}/bin/srv ${STAGEDIR}${PREFIX}/bin/srv
 
diff --git a/devel/gitlab-metrics-exporter/distinfo b/devel/gitlab-metrics-exporter/distinfo
index e3128391136d..76c3d8bd7be8 100644
--- a/devel/gitlab-metrics-exporter/distinfo
+++ b/devel/gitlab-metrics-exporter/distinfo
@@ -1,5 +1,7 @@
-TIMESTAMP = 1669453978
+TIMESTAMP = 1678910541
 SHA256 (go/devel_gitlab-metrics-exporter/gitlab-metrics-exporter-v0.1.2/v0.1.2.mod) = bce095c599e295c1c6ef6dcc5bd6a7812db4f4cbb5af267bd83cbb01712b0c34
 SIZE (go/devel_gitlab-metrics-exporter/gitlab-metrics-exporter-v0.1.2/v0.1.2.mod) = 1183
 SHA256 (go/devel_gitlab-metrics-exporter/gitlab-metrics-exporter-v0.1.2/v0.1.2.zip) = 5900bd9eeee7844c35a1a82668541bbd1c6ff9642cf74e802a5aee65291329f0
 SIZE (go/devel_gitlab-metrics-exporter/gitlab-metrics-exporter-v0.1.2/v0.1.2.zip) = 1539074
+SHA256 (go/devel_gitlab-metrics-exporter/gitlab-metrics-exporter-v0.1.2/golang-sys-v0.6.0_GH0.tar.gz) = b4f6d17c7a128f76169964b437cb66b3f2dbf9a33361928ec19dfecf7b03fc54
+SIZE (go/devel_gitlab-metrics-exporter/gitlab-metrics-exporter-v0.1.2/golang-sys-v0.6.0_GH0.tar.gz) = 1434234