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

class Camlp5 < Formula
  homepage 'http://pauillac.inria.fr/~ddr/camlp5/'
  url 'http://pauillac.inria.fr/~ddr/camlp5/distrib/src/camlp5-6.06.tgz'
  sha1 'd3d56748de424afc3f878e650254b9d3e5fae6c2'

  depends_on 'objective-caml'

  option 'strict', 'Compile in strict mode'

  def install
    # compile for strict or transitional
    if build.include? '--strict'
      strictness = "-strict"
    else
      strictness = "-transitional"
    end

    system "./configure", "-prefix", prefix, "-mandir", man, strictness
    # this build fails if jobs are parallelized
    ENV.deparallelize
    system "make world.opt"
    system "make install"
  end
end