Portfile

# $Id: Portfile 20756 2006-11-26 08:52:21Z markd@macports.org $

PortSystem 1.0
name bonniexx
version 1.93c
categories benchmarks
maintainers lomion@mac.com
description Disk and FS performance tester
long_description Bonnie++ is a benchmark suite that is aimed at \
performing a number of simple tests of hard drive \
and file system performance. Then you can decide which\
test is important and decide how to compare different\
systems after running it. I have no plans to ever \
have it produce a single number, because I don't think\
that a single number can be useful when comparing \
such things.
platforms darwin
homepage http://www.coker.com.au/bonnie++/
master_sites http://www.coker.com.au/bonnie++/experimental/
checksums sha1 85f670f5b82accb62ca2cff82e94cbbaefd5aedb
distname bonnie++-${version}
extract.suffix .tgz
patchfiles patch-Makefile.in \
patch-bonnie++.8 \
patch-bonnie++.cpp \
patch-getc_putc.cpp \
patch-zcav.8

pre-patch {
reinplace "s|/usr/share/|${prefix}/share/|g" ${worksrcpath}/bonnie++.8 \
}

destroot { xinstall -m 755 -d "${destroot}${prefix}/bin" \
"${destroot}${prefix}/share/man/man1" \
"${destroot}${prefix}/share/man/man8" \
"${destroot}${prefix}/share/doc/bonnie++"
xinstall -m 755 -W ${worksrcpath} bonnie++ zcav ${destroot}${prefix}/bin
xinstall -m 644 -W ${worksrcpath} bon_csv2html.1 bon_csv2txt.1 ${destroot}${prefix}/share/man/man1
xinstall -m 644 -W ${worksrcpath} bonnie++.8 zcav.8 ${destroot}${prefix}/share/man/man8
xinstall -m 644 ${worksrcpath}/readme.html ${destroot}${prefix}/share/doc/bonnie++
}

platform darwin 8 {
configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}

files