diff options
author | Daniel Black <dragonheart@gentoo.org> | 2005-06-25 14:24:25 +0000 |
---|---|---|
committer | Daniel Black <dragonheart@gentoo.org> | 2005-06-25 14:24:25 +0000 |
commit | 75793b8c45cbf7853ef5649301939fd03dc2e7af (patch) | |
tree | 3c682135b417e3c5c0e896bc43913a960d00cab6 /app-benchmarks/iozone/iozone-3.242.ebuild | |
parent | Version bump (diff) | |
download | gentoo-2-75793b8c45cbf7853ef5649301939fd03dc2e7af.tar.gz gentoo-2-75793b8c45cbf7853ef5649301939fd03dc2e7af.tar.bz2 gentoo-2-75793b8c45cbf7853ef5649301939fd03dc2e7af.zip |
version bump
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'app-benchmarks/iozone/iozone-3.242.ebuild')
-rw-r--r-- | app-benchmarks/iozone/iozone-3.242.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/app-benchmarks/iozone/iozone-3.242.ebuild b/app-benchmarks/iozone/iozone-3.242.ebuild new file mode 100644 index 000000000000..b7a151d34d9b --- /dev/null +++ b/app-benchmarks/iozone/iozone-3.242.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/iozone/iozone-3.242.ebuild,v 1.1 2005/06/25 14:24:25 dragonheart Exp $ + +# TODO +# -> linux-arm (32bit) <- +# -> linux-AMD64 (64bit) <- +# -> linux-ia64 (64bit) <- +# -> linux-powerpc (32bit) <- +# -> linux-powerpc64 (64bit) <- +# -> linux-S390 (32bit) <- +# -> linux-S390X (64bit) <- +# +# -> freebsd (32bit) <- +# -> macosx (32bit) <- +# -> netbsd (32bit) <- +# -> openbsd (32bit) <- +# -> openbsd-threads (32bit) <- +# +# ~ia64 ~s390 alpha(?) x86-fbsd + +inherit eutils 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" +IUSE="" + +DEPEND="sys-devel/gcc + >=sys-apps/sed-4 + virtual/libc" +RDEPEND="virtual/libc" + +S=${WORKDIR}/${PN}${PV/./_} + +src_compile() { + cd src/current + + # Options FIX + sed -i -e "s:CC =.*:CC =$(tc-getCC):g" \ + -e "s:-O3:${CFLAGS}:g" makefile + + 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";; + x86-fbsd) PLATFORM="freebsd";; + *) PLATFORM="linux-${ARCH}";; + esac + + emake ${PLATFORM} || die "Compile failed" +} + +src_install() { + dosbin src/current/iozone || die + dodoc docs/I* + dodoc docs/Run_rules.doc + dodoc src/current/Changes.txt + doman docs/iozone.1 + + insinto /usr/share/doc/${PF} + cd src/current + doins Generate_Graphs Gnuplot.txt gengnuplot.sh gnu3d.dem + + prepall +} + +src_test() { + cd ${T} + ${S}/src/current/iozone testfile || die "self test failed" +} |