homebrew-core/Formula/wxmaxima.rb
2017-10-22 09:18:06 -07:00

47 lines
1.5 KiB
Ruby

class Wxmaxima < Formula
desc "Cross platform GUI for Maxima"
homepage "https://andrejv.github.io/wxmaxima"
url "https://github.com/andrejv/wxmaxima/archive/Version-17.10.1.tar.gz"
sha256 "61276008be667779b4cde4d17b10c179c869d94a2eb2b4f273974fccc2609f62"
head "https://github.com/andrejv/wxmaxima.git"
bottle do
cellar :any
sha256 "8f80844c94e38e0e405a274aec094b7f9aea238762703639790de8e2de3280f2" => :high_sierra
sha256 "d4173dbf5d8d08e94b6ff9b39fc6eb88aaa57e309a1c6e8f93310a0ea9c09bae" => :sierra
sha256 "62be362ff5d80cd7334fdb00e4b71aa24e4cf65d560e54861e70196e1e9fdddb" => :el_capitan
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "gettext" => :build
depends_on "wxmac"
def install
system "./bootstrap"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
cd "locales" do
system "make", "allmo"
end
system "make", "wxMaxima.app"
system "make", "install"
prefix.install "wxMaxima.app"
end
def caveats; <<~EOS
When you start wxMaxima the first time, set the path to Maxima
(e.g. #{HOMEBREW_PREFIX}/bin/maxima) in the Preferences.
Enable gnuplot functionality by setting the following variables
in ~/.maxima/maxima-init.mac:
gnuplot_command:"#{HOMEBREW_PREFIX}/bin/gnuplot"$
draw_command:"#{HOMEBREW_PREFIX}/bin/gnuplot"$
EOS
end
test do
assert_match "algebra", shell_output("#{bin}/wxmaxima --help 2>&1", 255)
end
end