Simple update to a more recent snapshot of devel/gn, needed for v8 135.0.0 that's bundled with lang/deno 2.2.5, the only consumer of the port.
Tested building deno 2.2.5 on arm64 and amd64. I didn't test deno 2.2.4, but would commit the two updates in lockstep anyway. ok?
Index: Makefile =================================================================== RCS file: /cvs/ports/devel/gn/Makefile,v diff -u -p -r1.5 Makefile --- Makefile 21 Dec 2024 11:39:33 -0000 1.5 +++ Makefile 21 Mar 2025 18:27:53 -0000 @@ -5,11 +5,10 @@ DPB_PROPERTIES= parallel CATEGORIES = devel -DATE = 20230419 +DATE = 20250321 VERSION = 0.0.${DATE} DISTNAME = gn-${DATE} PKGNAME = gn-${VERSION} -REVISION = 1 # gn.googlesource.com does not provide stable snapshots SITES = https://codeberg.org/vlkrs/gn/archive/ Index: distinfo =================================================================== RCS file: /cvs/ports/devel/gn/distinfo,v diff -u -p -r1.1.1.1 distinfo --- distinfo 3 May 2023 12:30:17 -0000 1.1.1.1 +++ distinfo 21 Mar 2025 18:27:53 -0000 @@ -1,2 +1,2 @@ -SHA256 (gn-20230419.tar.gz) = WIs0vZhBc+jpBiaklGC07dXZnWyeNbu9onZ0zk31H3k= -SIZE (gn-20230419.tar.gz) = 1060872 +SHA256 (gn-20250321.tar.gz) = N1sfE2zsiew+pqVCeOxGJZIzVgQ6GhgAHqvMX+kZoaw= +SIZE (gn-20250321.tar.gz) = 1094168 Index: patches/patch-build_gen_py =================================================================== RCS file: /cvs/ports/devel/gn/patches/patch-build_gen_py,v diff -u -p -r1.1.1.1 patch-build_gen_py --- patches/patch-build_gen_py 3 May 2023 12:30:17 -0000 1.1.1.1 +++ patches/patch-build_gen_py 21 Mar 2025 18:27:53 -0000 @@ -3,15 +3,15 @@ Set version based on port version, remov Index: build/gen.py --- build/gen.py.orig +++ build/gen.py -@@ -216,25 +216,16 @@ def main(argv): - +@@ -241,25 +241,16 @@ def is_gcc(cxx): + return ret.returncode == 0 and "#define __GNUC__" in ret.stdout and not "#define __clang__" in ret.stdout def GenerateLastCommitPosition(host, header): - ROOT_TAG = 'initial-commit' - describe_output = subprocess.check_output( - ['git', 'describe', 'HEAD', '--abbrev=12', '--match', ROOT_TAG], - shell=host.is_windows(), cwd=REPO_ROOT) -- mo = re.match(ROOT_TAG + '-(\d+)-g([0-9a-f]+)', describe_output.decode()) +- mo = re.match(ROOT_TAG + r'-(\d+)-g([0-9a-f]+)', describe_output.decode()) - if not mo: - raise ValueError( - 'Unexpected output from git describe when generating version header') @@ -31,8 +31,8 @@ Index: build/gen.py # Only write/touch this file if the commit position has changed. old_contents = '' -@@ -395,10 +386,8 @@ def WriteGNNinja(path, platform, host, options, args_l - cflags.extend(['-O0', '-g']) +@@ -432,10 +423,8 @@ def WriteGNNinja(path, platform, host, options, args_l + cflags.extend(['-D_LIBCPP_DEBUG=1', '-D_GLIBCXX_DEBUG=1']) else: cflags.append('-DNDEBUG') - cflags.append('-O3')