diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-03-20 00:40:44 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-03-20 00:40:44 +0000 |
commit | 4cbcc855382a06088e2f016f62cafdbcb7e40665 (patch) | |
tree | 356496503d52354aa6d9f2d36126302fed5f3a73 /app-benchmarks/nbench/nbench-2.2.3-r2.ebuild | |
parent | fcc5224904648a8e6eb528d7603154160a20022f (diff) |
gentoo resync : 20.03.2022
Diffstat (limited to 'app-benchmarks/nbench/nbench-2.2.3-r2.ebuild')
-rw-r--r-- | app-benchmarks/nbench/nbench-2.2.3-r2.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/app-benchmarks/nbench/nbench-2.2.3-r2.ebuild b/app-benchmarks/nbench/nbench-2.2.3-r2.ebuild new file mode 100644 index 000000000000..2e1a44e3fbfd --- /dev/null +++ b/app-benchmarks/nbench/nbench-2.2.3-r2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_P="${PN}-byte-${PV}" + +inherit 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 +} + +src_install() { + dobin nbench + dodoc Changes README* bdoc.txt + + insinto /usr/share/nbench + doins NNET.DAT +} |