commit:     d5e856b20a4cae28948865252b40afc5b1fb283a
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Fri Apr  4 12:50:25 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr  5 00:39:21 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5e856b2

dev-util/nsight-systems: add 2025.2.1, new ebuild

Used to be in dev-util/nvidia-cuda-toolkit

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/41461
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/nsight-systems/Manifest                   |   2 +
 dev-util/nsight-systems/metadata.xml               |  15 +++
 .../nsight-systems/nsight-systems-2025.2.1.ebuild  | 117 +++++++++++++++++++++
 profiles/features/musl/package.mask                |   1 +
 4 files changed, 135 insertions(+)

diff --git a/dev-util/nsight-systems/Manifest b/dev-util/nsight-systems/Manifest
new file mode 100644
index 000000000000..69cd18e7afc8
--- /dev/null
+++ b/dev-util/nsight-systems/Manifest
@@ -0,0 +1,2 @@
+DIST nsight-systems-2025.2.1_2025.2.1.130-1_amd64.deb 428406244 BLAKE2B 
d7831f8adbef228d9ca7308b5466dfacc064560885980e59e5d6d25df64a6cc901bb9c58ffbe2734a9c57fd249f6809d52b7a8f3ed10516a398d8cbdc4b2d214
 SHA512 
74d407e12f560ff2fdb8c09d91733fa78bea8470ba181253ad9946f1e770a5f5e7a15c6d27e41d133e6d670b83e527b1fd7249d1d066f7dfecd17962371e4ea3
+DIST nsight-systems-2025.2.1_2025.2.1.130-1_arm64.deb 401367200 BLAKE2B 
714bff59f4779cf5b86e002bf6cd6fca24ac5f5b9cd5a5626499cd78c88e6b4ad70445869c2045b9d31e3c2c36efe253f49f9843548a75744ba074cd863e4681
 SHA512 
881d2f9278206187297936c875b75344302268a32514149a2e246cc7eb0c68cbcd1cc1e8dee44a305abafd8cfabe90875e296ef99450db1a58336499945b775e

diff --git a/dev-util/nsight-systems/metadata.xml 
b/dev-util/nsight-systems/metadata.xml
new file mode 100644
index 000000000000..5e448bd62925
--- /dev/null
+++ b/dev-util/nsight-systems/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person" proxied="yes">
+               <email>[email protected]</email>
+               <name>Paul Zander</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo Science Project</name>
+       </maintainer>
+       <longdescription>
+               NVIDIA Nsight™ Systems is a system-wide performance analysis 
tool designed to visualize an application’s algorithms, identify the largest 
opportunities to optimize, and tune to scale efficiently across any quantity or 
size of CPUs and GPUs, from large servers to our smallest systems-on-a-chip 
(SoCs).
+       </longdescription>
+</pkgmetadata>

diff --git a/dev-util/nsight-systems/nsight-systems-2025.2.1.ebuild 
b/dev-util/nsight-systems/nsight-systems-2025.2.1.ebuild
new file mode 100644
index 000000000000..283c2aec821b
--- /dev/null
+++ b/dev-util/nsight-systems/nsight-systems-2025.2.1.ebuild
@@ -0,0 +1,117 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit unpacker
+
+DESCRIPTION="performance analysis tool designed to visualize an application’s 
algorithms"
+HOMEPAGE="https://developer.nvidia.com/nsight-systems";
+
+MY_PV=$(ver_cut 1-2)
+MY_PV=${MY_PV//./_}
+
+PV_BUILD="130-1"
+
+SRC_URI="
+       amd64? (
+               
https://developer.nvidia.com/downloads/assets/tools/secure/${PN}/${MY_PV}/${PN}-${PV}_${PV}.${PV_BUILD}_amd64.deb
+       )
+       arm64? (
+               
https://developer.nvidia.com/downloads/assets/tools/secure/${PN}/${MY_PV}/${PN}-${PV}_${PV}.${PV_BUILD}_arm64.deb
+       )
+"
+S="${WORKDIR}"
+
+LICENSE="NVIDIA-r2"
+SLOT="${PV}"
+KEYWORDS="~amd64 ~arm64"
+
+RESTRICT="bindist mirror strip test"
+
+RDEPEND="
+       app-crypt/mit-krb5
+       dev-libs/expat
+       dev-libs/glib:2
+       dev-libs/nspr
+       dev-libs/nss
+       dev-libs/wayland
+       dev-qt/qtwayland:6
+       media-libs/fontconfig
+       media-libs/freetype
+       media-libs/gst-plugins-base:1.0
+       media-libs/gstreamer:1.0
+       media-libs/libglvnd
+       media-libs/tiff-compat:4
+       sys-apps/dbus
+       sys-cluster/rdma-core
+       x11-drivers/nvidia-drivers
+       x11-libs/libICE
+       x11-libs/libSM
+       x11-libs/libX11
+       x11-libs/libXcomposite
+       x11-libs/libXdamage
+       x11-libs/libXext
+       x11-libs/libXfixes
+       x11-libs/libXrandr
+       x11-libs/libXrender
+       x11-libs/libXtst
+       x11-libs/libxcb
+       x11-libs/libxkbcommon
+       x11-libs/libxkbfile
+       x11-libs/libxshmfence
+       x11-libs/xcb-util-image
+       x11-libs/xcb-util-keysyms
+       x11-libs/xcb-util-renderutil
+       x11-libs/xcb-util-wm
+       arm64? (
+               media-libs/gst-plugins-bad:1.0
+       )
+"
+BDEPEND="
+       dev-util/patchelf
+"
+
+QA_PREBUILT="/opt/nvidia/${PN}/$(ver_cut 1-2)"
+
+src_prepare() {
+       if use amd64; then
+               sed \
+                       -e "/Terminal/s/=No/=false/" \
+                       -e "/Categories/s/Application;//" \
+                       -i usr/share/applications/*.desktop || die
+
+               if [[ -n "${EPREFIX}" ]]; then
+                       sed  -e "s#=/#=${EPREFIX}/#g" -i 
usr/share/applications/*.desktop || die
+               fi
+       fi
+
+       readarray -t rpath_libs < <(
+               find "${S}/opt/nvidia/${PN}/${PV}/host-linux-"* \
+                       -name 'libparquet*.so*.0.0' -o \
+                       -name 'libarrow*.so*.0.0' -o \
+                       -name 'libssh.so'|| die
+       )
+       for rpath_lib in "${rpath_libs[@]}"; do
+               # ebegin "fixing rpath for ${rpath_lib}"
+               patchelf --set-rpath '$ORIGIN' "${rpath_lib}" || die
+               # eend $?
+       done
+
+       eapply_user
+}
+
+src_configure() {
+       :
+}
+
+src_compile() {
+       :
+}
+
+src_install() {
+       rm -r usr/local || die
+       mv ./* "${ED}" || die
+
+       # TODO install desktop file for arm64
+}

diff --git a/profiles/features/musl/package.mask 
b/profiles/features/musl/package.mask
index c3f33880fe55..75a9c73dfa70 100644
--- a/profiles/features/musl/package.mask
+++ b/profiles/features/musl/package.mask
@@ -444,6 +444,7 @@ dev-libs/cudnn-frontend
 dev-python/pycuda
 dev-util/nsight-compute
 dev-util/nsight-graphics
+dev-util/nsight-systems
 dev-util/nvidia-cuda-toolkit
 dev-libs/optix
 media-libs/nvidia-vaapi-driver

Reply via email to