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

class Mosml < Formula
  version '2.01'
  url 'http://www.itu.dk/people/sestoft/mosml/mos201src.tar.gz'
  homepage 'http://www.itu.dk/people/sestoft/mosml.html'
  md5 '74aaaf988201fe92a9dbfbcb1e646f70'

  def install
    cd "src"

    inreplace "Makefile.inc" do |s|
      s.change_make_var! 'MOSMLHOME', prefix
      s.change_make_var! 'DOCDIR', doc
      s.change_make_var! 'LIBDIR', lib+'mosml'
      s.change_make_var! 'TOOLDIR', lib+'mosml'
    end

    system "make", "CPP=cpp"
    system "make install"
  end
end