blob: 2c43f30c9598dcb16f8e0f6a110b3d361e714fb1 (
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
30
|
require 'formula'
class Camlp5 < Formula
homepage 'http://pauillac.inria.fr/~ddr/camlp5/'
url 'http://pauillac.inria.fr/~ddr/camlp5/distrib/src/camlp5-6.08.tgz'
sha1 '6cdfc29a9bd23dcee7775996ac29f2a457119d4b'
version '6.08-1'
depends_on 'objective-caml'
option 'strict', 'Compile in strict mode'
def patches
{ :p0 => "http://pauillac.inria.fr/~ddr/camlp5/distrib/src/patch-6.08-1" }
end
def install
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
|