28 lines
1,007 B
Ruby
28 lines
1,007 B
Ruby
class Fio < Formula
|
|
desc "I/O benchmark and stress test"
|
|
homepage "https://github.com/axboe/fio"
|
|
url "https://github.com/axboe/fio/archive/fio-3.12.tar.gz"
|
|
sha256 "c9fb079e24bb02413b106a80a20e43b2166ba8681e371a5fb9002b8c9d79bd36"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "85f5b161461e6379af7cbc8b08f549cb56af1b073437165975c3c1cd754027ca" => :mojave
|
|
sha256 "c4c5d539d96b00a5cafaee423102fa45b8761d9aa128656ff82ae6ba95f680b6" => :high_sierra
|
|
sha256 "34754b4ae14c129cb9483f038d6cc885a2ea0701ef6eb771bcf6b430afafe606" => :sierra
|
|
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
|