aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2009-12-17 12:42:26 -0800
committerMax Howell2010-01-13 11:23:11 +0000
commit310770c980ddfdcc8fbd391c017961a6b437f55b (patch)
tree8ea3725e4a119b56ca93bee0c3e463c398bbe87c
parent3422582da6aefaf8d437eba5f9a58eadef415915 (diff)
downloadhomebrew-310770c980ddfdcc8fbd391c017961a6b437f55b.tar.bz2
Update dtach to use new inreplace.
-rw-r--r--Library/Formula/dtach.rb15
1 files changed, 7 insertions, 8 deletions
diff --git a/Library/Formula/dtach.rb b/Library/Formula/dtach.rb
index a76c3c2e1..fdc5d7c32 100644
--- a/Library/Formula/dtach.rb
+++ b/Library/Formula/dtach.rb
@@ -2,20 +2,19 @@ require 'formula'
class Dtach <Formula
url 'http://downloads.sourceforge.net/project/dtach/dtach/0.8/dtach-0.8.tar.gz'
- homepage 'http://dtach.sourceforge.net/'
md5 'ec5999f3b6bb67da19754fcb2e5221f3'
+ homepage 'http://dtach.sourceforge.net/'
def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
- # Does #include <config.h> instead of #include "config.h"
- # so it needs . in the include path.
+ # Includes <config.h> instead of "config.h", so "." needs to be in the include path.
ENV.append "CFLAGS", "-I."
-
- # Use our own flags, thanks.
- inreplace "Makefile", /^CC = .*$/, ""
- inreplace "Makefile", /^CFLAGS = .*$/, ""
- inreplace "Makefile", /^LIBS = .*$/, ""
+
+ inreplace "Makefile" do |f|
+ # Use our own flags, thanks.
+ %w[CC CFLAGS LIBS].each { |flag| f.gsub_make_var! flag, "" }
+ end
system "make"
bin.install "dtach"