class Wxmaxima < Formula desc "Cross platform GUI for Maxima" homepage "https://wxmaxima-developers.github.io/wxmaxima/" url "https://github.com/wxMaxima-developers/wxmaxima/archive/Version-19.10.0.tar.gz" sha256 "5ec0a912ebe2688b0fbe10999463cb8365ce5e87d8a47eb04f95bd63880dc2f0" head "https://github.com/wxMaxima-developers/wxmaxima.git" bottle do cellar :any sha256 "67db4b7a55b8262884d13199566a759aa1fb11b128c38d98df41420f80d4d222" => :catalina sha256 "0fde2dd271e807ea6a3035fab2fbe6559f5263dc5da28cb9c8ad3a42540f0d96" => :mojave sha256 "812d6bee630aefdf692bb9367310186194b51e306b700c9a311bf643fe388e8f" => :high_sierra end depends_on "cmake" => :build depends_on "gettext" => :build depends_on "wxmac" def install system "cmake", ".", *std_cmake_args system "make", "install" prefix.install "wxMaxima.app" bash_completion.install "data/wxmaxima" 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") end end