22 lines
668 B
Ruby
22 lines
668 B
Ruby
class OpenCobol < Formula
|
|
desc "COBOL compiler"
|
|
homepage "http://www.opencobol.org/"
|
|
url "https://downloads.sourceforge.net/project/open-cobol/open-cobol/1.1/open-cobol-1.1.tar.gz"
|
|
sha256 "6ae7c02eb8622c4ad55097990e9b1688a151254407943f246631d02655aec320"
|
|
|
|
depends_on "gmp"
|
|
depends_on "berkeley-db"
|
|
|
|
conflicts_with "gnu-cobol",
|
|
:because => "both install `cob-config`, `cobc` and `cobcrun` binaries"
|
|
|
|
def install
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}", "--infodir=#{info}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/cobc", "--help"
|
|
end
|
|
end
|