git: 175e8e7ae3fe - main - biology/unikmer: fix build on riscv64

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

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

commit 175e8e7ae3febdb4eb803590b954cf3d0f51d8e6
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-03-20 13:29:48 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-03-22 20:15:16 +0000

    biology/unikmer: 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)
---
 biology/unikmer/Makefile | 8 +++++++-
 biology/unikmer/distinfo | 4 +++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/biology/unikmer/Makefile b/biology/unikmer/Makefile
index 29ec455fec1c..583ede5bb86d 100644
--- a/biology/unikmer/Makefile
+++ b/biology/unikmer/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	unikmer
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.19.1
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	biology
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -14,6 +14,8 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 TEST_DEPENDS=	csvtk:science/csvtk
 
 USES=		go:modules perl5
+USE_GITHUB=	nodefault
+GH_TUPLE=	golang:sys:v0.6.0:sys
 USE_PERL5=	test
 
 GO_MODULE=	github.com/shenwei356/unikmer
@@ -21,6 +23,10 @@ GO_TARGET=	./${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
+
 do-test: # from the benchmark section in README
 	@cd ${WRKSRC} && \
 		${GO_CMD} test . -bench=Bench* -benchmem \
diff --git a/biology/unikmer/distinfo b/biology/unikmer/distinfo
index 6184b2be2853..0c294c0ed48c 100644
--- a/biology/unikmer/distinfo
+++ b/biology/unikmer/distinfo
@@ -1,5 +1,7 @@
-TIMESTAMP = 1672122070
+TIMESTAMP = 1679318811
 SHA256 (go/biology_unikmer/unikmer-v0.19.1/v0.19.1.mod) = 7b62d5cd96cb392e6b06bec08dc810fbe1dda7a2201e95e2ff04a3c631048347
 SIZE (go/biology_unikmer/unikmer-v0.19.1/v0.19.1.mod) = 1359
 SHA256 (go/biology_unikmer/unikmer-v0.19.1/v0.19.1.zip) = d2a25e1fb9eb1701de64f843de9653adf02bf343324c236d08f5d510d6c8e3d2
 SIZE (go/biology_unikmer/unikmer-v0.19.1/v0.19.1.zip) = 4286117
+SHA256 (go/biology_unikmer/unikmer-v0.19.1/golang-sys-v0.6.0_GH0.tar.gz) = b4f6d17c7a128f76169964b437cb66b3f2dbf9a33361928ec19dfecf7b03fc54
+SIZE (go/biology_unikmer/unikmer-v0.19.1/golang-sys-v0.6.0_GH0.tar.gz) = 1434234