aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/fio.rb
blob: edd9c14da5b0c8e59ee9897d0e44c4bc023f085a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
class Fio < Formula
  homepage "http://freecode.com/projects/fio"
  url "http://brick.kernel.dk/snaps/fio-2.2.5.tar.bz2"
  sha1 "36b1bcbeee1d1d6c08a14a2f7cad289162e20e21"

  bottle do
    cellar :any
    sha1 "3509a6a952469c90d80aac04af18c6611db8c66a" => :yosemite
    sha1 "2069309ce6c0a96311dcdd67b95c88e34cfcde84" => :mavericks
    sha1 "8f12a0d2f33c0a33102a5901b4e9a6c8cf7d73e8" => :mountain_lion
  end

  def install
    system "./configure"
    # fio's CFLAGS passes vital stuff around, and crushing it will break the build
    system "make", "prefix=#{prefix}",
                   "mandir=#{man}",
                   "sharedir=#{share}",
                   "CC=#{ENV.cc}",
                   "V=true", # get normal verbose output from fio's makefile
                   "install"
  end

  test do
    system "#{bin}/fio", "--parse-only"
  end
end