aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/open-cobol.rb
blob: 211cf5b7d85e7a2a846ffb1e5b4d3b1fce07725c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class OpenCobol < Formula
  url 'http://downloads.sourceforge.net/project/open-cobol/open-cobol/1.0/open-cobol-1.0.tar.gz'
  homepage 'http://www.opencobol.org/'
  sha1 '4c0930a74e92014317b2f237aaedc90acc2b72df'

  depends_on 'gmp'
  depends_on 'berkeley-db'

  def install
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}", "--infodir=#{info}"
    system "make install"
  end

  def test
    system "#{bin}/cobc", "--help"
  end
end