blob: d20917eee1c45ed27ecd63b596394b32481fa34f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="A Cross-Platform ML workloads Benchmark"
HOMEPAGE="https://www.geekbench.com/"
SRC_URI="amd64? ( https://cdn.geekbench.com/GeekbenchML-${PV}-Linux.tar.gz )"
S="${WORKDIR}/GeekbenchML-${PV}-Linux"
KEYWORDS="-* amd64"
LICENSE="geekbench"
SLOT="6"
RESTRICT="bindist mirror"
BDEPEND="dev-util/patchelf"
QA_PREBUILT="
opt/geekbench-ml/banff_avx2
opt/geekbench-ml/banff_x86_64
opt/geekbench-ml/banff
"
src_prepare() {
default
# Fix QA insecure RUNPATHs
patchelf --remove-rpath banff{,_avx2,_x86_64} || die
}
src_install() {
exeinto /opt/geekbench-ml
doexe banff{,_avx2,_x86_64}
insinto /opt/geekbench-ml
doins banff.plar banff-workload.plar
dodir /opt/bin
dosym ../geekbench-ml/banff /opt/bin/geekbench-ml
}
pkg_postinst() {
elog "If you have purchased a commercial license, you can enter"
elog "your email address and your license key with the following command:"
elog "geekbench-ml -r <email address> <license key>"
}
|