aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2009-11-08 13:12:13 -0800
committerMax Howell2009-11-09 18:35:39 +0000
commit725c6ca92492ce1356955181611fc8db4fb085f8 (patch)
treed85b1fe7436d82782f8ae8acb61194b5b0fa53cb /Library
parented16c252c7744f251d9a332a2ccd6fd54c22a696 (diff)
downloadhomebrew-725c6ca92492ce1356955181611fc8db4fb085f8.tar.bz2
Add formula for dtach.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/dtach.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/dtach.rb b/Library/Formula/dtach.rb
new file mode 100644
index 000000000..a76c3c2e1
--- /dev/null
+++ b/Library/Formula/dtach.rb
@@ -0,0 +1,23 @@
+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'
+
+ 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.
+ ENV.append "CFLAGS", "-I."
+
+ # Use our own flags, thanks.
+ inreplace "Makefile", /^CC = .*$/, ""
+ inreplace "Makefile", /^CFLAGS = .*$/, ""
+ inreplace "Makefile", /^LIBS = .*$/, ""
+
+ system "make"
+ bin.install "dtach"
+ end
+end