source: trunk/dports/benchmarks/bonniexx/Portfile

Last change on this file was 141209, checked in by jeremyhu@…, 2 years ago

bonniexx: The current version builds fine with macports-clang-3.4 and Xcode 7's clang. Remove blacklist

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# $Id: Portfile 141209 2015-10-12 20:51:49Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    bonniexx
6version                 1.97
7revision                1
8categories              benchmarks
9maintainers             nomaintainer
10description             Disk and FS performance tester
11long_description        Bonnie++ is a benchmark suite that is aimed at \
12                        performing a number of simple tests of hard drive \
13                        and file system performance. Then you can decide which\
14                        test is important and decide how to compare different\
15                        systems after running it. I have no plans to ever \
16                        have it produce a single number, because I don't think\
17                        that a single number can be useful when comparing \
18                        such things.
19platforms               darwin
20license                 GPL-2
21homepage                http://www.coker.com.au/bonnie++/
22master_sites            http://www.coker.com.au/bonnie++/experimental/
23checksums               rmd160 24686785edb60afec7ac1f880627cdfe570c4ca6
24distname                bonnie++-${version}
25extract.suffix          .tgz
26patchfiles              patch-Makefile.in \
27                        patch-bonnie++.cpp \
28                        patch-bonnie.h.in.diff \
29                        patch-port.h.in \
30                        patch-zcav.8 \
31                        patch-zcav.cpp \
32                        patch-zcav_io.cpp \
33                        patch-minmax.diff
34
35worksrcdir ${distname}.1
36
37pre-patch {
38    reinplace "s|/usr/share/|${prefix}/share/|g" ${worksrcpath}/bonnie++.8
39}
40
41destroot {
42    xinstall -m 755 -d "${destroot}${prefix}/bin" \
43                       "${destroot}${prefix}/sbin" \
44                       "${destroot}${prefix}/share/man/man1" \
45                       "${destroot}${prefix}/share/man/man8" \
46                       "${destroot}${prefix}/share/doc/bonnie++"
47    xinstall -m 755 -W ${worksrcpath} bon_csv2html generate_randfile ${destroot}${prefix}/bin
48    xinstall -m 755 -W ${worksrcpath} bonnie++ zcav getc_putc getc_putc_helper ${destroot}${prefix}/sbin
49    xinstall -m 644 -W ${worksrcpath} bon_csv2html.1 bon_csv2txt.1 generate_randfile.1 ${destroot}${prefix}/share/man/man1
50    xinstall -m 644 -W ${worksrcpath} bonnie++.8 zcav.8 getc_putc.8 ${destroot}${prefix}/share/man/man8
51    xinstall -m 644 -W ${worksrcpath} README-2.00 README.txt changelog.txt copyright.txt credits.txt readme.html ${destroot}${prefix}/share/doc/bonnie++
52}
53
54notes "
55Darwin's sysconf() doesn't support _SC_PHYS_PAGES. Due to this limitation,\
56Bonnie++ cannot detect the amount of physical memory automatically. To tell\
57Bonnie++ a suitable RAM size, you can use -r option. For example, if your Mac\
58has 4GB RAM, use:
59
60    bonnie++ -r 4096 -d /tmp
61"
62
63livecheck.type          regex
64livecheck.url           ${master_sites}
65livecheck.regex         bonnie\\+\\+-(\[0-9.a-z\]+)\\.tgz
Note: See TracBrowser for help on using the repository browser.