homebrew-core/Formula/maxima.rb

48 lines
1.6 KiB
Ruby

class Maxima < Formula
desc "Computer algebra system"
homepage "https://maxima.sourceforge.io/"
url "https://downloads.sourceforge.net/project/maxima/Maxima-source/5.44.0-source/maxima-5.44.0.tar.gz"
sha256 "d93f5e48c4daf8f085d609cb3c7b0bdf342c667fd04cf750c846426874c9d2ec"
license "GPL-2.0"
revision 4
livecheck do
url :stable
regex(%r{url=.*?/maxima[._-]v?(\d+(?:\.\d+)+)\.t}i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_sur: "8272859ff2949cabbd4e9abc52e169312a94ed5f2dcc261d8697f902359c31d6"
sha256 cellar: :any_skip_relocation, big_sur: "b18ddd27b9ace1696e4c85882b83e9534bff26abf7883f60f4ab1a2c16d0ec36"
sha256 cellar: :any_skip_relocation, catalina: "f6c80c2d089f8491cfdef319989cecd6261d60fe50bf30f772edf1354036e367"
sha256 cellar: :any_skip_relocation, mojave: "6d53b17d1204e005fd3998f6dcff9c789da1e1202fb9ff3b797f91047615d509"
end
depends_on "gawk" => :build
depends_on "gnu-sed" => :build
depends_on "perl" => :build
depends_on "texinfo" => :build
depends_on "gettext"
depends_on "gnuplot"
depends_on "rlwrap"
depends_on "sbcl"
def install
ENV["LANG"] = "C" # per build instructions
system "./configure",
"--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-gettext",
"--enable-sbcl",
"--with-emacs-prefix=#{share}/emacs/site-lisp/#{name}",
"--with-sbcl=#{Formula["sbcl"].opt_bin}/sbcl"
system "make"
system "make", "install"
end
test do
system "#{bin}/maxima", "--batch-string=run_testsuite(); quit();"
end
end