2011-03-10 05:11:03 +00:00
|
|
|
class Fio < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "I/O benchmark and stress test"
|
2014-07-19 14:41:55 +00:00
|
|
|
homepage "http://freecode.com/projects/fio"
|
2015-10-04 17:00:51 +00:00
|
|
|
url "http://brick.kernel.dk/snaps/fio-2.2.10.tar.bz2"
|
|
|
|
sha256 "04b4490c69f82bafeccbab51d33732cfd74e7a54e74eae0d9a2450faf4f1d857"
|
2015-05-07 20:02:36 +00:00
|
|
|
head "git://git.kernel.dk/fio.git"
|
2010-02-26 16:11:12 +00:00
|
|
|
|
2015-02-16 11:31:03 +00:00
|
|
|
bottle do
|
2015-10-04 17:04:48 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "6448ccce823cf08fdde3faec01d13ec9d887728c12715bd53e229e2a4d4e095e" => :el_capitan
|
|
|
|
sha256 "2ce16b27e45a0816402e3e255327e900c85f5b1004ab5927903cef9a20de1186" => :yosemite
|
|
|
|
sha256 "6e59bf79cec9bb83b2a8cf2587a4da94bfde9ab10596f3f08143049ae6a2c094" => :mavericks
|
2015-02-16 11:31:03 +00:00
|
|
|
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
|