From 507892f544665ea32387aabfcbd0d29f52dfd70f Mon Sep 17 00:00:00 2001 From: Vitaly Zdanevich Date: Thu, 18 Jul 2024 17:53:23 +0400 Subject: [PATCH] app-benchmarks/unigine-superposition: new package, add 1.1 Signed-off-by: Vitaly Zdanevich Closes: https://github.com/gentoo/guru/pull/213 Reviewed-by: Viorel Munteanu Signed-off-by: Lucio Sauer --- app-benchmarks/unigine-superposition/Manifest | 1 + .../files/Superposition.desktop | 10 ++ .../unigine-superposition/metadata.xml | 8 ++ .../unigine-superposition-1.1.ebuild | 117 ++++++++++++++++++ 4 files changed, 136 insertions(+) create mode 100644 app-benchmarks/unigine-superposition/Manifest create mode 100644 app-benchmarks/unigine-superposition/files/Superposition.desktop create mode 100644 app-benchmarks/unigine-superposition/metadata.xml create mode 100644 app-benchmarks/unigine-superposition/unigine-superposition-1.1.ebuild diff --git a/app-benchmarks/unigine-superposition/Manifest b/app-benchmarks/unigine-superposition/Manifest new file mode 100644 index 0000000000..d420901b07 --- /dev/null +++ b/app-benchmarks/unigine-superposition/Manifest @@ -0,0 +1 @@ +DIST Unigine_Superposition-1.1.run 1642151160 BLAKE2B f0447b0ccd860e653c2308637c93ed29ec851ff9923251edbd37a14b021149038f1c252deb0f3c4954fd4508883b1a2994a87b34a5e18902cef6c82c6ccc6b6b SHA512 00a680b789ec69f6453e31fbd233bc018cc9f3ca8595ea9367dda49bbdde453643863d90b84b068f444fc3ec023bdd4f35326cffb1fbf8653ced29c587524dd6 diff --git a/app-benchmarks/unigine-superposition/files/Superposition.desktop b/app-benchmarks/unigine-superposition/files/Superposition.desktop new file mode 100644 index 0000000000..20b347af11 --- /dev/null +++ b/app-benchmarks/unigine-superposition/files/Superposition.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.1 +Type=Application +Exec=/opt/unigine-superposition/Superposition +Path=/opt/unigine-superposition/bin +Name=Superposition Benchmark +GenericName=A GPU Stress test tool from the UNIGINE +Icon=Superposition +Terminal=false +Categories=Game;X-Launcher;X-Benchmark; diff --git a/app-benchmarks/unigine-superposition/metadata.xml b/app-benchmarks/unigine-superposition/metadata.xml new file mode 100644 index 0000000000..4b04391722 --- /dev/null +++ b/app-benchmarks/unigine-superposition/metadata.xml @@ -0,0 +1,8 @@ + + + + + zdanevich.vitaly@ya.ru + Vitaly Zdanevich + + diff --git a/app-benchmarks/unigine-superposition/unigine-superposition-1.1.ebuild b/app-benchmarks/unigine-superposition/unigine-superposition-1.1.ebuild new file mode 100644 index 0000000000..5a6a0f6586 --- /dev/null +++ b/app-benchmarks/unigine-superposition/unigine-superposition-1.1.ebuild @@ -0,0 +1,117 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop wrapper xdg + +DESCRIPTION="Game like benchmark (CPU, GPU), for ~5 minutes" +HOMEPAGE="https://benchmark.unigine.com/superposition" + +SRC_URI="https://assets.unigine.com/d/Unigine_Superposition-${PV}.run" + +LICENSE="Unigine-Superposition-Benchmark-EULA" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="bindist mirror strip" + +BDEPEND=" + app-admin/chrpath +" + +RDEPEND=" + dev-libs/glib:2 + media-libs/fontconfig + media-libs/freetype + media-libs/libglvnd + sys-apps/dbus + sys-libs/zlib + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXi + x11-libs/libXinerama + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libxcb:= +" + +QA_PREBUILT=" + opt/unigine-superposition/bin/qt/lib/libQt5QuickControls2.so.5 + opt/unigine-superposition/bin/qt/lib/libicudata.so.56 + opt/unigine-superposition/bin/qt/lib/libcrypto.so + opt/unigine-superposition/bin/qt/lib/libQt5Widgets.so.5 + opt/unigine-superposition/bin/qt/lib/libicuuc.so.56 + opt/unigine-superposition/bin/qt/lib/libQt5Core.so.5 + opt/unigine-superposition/bin/qt/lib/libQt5Xml.so.5 + opt/unigine-superposition/bin/qt/lib/libQt5Concurrent.so.5 + opt/unigine-superposition/bin/qt/lib/libQt5QuickTemplates2.so.5 + opt/unigine-superposition/bin/qt/lib/libQt5WebSockets.so.5 + opt/unigine-superposition/bin/qt/lib/libQt5XcbQpa.so.5 + opt/unigine-superposition/bin/qt/lib/libQt5QuickTest.so.5 + opt/unigine-superposition/bin/qt/lib/libssl.so + opt/unigine-superposition/bin/qt/lib/libQt5QuickWidgets.so.5 + opt/unigine-superposition/bin/qt/lib/libQt5QuickParticles.so.5 + opt/unigine-superposition/bin/qt/lib/libQt5Qml.so.5 + opt/unigine-superposition/bin/qt/lib/libQt5Quick.so.5 + opt/unigine-superposition/bin/qt/lib/libicui18n.so.56 + opt/unigine-superposition/bin/qt/lib/libQt5DBus.so.5 + opt/unigine-superposition/bin/qt/lib/libQt5Network.so.5 + opt/unigine-superposition/bin/qt/lib/libQt5Gui.so.5 + opt/unigine-superposition/bin/qt/plugins/platforms/libqxcb.so + opt/unigine-superposition/bin/qt/plugins/xcbglintegrations/libqxcb-glx-integration.so + opt/unigine-superposition/bin/qt/plugins/xcbglintegrations/libqxcb-egl-integration.so + opt/unigine-superposition/bin/qt/qml/QtGraphicalEffects/libqtgraphicaleffectsplugin.so + opt/unigine-superposition/bin/qt/qml/QtGraphicalEffects/private/libqtgraphicaleffectsprivate.so + opt/unigine-superposition/bin/qt/qml/QtQuick/Window.2/libwindowplugin.so + opt/unigine-superposition/bin/qt/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.so + opt/unigine-superposition/bin/qt/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.so + opt/unigine-superposition/bin/qt/qml/QtQuick/Layouts/libqquicklayoutsplugin.so + opt/unigine-superposition/bin/qt/qml/QtQuick/Controls/libqtquickcontrolsplugin.so + opt/unigine-superposition/bin/qt/qml/QtQuick/Dialogs/libdialogplugin.so + opt/unigine-superposition/bin/qt/qml/QtQuick/Dialogs/Private/libdialogsprivateplugin.so + opt/unigine-superposition/bin/qt/qml/QtQuick.2/libqtquick2plugin.so + opt/unigine-superposition/bin/qt/qml/Qt/labs/settings/libqmlsettingsplugin.so + opt/unigine-superposition/bin/qt/qml/Qt/labs/folderlistmodel/libqmlfolderlistmodelplugin.so + opt/unigine-superposition/bin/superposition_cli + opt/unigine-superposition/bin/libGPUMonitor_x64.so + opt/unigine-superposition/bin/libUnigine_x64.so + opt/unigine-superposition/bin/superposition + opt/unigine-superposition/bin/libopenvr_api.so + opt/unigine-superposition/bin/libopenal.so + opt/unigine-superposition/bin/libAppVive_x64.so + opt/unigine-superposition/bin/launcher + opt/unigine-superposition/Superposition +" +QA_FLAGS_IGNORED="${QA_PREBUILT}" + +src_unpack() { + sh "${DISTDIR}"/Unigine_Superposition-1.1.run --tar xfv --one-top-level=${P} || die +} + +src_install() { + local res + for res in 16 24 32 48 64 128 256 + do + newicon -s ${res} icons/superposition_icon_${res}.png Superposition.png + done + + rm -rf icons {post,un}install.sh version bin/qt/lib/libQt5QuickTest.so.5 || die + # so.5 looks like unused lib https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=unigine-superposition#n76 + + chrpath -r '$ORIGIN/qt/lib' bin/launcher || die + # Against "scanelf: rpath_security_checks(): Security problem with relative DT_RPATH" + + insinto /opt/${PN} + doins -r . + + fowners -R root:root / + fperms +x /opt/${PN}/Superposition + fperms +x /opt/${PN}/bin/launcher + + domenu "${FILESDIR}/Superposition.desktop" + + make_wrapper unigine-superposition /opt/${PN}/Superposition +}