aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/polygen.rb
blob: bb7de0f080d8cbc20760befe860c0e857c347eb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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,
      # 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