homebrew-core/Formula/polygen.rb
awang 74c6d290de rename objective-caml to ocaml
Follow-up to  https://github.com/Homebrew/homebrew/pull/42851 (rename
objective-caml formula to ocaml).
Renames formulas using/depending on ocaml in the main homebrew library

Closes Homebrew/homebrew#43523.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-04 14:16:47 +08:00

18 lines
607 B
Ruby

class Polygen < Formula
desc "Generate random sentences according to a given grammar"
homepage "http://www.polygen.org"
url "http://www.polygen.org/dist/polygen-1.0.6-20040628-src.zip"
sha256 "703c483820b33a5d695e884e58e2723a660930180fde845f38d6135d247c64a5"
depends_on "ocaml" => :build
def install
cd "src" do
# BSD echo doesn't grok -e, which the makefile tries to use,
# with weird results; see https://github.com/Homebrew/homebrew/pull/21344
inreplace "Makefile", '-e "open Absyn\n"', '"open Absyn"'
system "make"
bin.install "polygen"
end
end
end