aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-02-09 23:26:32 -0600
committerJack Nagel2012-02-09 23:27:27 -0600
commit5d418ea4614a3c4bd8c9d1660d372ef47a1ff1aa (patch)
treee503af384a6abca1b5ce74ecc723835cfd27a53d /Library
parent93878ee8cbff7476affb635a6592162a3169e373 (diff)
downloadhomebrew-5d418ea4614a3c4bd8c9d1660d372ef47a1ff1aa.tar.bz2
fio: avoid inreplace
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/fio.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Formula/fio.rb b/Library/Formula/fio.rb
index 2af4719d5..2865730f0 100644
--- a/Library/Formula/fio.rb
+++ b/Library/Formula/fio.rb
@@ -1,15 +1,15 @@
require 'formula'
class Fio < Formula
- url 'http://brick.kernel.dk/snaps/fio-1.58.tar.bz2'
homepage 'http://freshmeat.net/projects/fio/'
+ url 'http://brick.kernel.dk/snaps/fio-1.58.tar.bz2'
md5 'bc5600997788bce5647576a4976d461d'
def install
- inreplace 'Makefile' do |s|
- s.change_make_var! 'mandir', man
- end
- make_cmd = "make prefix=#{prefix}"
- system "#{make_cmd} && #{make_cmd} install"
+ system "make", "prefix=#{prefix}",
+ "mandir=#{man}",
+ "CC=#{ENV.cc}",
+ "CFLAGS=#{ENV.cflags}",
+ "install"
end
end