2013-07-20 06:25:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Polygen < Formula
|
|
|
|
homepage 'http://www.polygen.org'
|
|
|
|
url 'http://www.polygen.org/dist/polygen-1.0.6-20040628-src.zip'
|
|
|
|
sha1 'a9b397f32f22713c0a98b20c9421815e0a4e1293'
|
|
|
|
|
|
|
|
depends_on 'objective-caml' => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
cd 'src' do
|
|
|
|
# BSD echo doesn't grok -e, which the makefile tries to use,
|
2013-12-14 18:13:11 +00:00
|
|
|
# with weird results; see https://github.com/Homebrew/homebrew/pull/21344
|
2013-07-20 06:25:58 +00:00
|
|
|
inreplace 'Makefile', '-e "open Absyn\n"', '"open Absyn"'
|
|
|
|
system 'make'
|
|
|
|
bin.install 'polygen'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|