git: 120549e07d78 - main - sysutils/htop: Update to 3.4.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 05 Nov 2025 10:24:31 UTC
The branch main has been updated by sunpoet:

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

commit 120549e07d78a567aea05269d70cc860a21aea95
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-11-05 10:18:48 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-11-05 10:23:44 +0000

    sysutils/htop: Update to 3.4.1
    
    - Enable libunwind
    - Remove unnecessary substitution
    - Update WWW
    
    Changes:        https://github.com/htop-dev/htop/releases
    PR:             290605
    Approved by:    Hung-Yi Chen <gaod@hychen.org> (maintainer)
---
 sysutils/htop/Makefile | 19 ++++++++++++++-----
 sysutils/htop/distinfo |  6 +++---
 2 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/sysutils/htop/Makefile b/sysutils/htop/Makefile
index 7159c0d71fd9..06b2f27075fb 100644
--- a/sysutils/htop/Makefile
+++ b/sysutils/htop/Makefile
@@ -1,19 +1,20 @@
 PORTNAME=	htop
-DISTVERSION=	3.4.0
+PORTVERSION=	3.4.1
 CATEGORIES=	sysutils
-MASTER_SITES=	https://github.com/${PORTNAME}-dev/${PORTNAME}/releases/download/${DISTVERSION}/
+MASTER_SITES=	https://github.com/htop-dev/htop/releases/download/${PORTVERSION}/
 
 MAINTAINER=	gaod@hychen.org
 COMMENT=	Better top(1) - interactive process viewer
-WWW=		https://htop.dev/
+WWW=		https://htop.dev/ \
+		https://github.com/htop-dev/htop
 
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 USES=		ncurses tar:xz
 
-GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--enable-unicode
+GNU_CONFIGURE=	yes
 
 PLIST_FILES=	bin/htop \
 		share/man/man1/htop.1.gz \
@@ -25,7 +26,15 @@ OPTIONS_DEFINE=	LSOF
 
 LSOF_RUN_DEPENDS=	lsof:sysutils/lsof
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == armv7 || ${ARCH} == i386 || ${ARCH} == powerpc || ${ARCH} == powerpc64 || ${ARCH} == powerpc64le
+CONFIGURE_ARGS+=--enable-libunwind
+LIB_DEPENDS+=	libunwind.so:devel/libunwind
+USES+=		localbase
+.endif
+
 post-patch:
-	@${REINPLACE_CMD} -e 's/3.4.0-dev-3.4.0/3.4.0/' ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's|${PORTVERSION}-${PORTVERSION}|${PORTVERSION}|' ${WRKSRC}/configure
 
 .include <bsd.port.mk>
diff --git a/sysutils/htop/distinfo b/sysutils/htop/distinfo
index 7f60889d18d7..0a6c61c25ede 100644
--- a/sysutils/htop/distinfo
+++ b/sysutils/htop/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1742047079
-SHA256 (htop-3.4.0.tar.xz) = feaabd2d31ca27c09c367a3b1b547ea9f96105fc41f4dfa799e2f49daad5de29
-SIZE (htop-3.4.0.tar.xz) = 427092
+TIMESTAMP = 1748264586
+SHA256 (htop-3.4.1.tar.xz) = 904f7d4580fc11cffc7e0f06895a4789e0c1c054435752c151e812fead9f6220
+SIZE (htop-3.4.1.tar.xz) = 427444