git: 7e5344a5984b - main - devel/gumbo: Update version 0.10.1=>0.12.1

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 10 Jan 2024 10:22:51 UTC
The branch main has been updated by bofh:

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

commit 7e5344a5984bbfd82d8baa4c667bd698c99ba27c
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-06 10:13:28 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-10 10:22:43 +0000

    devel/gumbo: Update version 0.10.1=>0.12.1
    
    - Switch to new fork as Google has abandoned this project
    
    PR:             275327
    Reported by:    bsd@dino.sk
    Approved by:    bdrewery (maintainer-timeout)
---
 devel/gumbo/Makefile  | 21 +++++++++++----------
 devel/gumbo/distinfo  |  5 +++--
 devel/gumbo/pkg-plist |  4 ++--
 3 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/devel/gumbo/Makefile b/devel/gumbo/Makefile
index 7d9d6741a0e9..3b63366f45f7 100644
--- a/devel/gumbo/Makefile
+++ b/devel/gumbo/Makefile
@@ -1,24 +1,25 @@
 PORTNAME=	gumbo
-PORTVERSION=	0.10.1
-DISTVERSIONPREFIX=	v
+PORTVERSION=	0.12.1
 CATEGORIES=	devel textproc
+MASTER_SITES=	https://codeberg.org/grisha/gumbo-parser/archive/${PORTVERSION}${EXTRACT_SUFX}?dummy/
 
 MAINTAINER=	bdrewery@FreeBSD.org
 COMMENT=	Pure-C HTML5 parser
-WWW=		https://github.com/google/gumbo-parser
+WWW=		https://codeberg.org/grisha/gumbo-parser
 
 LICENSE=	APACHE20
 
-USE_GITHUB=	yes
-GH_ACCOUNT=	google
-GH_PROJECT=	gumbo-parser
-
 USES=		autoreconf gmake pathfix libtool
-INSTALL_TARGET=	install-strip
-GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 
+GNU_CONFIGURE=	yes
+
+INSTALL_TARGET=	install-strip
+
+post-extract:
+	${MV} ${WRKDIR}/gumbo-parser ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
 post-install:
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgumbo.so.1.0.0
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgumbo.so.2.0.1
 
 .include <bsd.port.mk>
diff --git a/devel/gumbo/distinfo b/devel/gumbo/distinfo
index 4f0eee2f12cf..fd7352ded5c3 100644
--- a/devel/gumbo/distinfo
+++ b/devel/gumbo/distinfo
@@ -1,2 +1,3 @@
-SHA256 (google-gumbo-parser-v0.10.1_GH0.tar.gz) = 28463053d44a5dfbc4b77bcf49c8cee119338ffa636cc17fc3378421d714efad
-SIZE (google-gumbo-parser-v0.10.1_GH0.tar.gz) = 2119285
+TIMESTAMP = 1700865645
+SHA256 (gumbo-0.12.1.tar.gz) = a0ff2e1b613403fe69ff6407f3f93221fdfa67da357be158bb1e6903b33c1c10
+SIZE (gumbo-0.12.1.tar.gz) = 2115338
diff --git a/devel/gumbo/pkg-plist b/devel/gumbo/pkg-plist
index bb1d30629261..d5079b4b449c 100644
--- a/devel/gumbo/pkg-plist
+++ b/devel/gumbo/pkg-plist
@@ -2,6 +2,6 @@ include/gumbo.h
 include/tag_enum.h
 lib/libgumbo.a
 lib/libgumbo.so
-lib/libgumbo.so.1
-lib/libgumbo.so.1.0.0
+lib/libgumbo.so.2
+lib/libgumbo.so.2.0.1
 libdata/pkgconfig/gumbo.pc