diff options
author | 2020-01-24 13:57:38 +0100 | |
---|---|---|
committer | 2020-01-24 13:57:38 +0100 | |
commit | b057c4d36b3fb73987c4ebb1dcc804252e55c1f5 (patch) | |
tree | 7812ea7f2079c9bf36c89452073d6b1573e3428a /app-benchmarks/iozone/iozone-3.488.ebuild | |
parent | sys-apps/nosig: Replaced DESCRIPTION with something more meaningful (diff) | |
download | gentoo-b057c4d36b3fb73987c4ebb1dcc804252e55c1f5.tar.gz gentoo-b057c4d36b3fb73987c4ebb1dcc804252e55c1f5.tar.bz2 gentoo-b057c4d36b3fb73987c4ebb1dcc804252e55c1f5.zip |
app-benchmarks/iozone: Version bump to 3.488
Bug: https://bugs.gentoo.org/706232
Package-Manager: Portage-2.3.85, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'app-benchmarks/iozone/iozone-3.488.ebuild')
-rw-r--r-- | app-benchmarks/iozone/iozone-3.488.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/app-benchmarks/iozone/iozone-3.488.ebuild b/app-benchmarks/iozone/iozone-3.488.ebuild new file mode 100644 index 000000000000..3f6941869e61 --- /dev/null +++ b/app-benchmarks/iozone/iozone-3.488.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Filesystem benchmarking program" +HOMEPAGE="http://www.iozone.org/" +SRC_URI="http://www.iozone.org/src/current/${PN}${PV/./_}.tar" + +LICENSE="freedist" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" + +S="${WORKDIR}/${PN}${PV/./_}" + +PATCHES=( "${FILESDIR}"/${PN}-3.488-gcc10-fno-common.patch ) + +src_prepare() { + default + + # Options FIX + sed -e '/CC =.*/d' \ + -e '/CFLAGS =.*/d' \ + -e 's:-O[23]:$(CFLAGS):g' \ + -e 's:-Dlinux:$(LDFLAGS) -Dlinux:g' \ + -i src/current/makefile || die +} + +src_configure() { + tc-export CC + + case ${ARCH} in + x86|alpha) PLATFORM="linux";; + arm) PLATFORM="linux-arm";; + ppc) PLATFORM="linux-powerpc";; + ppc64) PLATFORM="linux-powerpc64";; + amd64) PLATFORM="linux-AMD64";; + ia64) PLATFORM="linux-ia64";; + s390) PLATFORM="linux-S390";; + *) PLATFORM="linux-${ARCH}";; + esac +} + +src_compile() { + emake -C src/current ${PLATFORM} +} + +src_test() { + cd "${T}" || die + "${S}"/src/current/iozone testfile || die "self test failed" +} + +src_install() { + dosbin src/current/{iozone,fileop} + + # decompress pre-compressed file to make QA check happy + gunzip docs/Iozone_ps.gz || die + + dodoc docs/I* docs/Run_rules.doc src/current/Changes.txt + doman docs/iozone.1 + cd src/current || die + dodoc Generate_Graphs Gnuplot.txt gengnuplot.sh gnu3d.dem +} |