commit: 7fb096332a0aa905055ee62770fa8171fee1ae1d Author: undefined.behavior <bugs.gentoo <AT> igrek <DOT> fastem <DOT> com> AuthorDate: Fri May 30 01:14:06 2025 +0000 Commit: undefined.behavior <bugs.gentoo <AT> igrek <DOT> fastem <DOT> com> CommitDate: Fri May 30 01:14:06 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7fb09633
app-benchmarks/occt-bin: add 14.0.13 Signed-off-by: undefined.behavior <bugs.gentoo <AT> igrek.fastem.com> app-benchmarks/occt-bin/Manifest | 1 + app-benchmarks/occt-bin/occt-bin-14.0.13.ebuild | 58 +++++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/app-benchmarks/occt-bin/Manifest b/app-benchmarks/occt-bin/Manifest index 7f6545a7f5..a62f45c36d 100644 --- a/app-benchmarks/occt-bin/Manifest +++ b/app-benchmarks/occt-bin/Manifest @@ -1 +1,2 @@ DIST occt-bin-14.0.12.bin 274441470 BLAKE2B 387cd5edd96ea48992dbdb895cec079deb9af24bc3a5e51d3dfb907ac2e299c7a3ec61f1d716941051adb53dd5dd0eecc29f47be09d83d1c3db51d542a18c66c SHA512 c4e740cb79a46c1d1a11c76b25848258e14414ae7161a924d191e428ce1c1f2ca5ba9fecc4616f14bae61224f6c6a012be1b9226cbe78910cb5dd00dc48a10ee +DIST occt-bin-14.0.13.bin 274445566 BLAKE2B bdca057a725ab23a72ce407dd82042bb2edd352841c76cf1a4260a993c7c1c4e8a3f4b34e4fc9253172ec4ea6a9ed8f52a48a2520f2dc9709fff3e94372a9a39 SHA512 3317e5a1a7f762295071bbd2b3a836f84fc85e84d18905f381fbbb4cd0a8004c3d6e4696be6528a7f9e93c57061d8d837d51f3736f61bb433109204dfc85f359 diff --git a/app-benchmarks/occt-bin/occt-bin-14.0.13.ebuild b/app-benchmarks/occt-bin/occt-bin-14.0.13.ebuild new file mode 100644 index 0000000000..1a05f7472b --- /dev/null +++ b/app-benchmarks/occt-bin/occt-bin-14.0.13.ebuild @@ -0,0 +1,58 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop fcaps wrapper xdg udev + +DESCRIPTION="All-in-one stability, stress test, benchmark and monitoring tool" +HOMEPAGE="https://www.ocbase.com" + +SRC_URI="https://www.ocbase.com/download/edition:Personal/os:Linux/version:${PV} -> ${P}.bin" +S="${WORKDIR}" + +LICENSE="OCBASE-EULA" +SLOT="0" +KEYWORDS="~amd64" +IUSE="msr-user-access" +RESTRICT="bindist mirror strip" + +src_unpack() { + cp "${DISTDIR}"/"${P}".bin ./ +} + +src_install() { + newicon -s 256 "${FILESDIR}"/occt.png occt.png + + insinto /opt/occt + + newins "${P}".bin occt + + # Disable automatic updates + touch "${ED}"/opt/occt/disable_update + + # Don't use binary path as the config location + touch "${ED}"/opt/occt/use_home_config + + fperms +x /opt/occt/occt + + domenu "${FILESDIR}"/occt.desktop + + make_wrapper occt /opt/occt/occt + + use msr-user-access && udev_dorules "${FILESDIR}/90-occt-msr-access.rules" +} + +pkg_postinst() { + # Allow benchmarks to run with higher priority and /dev/cpu/*/msr access + fcaps "cap_sys_nice,cap_sys_rawio=eip" opt/occt/occt + + # Apply the udev rules + use msr-user-access && udev_reload && udevadm trigger --action=add --subsystem-match=msr + + einfo "" + einfo "If you have a license, you need to copy it into the OCCT config directory:" + einfo "" + einfo " mkdir -p ~/.config/occt && cp license.okl ~/.config/occt/" + einfo "" +}
