diff options
author | Andrey Grozin <grozin@gentoo.org> | 2018-09-05 22:26:17 +0700 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2018-09-05 22:26:17 +0700 |
commit | 0547f4e74b206aa4fc02746df0e929a3b8777d19 (patch) | |
tree | 63237290e7d302c80281f701722094bc19d21f95 /sci-mathematics/maxima/files | |
parent | sci-mathematics/maxima: clean old (diff) | |
download | gentoo-0547f4e74b206aa4fc02746df0e929a3b8777d19.tar.gz gentoo-0547f4e74b206aa4fc02746df0e929a3b8777d19.tar.bz2 gentoo-0547f4e74b206aa4fc02746df0e929a3b8777d19.zip |
sci-mathematics/maxima: be compatible with emacs-27
add the upstream patch
bump to eapi 6
Closes: https://bugs.gentoo.org/664848
Package-Manager: Portage-2.3.41, Repoman-2.3.9
Diffstat (limited to 'sci-mathematics/maxima/files')
-rw-r--r-- | sci-mathematics/maxima/files/emacs-27.patch | 10 | ||||
-rw-r--r-- | sci-mathematics/maxima/files/xdg-utils-1.patch | 31 |
2 files changed, 41 insertions, 0 deletions
diff --git a/sci-mathematics/maxima/files/emacs-27.patch b/sci-mathematics/maxima/files/emacs-27.patch new file mode 100644 index 000000000000..ded116599008 --- /dev/null +++ b/sci-mathematics/maxima/files/emacs-27.patch @@ -0,0 +1,10 @@ +diff -r -U2 maxima-5.41.0.orig/interfaces/emacs/imaxima/imaxima.el maxima-5.41.0/interfaces/emacs/imaxima/imaxima.el +--- maxima-5.41.0.orig/interfaces/emacs/imaxima/imaxima.el 2016-04-03 03:42:45.000000000 +0600 ++++ maxima-5.41.0/interfaces/emacs/imaxima/imaxima.el 2018-09-05 20:29:46.843231210 +0700 +@@ -528,5 +528,5 @@ + (set-process-filter imaxima-gs-process 'imaxima-gs-filter) + (imaxima-gs-wait) +- (process-kill-without-query imaxima-gs-process nil) ++ (set-process-query-on-exit-flag imaxima-gs-process nil) + (unless (eq (process-status imaxima-gs-process) 'run) + (setq output (shell-command-to-string (concat imaxima-gs-program " -h"))) diff --git a/sci-mathematics/maxima/files/xdg-utils-1.patch b/sci-mathematics/maxima/files/xdg-utils-1.patch new file mode 100644 index 000000000000..4150eb52cb9b --- /dev/null +++ b/sci-mathematics/maxima/files/xdg-utils-1.patch @@ -0,0 +1,31 @@ +diff -r -U2 maxima-5.41.0.orig/interfaces/emacs/misc/bookmode.el maxima-5.41.0/interfaces/emacs/misc/bookmode.el +--- maxima-5.41.0.orig/interfaces/emacs/misc/bookmode.el 2017-05-29 05:30:43.000000000 +0700 ++++ maxima-5.41.0/interfaces/emacs/misc/bookmode.el 2018-09-05 20:53:02.518172515 +0700 +@@ -681,5 +681,5 @@ + (and tem + (list (concat "View "(nth 1 tem)) +- 'call-process "ghostview" nil nil nil ++ 'call-process "xdg-open" nil nil nil + (expand-file-name(nth 1 tem)) + )) +@@ -706,5 +706,5 @@ + (cond ((looking-at "%PS") "") + (t "gzip -dc | ")) +- "ghostview -") ++ "xdg-open -") + + ))) +diff -r -U2 maxima-5.41.0.orig/interfaces/xmaxima/Tkmaxima/Constants.tcl maxima-5.41.0/interfaces/xmaxima/Tkmaxima/Constants.tcl +--- maxima-5.41.0.orig/interfaces/xmaxima/Tkmaxima/Constants.tcl 2016-04-03 03:42:45.000000000 +0600 ++++ maxima-5.41.0/interfaces/xmaxima/Tkmaxima/Constants.tcl 2018-09-05 20:55:25.180166516 +0700 +@@ -154,7 +154,7 @@ + image/png netmath + image/jpeg netmath +- application/postscript "ghostview -safer %s" +- application/pdf "acroread %s" +- application/x-dvi "xdvi %s" ++ application/postscript "xdg-open %s" ++ application/pdf "xdg-open %s" ++ application/x-dvi "xdg-open %s" + } + set maxima_priv(imagecounter) 0 |