summaryrefslogtreecommitdiff
path: root/app-benchmarks/geekbench-ml/geekbench-ml-0.6.0.ebuild
blob: f5cf63b3ca7d6eb295b9e53cbf44de4cadf1a8fa (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
# Copyright 1999-2023 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"

QA_PREBUILT="
	opt/geekbench-ml/banff_avx2
	opt/geekbench-ml/banff_x86_64
	opt/geekbench-ml/banff
"

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