From 17612b94f4b43d25266d6e95db33f580a2503413 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 9 Feb 2012 22:28:14 -0600 Subject: [PATCH] autobench: avoid inreplace Signed-off-by: Jack Nagel --- Formula/autobench.rb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Formula/autobench.rb b/Formula/autobench.rb index 845ee3ae77..1cdf82f63a 100644 --- a/Formula/autobench.rb +++ b/Formula/autobench.rb @@ -1,18 +1,17 @@ require 'formula' class Autobench < Formula - url 'http://www.xenoclast.org/autobench/downloads/autobench-2.1.2.tar.gz' homepage 'http://www.xenoclast.org/autobench/' + url 'http://www.xenoclast.org/autobench/downloads/autobench-2.1.2.tar.gz' md5 'dbd00818840ed8d3c3d35734f0353cff' depends_on 'httperf' def install - inreplace "Makefile" do |s| - s.change_make_var! 'PREFIX', prefix - s.change_make_var! 'MANDIR', man1 - end - system "make" - system "make install" + system "make", "PREFIX=#{prefix}", + "MANDIR=#{man1}", + "CC=#{ENV.cc}", + "CFLAGS=#{ENV.cflags}", + "install" end end