2010-05-22 20:29:59 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Maxima < Formula
|
2010-05-22 20:29:59 +00:00
|
|
|
homepage 'http://maxima.sourceforge.net/'
|
2012-10-21 03:23:17 +00:00
|
|
|
url 'http://sourceforge.net/projects/maxima/files/Maxima-source/5.28.0-source/maxima-5.28.0.tar.gz'
|
|
|
|
sha1 '52d7dad4681711a6ead73b72835b177107363b9c'
|
2010-05-22 20:29:59 +00:00
|
|
|
|
|
|
|
depends_on 'gettext'
|
2010-12-11 19:34:47 +00:00
|
|
|
depends_on 'sbcl'
|
2010-05-22 20:29:59 +00:00
|
|
|
depends_on 'gnuplot'
|
|
|
|
depends_on 'rlwrap'
|
|
|
|
|
2012-12-29 01:55:21 +00:00
|
|
|
# required for maxima help(), describe(), "?" and "??" lisp functionality
|
|
|
|
skip_clean 'share/info'
|
|
|
|
|
2011-12-18 19:54:42 +00:00
|
|
|
def patches
|
|
|
|
# fixes 3468021: imaxima.el uses incorrect tmp directory on OS X:
|
|
|
|
# https://sourceforge.net/tracker/?func=detail&aid=3468021&group_id=4933&atid=104933
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
2010-05-22 20:29:59 +00:00
|
|
|
def install
|
|
|
|
ENV.deparallelize
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2012-10-25 19:17:49 +00:00
|
|
|
"--enable-sbcl",
|
|
|
|
"--enable-gettext"
|
|
|
|
# Per build instructions
|
|
|
|
ENV['LANG'] = 'C'
|
|
|
|
system 'make'
|
|
|
|
system 'make check'
|
|
|
|
system 'make install'
|
2010-05-22 20:29:59 +00:00
|
|
|
end
|
2011-10-23 15:15:16 +00:00
|
|
|
|
|
|
|
def test
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/maxima", "--batch-string='run_testsuite(); quit();'"
|
2011-10-23 15:15:16 +00:00
|
|
|
end
|
2010-05-22 20:29:59 +00:00
|
|
|
end
|
2011-12-18 19:54:42 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/interfaces/emacs/imaxima/imaxima.el b/interfaces/emacs/imaxima/imaxima.el
|
|
|
|
index e3feaa6..3a52a0b 100644
|
|
|
|
--- a/interfaces/emacs/imaxima/imaxima.el
|
|
|
|
+++ b/interfaces/emacs/imaxima/imaxima.el
|
|
|
|
@@ -296,6 +296,8 @@ nil means no scaling at all, t allows any scaling."
|
|
|
|
(temp-directory))
|
|
|
|
((eql system-type 'cygwin)
|
|
|
|
"/tmp/")
|
|
|
|
+ ((eql system-type 'darwin)
|
|
|
|
+ "/tmp/")
|
|
|
|
(t temporary-file-directory))
|
|
|
|
"*Directory used for temporary TeX and image files."
|
|
|
|
:type '(directory)
|