app-benchmarks/occt-bin: add 15.0.1

Signed-off-by: undefined.behavior <bugs.gentoo@igrek.fastem.com>
This commit is contained in:
undefined.behavior
2025-10-17 07:36:05 -04:00
parent 4789b9bd1b
commit 90501870e4
2 changed files with 59 additions and 0 deletions

View File

@@ -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

View File

@@ -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 ""
}