41 lines
1.3 KiB
Ruby
41 lines
1.3 KiB
Ruby
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.12.2.tar.gz"
|
|
sha256 "9881ec6caca89cf870e7e632725c8feab8b4a83c7a7a6254db94d2c5706ee283"
|
|
head "https://github.com/wxMaxima-developers/wxmaxima.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "7b43830a2f620c88827ed1900dea643a4d46e537b7a191852ea52560285c6985" => :catalina
|
|
sha256 "6af8bf97a58785ebfb9a68081a00e970b145ebe2af188ae8d407b509329b951c" => :mojave
|
|
sha256 "6d2894f5398129023c231d12b190641076e8a2ef16cdddcd200b042d236bdf96" => :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
|