From: "Yixun Lan" <dlan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/nvtop/
Date: Tue, 01 Apr 2025 02:38:35 +0000 (UTC) [thread overview]
Message-ID: <1743475077.2c31f057207b10b483d26f7ca063e7dd2f42d02e.dlan@gentoo> (raw)
commit: 2c31f057207b10b483d26f7ca063e7dd2f42d02e
Author: Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Mon Mar 31 21:34:18 2025 +0000
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Tue Apr 1 02:37:57 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c31f057
sys-process/nvtop: add 3.2.0 with improvements
- add := to ncurses dependency
- update LICENSE:
https://github.com/Syllo/nvtop?tab=readme-ov-file#license
- move unconditional dependencies to the top
- make IUSE more readable
- reduce BDEPEND to one line
- sort conditional dependencies & mycmakeargs
Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
sys-process/nvtop/Manifest | 1 +
sys-process/nvtop/nvtop-3.2.0.ebuild | 59 ++++++++++++++++++++++++++++++++++++
2 files changed, 60 insertions(+)
diff --git a/sys-process/nvtop/Manifest b/sys-process/nvtop/Manifest
index 09ab64b89019..3293794e85b0 100644
--- a/sys-process/nvtop/Manifest
+++ b/sys-process/nvtop/Manifest
@@ -1 +1,2 @@
DIST nvtop-3.1.0.tar.gz 269897 BLAKE2B 8d8e8b8014ea4d9dba241d620eaf9b4c37e99b593a8dddc31cc40d084eb1d5aaf3dff712d86567f46fb3b360b77392ac1836c9487e6b9f9a2514b27f2ebd1e94 SHA512 a22806920d85954930cf9a24450de2603418326b59bc7acedf8ff59ddb0f40e119de496a63f42706b4b6961c83ba664a8a33a3e4106a1c3ef6cd3da758aa5a55
+DIST nvtop-3.2.0.tar.gz 299547 BLAKE2B ea4c154adcfe8cd9187031b62413c981c558dd8ffcc86c01be05711184dcc0f0cf3df35ffc994bc26952e97704faa56519012c64e324ea874e5fe1cc4b370a68 SHA512 582b849c6d157321439344922c26ce8d74b9d44254f952e0c4737ea24893c16f1b61610426c4fcd2dfdcd03c81f857e2847c24d7b32f38562210f7ac3d50a7b0
diff --git a/sys-process/nvtop/nvtop-3.2.0.ebuild b/sys-process/nvtop/nvtop-3.2.0.ebuild
new file mode 100644
index 000000000000..8f1314b4bb18
--- /dev/null
+++ b/sys-process/nvtop/nvtop-3.2.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake xdg
+
+DESCRIPTION="(h)top like task monitor for AMD, NVIDIA, Intel and other GPUs"
+HOMEPAGE="https://github.com/Syllo/nvtop"
+
+if [[ "${PV}" == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/Syllo/${PN}.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/Syllo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+
+IUSE="
+ unicode
+ video_cards_amdgpu
+ video_cards_freedreno
+ video_cards_intel
+ video_cards_nvidia
+ video_cards_panfrost
+ video_cards_panthor
+"
+
+RDEPEND="
+ sys-libs/ncurses:=[unicode(+)?]
+ video_cards_amdgpu? ( x11-libs/libdrm[video_cards_amdgpu] )
+ video_cards_freedreno? ( x11-libs/libdrm[video_cards_freedreno] )
+ video_cards_intel? ( virtual/udev )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers )
+ video_cards_panfrost? ( x11-libs/libdrm )
+ video_cards_panthor? ( x11-libs/libdrm )
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs=(
+ -DCURSES_NEED_WIDE=$(usex unicode)
+
+ -DAMDGPU_SUPPORT=$(usex video_cards_amdgpu)
+ -DINTEL_SUPPORT=$(usex video_cards_intel)
+ -DMSM_SUPPORT=$(usex video_cards_freedreno)
+ -DNVIDIA_SUPPORT=$(usex video_cards_nvidia)
+ -DPANFROST_SUPPORT=$(usex video_cards_panfrost)
+ -DPANTHOR_SUPPORT=$(usex video_cards_panthor)
+ )
+
+ cmake_src_configure
+}
next reply other threads:[~2025-04-01 2:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-01 2:38 Yixun Lan [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-04-01 2:38 [gentoo-commits] repo/gentoo:master commit in: sys-process/nvtop/ Yixun Lan
2025-01-22 4:55 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1743475077.2c31f057207b10b483d26f7ca063e7dd2f42d02e.dlan@gentoo \
--to=dlan@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox