2010-02-26 16:11:12 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Fio < Formula
|
2012-06-30 07:54:31 +00:00
|
|
|
homepage 'http://freecode.com/projects/fio'
|
2013-04-21 01:05:39 +00:00
|
|
|
url 'http://brick.kernel.dk/snaps/fio-2.0.15.tar.bz2'
|
|
|
|
sha1 '3b672f19ef37d0f4d733dc78820a5e4a735b9a7f'
|
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}",
|
|
|
|
"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
|
|
|
|
end
|