homebrew-core/Formula/bigloo.rb

51 lines
1.4 KiB
Ruby
Raw Normal View History

2014-05-08 04:18:30 +00:00
require "formula"
class Bigloo < Formula
desc "Scheme implementation with object system, C, and Java interfaces"
2014-05-08 04:18:30 +00:00
homepage "http://www-sop.inria.fr/indes/fp/Bigloo/"
url "ftp://ftp-sop.inria.fr/indes/fp/Bigloo/bigloo4.1a-2.tar.gz"
version "4.1a-2"
sha1 "4010a2c8f71d2caf10c215ed9c6edc28fc7290ef"
2014-05-08 04:18:30 +00:00
depends_on "gmp" => :recommended
2014-05-08 04:18:30 +00:00
option "with-jvm", "Enable JVM support"
fails_with :clang do
build 500
cause <<-EOS.undent
objs/obj_u/Ieee/dtoa.c:262:79504: fatal error: parser
recursion limit reached, program too complex
2014-05-04 18:06:23 +00:00
EOS
end
def install
args = ["--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man1}",
"--infodir=#{info}",
"--customgc=yes",
"--os-macosx",
"--native=yes",
"--disable-alsa",
"--disable-mpg123",
"--disable-flac"]
2014-05-08 04:18:30 +00:00
args << "--jvm=yes" if build.with? "jvm"
args << "--no-gmp" if build.without? "gmp"
# SRFI 27 is 32-bit only
args << "--disable-srfi27" if MacOS.prefer_64_bit?
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