diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-mathematics/maxima/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-mathematics/maxima/files')
-rw-r--r-- | sci-mathematics/maxima/files/50maxima-gentoo-1.el | 13 | ||||
-rw-r--r-- | sci-mathematics/maxima/files/clisp-1.patch | 19 | ||||
-rw-r--r-- | sci-mathematics/maxima/files/clozurecl-2.patch | 27 | ||||
-rw-r--r-- | sci-mathematics/maxima/files/cmucl-1.patch | 19 | ||||
-rw-r--r-- | sci-mathematics/maxima/files/db-0.patch | 20 | ||||
-rw-r--r-- | sci-mathematics/maxima/files/ecls-2.patch | 35 | ||||
-rw-r--r-- | sci-mathematics/maxima/files/emacs-0.patch | 32 | ||||
-rw-r--r-- | sci-mathematics/maxima/files/rmaxima-0.patch | 25 | ||||
-rw-r--r-- | sci-mathematics/maxima/files/sbcl-1.patch | 18 | ||||
-rw-r--r-- | sci-mathematics/maxima/files/sbcl-2.patch | 13 | ||||
-rw-r--r-- | sci-mathematics/maxima/files/wish-2.patch | 26 | ||||
-rw-r--r-- | sci-mathematics/maxima/files/xdg-utils-0.patch | 35 |
12 files changed, 282 insertions, 0 deletions
diff --git a/sci-mathematics/maxima/files/50maxima-gentoo-1.el b/sci-mathematics/maxima/files/50maxima-gentoo-1.el new file mode 100644 index 000000000000..be14dbfc7d2f --- /dev/null +++ b/sci-mathematics/maxima/files/50maxima-gentoo-1.el @@ -0,0 +1,13 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'maxima-mode "maxima" "Maxima mode" t) +(autoload 'maxima "maxima" "Maxima interactive" t) +(autoload 'dbl "dbl" "Make a debugger to run lisp, maxima and or gdb in" t) +(add-to-list 'auto-mode-alist '("\\.ma?[cx]\\'" . maxima-mode)) + +;; emaxima mode +(autoload 'emaxima-mode "emaxima" "EMaxima" t) +(add-hook 'emaxima-mode-hook 'emaxima-mark-file-as-emaxima) + +;; imaxima +(autoload 'imaxima "imaxima" "Image support for Maxima." t) +(autoload 'imath-mode "imath" "Interactive Math minor mode." t) diff --git a/sci-mathematics/maxima/files/clisp-1.patch b/sci-mathematics/maxima/files/clisp-1.patch new file mode 100644 index 000000000000..9dc8dfd7d51e --- /dev/null +++ b/sci-mathematics/maxima/files/clisp-1.patch @@ -0,0 +1,19 @@ +diff -r -U1 maxima-5.37.1.orig/src/maxima.in maxima-5.37.1/src/maxima.in +--- maxima-5.37.1.orig/src/maxima.in 2015-05-22 04:40:03.000000000 +0600 ++++ maxima-5.37.1/src/maxima.in 2015-09-03 16:08:22.467930422 +0600 +@@ -135,5 +135,5 @@ + if [ -x "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" ]; then +- exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" $MAXIMA_LISP_OPTIONS -q "" -- "$@" ++ exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" $MAXIMA_LISP_OPTIONS -q -norc "" -- "$@" + else +- exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/@CLISP_RUNTIME@" $MAXIMA_LISP_OPTIONS -q -M "$maxima_image_base.mem" "" -- "$@" ++ exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/@CLISP_RUNTIME@" $MAXIMA_LISP_OPTIONS -q -norc -M "$maxima_image_base.mem" "" -- "$@" + fi +@@ -141,5 +141,5 @@ + if [ -x "$maxima_image_base" ]; then +- exec "$maxima_image_base" $MAXIMA_LISP_OPTIONS -q "" -- "$@" ++ exec "$maxima_image_base" $MAXIMA_LISP_OPTIONS -q -norc "" -- "$@" + else +- exec "@CLISP_NAME@" $MAXIMA_LISP_OPTIONS -q -M "$maxima_image_base.mem" "" -- "$@" ++ exec "@CLISP_NAME@" $MAXIMA_LISP_OPTIONS -q -norc -M "$maxima_image_base.mem" "" -- "$@" + fi diff --git a/sci-mathematics/maxima/files/clozurecl-2.patch b/sci-mathematics/maxima/files/clozurecl-2.patch new file mode 100644 index 000000000000..5c5189c7e051 --- /dev/null +++ b/sci-mathematics/maxima/files/clozurecl-2.patch @@ -0,0 +1,27 @@ +diff -r -U1 maxima-5.37.1.orig/configure.ac maxima-5.37.1/configure.ac +--- maxima-5.37.1.orig/configure.ac 2015-09-01 02:28:02.000000000 +0600 ++++ maxima-5.37.1/configure.ac 2015-09-03 18:11:54.335618720 +0600 +@@ -386,3 +386,3 @@ + dnl n.b. openmcl_default_name is hardcoded in "with" message +-openmcl_default_name=openmcl ++openmcl_default_name=ccl + AC_ARG_ENABLE(openmcl, +diff -r -U1 maxima-5.37.1.orig/src/Makefile.am maxima-5.37.1/src/Makefile.am +--- maxima-5.37.1.orig/src/Makefile.am 2015-08-11 02:44:21.000000000 +0600 ++++ maxima-5.37.1/src/Makefile.am 2015-09-03 17:26:12.849734012 +0600 +@@ -338,3 +338,3 @@ + +-EXECUTEOPENMCL = $(OPENMCL_NAME) -e ++EXECUTEOPENMCL = $(OPENMCL_NAME) --no-init -e + BUILT_FILES += $(OPENMCL_MAXIMA) +diff -r -U1 maxima-5.37.1.orig/src/maxima.in maxima-5.37.1/src/maxima.in +--- maxima-5.37.1.orig/src/maxima.in 2015-05-22 04:40:03.000000000 +0600 ++++ maxima-5.37.1/src/maxima.in 2015-09-03 17:22:31.841743306 +0600 +@@ -182,5 +182,5 @@ + if [ -x "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" ]; then +- exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" $MAXIMA_LISP_OPTIONS -e '(cl-user::run)' -- "$@" ++ exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" $MAXIMA_LISP_OPTIONS --no-init -e '(cl-user::run)' -- "$@" + else +- exec "@OPENMCL_NAME@" -I "$maxima_image_base.image" $MAXIMA_LISP_OPTIONS -e '(cl-user::run)' -- "$@" ++ exec "@OPENMCL_NAME@" -I "$maxima_image_base.image" $MAXIMA_LISP_OPTIONS --no-init -e '(cl-user::run)' -- "$@" + fi diff --git a/sci-mathematics/maxima/files/cmucl-1.patch b/sci-mathematics/maxima/files/cmucl-1.patch new file mode 100644 index 000000000000..c87a6c922b38 --- /dev/null +++ b/sci-mathematics/maxima/files/cmucl-1.patch @@ -0,0 +1,19 @@ +diff -r -U1 maxima-5.37.1.orig/src/maxima.in maxima-5.37.1/src/maxima.in +--- maxima-5.37.1.orig/src/maxima.in 2015-05-22 04:40:03.000000000 +0600 ++++ maxima-5.37.1/src/maxima.in 2015-09-03 16:29:30.751877085 +0600 +@@ -152,5 +152,5 @@ + if [ -x "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" ]; then +- exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" $MAXIMA_LISP_OPTIONS -quiet -- "$@" ++ exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" $MAXIMA_LISP_OPTIONS -quiet -nositeinit -noinit -- "$@" + else +- exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/@CMUCL_RUNTIME@" $MAXIMA_LISP_OPTIONS -quiet -core "$maxima_image_base.core" -eval '(cl-user::run)' -- "$@" ++ exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/@CMUCL_RUNTIME@" $MAXIMA_LISP_OPTIONS -quiet -nositeinit -noinit -core "$maxima_image_base.core" -eval '(cl-user::run)' -- "$@" + fi +@@ -158,5 +158,5 @@ + if [ -x "$maxima_image_base" ]; then +- exec "$maxima_image_base" $MAXIMA_LISP_OPTIONS -quiet -- "$@" ++ exec "$maxima_image_base" $MAXIMA_LISP_OPTIONS -quiet -nositeinit -noinit -- "$@" + else +- exec "@CMUCL_NAME@" $MAXIMA_LISP_OPTIONS -quiet -core "$maxima_image_base.core" -eval '(cl-user::run)' -- "$@" ++ exec "@CMUCL_NAME@" $MAXIMA_LISP_OPTIONS -quiet -nositeinit -noinit -core "$maxima_image_base.core" -eval '(cl-user::run)' -- "$@" + fi diff --git a/sci-mathematics/maxima/files/db-0.patch b/sci-mathematics/maxima/files/db-0.patch new file mode 100644 index 000000000000..d6cc18617cc5 --- /dev/null +++ b/sci-mathematics/maxima/files/db-0.patch @@ -0,0 +1,20 @@ +diff -r -U2 maxima-5.37.1.orig/src/db.lisp maxima-5.37.1/src/db.lisp +--- maxima-5.37.1.orig/src/db.lisp 2015-08-11 01:01:13.000000000 +0600 ++++ maxima-5.37.1/src/db.lisp 2015-09-04 00:21:43.596685564 +0600 +@@ -389,10 +389,14 @@ + + (defmfun isp (pat) +- (let ((isp 'unknown)) ++ (let ((isp 'unknown) #+ccl (err t)) + (ignore-errors + (setq isp + (cond ((truep pat)) + ((falsep pat) nil) +- (t 'unknown)))) ++ (t 'unknown))) ++ (setq err nil)) ++ #+ccl ++ (when err ++ (setq +labs nil)) + isp)) + diff --git a/sci-mathematics/maxima/files/ecls-2.patch b/sci-mathematics/maxima/files/ecls-2.patch new file mode 100644 index 000000000000..d9af8c373caf --- /dev/null +++ b/sci-mathematics/maxima/files/ecls-2.patch @@ -0,0 +1,35 @@ +diff -r -U1 maxima-5.37.1.orig/src/maxima.in maxima-5.37.1/src/maxima.in +--- maxima-5.37.1.orig/src/maxima.in 2015-05-22 04:40:03.000000000 +0600 ++++ maxima-5.37.1/src/maxima.in 2015-09-03 16:33:30.913866985 +0600 +@@ -188,3 +188,3 @@ + elif [ "$MAXIMA_LISP" = "ecl" ]; then +- exec "$maxima_image_base" $MAXIMA_LISP_OPTIONS -- "$@" ++ exec "$maxima_image_base" $MAXIMA_LISP_OPTIONS -norc -- "$@" + +diff -r -U1 maxima-5.37.1.orig/src/maxima.system maxima-5.37.1/src/maxima.system +--- maxima-5.37.1.orig/src/maxima.system 2015-09-01 02:26:13.000000000 +0600 ++++ maxima-5.37.1/src/maxima.system 2015-09-03 16:42:47.071843596 +0600 +@@ -61,2 +61,10 @@ + #+ecl ++(defun split-ld-flags-for-ecl (string &aux space) ++ (setf string (string-trim '(#\Space) string)) ++ (if (setf space (position #\Space string)) ++ (cons (subseq string 0 space) ++ (split-ld-flags-for-ecl (subseq string (1+ space)))) ++ (cons string nil))) ++ ++#+ecl + (defun build-maxima-lib () +@@ -77,2 +85,7 @@ + files))) ++ (c::build-fasl "binary-ecl/maxima" :lisp-files obj ++ :ld-flags ++ (let ((x (symbol-value (find-symbol "*AUTOCONF-LD-FLAGS*" ++ (find-package "MAXIMA"))))) ++ (if (and x (not (string= x ""))) (split-ld-flags-for-ecl x)))) + (c::build-program "binary-ecl/maxima" :lisp-files obj +@@ -81,3 +94,3 @@ + (find-package "MAXIMA"))))) +- (if (and x (not (string= x ""))) (list x))) ++ (if (and x (not (string= x ""))) (split-ld-flags-for-ecl x))) + :epilogue-code '(progn (require :defsystem) diff --git a/sci-mathematics/maxima/files/emacs-0.patch b/sci-mathematics/maxima/files/emacs-0.patch new file mode 100644 index 000000000000..8c84149e256b --- /dev/null +++ b/sci-mathematics/maxima/files/emacs-0.patch @@ -0,0 +1,32 @@ +--- maxima-5.37.3.orig/configure.ac ++++ maxima-5.37.3/configure.ac +@@ -513,6 +513,17 @@ + fi + fi + ++AC_ARG_ENABLE(emacs, ++ [ --enable-emacs Emacs support], ++ [case "${enableval}" in ++ yes) enable_emacs=true ;; ++ no) enable_emacs=false ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for --enable-emacs) ;; ++ esac], ++ [enable_emacs=true]) ++ ++AM_CONDITIONAL(WANT_EMACS, test x$enable_emacs = xtrue) ++ + dnl xgettext + AC_ARG_ENABLE(gettext, + [ --enable-gettext Locale support], +--- maxima-5.37.3.orig/interfaces/Makefile.am ++++ maxima-5.37.3/interfaces/Makefile.am +@@ -1,5 +1,8 @@ ++if WANT_EMACS ++ MAYBE_EMACS = emacs ++endif + if WANT_TK + MAYBE_XMAXIMA = xmaxima + endif +-SUBDIRS = emacs $(MAYBE_XMAXIMA) ++SUBDIRS = $(MAYBE_EMACS) $(MAYBE_XMAXIMA) + EXTRA_DIST = bin/xmaxima.iss diff --git a/sci-mathematics/maxima/files/rmaxima-0.patch b/sci-mathematics/maxima/files/rmaxima-0.patch new file mode 100644 index 000000000000..712cbda19d45 --- /dev/null +++ b/sci-mathematics/maxima/files/rmaxima-0.patch @@ -0,0 +1,25 @@ +diff -r -U2 maxima-5.28.0.orig/src/Makefile.am maxima-5.28.0/src/Makefile.am +--- maxima-5.28.0.orig/src/Makefile.am 2012-06-15 12:21:34.000000000 +0700 ++++ maxima-5.28.0/src/Makefile.am 2012-10-30 22:22:29.000000000 +0700 +@@ -4,5 +4,21 @@ + bin_SCRIPTS = maxima maxima-command.ico maxima.bat set_lang.vbs + else ++if SBCL + bin_SCRIPTS = maxima rmaxima ++else ++if CMUCL ++bin_SCRIPTS = maxima rmaxima ++else ++if ECL ++bin_SCRIPTS = maxima rmaxima ++else ++if OPENMCL ++bin_SCRIPTS = maxima rmaxima ++else ++bin_SCRIPTS = maxima ++endif ++endif ++endif ++endif + endif + diff --git a/sci-mathematics/maxima/files/sbcl-1.patch b/sci-mathematics/maxima/files/sbcl-1.patch new file mode 100644 index 000000000000..8899f0973708 --- /dev/null +++ b/sci-mathematics/maxima/files/sbcl-1.patch @@ -0,0 +1,18 @@ +diff -r -U1 maxima-5.37.1.orig/src/maxima.in maxima-5.37.1/src/maxima.in +--- maxima-5.37.1.orig/src/maxima.in 2015-05-22 04:40:03.000000000 +0600 ++++ maxima-5.37.1/src/maxima.in 2015-09-03 16:22:57.340893630 +0600 +@@ -193,5 +193,5 @@ + if [ -x "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" ]; then +- exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" --noinform $MAXIMA_LISP_OPTIONS --end-runtime-options --eval '(cl-user::run)' --end-toplevel-options "$@" ++ exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" --noinform $MAXIMA_LISP_OPTIONS --end-runtime-options --no-sysinit --no-userinit --eval '(cl-user::run)' --end-toplevel-options "$@" + else +- exec "@SBCL_NAME@" --core "$maxima_image_base.core" --noinform $MAXIMA_LISP_OPTIONS --end-runtime-options --eval '(cl-user::run)' --end-toplevel-options "$@" ++ exec "@SBCL_NAME@" --core "$maxima_image_base.core" --noinform $MAXIMA_LISP_OPTIONS --end-runtime-options --no-sysinit --no-userinit --eval '(cl-user::run)' --end-toplevel-options "$@" + fi +diff -r -U1 maxima-5.37.1.orig/src/server.lisp maxima-5.37.1/src/server.lisp +--- maxima-5.37.1.orig/src/server.lisp 2015-04-10 01:41:59.000000000 +0600 ++++ maxima-5.37.1/src/server.lisp 2015-09-03 16:23:47.100891537 +0600 +@@ -10,3 +10,2 @@ + (eval-when (:compile-toplevel :load-toplevel :execute) +- #+sbcl (require 'asdf) ;not needed here for a recent SBCL + #+sbcl (require 'sb-posix) diff --git a/sci-mathematics/maxima/files/sbcl-2.patch b/sci-mathematics/maxima/files/sbcl-2.patch new file mode 100644 index 000000000000..9fedc741a20d --- /dev/null +++ b/sci-mathematics/maxima/files/sbcl-2.patch @@ -0,0 +1,13 @@ +diff -r -U2 maxima-5.38.0.orig/src/maxima.in maxima-5.38.0/src/maxima.in +--- maxima-5.38.0.orig/src/maxima.in 2016-04-02 23:42:45.000000000 +0200 ++++ maxima-5.38.0/src/maxima.in 2016-04-03 09:07:46.317809312 +0200 +@@ -195,7 +195,7 @@ + # switch --dynamic-space-size in order to do so. + if [ -x "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" ]; then +- exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" --noinform $MAXIMA_LISP_OPTIONS --end-runtime-options --eval '(cl-user::run)' --end-toplevel-options "$@" ++ exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" --noinform $MAXIMA_LISP_OPTIONS --end-runtime-options --no-sysinit --no-userinit --eval '(cl-user::run)' --end-toplevel-options "$@" + else +- exec "@SBCL_NAME@" --core "$maxima_image_base.core" --noinform $MAXIMA_LISP_OPTIONS --end-runtime-options --eval '(cl-user::run)' --end-toplevel-options "$@" ++ exec "@SBCL_NAME@" --core "$maxima_image_base.core" --noinform $MAXIMA_LISP_OPTIONS --end-runtime-options --no-sysinit --no-userinit --eval '(cl-user::run)' --end-toplevel-options "$@" + fi + diff --git a/sci-mathematics/maxima/files/wish-2.patch b/sci-mathematics/maxima/files/wish-2.patch new file mode 100644 index 000000000000..59427331b38d --- /dev/null +++ b/sci-mathematics/maxima/files/wish-2.patch @@ -0,0 +1,26 @@ +--- maxima-5.37.3.orig/configure.ac ++++ maxima-5.37.3/configure.ac +@@ -991,6 +991,11 @@ + [ --with-wish=<prog> Use <prog> for Tk wish shell (default wish)], +- [WISH="${withval}"], +- [WISH="wish"]) ++ [], ++ [with_wish="wish"]) ++case "${with_wish}" in ++ no) WISH="none" ;; ++ yes) WISH="wish" ;; ++ *) WISH="${with_wish}" ;; ++esac + AC_SUBST(WISH) +- ++AM_CONDITIONAL(WANT_TK, test x"${with_wish}" != xno) + +--- maxima-5.37.3.orig/interfaces/Makefile.am ++++ maxima-5.37.3/interfaces/Makefile.am +@@ -1,2 +1,5 @@ +-SUBDIRS = emacs xmaxima ++if WANT_TK ++ MAYBE_XMAXIMA = xmaxima ++endif ++SUBDIRS = emacs $(MAYBE_XMAXIMA) + EXTRA_DIST = bin/xmaxima.iss diff --git a/sci-mathematics/maxima/files/xdg-utils-0.patch b/sci-mathematics/maxima/files/xdg-utils-0.patch new file mode 100644 index 000000000000..876fe6fcd469 --- /dev/null +++ b/sci-mathematics/maxima/files/xdg-utils-0.patch @@ -0,0 +1,35 @@ +--- interfaces/emacs/misc/bookmode.el.orig 2008-02-07 12:42:18.008472937 +0000 ++++ interfaces/emacs/misc/bookmode.el 2008-02-07 12:43:02.531010132 +0000 +@@ -680,7 +680,7 @@ + + (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)) + )) + (list "Cancel") +@@ -705,7 +705,7 @@ + (concat + (cond ((looking-at "%PS") "") + (t "gzip -dc | ")) +- "ghostview -") ++ "xdg-open -") + + ))) + +--- interfaces/xmaxima/Tkmaxima/Constants.tcl.orig 2008-02-07 12:42:47.294141832 +0000 ++++ interfaces/xmaxima/Tkmaxima/Constants.tcl 2008-02-07 12:43:02.539010587 +0000 +@@ -143,9 +143,9 @@ + image/gif netmath + image/png netmath + image/jpeg netmath +- application/postscript "ghostview -safer %s" +- application/pdf "acroread %s" +- application/x-dvi "xdvi %s" ++ application/postscript "xdg-open -safer %s" ++ application/pdf "xdg-open %s" ++ application/x-dvi "xdg-open %s" + } + set maxima_priv(imagecounter) 0 + |