[Bug 295323] devel/gumbo: Migrate to meson and update to latest commit

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 16 May 2026 04:00:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295323

            Bug ID: 295323
           Summary: devel/gumbo: Migrate to meson and update to latest
                    commit
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: fsbruva@yahoo.com

The autotools support from upstream is deprecated, so this migrates to using
meson. This enabled the optional capability to test, which also required an
additional build dependency on googletest.

I also adjusting the versioning scheme for now. Since upstream is hosted on
codeberg, there are no magic macros to make life easy. However, I mirrored the
approach used in the porter's handbook for accessing a commit between two
versions [1]. That is, I ran the following in the upstream source directory: 
git describe --tags 23f2e250d5

and used the latest commit. That returned:
0.13.2-16-g23f2e25

The implemented approach manually uses a synthetic version number after the "-"
in the DISTVERSION to create an monotonically increasing version number, and
maps that synthetic version number to a particular commit's hash, without
conflicting with upstream eventually releasing 0.13.3 at some point.

[1]
https://docs.freebsd.org/en/books/porters-handbook/makefiles/#makefile-master_sites-github
, example 14 in split HTML, or 
https://docs.freebsd.org/en/books/porters-handbook/book/#makefile-master_sites-github
, example 18 in the single HTML

Patch inbound.

-- 
You are receiving this mail because:
You are the assignee for the bug.