aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/camlp5.rb
blob: 1f6fc0382c4315a0c47ed87d8c0df21763564a56 (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
27
28
29
require 'formula'

class Camlp5 < Formula
  url 'http://pauillac.inria.fr/~ddr/camlp5/distrib/src/camlp5-5.15.tgz'
  homepage 'http://pauillac.inria.fr/~ddr/camlp5/'
  md5 '67ccbf37ffe33dec137ee71ca6189ea2'

  depends_on 'objective-caml'

  def options
    [['--strict', "Compile in strict mode"]]
  end

  def install

    # compile for strict or transitional
    if ARGV.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