homebrew-core/Formula/bigloo.rb

86 lines
2.2 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/bigloo-4.4c-4.tar.gz"
version "4.4c-4"
sha256 "4ed71a86c6d762c35352e9f04871a11fe90fa5dbc974e728a86d9e8229d7c70f"
license "GPL-2.0-or-later"
revision 1
livecheck do
url "https://www-sop.inria.fr/indes/fp/Bigloo/download.html"
regex(/bigloo-latest\.t.+?\(([^)]+?)\)/i)
end
bottle do
sha256 ventura: "132cbc50298f9755eaff46f16fb25c1a38fccc4e298f5403cd73cee32f48bdce"
sha256 monterey: "9482d0f4029d4750e9570974ed9a31570c02cb14479236e33ddf7f51aeaa884b"
sha256 big_sur: "131a99cb61120cddbf1658ba95b9385063c308fab3bca31f5afa91bdc46643fc"
sha256 x86_64_linux: "da0b8a6b0e185036a0874a3d00f59052c0c5a813641f8e265d123503fff0c71a"
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on arch: :x86_64
depends_on "bdw-gc"
depends_on "gmp"
depends_on "libunistring"
depends_on "libuv"
depends_on "openjdk"
depends_on "openssl@1.1"
depends_on "pcre2"
on_linux do
depends_on "alsa-lib"
end
def install
# Force bigloo not to use vendored libraries
inreplace "configure", /(^\s+custom\w+)=yes$/, "\\1=no"
args = %W[
--disable-debug
--disable-dependency-tracking
--prefix=#{prefix}
--mandir=#{man1}
--infodir=#{info}
--customgc=no
--customgmp=no
--customlibuv=no
--customunistring=no
--native=yes
--disable-mpg123
--disable-flac
--jvm=yes
]
if OS.mac?
args += %w[
--os-macosx
--disable-alsa
]
end
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
test do
program = <<~EOS
(display "Hello World!")
(newline)
(exit)
EOS
assert_match "Hello World!\n", pipe_output("#{bin}/bigloo -i -", program)
end
end