Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2024 10:22:47 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 8819825cd882 - main - sysutils/ncdu2: Update to 2.4
Message-ID:  <202405281022.44SAMlwN028703@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8819825cd8829998b9eec2287ce8d830301c6f0a

commit 8819825cd8829998b9eec2287ce8d830301c6f0a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-28 09:59:56 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-28 10:21:26 +0000

    sysutils/ncdu2: Update to 2.4
    
    Changes:        https://code.blicky.net/yorhel/ncdu/src/branch/zig/ChangeLog
                    https://dev.yorhel.nl/ncdu/changes2
---
 sysutils/ncdu2/Makefile              |  9 +++++----
 sysutils/ncdu2/distinfo              |  6 +++---
 sysutils/ncdu2/files/patch-build.zig | 26 --------------------------
 3 files changed, 8 insertions(+), 33 deletions(-)

diff --git a/sysutils/ncdu2/Makefile b/sysutils/ncdu2/Makefile
index 7de791b107da..57c7cbd76f50 100644
--- a/sysutils/ncdu2/Makefile
+++ b/sysutils/ncdu2/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	ncdu
-PORTVERSION=	2.3
+PORTVERSION=	2.4
 CATEGORIES=	sysutils
 MASTER_SITES=	https://dev.yorhel.nl/download/
 PKGNAMESUFFIX=	2
@@ -12,12 +12,12 @@ WWW=		https://dev.yorhel.nl/ncdu \
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSES/MIT.txt
 
-BUILD_DEPENDS=	zig011>=0.11<0.11_99:lang/zig011
+BUILD_DEPENDS=	zig>=0.12<0.12_99:lang/zig
 
 USES=		ncurses
 
-BUILD_ARGS=	--prefix "${PREFIX}" --verbose ${STRIP:C|.+|-Dstrip|}
-MAKE_ENV=	DESTDIR="${STAGEDIR}"
+BUILD_ARGS=	--prefix ${PREFIX} --verbose
+MAKE_ENV=	DESTDIR=${STAGEDIR}
 
 PLIST_FILES=	bin/ncdu2 \
 		share/man/man1/ncdu2.1.gz
@@ -26,6 +26,7 @@ do-build:
 	cd ${WRKSRC} && ${SETENVI} ${WRK_ENV} ${MAKE_ENV} zig build ${BUILD_ARGS}
 
 do-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ncdu
 	${MV} ${STAGEDIR}${PREFIX}/bin/ncdu ${STAGEDIR}${PREFIX}/bin/ncdu2
 	${INSTALL_MAN} ${WRKSRC}/ncdu.1 ${STAGEDIR}${PREFIX}/share/man/man1/ncdu2.1
 
diff --git a/sysutils/ncdu2/distinfo b/sysutils/ncdu2/distinfo
index 3c510ba07744..a9e2d92ee9bf 100644
--- a/sysutils/ncdu2/distinfo
+++ b/sysutils/ncdu2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1690888324
-SHA256 (ncdu-2.3.tar.gz) = bbce1d1c70f1247671be4ea2135d8c52cd29a708af5ed62cecda7dc6a8000a3c
-SIZE (ncdu-2.3.tar.gz) = 56608
+TIMESTAMP = 1716448654
+SHA256 (ncdu-2.4.tar.gz) = 4a3d0002309cf6a7cea791938dac9becdece4d529d0d6dc8d91b73b4e6855509
+SIZE (ncdu-2.4.tar.gz) = 51648
diff --git a/sysutils/ncdu2/files/patch-build.zig b/sysutils/ncdu2/files/patch-build.zig
deleted file mode 100644
index aea3ee71a4fb..000000000000
--- a/sysutils/ncdu2/files/patch-build.zig
+++ /dev/null
@@ -1,26 +0,0 @@
---- build.zig.orig	2023-08-04 10:43:27 UTC
-+++ build.zig
-@@ -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);
- 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405281022.44SAMlwN028703>