commit: 90501870e4e100660f67163c8a7b349cc35b8626 Author: undefined.behavior <bugs.gentoo <AT> igrek <DOT> fastem <DOT> com> AuthorDate: Fri Oct 17 11:36:05 2025 +0000 Commit: undefined.behavior <bugs.gentoo <AT> igrek <DOT> fastem <DOT> com> CommitDate: Fri Oct 17 11:36:05 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=90501870
app-benchmarks/occt-bin: add 15.0.1 Signed-off-by: undefined.behavior <bugs.gentoo <AT> igrek.fastem.com> app-benchmarks/occt-bin/Manifest | 1 + app-benchmarks/occt-bin/occt-bin-15.0.1.ebuild | 58 ++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/app-benchmarks/occt-bin/Manifest b/app-benchmarks/occt-bin/Manifest index aaed4abec7..5695c6bbb2 100644 --- a/app-benchmarks/occt-bin/Manifest +++ b/app-benchmarks/occt-bin/Manifest @@ -1 +1,2 @@ DIST occt-bin-14.2.1.bin 274793721 BLAKE2B 265122a90ed2e4273f82d2e5637bd84d13b7c3e5cdcd2b9f80dc9a63a4025020e4182c7db5a4e45b1bb5e338d49633314c62cedfcf1ab1418a8b2ba55ebafbd3 SHA512 093f7f8b79329b0d21f6217c03d21a001f39cb59a47c612e29324cf2023413d19f6428d73f6c4d940670f71fb2260d4c55c1a8c3aecae6712c3474301ba72ed6 +DIST occt-bin-15.0.1.bin 274666745 BLAKE2B e5945ab16c990bd7ab3e40aedf86be83e735ab146d7d99c8bf9dca8efcf98d1cf20410905ec639102579ed6781e155413417ee8c986734cb9178e97b16ea4fdd SHA512 3729962fe62ef8680a869a7cabbdcbaaec060a793ae142d06c01ad84f75f2e7544a9bbe10cb52f7b3ab12c9b5ed650c7f7f4d7e9a68f2ec7dedd3b124bbea59c diff --git a/app-benchmarks/occt-bin/occt-bin-15.0.1.ebuild b/app-benchmarks/occt-bin/occt-bin-15.0.1.ebuild new file mode 100644 index 0000000000..1a05f7472b --- /dev/null +++ b/app-benchmarks/occt-bin/occt-bin-15.0.1.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 "" +}
