summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2023-02-14 21:28:07 +0100
committerConrad Kostecki <conikost@gentoo.org>2023-02-14 21:28:07 +0100
commit6edaa0ebf8fa0120c063d88cccf60c93471932d6 (patch)
tree7ef66a92edc19e988d8e7594c84969d9ff2b5ef7 /app-benchmarks
parentapp-benchmarks/geekbench: add 4.4.4, drop 4.4.1-r1 (diff)
downloadgentoo-6edaa0ebf8fa0120c063d88cccf60c93471932d6.tar.gz
gentoo-6edaa0ebf8fa0120c063d88cccf60c93471932d6.tar.bz2
gentoo-6edaa0ebf8fa0120c063d88cccf60c93471932d6.zip
app-benchmarks/geekbench: add arm64 keyword
Closes: https://bugs.gentoo.org/894442 Closes: https://bugs.gentoo.org/894438 Closes: https://bugs.gentoo.org/894440 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-benchmarks')
-rw-r--r--app-benchmarks/geekbench/Manifest1
-rw-r--r--app-benchmarks/geekbench/geekbench-6.0.0.ebuild24
2 files changed, 17 insertions, 8 deletions
diff --git a/app-benchmarks/geekbench/Manifest b/app-benchmarks/geekbench/Manifest
index 19c4440740f9..bd7dca7a87b9 100644
--- a/app-benchmarks/geekbench/Manifest
+++ b/app-benchmarks/geekbench/Manifest
@@ -5,3 +5,4 @@ DIST Geekbench-4.4.4-Linux.tar.gz 71089467 BLAKE2B 257f79644e20189950fb7c9121e32
DIST Geekbench-5.4.6-Linux.tar.gz 93188716 BLAKE2B 6a38449b8b494fe878d2c583838c2cc95eef736a174231d8ab25b616c39b8deb4edbadd5f9545176a01a9fff55935f20c572fb9cb3902dddc2fad2836cba5166 SHA512 6c1bc9db284ee4dea282f329b08bc75172c92951d1d43131226eaa42e05e1e39e11d34fe0c3d29f45e6b421bea16a102170a631a4b11a7a3d026024171ba5ccb
DIST Geekbench-5.5.1-Linux.tar.gz 93199992 BLAKE2B e2ff24da19134778dd1b3036ac3fb8b2d99746dbe41b1959cb74522613a7b9a8a0e3796d22351af877a9ea7a734c6b101a0ffadfd3bbc2e29fb9b12e59106848 SHA512 0fd90d55eaaf178e4c981ef6ef54808d1ff86edc92c907a5d8e2a3a379c2289e614d917db330a3d748c818bcedb2dc69cad250b1b98ba80287c6d9a66382bcc4
DIST Geekbench-6.0.0-Linux.tar.gz 258039528 BLAKE2B d77b8920f7b935b1db5023b58624fa7c3f0596c0ac8413725e23765e191e5225cb0862d0bd722b5f40056fe3027f417bfa2e97519930e2ad3ce3cd896e8cdd12 SHA512 e3e724c7dad7879a5be3d885dc1a163b3d84d78bf60b501279c289aad55c610c9634ecfa46352b0ea9ad7946129e1cc97d8ef4f5970888f8ee03fcd7a2bf9475
+DIST Geekbench-6.0.0-LinuxARMPreview.tar.gz 222261452 BLAKE2B c7f58abaabdbb8ed3800862b186d6415cbcaae5cc36220cbb5872b0dfcc5236f0bff3c677a48bbc1f9cb8e47d2798c8cc99ca8f9ee2a7913788b7c4c944dfa8f SHA512 dadc476b5e88c608a532b35088d0884a330ab5994fb72085ec0ed70c5bcba641328b5fe1c47d8e0c0d4ef9201329a25d8ae1fddce1fa917a74ad3fcc0a08cf41
diff --git a/app-benchmarks/geekbench/geekbench-6.0.0.ebuild b/app-benchmarks/geekbench/geekbench-6.0.0.ebuild
index f014020673ff..a49619128566 100644
--- a/app-benchmarks/geekbench/geekbench-6.0.0.ebuild
+++ b/app-benchmarks/geekbench/geekbench-6.0.0.ebuild
@@ -3,23 +3,27 @@
EAPI=8
-MY_PV="k9ea2vqm"
+EGIT_COMMIT="k9ea2vqm"
DESCRIPTION="A Cross-Platform Benchmark for Android, iOS, Linux, MacOS and Windows"
HOMEPAGE="https://www.geekbench.com/"
-SRC_URI="https://cdn.geekbench.com/${MY_PV}/Geekbench-${PV}-Linux.tar.gz"
-S="${WORKDIR}/Geekbench-${PV}-Linux"
+SRC_URI="
+ amd64? ( https://cdn.geekbench.com/${EGIT_COMMIT}/Geekbench-${PV}-Linux.tar.gz )
+ arm64? ( https://cdn.geekbench.com/${EGIT_COMMIT}/Geekbench-${PV}-LinuxARMPreview.tar.gz )
+"
+S="${WORKDIR}"
-KEYWORDS="-* ~amd64"
+KEYWORDS="-* ~amd64 ~arm64"
LICENSE="geekbench"
SLOT="6"
RESTRICT="bindist mirror"
QA_PREBUILT="
- opt/geekbench6/geekbench_avx
- opt/geekbench6/geekbench6
+ opt/geekbench6/geekbench_aarch64
+ opt/geekbench6/geekbench_avx2
opt/geekbench6/geekbench_x86_64
+ opt/geekbench6/geekbench6
"
pkg_nofetch() {
@@ -28,11 +32,15 @@ pkg_nofetch() {
}
src_install() {
+ local MY_S="Geekbench-${PV}-Linux$(usex arm64 'ARMPreview' '')"
+
exeinto /opt/geekbench6
- doexe geekbench_avx2 geekbench6 geekbench_x86_64
+ use amd64 && doexe "${MY_S}"/geekbench_avx2 "${MY_S}"/geekbench_x86_64
+ use arm64 && doexe "${MY_S}"/geekbench_aarch64
+ doexe "${MY_S}"/geekbench6
insinto /opt/geekbench6
- doins geekbench.plar geekbench-workload.plar
+ doins "${MY_S}"/geekbench.plar "${MY_S}"/geekbench-workload.plar
dodir /opt/bin
dosym ../geekbench6/geekbench6 /opt/bin/geekbench6