diff options
| author | Christian Stigen Larsen | 2010-09-29 22:02:01 +0200 | 
|---|---|---|
| committer | Adam Vandenberg | 2010-10-21 10:07:11 -0700 | 
| commit | 9019d9e720c16cf60c3b3acab1d3b4b10d8e3dbc (patch) | |
| tree | e1ebe650ccd00ec8d420fadefb49a76ee7a9f860 /Library/Formula/bigloo.rb | |
| parent | 2b911e91145d036d504daa72b8fb510f7f0e8040 (diff) | |
| download | homebrew-9019d9e720c16cf60c3b3acab1d3b4b10d8e3dbc.tar.bz2 | |
Formula for bigloo, a practical scheme compiler.
Caveats
- I'm requiring libgmp, which I think is strictly only needed for
  the SRFI 27 extension (and which is 32-bit only).
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/bigloo.rb')
| -rw-r--r-- | Library/Formula/bigloo.rb | 31 | 
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/bigloo.rb b/Library/Formula/bigloo.rb new file mode 100644 index 000000000..f05c2105c --- /dev/null +++ b/Library/Formula/bigloo.rb @@ -0,0 +1,31 @@ +require 'formula' + +class Bigloo <Formula +  url 'ftp://ftp-sop.inria.fr/indes/fp/Bigloo/bigloo3.4a-3.tar.gz' +  version '3.4a-3' +  homepage 'http://www-sop.inria.fr/indes/fp/Bigloo/' +  md5 '1e6589bdf1c974fe2b992457bb3ce321' + +  # libgmp seems to be required for 32-bit srfi 27 only, but include anyway +  depends_on 'gmp' + +  def install +    args = [ "--disable-debug", "--disable-dependency-tracking", +             "--prefix=#{prefix}", +             "--mandir=#{man}/man1", +             "--infodir=#{info}", +             "--customgc=yes", +             "--os-macosx" ] + +    # SRFI 27 is 32-bit only +    args << "--disable-srfi27" if snow_leopard_64? + +    system "./configure", *args +    system "make" +    system "make install" + +    # Install the other manpages too +    manpages = %w( bgldepend bglmake bglpp bgltags bglafile bgljfile bglmco bglprof ) +    manpages.each {|m| man1.install "manuals/#{m}.man" => "#{m}.1"} +  end +end  | 
