Download raw body.
lang/zig moved to Codeberg
zig moved from GH to Codeberg on November 25, 2025 - I propose to update the
port to fetch the source from the new repo. The tag 0.15.2 coincides with the
hash from ZIG_COMMIT, so I think we can just use the tag?
What do you think?
Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/zig/Makefile,v
diff -u -p -r1.30 Makefile
--- Makefile 24 Oct 2025 18:49:56 -0000 1.30
+++ Makefile 28 Mar 2026 17:01:42 -0000
@@ -5,13 +5,11 @@ BROKEN-powerpc64 = ld: error: undefined
COMMENT = zig compiler and toolchain
-DISTNAME = zig-0.15.2
+V = 0.15.2
+DIST_TUPLE = codeberg ziglang zig ${V} .
+REVISION = 0
-GH_ACCOUNT = ziglang
-GH_PROJECT = zig
-GH_COMMIT = ${ZIG_COMMIT}
-
-# see https://github.com/ziglang/zig/tree/0.15.x
+# see https://codeberg.org/ziglang/zig/src/branch/0.15.x
ZIG_VERSION = 0.15.2
ZIG_COMMIT = e4cbd752c8c05f131051f8c873cff7823177d7d3
@@ -36,6 +34,8 @@ MODCLANG_LANGS = c c++
MODCLANG_VERSION = 20
SEPARATE_BUILD = Yes
+
+WRKDIST = ${WRKDIR}/zig
CONFIGURE_ARGS += \
-DZIG_VERSION="${ZIG_VERSION}+${ZIG_COMMIT:C/(.........).*/\1/}" \
Index: distinfo
===================================================================
RCS file: /cvs/ports/lang/zig/distinfo,v
diff -u -p -r1.15 distinfo
--- distinfo 24 Oct 2025 18:49:56 -0000 1.15
+++ distinfo 28 Mar 2026 17:01:42 -0000
@@ -1,2 +1,2 @@
-SHA256 (zig-0.15.2-e4cbd752.tar.gz) = 3hqImz5al36rMYi6SVD8rvoYhgwwmoGpqblXFo8lKtw=
-SIZE (zig-0.15.2-e4cbd752.tar.gz) = 32750678
+SHA256 (ziglang-zig-0.15.2.tar.gz) = jOmKNYxWFDLs5iRROeAoyA4qzTv1JeLRUSHGL+86Xmw=
+SIZE (ziglang-zig-0.15.2.tar.gz) = 32663361
lang/zig moved to Codeberg