summaryrefslogtreecommitdiff
path: root/sys-process/nvtop
diff options
context:
space:
mode:
Diffstat (limited to 'sys-process/nvtop')
-rw-r--r--sys-process/nvtop/Manifest5
-rw-r--r--sys-process/nvtop/files/nvtop-3.1.0-fix-drm-missing.patch23
-rw-r--r--sys-process/nvtop/metadata.xml34
-rw-r--r--sys-process/nvtop/nvtop-3.1.0.ebuild52
-rw-r--r--sys-process/nvtop/nvtop-9999.ebuild48
5 files changed, 162 insertions, 0 deletions
diff --git a/sys-process/nvtop/Manifest b/sys-process/nvtop/Manifest
new file mode 100644
index 000000000000..45cb0817c229
--- /dev/null
+++ b/sys-process/nvtop/Manifest
@@ -0,0 +1,5 @@
+AUX nvtop-3.1.0-fix-drm-missing.patch 805 BLAKE2B fd684cc94a8f1f3cebd5eb369739491947ee48b5b4efda007a881fe655ac73bf68c0a331e6ca13bad5b83a204f70c072024bea67d83e0af18c9cf2edacbc6288 SHA512 f56f0bf1ff69f3622ca737fa0463e87f0d087a1a601185e20041e4e6a0e903520193cdf4c915b8ea1e848e7157ac44be7719f26c4096475fc5c38f69bd7da1f3
+DIST nvtop-3.1.0.tar.gz 269897 BLAKE2B 8d8e8b8014ea4d9dba241d620eaf9b4c37e99b593a8dddc31cc40d084eb1d5aaf3dff712d86567f46fb3b360b77392ac1836c9487e6b9f9a2514b27f2ebd1e94 SHA512 a22806920d85954930cf9a24450de2603418326b59bc7acedf8ff59ddb0f40e119de496a63f42706b4b6961c83ba664a8a33a3e4106a1c3ef6cd3da758aa5a55
+EBUILD nvtop-3.1.0.ebuild 1247 BLAKE2B 787ae592022d4feebf74e5b8bf0b785cb5a492f8c1222fd3f6dd180f3b7fbdd1b7b4ca077b4d48d485f221ac236a543c16fb9593f0ff748abe7c57ae6f1dc8dd SHA512 05b353ed124f91fd7d54dd249c4d7ed9bba4fefb2fce3a9a865b760686b41edf9af1c3772840d02635e2a0c3434fcbd01d1e315b2f39f9f3b760e3a0b2d4f99e
+EBUILD nvtop-9999.ebuild 1185 BLAKE2B 916b534b9f409eb8a2fbb07006cd15ff48beb023c2198c1bb0bb6ffc492c2c9da8a579cbee2029805479e7bae057809cf2e6ad89473c925539aef9483ac3399c SHA512 0abed073d6a8c5fe85f97caa76d1d2b7ad2fffd57682baa0bf22f0da2d6294d706f6d5ae29ddb147bbace97417651a6ffedf2be78008e04937a0ae8d1c16df69
+MISC metadata.xml 1280 BLAKE2B 5ab81ab4127160ecc5559260f99ea2384e56c722b84fcc0ceccd42c4479ec00617a3f12b4231087d1a6a9dd8b056fc582a4278874f54fab76ca7cd9792e9e04f SHA512 c07cb7e0226996ae74d9551b7baecbc353e5702a1eb4de2af28fcb90d48e143ab9a5af10e9a0f35849b6d45c100f3c050ef2baf7c427dd96e3330c8caeae155b
diff --git a/sys-process/nvtop/files/nvtop-3.1.0-fix-drm-missing.patch b/sys-process/nvtop/files/nvtop-3.1.0-fix-drm-missing.patch
new file mode 100644
index 000000000000..ea08bef38df5
--- /dev/null
+++ b/sys-process/nvtop/files/nvtop-3.1.0-fix-drm-missing.patch
@@ -0,0 +1,23 @@
+Merged by upstream: https://github.com/Syllo/nvtop/pull/338
+From 28328c5a6931786e57c9a205b2415114fa68a1ce Mon Sep 17 00:00:00 2001
+From: Takuya Wakazono <pastalian46@gmail.com>
+Date: Sat, 30 Nov 2024 21:54:23 +0900
+Subject: [PATCH] Include libdrm for builds with panfrost and panthor support
+
+---
+ src/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 169e112..25e4865 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -74,7 +74,7 @@ if(AMDGPU_SUPPORT OR INTEL_SUPPORT)
+ target_sources(nvtop PRIVATE device_discovery_linux.c)
+ endif()
+
+-if(AMDGPU_SUPPORT OR MSM_SUPPORT)
++if(AMDGPU_SUPPORT OR MSM_SUPPORT OR PANFROST_SUPPORT OR PANTHOR_SUPPORT)
+ # Search for libdrm for AMDGPU support
+ find_package(Libdrm)
+
diff --git a/sys-process/nvtop/metadata.xml b/sys-process/nvtop/metadata.xml
new file mode 100644
index 000000000000..c47dc39b5ba8
--- /dev/null
+++ b/sys-process/nvtop/metadata.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>vowstar@gmail.com</email>
+ <name>Huang Rui</name>
+ </maintainer>
+ <maintainer type="person" proxied="yes">
+ <email>zhixu.liu@gmail.com</email>
+ <name>Z. Liu</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/Syllo/nvtop/issues</bugs-to>
+ <changelog>https://github.com/Syllo/nvtop/releases</changelog>
+ <remote-id type="github">Syllo/nvtop</remote-id>
+ </upstream>
+ <longdescription lang="en">
+ NVTOP stands for Neat Videocard TOP, a (h)top like task monitor
+ for GPUs and accelerators. It can handle multiple GPUs and print
+ information about them in a htop-familiar way.
+
+ Currently supported vendors are AMD (Linux amdgpu driver), Apple
+ (limited M1 &amp; M2 support), Huawei (Ascend), Intel (Linux i915/Xe
+ drivers), NVIDIA (Linux proprietary divers), Qualcomm Adreno (Linux
+ MSM driver), Broadcom VideoCore (Linux v3d driver).
+ </longdescription>
+ <use>
+ <flag name="unicode">Enable support for ncurses Unicode choice</flag>
+ </use>
+</pkgmetadata>
diff --git a/sys-process/nvtop/nvtop-3.1.0.ebuild b/sys-process/nvtop/nvtop-3.1.0.ebuild
new file mode 100644
index 000000000000..81a0b78f6af0
--- /dev/null
+++ b/sys-process/nvtop/nvtop-3.1.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2024 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_intel video_cards_amdgpu video_cards_nvidia video_cards_freedreno"
+
+RDEPEND="
+ video_cards_intel? ( virtual/udev )
+ video_cards_amdgpu? ( x11-libs/libdrm[video_cards_amdgpu] )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers )
+ video_cards_freedreno? ( x11-libs/libdrm[video_cards_freedreno] )
+ sys-libs/ncurses[unicode(+)?]
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-3.1.0-fix-drm-missing.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DCURSES_NEED_WIDE=$(usex unicode)
+ -DINTEL_SUPPORT=$(usex video_cards_intel)
+ -DNVIDIA_SUPPORT=$(usex video_cards_nvidia)
+ -DAMDGPU_SUPPORT=$(usex video_cards_amdgpu)
+ -DMSM_SUPPORT=$(usex video_cards_freedreno)
+ )
+
+ cmake_src_configure
+}
diff --git a/sys-process/nvtop/nvtop-9999.ebuild b/sys-process/nvtop/nvtop-9999.ebuild
new file mode 100644
index 000000000000..0a63ae9e454e
--- /dev/null
+++ b/sys-process/nvtop/nvtop-9999.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2024 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_intel video_cards_amdgpu video_cards_nvidia video_cards_freedreno"
+
+RDEPEND="
+ video_cards_intel? ( virtual/udev )
+ video_cards_amdgpu? ( x11-libs/libdrm[video_cards_amdgpu] )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers )
+ video_cards_freedreno? ( x11-libs/libdrm[video_cards_freedreno] )
+ sys-libs/ncurses[unicode(+)?]
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="
+ virtual/pkgconfig
+"
+
+src_configure() {
+ local mycmakeargs=(
+ -DCURSES_NEED_WIDE=$(usex unicode)
+ -DINTEL_SUPPORT=$(usex video_cards_intel)
+ -DNVIDIA_SUPPORT=$(usex video_cards_nvidia)
+ -DAMDGPU_SUPPORT=$(usex video_cards_amdgpu)
+ -DMSM_SUPPORT=$(usex video_cards_freedreno)
+ )
+
+ cmake_src_configure
+}