commit:     deb6bcce7e3404718040d7952cfc3adaa542fdaa
Author:     idealseal <realidealseal <AT> protonmail <DOT> com>
AuthorDate: Thu Jul  3 23:52:13 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jul  4 20:00:34 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=deb6bcce

sys-process/btop: add 1.4.4

Signed-off-by: idealseal <realidealseal <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42857
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-process/btop/Manifest          |  1 +
 sys-process/btop/btop-1.4.4.ebuild | 52 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)

diff --git a/sys-process/btop/Manifest b/sys-process/btop/Manifest
index c3eedeb5ecb1..d83a58651f4d 100644
--- a/sys-process/btop/Manifest
+++ b/sys-process/btop/Manifest
@@ -2,3 +2,4 @@ DIST btop-1.3.2.tar.gz 1144620 BLAKE2B 
dfe351fff0b9e0aa376ebc93d76e1542a1cd93eec
 DIST btop-1.4.0.gh.tar.gz 1239400 BLAKE2B 
360b56fc0dab9bc017a4971ffe32cdbe2939b09949f0b4e1d12de5c7b91e6c540d1837c12184b298e35d26c972928d9dd2ef454dbac6464480f3f3e13123545d
 SHA512 
7b7c63daf68192893ae4533c04ea70dcd6f253e188b1c842f2ebebac0b28e51431edef6ccfce5b25b3adbd5b2b637fc832bce7d5d64d664c2bf5c4672be75c8f
 DIST btop-1.4.1.gh.tar.gz 1245448 BLAKE2B 
cc6be5978da81b1170bf4864ebd6ef352436dbcacf8216780b27af04903b971da4a41d93e992470b3b470c34a414296e0bfd5cad7f431eb9a97a12e48557a008
 SHA512 
c13bc2d7646b8050283fcfe0a5e7b901284ec08be05d917c0bbc55d92e3d4350f06b164d69b1ad3501805972848ea567074f449b5e2f2ec06e186134487a02d0
 DIST btop-1.4.3.gh.tar.gz 1245882 BLAKE2B 
fa4c9086866f373b46bcde2778ebdd816eeea9f9e0e088c8ff8ae910dd551c59726546682792da1c7a8e7c52647d4f3960bf1df00a93baa6f75d4d8bd85b4bd6
 SHA512 
4a63c57d9d12549528055d3e509816123966a2143ed8c8cbc76d4c417ac8729265ef1be3102f5a00bc36b1a15786a089eaef05e6ec43382d65fd52ebcea03a4c
+DIST btop-1.4.4.gh.tar.gz 1245613 BLAKE2B 
9dae74de6aa4738e5a665fff6abafb7f8712eeb81c208ee410f330ee29816d35b3483294a36c2ab9523d7c3c6de7735132a2ecc6b785c0aee77dcfc04a60c74e
 SHA512 
acd206daa8832cf6ca8a715ae481088f2854887dbce586a3b1dd5142e8a43e2ee67f2cfa29d9e680f51786ff107346d82ceb17205c30c47f0ec737372a17ef58

diff --git a/sys-process/btop/btop-1.4.4.ebuild 
b/sys-process/btop/btop-1.4.4.ebuild
new file mode 100644
index 000000000000..2ea3a1c12102
--- /dev/null
+++ b/sys-process/btop/btop-1.4.4.ebuild
@@ -0,0 +1,52 @@
+# Copyright 2021-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake optfeature toolchain-funcs xdg
+
+DESCRIPTION="A monitor of resources"
+HOMEPAGE="https://github.com/aristocratos/btop";
+SRC_URI="
+       https://github.com/aristocratos/btop/archive/v${PV}.tar.gz -> 
${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~x86"
+
+BDEPEND="
+       app-text/lowdown
+"
+
+DOCS=( "README.md" "CHANGELOG.md" )
+
+pkg_setup() {
+       if [[ "${MERGE_TYPE}" != "binary" ]]; then
+               if tc-is-clang ; then
+                       if [[ "$(clang-major-version)" -lt 16 ]]; then
+                               die "sys-process/btop requires 
>=llvm-core/clang-16.0.0 to build."
+                       fi
+               elif ! tc-is-gcc ; then
+                       die "$(tc-getCXX) is not a supported compiler. Please 
use sys-devel/gcc or >=llvm-core/clang-16.0.0 instead."
+               fi
+       fi
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DBTOP_GPU=true
+               -DBTOP_RSMI_STATIC=false
+               -DBTOP_STATIC=false
+               # These settings can be controlled in make.conf CFLAGS/CXXFLAGS
+               -DBTOP_LTO=false
+       )
+       cmake_src_configure
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       optfeature "GPU monitoring support (Radeon GPUs)" dev-util/rocm-smi
+       optfeature "GPU monitoring support (NVIDIA GPUs)" 
x11-drivers/nvidia-drivers
+}

Reply via email to