2011-03-10 05:11:03 +00:00
|
|
|
class Fio < Formula
|
2014-07-19 14:41:55 +00:00
|
|
|
homepage "http://freecode.com/projects/fio"
|
2015-02-16 11:11:34 +00:00
|
|
|
url "http://brick.kernel.dk/snaps/fio-2.2.5.tar.bz2"
|
|
|
|
sha1 "36b1bcbeee1d1d6c08a14a2f7cad289162e20e21"
|
2010-02-26 16:11:12 +00:00
|
|
|
|
2015-02-16 11:31:03 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "3509a6a952469c90d80aac04af18c6611db8c66a" => :yosemite
|
|
|
|
sha1 "2069309ce6c0a96311dcdd67b95c88e34cfcde84" => :mavericks
|
|
|
|
sha1 "8f12a0d2f33c0a33102a5901b4e9a6c8cf7d73e8" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2010-02-26 16:11:12 +00:00
|
|
|
def install
|
2013-04-24 07:41:24 +00:00
|
|
|
system "./configure"
|
|
|
|
# fio's CFLAGS passes vital stuff around, and crushing it will break the build
|
2012-02-10 05:26:32 +00:00
|
|
|
system "make", "prefix=#{prefix}",
|
|
|
|
"mandir=#{man}",
|
2014-07-19 14:41:55 +00:00
|
|
|
"sharedir=#{share}",
|
2012-02-10 05:26:32 +00:00
|
|
|
"CC=#{ENV.cc}",
|
2013-04-24 07:41:24 +00:00
|
|
|
"V=true", # get normal verbose output from fio's makefile
|
2012-02-10 05:26:32 +00:00
|
|
|
"install"
|
2010-02-26 16:11:12 +00:00
|
|
|
end
|
2015-02-16 11:11:34 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/fio", "--parse-only"
|
|
|
|
end
|
2010-02-26 16:11:12 +00:00
|
|
|
end
|