git: e545e7a4aa08 - main - sysutils/ncdu2: Add ncdu2 2.2.2

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 27 May 2023 04:25:21 UTC
The branch main has been updated by sunpoet:

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

commit e545e7a4aa081f00cb1ce24943f80616cb44dfdf
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-05-27 04:06:35 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-05-27 04:06:35 +0000

    sysutils/ncdu2: Add ncdu2 2.2.2
    
    Ncdu is a disk usage analyzer with an ncurses interface. It is designed to find
    space hogs on a remote server where you don't have an entire graphical setup
    available, but it is a useful tool even on regular desktop systems. Ncdu aims to
    be fast, simple and easy to use, and should be able to run in any minimal
    POSIX-like environment with ncurses installed.
---
 sysutils/Makefile        |  1 +
 sysutils/ncdu2/Makefile  | 34 ++++++++++++++++++++++++++++++++++
 sysutils/ncdu2/distinfo  |  3 +++
 sysutils/ncdu2/pkg-descr |  5 +++++
 4 files changed, 43 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index 5808d4cb403b..18261fa24c55 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -821,6 +821,7 @@
     SUBDIR += namefix
     SUBDIR += nbosd
     SUBDIR += ncdu
+    SUBDIR += ncdu2
     SUBDIR += ndmpd
     SUBDIR += neofetch
     SUBDIR += nerdctl
diff --git a/sysutils/ncdu2/Makefile b/sysutils/ncdu2/Makefile
new file mode 100644
index 000000000000..b2249715fc98
--- /dev/null
+++ b/sysutils/ncdu2/Makefile
@@ -0,0 +1,34 @@
+PORTNAME=	ncdu
+PORTVERSION=	2.2.2
+CATEGORIES=	sysutils
+MASTER_SITES=	https://dev.yorhel.nl/download/
+PKGNAMESUFFIX=	2
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	NCurses Disk Usage (stable version written in Zig)
+WWW=		https://dev.yorhel.nl/ncdu
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSES/MIT.txt
+
+BUILD_DEPENDS=	zig>=0.10.0<0.11:lang/zig
+RUN_DEPENDS=	zig:lang/zig
+
+USES=		ncurses
+
+BUILD_ARGS=	--prefix "${PREFIX}" --verbose
+MAKE_ENV=	DESTDIR="${STAGEDIR}"
+
+PLIST_FILES=	bin/ncdu \
+		share/man/man1/ncdu.1.gz
+
+CONFLICTS_INSTALL=	ncdu
+
+do-build:
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} zig build ${BUILD_ARGS}
+
+do-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ncdu
+	${INSTALL_MAN} ${WRKSRC}/ncdu.1 ${STAGEDIR}${PREFIX}/share/man/man1/ncdu.1
+
+.include <bsd.port.mk>
diff --git a/sysutils/ncdu2/distinfo b/sysutils/ncdu2/distinfo
new file mode 100644
index 000000000000..b69053f96e94
--- /dev/null
+++ b/sysutils/ncdu2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1684104284
+SHA256 (ncdu-2.2.2.tar.gz) = 90d920024e752318b469776ce57e03b3c702d49329ad9825aeeab36c3babf993
+SIZE (ncdu-2.2.2.tar.gz) = 56096
diff --git a/sysutils/ncdu2/pkg-descr b/sysutils/ncdu2/pkg-descr
new file mode 100644
index 000000000000..10df1ad26ff8
--- /dev/null
+++ b/sysutils/ncdu2/pkg-descr
@@ -0,0 +1,5 @@
+Ncdu is a disk usage analyzer with an ncurses interface. It is designed to find
+space hogs on a remote server where you don't have an entire graphical setup
+available, but it is a useful tool even on regular desktop systems. Ncdu aims to
+be fast, simple and easy to use, and should be able to run in any minimal
+POSIX-like environment with ncurses installed.