commit:     acda12869496bb07643b91a93cd75af43c47d5ef
Author:     Michael Zavertkin <misha.zavertkin <AT> mail <DOT> ru>
AuthorDate: Sun Feb  9 21:04:47 2025 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Wed Feb 26 10:50:24 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acda1286

sys-process/nvtop: add VIDEO_CARDS=panthor

nvtop lacks of optional libdrm dependency for Mali GPUs
In other words, emerging with VIDEO_CARDS='-* intel' without libdrm on
system fails

Closes: https://github.com/gentoo/gentoo/pull/40416
Signed-off-by: Michael Zavertkin <misha.zavertkin <AT> mail.ru>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 profiles/desc/video_cards.desc       | 3 ++-
 sys-process/nvtop/nvtop-3.1.0.ebuild | 6 +++++-
 sys-process/nvtop/nvtop-9999.ebuild  | 8 ++++++--
 3 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/profiles/desc/video_cards.desc b/profiles/desc/video_cards.desc
index 1c52c8faa7e5..b5688c8783df 100644
--- a/profiles/desc/video_cards.desc
+++ b/profiles/desc/video_cards.desc
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors.
+# Copyright 1999-2025 Gentoo Authors.
 # Distributed under the terms of the GNU General Public License v2
 
 # This file contains descriptions of VIDEO_CARDS USE_EXPAND flags.
@@ -25,6 +25,7 @@ nvk - VIDEO_CARDS setting to build nouveau vulkan driver for 
nvidia cards (Turin
 omap - VIDEO_CARDS setting to build DRM driver for TI OMAP video cards
 qxl - VIDEO_CARDS setting to build driver for qxl (QEMU virtual GPU)
 panfrost - VIDEO_CARDS setting to build driver for Mali 600/700/800 video cards
+panthor - VIDEO_CARDS setting to support for Mali 10th video cards
 r100 - VIDEO_CARDS setting to build only r100 based chips code for radeon
 r128 - VIDEO_CARDS setting to build driver for ATI r128 video cards
 r200 - VIDEO_CARDS setting to build only r200 based chips code for radeon

diff --git a/sys-process/nvtop/nvtop-3.1.0.ebuild 
b/sys-process/nvtop/nvtop-3.1.0.ebuild
index 89b5d58d7a55..f6676f8cb568 100644
--- a/sys-process/nvtop/nvtop-3.1.0.ebuild
+++ b/sys-process/nvtop/nvtop-3.1.0.ebuild
@@ -19,13 +19,15 @@ fi
 LICENSE="GPL-3"
 SLOT="0"
 
-IUSE="unicode video_cards_intel video_cards_amdgpu video_cards_nvidia 
video_cards_freedreno"
+IUSE="unicode video_cards_intel video_cards_amdgpu video_cards_nvidia 
video_cards_freedreno video_cards_panfrost video_cards_panthor"
 
 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] )
+       video_cards_panfrost? ( x11-libs/libdrm )
+       video_cards_panthor? ( x11-libs/libdrm )
        sys-libs/ncurses[unicode(+)?]
 "
 
@@ -46,6 +48,8 @@ src_configure() {
                -DNVIDIA_SUPPORT=$(usex video_cards_nvidia)
                -DAMDGPU_SUPPORT=$(usex video_cards_amdgpu)
                -DMSM_SUPPORT=$(usex video_cards_freedreno)
+               -DPANFROST_SUPPORT=$(usex video_cards_panfrost)
+               -DPANTHOR_SUPPORT=$(usex video_cards_panthor)
        )
 
        cmake_src_configure

diff --git a/sys-process/nvtop/nvtop-9999.ebuild 
b/sys-process/nvtop/nvtop-9999.ebuild
index 0a63ae9e454e..f42c0cdf8772 100644
--- a/sys-process/nvtop/nvtop-9999.ebuild
+++ b/sys-process/nvtop/nvtop-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -19,13 +19,15 @@ fi
 LICENSE="GPL-3"
 SLOT="0"
 
-IUSE="unicode video_cards_intel video_cards_amdgpu video_cards_nvidia 
video_cards_freedreno"
+IUSE="unicode video_cards_intel video_cards_amdgpu video_cards_nvidia 
video_cards_freedreno video_cards_panfrost video_cards_panthor"
 
 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] )
+       video_cards_panfrost? ( x11-libs/libdrm )
+       video_cards_panthor? ( x11-libs/libdrm )
        sys-libs/ncurses[unicode(+)?]
 "
 
@@ -42,6 +44,8 @@ src_configure() {
                -DNVIDIA_SUPPORT=$(usex video_cards_nvidia)
                -DAMDGPU_SUPPORT=$(usex video_cards_amdgpu)
                -DMSM_SUPPORT=$(usex video_cards_freedreno)
+               -DPANFROST_SUPPORT=$(usex video_cards_panfrost)
+               -DPANTHOR_SUPPORT=$(usex video_cards_panthor)
        )
 
        cmake_src_configure

Reply via email to