git: ef1b781fb1d8 - main - sysutils/htop: Fix CPU usage in FreeBSD

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Wed, 28 Aug 2024 06:39:52 UTC
The branch main has been updated by fernape:

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

commit ef1b781fb1d88ba11cadc4f35bb398bea2378aef
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2024-08-23 10:57:48 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2024-08-28 06:35:26 +0000

    sysutils/htop: Fix CPU usage in FreeBSD
    
    Cherry pick fix from upstream.
    
    PR:                     280600 281014
    Approved by:            gaod@hychen.org (maintainer, timeout > 2 weeks)
    Differential Revision:  https://reviews.freebsd.org/D46401
---
 sysutils/htop/Makefile | 5 ++++-
 sysutils/htop/distinfo | 4 +++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/sysutils/htop/Makefile b/sysutils/htop/Makefile
index d2bb415f5b3a..163eca91b877 100644
--- a/sysutils/htop/Makefile
+++ b/sysutils/htop/Makefile
@@ -1,9 +1,12 @@
 PORTNAME=	htop
 DISTVERSION=	3.3.0
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	sysutils
 MASTER_SITES=	https://github.com/${PORTNAME}-dev/${PORTNAME}/releases/download/${DISTVERSION}/
 
+PATCH_SITES=	https://github.com/htop-dev/htop/commit/
+PATCHFILES=	3c7fe273989626b299eb78d3ad1acb88ed64db64.diff:-p1
+
 MAINTAINER=	gaod@hychen.org
 COMMENT=	Better top(1) - interactive process viewer
 WWW=		https://htop.dev/
diff --git a/sysutils/htop/distinfo b/sysutils/htop/distinfo
index 14506e79169a..5f1bb3a4399a 100644
--- a/sysutils/htop/distinfo
+++ b/sysutils/htop/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1723667246
+TIMESTAMP = 1724410572
 SHA256 (htop-3.3.0.tar.xz) = a69acf9b42ff592c4861010fce7d8006805f0d6ef0e8ee647a6ee6e59b743d5c
 SIZE (htop-3.3.0.tar.xz) = 337956
+SHA256 (3c7fe273989626b299eb78d3ad1acb88ed64db64.diff) = 6b5717180fb1769e50e04e1b03c064b5600bae5a0ff2a67af77b4ae6085a4d61
+SIZE (3c7fe273989626b299eb78d3ad1acb88ed64db64.diff) = 583