blob: 1d376ad60d177790108f2904706683135fe56c7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
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
}
|