1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 DESCRIPTION="Filesystem benchmarking program"
9 HOMEPAGE="http://www.iozone.org/"
10 SRC_URI="http://www.iozone.org/src/current/${PN}${PV/./_}.tar"
14 KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
16 S="${WORKDIR}/${PN}${PV/./_}"
18 PATCHES=( "${FILESDIR}"/${PN}-3.488-gcc10-fno-common.patch )
26 -e 's:-O[23]:$(CFLAGS):g' \
27 -e 's:-Dlinux:$(LDFLAGS) -Dlinux:g' \
28 -i src/current/makefile || die
35 x86|alpha) PLATFORM="linux";;
36 arm) PLATFORM="linux-arm";;
37 ppc) PLATFORM="linux-powerpc";;
38 ppc64) PLATFORM="linux-powerpc64";;
39 amd64) PLATFORM="linux-AMD64";;
40 ia64) PLATFORM="linux-ia64";;
41 s390) PLATFORM="linux-S390";;
42 *) PLATFORM="linux-${ARCH}";;
47 emake -C src/current ${PLATFORM}
52 "${S}"/src/current/iozone testfile || die "self test failed"
56 dosbin src/current/{iozone,fileop}
58 # decompress pre-compressed file to make QA check happy
59 gunzip docs/Iozone_ps.gz || die
61 dodoc docs/I* docs/Run_rules.doc src/current/Changes.txt
64 dodoc Generate_Graphs Gnuplot.txt gengnuplot.sh gnu3d.dem