aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/maxima.rb
blob: 2f2144c799cf9e72c0e7bc863e8e08486c1e3810 (plain)
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
require 'formula'

class Maxima < Formula
  url 'http://sourceforge.net/projects/maxima/files/Maxima-source/5.25.1-source/maxima-5.25.1.tar.gz'
  homepage 'http://maxima.sourceforge.net/'
  md5 'f2a7399e53eadc38e0bedb843d5d7055'

  depends_on 'gettext'
  depends_on 'sbcl'
  depends_on 'gnuplot'
  depends_on 'rlwrap'

  def install
    ENV.deparallelize
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}", "--infodir=#{info}",
                          "--enable-sbcl", "--enable-gettext"
    system "make"
    system "make check"
    system "make install"
  end

  def test
    system "maxima --batch-string='run_testsuite(); quit();'"
  end
end