aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/dtach.rb
blob: cd2e40b1980c62d2025dfcced8229b04ffea1c6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'formula'

class Dtach < Formula
  url 'http://downloads.sourceforge.net/project/dtach/dtach/0.8/dtach-0.8.tar.gz'
  sha1 'fb7279e719463aa284676a78cdf96788f4f2706b'
  homepage 'http://dtach.sourceforge.net/'

  def install
    # Includes <config.h> instead of "config.h", so "." needs to be in the include path.
    ENV.append "CFLAGS", "-I."

    system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"

    system "make"
    bin.install "dtach"
    man1.install gzip("dtach.1")
  end
end