From 7f5c97349d2ee2ad4e614e8815fef5ba1990c63b Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 9 Feb 2012 23:09:00 -0600 Subject: [PATCH] libcsv: avoid inreplace Signed-off-by: Jack Nagel --- Formula/libcsv.rb | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Formula/libcsv.rb b/Formula/libcsv.rb index 40d11ab834..9f1d4badcc 100644 --- a/Formula/libcsv.rb +++ b/Formula/libcsv.rb @@ -1,20 +1,19 @@ require 'formula' class Libcsv < Formula - url 'http://downloads.sourceforge.net/project/libcsv/libcsv/libcsv-3.0.1/libcsv-3.0.1.tar.gz' homepage 'http://sourceforge.net/projects/libcsv/' + url 'http://downloads.sourceforge.net/project/libcsv/libcsv/libcsv-3.0.1/libcsv-3.0.1.tar.gz' md5 '926b55d732b775a49ed2539c4db5c102' def install - inreplace 'Makefile' do |s| - s.change_make_var! "INCDIR", include - s.change_make_var! "MANDIR", man - s.change_make_var! "LIBDIR", lib - end - man.mkpath - lib.mkpath include.mkpath - system "make" - system "make install" + lib.mkpath + man.mkpath + + system "make", "CC=#{ENV.cc}", + "INCDIR=#{include}", + "LIBDIR=#{lib}", + "MANDIR=#{man}", + "install" end end