commit: 7f27dec61b12b22b5837ec17df86503714c35b6d Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com> AuthorDate: Fri Apr 4 12:51:20 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=7f27dec6
dev-util/nsight-graphics: add 2025.2.0, new ebuild Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> dev-util/nsight-graphics/Manifest | 2 + dev-util/nsight-graphics/metadata.xml | 15 +++ .../nsight-graphics-2025.2.0.ebuild | 124 +++++++++++++++++++++ profiles/arch/amd64/x32/package.mask | 1 + profiles/features/musl/package.mask | 1 + 5 files changed, 143 insertions(+) diff --git a/dev-util/nsight-graphics/Manifest b/dev-util/nsight-graphics/Manifest new file mode 100644 index 000000000000..d3771f468e86 --- /dev/null +++ b/dev-util/nsight-graphics/Manifest @@ -0,0 +1,2 @@ +DIST NVIDIA_Nsight_Graphics_2025.2.0.25073.run 316645004 BLAKE2B 6ab8e7914a2dc881775e121c8222936ceb57711a6a8b62b58fa5260529b6dd298c2fc1b8ac85abf01b752986444b365b6baf111ecd9081470c606a729a41da64 SHA512 c295512e7871b80dc03fc9f597073fe8b0decbc0c2cbc9e97877a112c4479a5a00c9329d85edba298864f1ab874f2535d8ec96feae0720802240f0d958e30de2 +DIST nvidia-nsight-graphics-icon-gbp-shaded-128.20231126.png 17306 BLAKE2B c00c18ff9a67437dfd5a4575ce1cb27804ae973f87c11ff2c8870753091dd132dc17b8ce897fb2d8139e4e047187d38ea84ca53aa4c14def096d0cb60364d936 SHA512 81d9682fb9b190698418fd110d02f6f32776a9b013600152b3241b9811194a7ec18bb3d8e823b1f3f857e7ff12a4b3a1801b8cd886f7677f4adf451440e52639 diff --git a/dev-util/nsight-graphics/metadata.xml b/dev-util/nsight-graphics/metadata.xml new file mode 100644 index 000000000000..f5a408ba3651 --- /dev/null +++ b/dev-util/nsight-graphics/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â„¢ Graphics is a standalone developer tool with ray-tracing support that enables you to debug, profile, and export frames built with Direct3D, Vulkan, OpenGL, OpenVR, and the Oculus SDK. + </longdescription> +</pkgmetadata> diff --git a/dev-util/nsight-graphics/nsight-graphics-2025.2.0.ebuild b/dev-util/nsight-graphics/nsight-graphics-2025.2.0.ebuild new file mode 100644 index 000000000000..36bad1006898 --- /dev/null +++ b/dev-util/nsight-graphics/nsight-graphics-2025.2.0.ebuild @@ -0,0 +1,124 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop unpacker + +DESCRIPTION="standalone developer tool with ray-tracing support" +HOMEPAGE="https://developer.nvidia.com/nsight-graphics" + +MY_PV="$(ver_rs 1-3 '_')" +PV_BUILD="25073" + +SRC_URI=" + https://developer.nvidia.com/downloads/assets/tools/secure/${PN}/${MY_PV}/linux/NVIDIA_Nsight_Graphics_${PV}.${PV_BUILD}.run + mirror+https://developer.download.nvidia.com/images/nvidia-nsight-graphics-icon-gbp-shaded-128.png + -> nvidia-nsight-graphics-icon-gbp-shaded-128.20231126.png +" + +S="${WORKDIR}/pkg" + +LICENSE="NVIDIA-r2" +SLOT="$(ver_cut 1-2)" +KEYWORDS="~amd64" + +RESTRICT="bindist mirror strip test" + +RDEPEND=" + dev-libs/glib:2 + dev-libs/wayland + dev-qt/qtdeclarative:6 + dev-qt/qtpositioning:6 + dev-qt/qtwayland:6 + dev-qt/qtwebchannel:6 + dev-qt/qtwebengine:6 + media-libs/fontconfig + media-libs/libglvnd + media-libs/tiff-compat:4 + sys-apps/dbus + sys-apps/util-linux + x11-drivers/nvidia-drivers + x11-libs/libX11 + x11-libs/libxcb + x11-libs/libxkbcommon + x11-libs/xcb-util-cursor + x11-libs/xcb-util-image + x11-libs/xcb-util-keysyms + x11-libs/xcb-util-renderutil + x11-libs/xcb-util-wm +" + +BDEPEND=" + dev-util/patchelf +" + +QA_PREBUILT="/opt/nvidia/${PN}/$(ver_cut 1-2)" + +src_prepare() { + rm EULA.txt || die + + pushd host/linux-desktop-nomad-* >/dev/null || die + + readarray -t rpath_bins < <(find . -maxdepth 1 -name '*.bin') + for rpath_bin in "${rpath_bins[@]}"; do + ebegin "fixing rpath for ${rpath_bin}" + patchelf --set-rpath '$ORIGIN' "${rpath_bin}" || die + eend $? + + sed \ + -e "s/NV_AGORA_PATH/NV_AGORA_PATH_/g" \ + -e "4i export QT_PLUGIN_PATH=\"\${NV_AGORA_PATH_}/Plugins\"" \ + -i "$(basename "${rpath_bin}" .bin)" \ + || die + done + + popd &>/dev/null || die + + eapply_user +} + +src_configure() { + : +} + +src_compile() { + : +} + +src_install() { + local dir + dir="/opt/nvidia/${PN}/$(ver_cut 1-2)" + + dodir "${dir}" + mv ./* "${ED}${dir}" || die + + local arch_dir="$(find "${ED}${dir}/host" -mindepth 1 -maxdepth 1 -name 'linux-*' -exec basename {} \;)" + if [[ -z "${arch_dir}" ]]; then + die "failed to find arch dir" + fi + if [[ "$(echo "${arch_dir}" | wc -l )" -gt 1 ]]; then + echo ${arch_dir} + die "found $(echo "${arch_dir}" | wc -l )" + fi + + cp \ + "${DISTDIR}/nvidia-nsight-graphics-icon-gbp-shaded-128.20231126.png" \ + "${ED}${dir}/host/${arch_dir}/ngfx-ui.png" \ + || die + + newmenu - "${P}.desktop" <<-EOF || die + [Desktop Entry] + Type=Application + Name=NVIDIA Nsight Graphics ${PV} + GenericName=NVIDIA Nsight Graphics + Icon=${EPREFIX}${dir}/host/${arch_dir}/ngfx-ui.png + Exec=env WAYLAND_DISPLAY= ${EPREFIX}${dir}/host/${arch_dir}/ngfx-ui + TryExec=${EPREFIX}${dir}/host/${arch_dir}/ngfx-ui + Keywords=cuda;gpu;nvidia;nsight; + X-AppInstall-Keywords=cuda;gpu;nvidia;nsight; + X-GNOME-Keywords=cuda;gpu;nvidia;nsight; + Terminal=false + Categories=Development;Profiling;ParallelComputing + EOF +} diff --git a/profiles/arch/amd64/x32/package.mask b/profiles/arch/amd64/x32/package.mask index afee5b2c31c1..8d541963d3b6 100644 --- a/profiles/arch/amd64/x32/package.mask +++ b/profiles/arch/amd64/x32/package.mask @@ -4,6 +4,7 @@ # Paul Zander <[email protected]> (2025-04-04) # Requires dev-qt/qtwebengine dev-util/nsight-compute +dev-util/nsight-graphics # Z. Liu <[email protected]> (2025-01-23) # Requires dev-qt/qtwebengine diff --git a/profiles/features/musl/package.mask b/profiles/features/musl/package.mask index 26624822dd96..c3f33880fe55 100644 --- a/profiles/features/musl/package.mask +++ b/profiles/features/musl/package.mask @@ -443,6 +443,7 @@ dev-libs/cudnn dev-libs/cudnn-frontend dev-python/pycuda dev-util/nsight-compute +dev-util/nsight-graphics dev-util/nvidia-cuda-toolkit dev-libs/optix media-libs/nvidia-vaapi-driver
