mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-process/btop: add 1.4.3
Signed-off-by: idealseal <realidealseal@protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42160 Closes: https://github.com/gentoo/gentoo/pull/42160 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
DIST btop-1.3.2.tar.gz 1144620 BLAKE2B dfe351fff0b9e0aa376ebc93d76e1542a1cd93eec695bc9056cd296a11d563d676a0f0a61e911d20cbbaef276feb5bf20cafbc5f063475393b82139e0d08386a SHA512 9bbe983aa1336566f78396b829d49c22fe709e4e3d959dabc7524b61defba2638f3b0c50658f755fd1f02dd70572c78cc3cfc8b01772e174d0f34a48e4e178b2
|
||||
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
|
||||
|
||||
58
sys-process/btop/btop-1.4.3.ebuild
Normal file
58
sys-process/btop/btop-1.4.3.ebuild
Normal file
@@ -0,0 +1,58 @@
|
||||
# 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" )
|
||||
|
||||
PATCHES=(
|
||||
# Can be removed after 1.4.4.
|
||||
"${FILESDIR}/${P}-network-title.patch"
|
||||
)
|
||||
|
||||
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
|
||||
-DBTOP_WERROR=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
|
||||
}
|
||||
23
sys-process/btop/files/btop-1.4.3-network-title.patch
Normal file
23
sys-process/btop/files/btop-1.4.3-network-title.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
From d758fc8dc647a12c1bf1b1c1aa5893f92e4daf91 Mon Sep 17 00:00:00 2001
|
||||
From: xDMPx <57721731+xDMPx@users.noreply.github.com>
|
||||
Date: Tue, 13 May 2025 00:06:09 +0200
|
||||
Subject: [PATCH] Fix incorrect positioning and start symbol of second title
|
||||
introduced in 2538d89ed97bd98b8c092ca73ec75be7db888467
|
||||
|
||||
---
|
||||
src/btop_draw.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/btop_draw.cpp b/src/btop_draw.cpp
|
||||
index 2608e0333..850a6c45a 100644
|
||||
--- a/src/btop_draw.cpp
|
||||
+++ b/src/btop_draw.cpp
|
||||
@@ -293,7 +293,7 @@ namespace Draw {
|
||||
}
|
||||
if (not title2.empty()) {
|
||||
out += fmt::format(
|
||||
- "{}{}{}{}{}{}{}{}{}", Mv::to(y, x + 2), Symbols::title_left, Fx::b, numbering, Theme::c("title"), title2, Fx::ub,
|
||||
+ "{}{}{}{}{}{}{}{}{}", Mv::to(y + height - 1, x + 2), Symbols::title_left_down, Fx::b, numbering, Theme::c("title"), title2, Fx::ub,
|
||||
line_color, Symbols::title_right_down
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user