homebrew-core/Formula/maxima.rb

49 lines
1.4 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Maxima < Formula
homepage 'http://maxima.sourceforge.net/'
url 'http://sourceforge.net/projects/maxima/files/Maxima-source/5.27.0-source/maxima-5.27.0.tar.gz'
sha1 '8d8d0b3db27f002986cff5429dea96ada46a0576'
depends_on 'gettext'
depends_on 'sbcl'
depends_on 'gnuplot'
depends_on 'rlwrap'
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
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 "#{bin}/maxima", "--batch-string='run_testsuite(); quit();'"
end
end
__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)