2013-06-13 06:08:17 +00:00
|
|
|
class Bigloo < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Scheme implementation with object system, C, and Java interfaces"
|
2015-10-09 11:27:04 +00:00
|
|
|
homepage "https://www-sop.inria.fr/indes/fp/Bigloo/"
|
2014-05-08 04:18:30 +00:00
|
|
|
url "ftp://ftp-sop.inria.fr/indes/fp/Bigloo/bigloo4.1a-2.tar.gz"
|
|
|
|
version "4.1a-2"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "5db2e7cdb7aa4bb380f35a2a476d282842df72febdb934545b475e0932fad927"
|
2015-10-07 06:31:44 +00:00
|
|
|
revision 1
|
2013-06-13 06:08:17 +00:00
|
|
|
|
2015-10-07 06:54:51 +00:00
|
|
|
bottle do
|
|
|
|
sha256 "042dcc5db6526cfa2854bbb82e326c123cc855e6ecf8bee0558016d0ea03522e" => :el_capitan
|
|
|
|
sha256 "e6eccc6930e392a68ad4119faf02ebcd1441224e2c1e31bd7f854be284097c89" => :yosemite
|
|
|
|
sha256 "859d76572635457a644aa0224e9dba1014046b52a0d6ad05cba2d35c904410c1" => :mavericks
|
|
|
|
end
|
|
|
|
|
2014-05-08 04:18:30 +00:00
|
|
|
option "with-jvm", "Enable JVM support"
|
2013-06-13 06:08:17 +00:00
|
|
|
|
2015-10-07 06:31:44 +00:00
|
|
|
depends_on "openssl"
|
|
|
|
depends_on "gmp" => :recommended
|
|
|
|
|
2013-06-13 06:08:17 +00:00
|
|
|
fails_with :clang do
|
2014-05-25 02:12:34 +00:00
|
|
|
build 500
|
2013-06-13 06:08:17 +00:00
|
|
|
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
|
2013-06-13 06:08:17 +00:00
|
|
|
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",
|
2015-10-07 06:31:44 +00:00
|
|
|
"--disable-flac",
|
|
|
|
]
|
2013-06-13 06:08:17 +00:00
|
|
|
|
2014-05-08 04:18:30 +00:00
|
|
|
args << "--jvm=yes" if build.with? "jvm"
|
2013-08-03 23:06:54 +00:00
|
|
|
args << "--no-gmp" if build.without? "gmp"
|
2013-06-13 06:08:17 +00:00
|
|
|
|
|
|
|
# SRFI 27 is 32-bit only
|
|
|
|
args << "--disable-srfi27" if MacOS.prefer_64_bit?
|
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
|
|
|
|
system "make"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2013-06-13 06:08:17 +00:00
|
|
|
|
|
|
|
# Install the other manpages too
|
2015-08-03 12:55:31 +00:00
|
|
|
manpages = %w[bgldepend bglmake bglpp bgltags bglafile bgljfile bglmco bglprof]
|
|
|
|
manpages.each { |m| man1.install "manuals/#{m}.man" => "#{m}.1" }
|
2013-06-13 06:08:17 +00:00
|
|
|
end
|
2015-10-07 06:31:44 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match "Bigloo (4", shell_output("bigloo --help")
|
|
|
|
end
|
2013-06-13 06:08:17 +00:00
|
|
|
end
|