gentoo/app-benchmarks/nbench/nbench-2.2.3-r2.ebuild
Arthur Zamarin 0ad96e879b
*/*: destable sparc
Result of running the command:
 grep --include="*.ebuild" -r . -e 'KEYWORDS=.*[" ]sparc' -l | xargs ekeyword ~sparc

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2025-09-02 20:00:14 +03:00

44 lines
951 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_P="${PN}-byte-${PV}"
inherit flag-o-matic toolchain-funcs
DESCRIPTION="Linux/Unix of release 2 of BYTE Magazine's BYTEmark benchmark"
HOMEPAGE="http://www.tux.org/~mayer/linux/bmark.html"
SRC_URI="http://www.tux.org/~mayer/linux/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="freedist"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~mips ppc ppc64 ~riscv ~sparc x86"
PATCHES=( "${FILESDIR}/${P}-Makefile.patch" )
src_prepare() {
default
sed -e 's:$compiler -v\( 2>&1 | sed -e "/version/!d"\|\):$compiler -dumpversion:' \
-i sysinfo.sh || die
sed -e 's:inpath="NNET.DAT":inpath="/usr/share/nbench/NNET.DAT":' \
-i nbench1.h || die
}
src_configure() {
tc-export CC
# bug #943907
append-cflags -std=gnu17
}
src_install() {
dobin nbench
dodoc Changes README* bdoc.txt
insinto /usr/share/nbench
doins NNET.DAT
}