2009-11-08 21:12:13 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Dtach <Formula
|
|
|
|
url 'http://downloads.sourceforge.net/project/dtach/dtach/0.8/dtach-0.8.tar.gz'
|
|
|
|
md5 'ec5999f3b6bb67da19754fcb2e5221f3'
|
2009-12-17 20:42:26 +00:00
|
|
|
homepage 'http://dtach.sourceforge.net/'
|
2009-11-08 21:12:13 +00:00
|
|
|
|
|
|
|
def install
|
2009-12-17 20:42:26 +00:00
|
|
|
# Includes <config.h> instead of "config.h", so "." needs to be in the include path.
|
2009-11-08 21:12:13 +00:00
|
|
|
ENV.append "CFLAGS", "-I."
|
2010-06-24 20:42:04 +00:00
|
|
|
|
2010-02-04 19:31:40 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
2010-06-24 20:42:04 +00:00
|
|
|
|
2009-11-08 21:12:13 +00:00
|
|
|
system "make"
|
|
|
|
bin.install "dtach"
|
2010-06-24 20:42:04 +00:00
|
|
|
man1.install gzip("dtach.1")
|
2009-11-08 21:12:13 +00:00
|
|
|
end
|
|
|
|
end
|