commit: abdaeb84488c05b22a6a72e862df090596c6e1ba Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com> AuthorDate: Wed Apr 16 13:33:11 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Apr 22 00:37:47 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abdaeb84
dev-util/nsight-systems: use edo, ebuild cleanup Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> dev-util/nsight-systems/nsight-systems-2025.2.1.ebuild | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/dev-util/nsight-systems/nsight-systems-2025.2.1.ebuild b/dev-util/nsight-systems/nsight-systems-2025.2.1.ebuild index 283c2aec821b..139300596fc4 100644 --- a/dev-util/nsight-systems/nsight-systems-2025.2.1.ebuild +++ b/dev-util/nsight-systems/nsight-systems-2025.2.1.ebuild @@ -3,13 +3,14 @@ EAPI=8 -inherit unpacker +inherit edo 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//./_} +MY_PV="$(ver_rs 1-2 '_' "$(ver_cut 1-2)")" +MY_PN="${PN//nsight-}" +MY_PN_SHORT="sys" PV_BUILD="130-1" @@ -21,6 +22,7 @@ SRC_URI=" https://developer.nvidia.com/downloads/assets/tools/secure/${PN}/${MY_PV}/${PN}-${PV}_${PV}.${PV_BUILD}_arm64.deb ) " + S="${WORKDIR}" LICENSE="NVIDIA-r2" @@ -86,16 +88,16 @@ src_prepare() { fi fi - readarray -t rpath_libs < <( + local rpaths rpath + readarray -t rpaths < <( 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 $? + for rpath in "${rpaths[@]}"; do + edob -m "fixing rpath for ${rpath}" \ + patchelf --set-rpath '$ORIGIN' "${rpath}" done eapply_user