From 9a4c70fa49502c92d9fb0952ad2a74d450d5833b Mon Sep 17 00:00:00 2001 From: "Joshua B. Griffith" Date: Sun, 18 Dec 2011 13:54:42 -0600 Subject: [PATCH] maxima: patch imaxima.el Patch fixes imaxima.el temp directory on OS X Signed-off-by: Adam Vandenberg --- Formula/maxima.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Formula/maxima.rb b/Formula/maxima.rb index 2f2144c799..db8a4095bc 100644 --- a/Formula/maxima.rb +++ b/Formula/maxima.rb @@ -10,6 +10,12 @@ class Maxima < Formula 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", @@ -25,3 +31,18 @@ class Maxima < Formula system "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)