# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="5" DESCRIPTION="Cross-platform processor benchmark" HOMEPAGE="http://www.primatelabs.com/" SRC_URI=" amd64? ( "http://cdn.primatelabs.com/Geekbench-${PV}-Linux.tar.gz" ) arm? ( "http://cdn.primatelabs.com/Geekbench-${PV}-LinuxARM.tar.gz" ) x86? ( "http://cdn.primatelabs.com/Geekbench-${PV}-Linux.tar.gz" )" LICENSE="geekbench" SLOT="2" KEYWORDS="-* ~amd64 ~arm ~x86" RESTRICT="installsources fetch mirror strip" QA_FLAGS_IGNORED="opt/geekbench2/geekbench_arm_32 opt/geekbench2/geekbench_x86_32 opt/geekbench2/geekbench_x86_64" QA_PRESTRIPPED=${QA_FLAGS_IGNORED} pkg_nofetch() { elog "Please download ${A}" elog "directly from ${SRC_URI} and place this" elog "file in ${DISTDIR}" } pkg_setup() { if (use x86 || use amd64); then S="${WORKDIR}/dist/Geekbench-${PV}-Linux" fi if use arm; then S="${WORKDIR}/dist/Geekbench-${PV}-LinuxARM" fi } src_install() { insinto /opt/geekbench2 doins geekbench.plar exeinto /opt/geekbench2 if (use x86 || use amd64); then doexe geekbench geekbench_x86_32 geekbench_x86_64 fi if use arm; then doexe geekbench geekbench_arm_32 fi dodir /opt/bin dosym ../geekbench2/geekbench /opt/bin/geekbench2 }