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.16.tar.gz"
|
|
sha256 "c7731a9e831581bab7104da9ea60c9f44e594438dbe95dff26726ca0285e7b93"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "6d184581dc68669bc1fcf2b6436d5d856bf50bcdf95b6a058467ec6e2dfd61a2" => :mojave
|
|
sha256 "9d1f05f9bc6a04d81a88c05284344250e21446679243d5c9fccfcd4d51f85002" => :high_sierra
|
|
sha256 "e41a6a72db927e9952d7025f1a64d8b5678a3f1d283570207110c1ddd766d467" => :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
|