git: 3c283e62213a - main - sysutils/ncdu2: Install ncdu as ncdu2

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 21 Aug 2023 17:13:24 UTC
The branch main has been updated by sunpoet:

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

commit 3c283e62213a1160d6c6ce6cbdf911911a41f4f7
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-08-21 17:03:10 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-08-21 17:03:10 +0000

    sysutils/ncdu2: Install ncdu as ncdu2
    
    - Update WWW
    - Remove CONFLICTS_INSTALL
    - Bump PORTREVISION for package change
---
 sysutils/ncdu2/Makefile | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/sysutils/ncdu2/Makefile b/sysutils/ncdu2/Makefile
index b2249715fc98..1838f9785d92 100644
--- a/sysutils/ncdu2/Makefile
+++ b/sysutils/ncdu2/Makefile
@@ -1,17 +1,19 @@
 PORTNAME=	ncdu
 PORTVERSION=	2.2.2
+PORTREVISION=	1
 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
+WWW=		https://dev.yorhel.nl/ncdu \
+		https://code.blicky.net/yorhel/ncdu
 
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSES/MIT.txt
 
-BUILD_DEPENDS=	zig>=0.10.0<0.11:lang/zig
+BUILD_DEPENDS=	zig>=0.10.0<0.10.1_99:lang/zig
 RUN_DEPENDS=	zig:lang/zig
 
 USES=		ncurses
@@ -19,16 +21,15 @@ USES=		ncurses
 BUILD_ARGS=	--prefix "${PREFIX}" --verbose
 MAKE_ENV=	DESTDIR="${STAGEDIR}"
 
-PLIST_FILES=	bin/ncdu \
-		share/man/man1/ncdu.1.gz
-
-CONFLICTS_INSTALL=	ncdu
+PLIST_FILES=	bin/ncdu2 \
+		share/man/man1/ncdu2.1.gz
 
 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
+	${MV} ${STAGEDIR}${PREFIX}/bin/ncdu ${STAGEDIR}${PREFIX}/bin/ncdu2
+	${INSTALL_MAN} ${WRKSRC}/ncdu.1 ${STAGEDIR}${PREFIX}/share/man/man1/ncdu2.1
 
 .include <bsd.port.mk>