diff options
| author | François Garillot | 2010-09-24 14:00:37 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2010-10-12 21:53:39 -0700 |
| commit | a72b746342b3993ce419a6eb45a6aefc9e50a00c (patch) | |
| tree | 43aa87e18518c6c2032186f8c38dfc0181ff5d5f /Library/Formula | |
| parent | da43bfe7f97466da280085ce1970a9cfeac51504 (diff) | |
| download | homebrew-a72b746342b3993ce419a6eb45a6aefc9e50a00c.tar.bz2 | |
added option for (by default) transitional (ie. permissive) compilation of camlp5
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/camlp5.rb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Library/Formula/camlp5.rb b/Library/Formula/camlp5.rb index 24aea176a..8b2157b61 100644 --- a/Library/Formula/camlp5.rb +++ b/Library/Formula/camlp5.rb @@ -7,8 +7,20 @@ class Camlp5 <Formula depends_on 'objective-caml' + def options + [['--strict', "Compile in strict mode"]] + end + def install - system "./configure -strict -prefix #{prefix} -mandir #{man}" + + # 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 system "make -j 1 world.opt" system "make install" |
