git: 85cfaaa87305 - main - sysutils/ncdu2: update to 2.3

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Mon, 01 Jan 2024 05:39:56 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=85cfaaa873050b3ba0b77389d689160b54c28d22

commit 85cfaaa873050b3ba0b77389d689160b54c28d22
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-08-01 11:12:04 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-01-01 05:37:56 +0000

    sysutils/ncdu2: update to 2.3
    
    Changes:        https://dev.yorhel.nl/ncdu/changes2
    PR:             273274
    Approved by:    maintainer timeout (4 months)
---
 sysutils/ncdu2/Makefile              |  5 ++---
 sysutils/ncdu2/distinfo              |  6 +++---
 sysutils/ncdu2/files/patch-build.zig | 34 +++++++++++++++++++++++++---------
 3 files changed, 30 insertions(+), 15 deletions(-)

diff --git a/sysutils/ncdu2/Makefile b/sysutils/ncdu2/Makefile
index d4f9d6dc152b..a0e5a71e60be 100644
--- a/sysutils/ncdu2/Makefile
+++ b/sysutils/ncdu2/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	ncdu
-PORTVERSION=	2.2.2
-PORTREVISION=	4
+PORTVERSION=	2.3
 CATEGORIES=	sysutils
 MASTER_SITES=	https://dev.yorhel.nl/download/
 PKGNAMESUFFIX=	2
@@ -13,7 +12,7 @@ WWW=		https://dev.yorhel.nl/ncdu \
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSES/MIT.txt
 
-BUILD_DEPENDS=	zig010>=0.10.0<0.10.1_99:lang/zig010
+BUILD_DEPENDS=	zig>=0.11.0<0.11.0_99:lang/zig
 
 USES=		ncurses
 
diff --git a/sysutils/ncdu2/distinfo b/sysutils/ncdu2/distinfo
index b69053f96e94..3c510ba07744 100644
--- a/sysutils/ncdu2/distinfo
+++ b/sysutils/ncdu2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1684104284
-SHA256 (ncdu-2.2.2.tar.gz) = 90d920024e752318b469776ce57e03b3c702d49329ad9825aeeab36c3babf993
-SIZE (ncdu-2.2.2.tar.gz) = 56096
+TIMESTAMP = 1690888324
+SHA256 (ncdu-2.3.tar.gz) = bbce1d1c70f1247671be4ea2135d8c52cd29a708af5ed62cecda7dc6a8000a3c
+SIZE (ncdu-2.3.tar.gz) = 56608
diff --git a/sysutils/ncdu2/files/patch-build.zig b/sysutils/ncdu2/files/patch-build.zig
index f2cd6be02ecc..aea3ee71a4fb 100644
--- a/sysutils/ncdu2/files/patch-build.zig
+++ b/sysutils/ncdu2/files/patch-build.zig
@@ -1,10 +1,26 @@
---- build.zig.orig	2023-01-19 06:57:48 UTC
+--- build.zig.orig	2023-08-04 10:43:27 UTC
 +++ build.zig
-@@ -13,6 +13,7 @@ pub fn build(b: *std.build.Builder) void {
-     exe.addCSourceFile("src/ncurses_refs.c", &[_][]const u8{});
-     exe.linkLibC();
-     exe.linkSystemLibrary("ncursesw");
-+    exe.strip = b.option(bool, "strip", "Strip debug information") orelse false;
-     exe.install();
- 
-     const run_cmd = exe.run();
+@@ -8,6 +8,7 @@ pub fn build(b: *std.Build) void {
+     const optimize = b.standardOptimizeOption(.{});
+ 
+     const pie = b.option(bool, "pie", "Build with PIE support (by default false)") orelse false;
++    const strip = b.option(bool, "strip", "Omit debug information (by default false)") orelse false;
+ 
+     const exe = b.addExecutable(.{
+         .name = "ncdu",
+@@ -23,6 +24,7 @@ pub fn build(b: *std.Build) void {
+     }
+     linkNcurses(exe);
+     exe.pie = pie;
++    exe.strip = strip;
+     b.installArtifact(exe);
+ 
+     const run_cmd = b.addRunArtifact(exe);
+@@ -41,6 +43,7 @@ pub fn build(b: *std.Build) void {
+     });
+     linkNcurses(unit_tests);
+     unit_tests.pie = pie;
++    unit_tests.strip = strip;
+ 
+     const run_unit_tests = b.addRunArtifact(unit_tests);
+