git: 266025bce0db - main - devel/goprotobuf: Adopt/Update to 1.5.2

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Fri, 22 Jul 2022 23:41:31 UTC
The branch main has been updated by eduardo:

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

commit 266025bce0db46fc2e9355257ed42d03f348e7d0
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2022-07-22 23:39:38 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-07-22 23:41:00 +0000

    devel/goprotobuf: Adopt/Update to 1.5.2
    
     - switch to GO_MODULE
    
    ChangeLog:      https://github.com/golang/protobuf/releases
---
 devel/goprotobuf/Makefile | 15 ++++-----------
 devel/goprotobuf/distinfo | 10 +++++-----
 2 files changed, 9 insertions(+), 16 deletions(-)

diff --git a/devel/goprotobuf/Makefile b/devel/goprotobuf/Makefile
index 20dcbd6e3314..35043f4fd7ec 100644
--- a/devel/goprotobuf/Makefile
+++ b/devel/goprotobuf/Makefile
@@ -1,11 +1,10 @@
 PORTNAME=	goprotobuf
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.1.0
-PORTREVISION=	4
+DISTVERSION=	1.5.2
 PORTEPOCH=	1
 CATEGORIES=	devel
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	eduardo@FreeBSD.org
 COMMENT=	Go support for Google's protocol buffers
 
 LICENSE=	BSD3CLAUSE
@@ -13,14 +12,8 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	protoc:devel/protobuf
 
-USES=		go
-
-USE_GITHUB=	yes
-GH_ACCOUNT=	golang
-GH_PROJECT=	protobuf
-GH_SUBDIR=	src/github.com/golang/protobuf
-GH_TUPLE=	google:go-genproto:02b4e95:genproto/src/google.golang.org/genproto
-
+USES=		go:modules
+GO_MODULE=	github.com/golang/protobuf
 GO_TARGET=	./protoc-gen-go
 
 PLIST_FILES=	bin/protoc-gen-go
diff --git a/devel/goprotobuf/distinfo b/devel/goprotobuf/distinfo
index 33d80fba5cf0..9368c87123e0 100644
--- a/devel/goprotobuf/distinfo
+++ b/devel/goprotobuf/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1532443980
-SHA256 (golang-protobuf-v1.1.0_GH0.tar.gz) = c086490e7b116b73b7e3e6058eae997576d0523ad8f1b2ec2b698887e62b14a8
-SIZE (golang-protobuf-v1.1.0_GH0.tar.gz) = 324733
-SHA256 (google-go-genproto-02b4e95_GH0.tar.gz) = 71421ee0c9af39492dad0c63736e0e3771ecd41066034f77472bd922208fcdfd
-SIZE (google-go-genproto-02b4e95_GH0.tar.gz) = 2091400
+TIMESTAMP = 1658532107
+SHA256 (go/devel_goprotobuf/goprotobuf-v1.5.2/v1.5.2.mod) = 7c8e7610527afd7724c7e8b7e843f132b0db61e8c9dd49dc589d430e8929bcc4
+SIZE (go/devel_goprotobuf/goprotobuf-v1.5.2/v1.5.2.mod) = 192
+SHA256 (go/devel_goprotobuf/goprotobuf-v1.5.2/v1.5.2.zip) = 5d1c817bebc1202ab3b42a418e584e0008e8027baf212ce69c2ae3e9e7b8c64b
+SIZE (go/devel_goprotobuf/goprotobuf-v1.5.2/v1.5.2.zip) = 206858