aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Wilkinson2011-10-23 11:15:16 -0400
committerCharlie Sharpsteen2011-10-25 11:38:51 -0700
commit6e56f38acb3838b0aa0e277c59c39d4b8154865a (patch)
tree6194bf62cc966adb5488400dbb4cdfe2ed683e89
parentf8669a877181473f73a3471a4a8df79c21090491 (diff)
downloadhomebrew-6e56f38acb3838b0aa0e277c59c39d4b8154865a.tar.bz2
Maxima: Upgrade to version 5.25.1
Updated Formula for GNU Maxima to the latest version (5.25.1), as of 22 October 2011, and added a test method to non-interactively run the Maxima self-test suite. (Not every test is expected to pass, but this will at least give the user an indication that Maxima is installed properly, and allow the user to check for egregious errors.) Closes #8246. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
-rw-r--r--Library/Formula/maxima.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/Library/Formula/maxima.rb b/Library/Formula/maxima.rb
index 92b8492c3..2f2144c79 100644
--- a/Library/Formula/maxima.rb
+++ b/Library/Formula/maxima.rb
@@ -1,9 +1,9 @@
require 'formula'
class Maxima < Formula
- url 'http://sourceforge.net/projects/maxima/files/Maxima-source/5.22.1-source/maxima-5.22.1.tar.gz'
+ 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 '160ea8be39127d6636b934a85e407c9b'
+ md5 'f2a7399e53eadc38e0bedb843d5d7055'
depends_on 'gettext'
depends_on 'sbcl'
@@ -16,6 +16,12 @@ class Maxima < Formula
"--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