forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwxmaxima.rb
45 lines (39 loc) · 1.35 KB
/
wxmaxima.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
class Wxmaxima < Formula
homepage "http://andrejv.github.io/wxmaxima"
url "https://downloads.sourceforge.net/project/wxmaxima/wxMaxima/13.04.2/wxMaxima-13.04.2.tar.gz"
sha1 "9508d3badb6c339f34e73e01c5065f679329a17c"
bottle do
cellar :any
sha1 "d110a3c63e434f87f4441952a28d48889cfc6a10" => :yosemite
sha1 "3e66edeec9ae6008f34024238857423fbfd04df5" => :mavericks
sha1 "29ff6b7afe5e143eb5a2714d0565a3327f82aff2" => :mountain_lion
end
depends_on "wxmac"
head do
url "https://github.com/andrejv/wxmaxima.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "gettext" => :build
end
def install
system "./bootstrap" if build.head?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
cd "locales" do
system "make", "allmo"
end
system "make", "wxMaxima.app"
prefix.install "wxMaxima.app"
system "make", "install"
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
end