maxima: patch imaxima.el
Patch fixes imaxima.el temp directory on OS X Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
827098eb0a
commit
9a4c70fa49
1 changed files with 21 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue