73 lines
2.0 KiB
Ruby
73 lines
2.0 KiB
Ruby
class Bigloo < Formula
|
|
desc "Scheme implementation with object system, C, and Java interfaces"
|
|
homepage "https://www-sop.inria.fr/indes/fp/Bigloo/"
|
|
url "ftp://ftp-sop.inria.fr/indes/fp/Bigloo/bigloo4.3e.tar.gz"
|
|
version "4.3e"
|
|
sha256 "43363cb968c57925f402117ff8ec4b47189e2747b02350805a34fa617d9f618a"
|
|
revision 1
|
|
|
|
livecheck do
|
|
url "https://www-sop.inria.fr/indes/fp/Bigloo/download.html"
|
|
regex(/bigloo-latest\.t.+?\(([^)]+?)\)/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 catalina: "06c2d3728e778db36954a6fca8ecc8cb663d90122a884cfb0fc96ce1de36663a"
|
|
sha256 mojave: "5de69de8a1afee85a7b6af5d024c80ff3ceb7acc8e391c20fd24398122cfad9a"
|
|
sha256 high_sierra: "26a5f98ee71f7794ced067f64a695f040ef271413ac58b0e0cbfa883ab44ee73"
|
|
sha256 sierra: "2844e66dfeecc9cfe4ad85558f2d2be450b5aea3acad7461402e9fcb7fb5bbdd"
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
|
|
depends_on "gmp"
|
|
depends_on "openssl@1.1"
|
|
|
|
def install
|
|
args = %W[
|
|
--disable-debug
|
|
--disable-dependency-tracking
|
|
--prefix=#{prefix}
|
|
--mandir=#{man1}
|
|
--infodir=#{info}
|
|
--customgc=yes
|
|
--os-macosx
|
|
--native=yes
|
|
--disable-alsa
|
|
--disable-mpg123
|
|
--disable-flac
|
|
--disable-srfi27
|
|
--jvm=yes
|
|
]
|
|
|
|
system "./configure", *args
|
|
|
|
# bigloo seems to either miss installing these dependencies, or maybe
|
|
# do it out of order with where they're used.
|
|
cd "libunistring" do
|
|
system "make", "install"
|
|
end
|
|
cd "pcre" do
|
|
system "make", "install"
|
|
end
|
|
|
|
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
|
|
|
|
test do
|
|
program = <<~EOS
|
|
(display "Hello World!")
|
|
(newline)
|
|
(exit)
|
|
EOS
|
|
assert_match "Hello World!\n", pipe_output("#{bin}/bigloo -i -", program)
|
|
end
|
|
end
|