aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua B. Griffith2011-12-18 13:54:42 -0600
committerAdam Vandenberg2012-01-07 10:30:54 -0800
commitb17e803e02acbcb10d7ddba183216885f1881d69 (patch)
tree11b87c31d66a76865e2a63898c5d61e78bbad827
parenta2eb4399cf62f6ba9b1625ea5de08e71dbfe932d (diff)
downloadhomebrew-b17e803e02acbcb10d7ddba183216885f1881d69.tar.bz2
maxima: patch imaxima.el
Patch fixes imaxima.el temp directory on OS X Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/maxima.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/maxima.rb b/Library/Formula/maxima.rb
index 2f2144c79..db8a4095b 100644
--- a/Library/Formula/maxima.rb
+++ b/Library/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)