diff --git a/Formula/dtach.rb b/Formula/dtach.rb new file mode 100644 index 0000000000..a76c3c2e1d --- /dev/null +++ b/Formula/dtach.rb @@ -0,0 +1,23 @@ +require 'formula' + +class Dtach 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