]> jturnerusa.dev Git - ebuilds/commitdiff
add nsight-graphics
authorJohn Turner <jturner.usa+gentoo@gmail.com>
Tue, 10 Dec 2024 20:40:55 +0000 (15:40 -0500)
committerJohn Turner <jturner.usa+gentoo@gmail.com>
Tue, 10 Dec 2024 20:40:55 +0000 (15:40 -0500)
dev-util/nsight-graphics/Manifest [new file with mode: 0644]
dev-util/nsight-graphics/nsight-graphics-2024.3.0.ebuild [new file with mode: 0644]

diff --git a/dev-util/nsight-graphics/Manifest b/dev-util/nsight-graphics/Manifest
new file mode 100644 (file)
index 0000000..e9c5ef9
--- /dev/null
@@ -0,0 +1 @@
+DIST NVIDIA_Nsight_Graphics_2024.3.0.24333.run 220618743 BLAKE2B 1c325ec93e450eef39a0703a972abceef1c00edefc8cca954d9d886c5794df0d19fa1add38338e1026e05680cd60997a0001bed4019a3294c630a46b067573ec SHA512 a9fa3e11fc874d7964591ad2bb91fe6fd3606be4dc1ef6e337901d4f21d996acb46216611f9d0b1e01d2e2a2d3a3b61ea5a543c36a9f545772853fdea9fae47f
diff --git a/dev-util/nsight-graphics/nsight-graphics-2024.3.0.ebuild b/dev-util/nsight-graphics/nsight-graphics-2024.3.0.ebuild
new file mode 100644 (file)
index 0000000..1d376ad
--- /dev/null
@@ -0,0 +1,143 @@
+# Copyright 2024 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_LONG="${PV}.24333"
+
+SRC_URI="https://developer.nvidia.com/downloads/assets/tools/secure/${PN}/${MY_PV}/linux/NVIDIA_Nsight_Graphics_${PV_LONG}.run"
+
+S="${WORKDIR}/pkg"
+
+LICENSE="NVIDIA-r2"
+SLOT="$(ver_cut 1-2)"
+KEYWORDS="~amd64"
+
+RESTRICT="bindist mirror strip test"
+
+RDEPEND="
+       dev-libs/openssl
+       dev-qt/qtbase:6
+       dev-qt/qtcharts:6
+       dev-qt/qtdeclarative:6
+       dev-qt/qtsvg:6
+       dev-util/breakpad
+       media-libs/libglvnd
+       net-libs/libssh
+       x11-libs/libX11
+       x11-libs/libxkbcommon
+       x11-drivers/nvidia-drivers
+       sys-apps/util-linux
+"
+
+BDEPEND="
+       dev-util/patchelf
+"
+
+src_prepare() {
+       rm EULA.txt || die
+
+       pushd host/linux-desktop-nomad-x64 &>/dev/null || die
+
+       local libs=(
+               core2md
+
+               # libboost_context.so
+               # libboost_context.so.1.78.0 # dev-libs/boost[context]
+
+               libcrypto.so
+               libcrypto.so.3
+
+               libfreetype.so.6
+
+               libicudata.so.71
+               libicui18n.so.71
+               libicuuc.so.71
+
+               libQt6Charts.so.6
+               libQt6Concurrent.so.6
+               libQt6Core.so.6
+               libQt6DBus.so.6
+               libQt6Gui.so.6
+               libQt6Network.so.6
+               libQt6OpenGL.so.6
+               libQt6OpenGLWidgets.so.6
+               libQt6PrintSupport.so.6
+               libQt6Qml.so.6
+               libQt6Sql.so.6
+               libQt6StateMachine.so.6
+               libQt6Svg.so.6
+               libQt6SvgWidgets.so.6
+               libQt6Test.so.6
+               libQt6Widgets.so.6
+               libQt6XcbQpa.so.6
+               libQt6Xml.so.6
+
+               libssh.so
+
+               libssl.so
+               libssl.so.3
+
+               libstdc++.so.6
+
+               libzstd.so.1
+       )
+
+       for lib in "${libs[@]}"; do
+               find . -name "${lib}" -delete
+       done
+
+       rm -rv \
+               libexec \
+               resources \
+               translations \
+               Plugins/imageformats \
+               Plugins/platforms \
+               Plugins/tls \
+               Plugins/wayland-decoration-client \
+               Plugins/wayland-graphics-integration-client \
+               Plugins/wayland-shell-integration \
+               Plugins/xcbglintegrations \
+               || die
+
+
+       readarray -t rpath_bins < <(find . -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 "2i export QT_PLUGIN_PATH=\"${EPREFIX}/usr/lib64/qt6/plugins\"" \
+                       -e "s/NV_AGORA_PATH/NV_AGORA_PATH_/g" \
+                       -i "$(basename "${rpath_bin}" .bin)" \
+                       || die
+       done
+
+       popd &>/dev/null || die
+
+       eapply_user
+
+}
+
+src_configure() {
+       :
+}
+
+src_compile() {
+       :
+}
+
+src_install() {
+       local dir
+       dir="/opt/NVIDIA-Nsight-Graphics-$(ver_cut 1-2)"
+
+       dodir "${dir}"
+       cp -a ./* "${ED}${dir}" || die
+}