class Wxmaxima < Formula desc "Cross platform GUI for Maxima" homepage "https://andrejv.github.io/wxmaxima" url "https://github.com/andrejv/wxmaxima/archive/Version-17.05.1.tar.gz" sha256 "72394f266a784e433e232e600e7178fdd6362fd33f8ac11703db10c780676037" revision 1 head "https://github.com/andrejv/wxmaxima.git" bottle do cellar :any sha256 "397d2368f687ec453a35f280972957a34ece0dc4aea79087ec9da1046266d502" => :sierra sha256 "9a5834c460f783bb95c140b40904e28933891705ca353a2c9a078dee71f43143" => :el_capitan sha256 "ba9c3a45ca1a866b9dd3a0999ed9a9da275a71e2fbdea9ab5b158d42e0fdecb7" => :yosemite 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.undent 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_equal "wxMaxima #{version}", shell_output("#{bin}/wxMaxima -v", 255).chomp end end