diff options
author | Andrey Grozin <grozin@gentoo.org> | 2011-04-28 19:25:46 +0000 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2011-04-28 19:25:46 +0000 |
commit | 793d92fc1d17f1f75b16bfb3d50b3f14b09597ba (patch) | |
tree | ffd3e334d928a28a3913d4ec08c67fc4b3384af0 /sci-mathematics/maxima | |
parent | Stable on amd64 wrt bug #364569 (diff) | |
download | historical-793d92fc1d17f1f75b16bfb3d50b3f14b09597ba.tar.gz historical-793d92fc1d17f1f75b16bfb3d50b3f14b09597ba.tar.bz2 historical-793d92fc1d17f1f75b16bfb3d50b3f14b09597ba.zip |
Version bump, closing #364005
Package-Manager: portage-2.2.0_alpha30/cvs/Linux i686
Diffstat (limited to 'sci-mathematics/maxima')
-rw-r--r-- | sci-mathematics/maxima/ChangeLog | 10 | ||||
-rw-r--r-- | sci-mathematics/maxima/Manifest | 18 | ||||
-rw-r--r-- | sci-mathematics/maxima/files/maxima-5.19.1-no-init-files.patch | 28 | ||||
-rw-r--r-- | sci-mathematics/maxima/files/maxima-5.24.0-wish.patch | 28 | ||||
-rw-r--r-- | sci-mathematics/maxima/files/maxima-5.24.0.patch | 37 | ||||
-rw-r--r-- | sci-mathematics/maxima/files/maxima-wish.patch | 33 | ||||
-rw-r--r-- | sci-mathematics/maxima/maxima-5.24.0.ebuild | 185 |
7 files changed, 264 insertions, 75 deletions
diff --git a/sci-mathematics/maxima/ChangeLog b/sci-mathematics/maxima/ChangeLog index 498e7c494bba..9739048980ee 100644 --- a/sci-mathematics/maxima/ChangeLog +++ b/sci-mathematics/maxima/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sci-mathematics/maxima # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.86 2011/02/17 17:37:56 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.87 2011/04/28 19:25:46 grozin Exp $ + +*maxima-5.24.0 (29 Apr 2011) + + 29 Apr 2011; Andrey Grozin <grozin@gentoo.org> + -files/maxima-5.19.1-no-init-files.patch, +maxima-5.24.0.ebuild, + +files/maxima-5.24.0-wish.patch, +files/maxima-5.24.0.patch, + -files/maxima-wish.patch: + Version bump, closing #364005 17 Feb 2011; SĂ©bastien Fabbro <bicatali@gentoo.org> -maxima-5.19.2.ebuild, -maxima-5.20.1-r2.ebuild, -files/maxima-5.20.1-ecl-10.4.1.patch, diff --git a/sci-mathematics/maxima/Manifest b/sci-mathematics/maxima/Manifest index e9ae759ee737..304ac817e101 100644 --- a/sci-mathematics/maxima/Manifest +++ b/sci-mathematics/maxima/Manifest @@ -1,26 +1,18 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX 50maxima-gentoo.el 439 RMD160 bdddca04f2232ad764dc6093ba4d0a1b71862879 SHA1 8e4394313e0f2a36b8d57b0eac1feb0d7853cee9 SHA256 134313e42f134e51283764e44c9a174a4010b319ac9c31822c2e7051d186de49 -AUX maxima-5.19.1-no-init-files.patch 2805 RMD160 c5932e0da4dcf07510fc98239137e73fab753546 SHA1 82b7069e9362798a6ff5acc7d7875f9aebf9a2c7 SHA256 bb46f6049c34b32c905761b113bc8a99ec7e157bb6730bb0535d8858caba400b AUX maxima-5.23.2-emacs-version.patch 402 RMD160 b4152ba4f8014106f11365440d14901bc0bba0f4 SHA1 34e8feee04d83619eed298760747966471b205fe SHA256 b6fcdae390a44aafbdf0c64539aacbe38e9b48463c1bc9063a705770ea66d981 AUX maxima-5.23.2-wish.patch 946 RMD160 d19db10a629a9a9f1fa0799b0be403c8aee090fe SHA1 56f2ad96baed63b27d7c37cfccaf27806a06f20e SHA256 dd535626d5d2d16f249e2c41157f5bbfb030236651d9b0404cc1a69c5fec9e0c AUX maxima-5.23.2.patch 3263 RMD160 a3fb37685b9481ed1c17a53f027429656371c586 SHA1 774178e2e3cd265d3f0474b0c38fa1230c583619 SHA256 dd7d02c0eaac5a0763363ed46c207bfb40e55b8470dc3b7c2892753b466a2ea0 +AUX maxima-5.24.0-wish.patch 946 RMD160 d19db10a629a9a9f1fa0799b0be403c8aee090fe SHA1 56f2ad96baed63b27d7c37cfccaf27806a06f20e SHA256 dd535626d5d2d16f249e2c41157f5bbfb030236651d9b0404cc1a69c5fec9e0c +AUX maxima-5.24.0.patch 3263 RMD160 a3fb37685b9481ed1c17a53f027429656371c586 SHA1 774178e2e3cd265d3f0474b0c38fa1230c583619 SHA256 dd7d02c0eaac5a0763363ed46c207bfb40e55b8470dc3b7c2892753b466a2ea0 AUX maxima-imaxima.patch 211 RMD160 24e2b10e59ee1fd5f9307dc8e336fa32beeb6de3 SHA1 f77dceec2dcb4503d1ec86cff7ef4d7d65a0c20f SHA256 b1d07af716f477dedfb011cb8c4fdf154d146db5172664865efc1ec025bfa2ce AUX maxima-no-init-files.patch 2626 RMD160 ffc34cc7e1d6ade44b100252233e83aa7e383744 SHA1 97497929054fcf6924ac56006c9c4ad28c7b443d SHA256 58b82fa1cdcc2eafc0f912541b350ae7aec8c492be5f6b0ce2174ae01f399d88 AUX maxima-rmaxima.patch 481 RMD160 b81cf0f5878a1bcb9c12682db8949c2ac8105022 SHA1 a20356e335950d62ba77da4fd4053f43ffef2ecf SHA256 e918a1e2aa01f44518829013b0b6bafb276f7752503bfe43f21dcefadca1f3d6 -AUX maxima-wish.patch 973 RMD160 59ab1be2a73bd8c5eaf096f9de2999c6f10a3206 SHA1 8643be339bf34b70f351f290b21b70f5e77fe497 SHA256 a1a51511f5605aa644f18bc25162acb88211dffb07fca7fe8b7c52d7942960f3 AUX maxima-xdg-utils.patch 1090 RMD160 964f5d858b7521b5a3794705999a7fcbddd937e2 SHA1 576ff7b80737a60f71d3e5df0c2cf84161c63627 SHA256 99c600c4c7e813305da375a4afa4a5e7ea6aa4ec9f1ecc051b9c913281af53ea DIST maxima-5.18.1.tar.gz 20440947 RMD160 a1c0f0978ed85ba79ed9ab4e8bf50cf268f46ebf SHA1 3ed2f97d509a9a407563c097943413cf4df09ed5 SHA256 eef1f70503755ec8fb311a13731044e6fff17e6fd9534eb6bea68a12964d94bf DIST maxima-5.23.2.tar.gz 21963705 RMD160 1b5cd22d1dc3dfb72663fe22704e9c006ba9ce9b SHA1 f7300058faf730ce6cf63c18e59ec068df01b4a6 SHA256 7bea62518135caf9ee9afccc1fb9fbc525c9b6bfb8d0614b5bbe4a51e9a1ce74 +DIST maxima-5.24.0.tar.gz 25422077 RMD160 46e9ce7dbf8293606ab76b50926fbef922f4cafb SHA1 13586c1221bb5f36067a4cce1e6d5fb31e44e41c SHA256 58eb35806741c3388966a51ccecb7bd82e9a773a06d57276c6bc43e3c4ceec8c EBUILD maxima-5.18.1.ebuild 4200 RMD160 bb72c55e6752c9df03441e315d02fa6c23507347 SHA1 43ebda024310395ebb10e6da8329610cc964a5e2 SHA256 3d326b70d8951163b70c7129c1ec3dbb8af67f1b0d3718662a8d6f723fe361f1 EBUILD maxima-5.23.2.ebuild 4476 RMD160 6c0a53b9a8c5fab36c236a2ae2567d1c848bad7d SHA1 4b16a15a71a0336b449570edf076d89067041579 SHA256 ce7d21d33d9ab3eb4375480763ab9662777b6ef18bded9b353fcd8d45cef5635 -MISC ChangeLog 19730 RMD160 872f31c438c3e91d7bbb7f963749a1a9a4a789d9 SHA1 3b589bb111745645e99c6d6625d3108569b664b9 SHA256 f610887c677a3f9b3a700b1c493791b4e839fa5e214bd5e95b37e829c0bc82fe +EBUILD maxima-5.24.0.ebuild 4427 RMD160 c8cb64d51b83fa411b92780e77af411a095235eb SHA1 ede553ba08a17755b4bc4128d8ba5363168f0b10 SHA256 56619ebee18c7245fef4e39609cef88573ede28344c94be965b05b731f9a4d1f +MISC ChangeLog 19998 RMD160 32f215db522ee61863bbc939b6c00ef283ec1173 SHA1 db9b89ebff718e899f147e71dc7324b6f4b65200 SHA256 373d00dd6215c54820e8b446f0efd789710edc519b6ab1d6c9e0ee4db6bcd24d MISC metadata.xml 1538 RMD160 d8fdc903bc508232d729789ccfb5068b82bebc12 SHA1 1e54225d047c1e0b45df832e37fe5342a8eee70a SHA256 282f77d990621305ef1c88510b0c2a26dfd39806207179e59bab2bdae06eed5c ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.17 (GNU/Linux) - -iEYEARECAAYFAk1dXQQACgkQ1ycZbhPLE2BvcACffs8Nw+P0VdbodIQuRsEzE104 -PFEAnj1m1e8Gx2PL8QksjEs5MWL/cM3g -=TP3N ------END PGP SIGNATURE----- diff --git a/sci-mathematics/maxima/files/maxima-5.19.1-no-init-files.patch b/sci-mathematics/maxima/files/maxima-5.19.1-no-init-files.patch deleted file mode 100644 index 7141d81e91c2..000000000000 --- a/sci-mathematics/maxima/files/maxima-5.19.1-no-init-files.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff -r -U2 maxima-5.19.1.orig/src/maxima.in maxima-5.19.1/src/maxima.in ---- maxima-5.19.1.orig/src/maxima.in 2009-07-13 17:25:25.000000000 +0200 -+++ maxima-5.19.1/src/maxima.in 2009-08-20 14:43:49.000000000 +0200 -@@ -130,13 +130,13 @@ - if [ "$MAXIMA_LISP" = "clisp" ]; then - if [ "$layout_autotools" = "true" ]; then -- exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/@CLISP_RUNTIME@" $MAXIMA_LISP_OPTIONS -q -M "$maxima_image_base.mem" "" -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" -+ exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/@CLISP_RUNTIME@" $MAXIMA_LISP_OPTIONS -q -norc -M "$maxima_image_base.mem" "" -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" - else -- exec "@CLISP_NAME@" $MAXIMA_LISP_OPTIONS -q -M "$maxima_image_base.mem" "" -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" -+ exec "@CLISP_NAME@" $MAXIMA_LISP_OPTIONS -q -norc -M "$maxima_image_base.mem" "" -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" - fi - elif [ "$MAXIMA_LISP" = "cmucl" ]; then - if [ "$layout_autotools" = "true" ]; then -- exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/@CMUCL_RUNTIME@" $MAXIMA_LISP_OPTIONS -quiet -core "$maxima_image_base.core" -eval '(cl-user::run)' -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" -+ exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/@CMUCL_RUNTIME@" $MAXIMA_LISP_OPTIONS -quiet -nositeinit -noinit -core "$maxima_image_base.core" -eval '(cl-user::run)' -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" - else -- exec "@CMUCL_NAME@" $MAXIMA_LISP_OPTIONS -quiet -core "$maxima_image_base.core" -eval '(cl-user::run)' -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" -+ exec "@CMUCL_NAME@" $MAXIMA_LISP_OPTIONS -quiet -nositeinit -noinit -core "$maxima_image_base.core" -eval '(cl-user::run)' -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" - fi - elif [ "$MAXIMA_LISP" = "scl" ]; then -@@ -159,5 +159,5 @@ - exec "$maxima_image_base" $MAXIMA_LISP_OPTIONS -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" - elif [ "$MAXIMA_LISP" = "sbcl" ]; then -- exec "@SBCL_NAME@" --core "$maxima_image_base.core" --noinform $MAXIMA_LISP_OPTIONS --end-runtime-options --eval '(cl-user::run)' --end-toplevel-options "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" -+ 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 "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" - else - echo "$0: lisp=\"$MAXIMA_LISP\" not known. Use --list-avail to see possible options." >&2 diff --git a/sci-mathematics/maxima/files/maxima-5.24.0-wish.patch b/sci-mathematics/maxima/files/maxima-5.24.0-wish.patch new file mode 100644 index 000000000000..6fcb0d9ec8e9 --- /dev/null +++ b/sci-mathematics/maxima/files/maxima-5.24.0-wish.patch @@ -0,0 +1,28 @@ +diff -r -U1 maxima-5.23.1.orig//configure.in maxima-5.23.1//configure.in +--- maxima-5.23.1.orig//configure.in 2011-01-15 21:54:46.000000000 +0600 ++++ maxima-5.23.1//configure.in 2011-01-16 21:00:16.000000000 +0600 +@@ -777,6 +777,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) + +diff -r -U1 maxima-5.23.1.orig//interfaces/Makefile.am maxima-5.23.1//interfaces/Makefile.am +--- maxima-5.23.1.orig//interfaces/Makefile.am 2004-04-28 23:34:59.000000000 +0700 ++++ maxima-5.23.1//interfaces/Makefile.am 2011-01-16 20:41:38.000000000 +0600 +@@ -1,2 +1,6 @@ ++if WANT_TK + SUBDIRS = emacs xmaxima ++else ++SUBDIRS = emacs ++endif + EXTRA_DIST = bin/xmaxima.iss diff --git a/sci-mathematics/maxima/files/maxima-5.24.0.patch b/sci-mathematics/maxima/files/maxima-5.24.0.patch new file mode 100644 index 000000000000..6309653d6e87 --- /dev/null +++ b/sci-mathematics/maxima/files/maxima-5.24.0.patch @@ -0,0 +1,37 @@ +diff -r -U1 maxima-5.23.1.orig//configure.in maxima-5.23.1//configure.in +--- maxima-5.23.1.orig//configure.in 2011-01-15 21:54:46.000000000 +0600 ++++ maxima-5.23.1//configure.in 2011-01-16 19:50:55.000000000 +0600 +@@ -294,3 +294,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.23.1.orig//src/maxima.in maxima-5.23.1//src/maxima.in +--- maxima-5.23.1.orig//src/maxima.in 2010-12-05 08:06:03.000000000 +0600 ++++ maxima-5.23.1//src/maxima.in 2011-01-16 20:07:27.000000000 +0600 +@@ -137,5 +137,5 @@ + if [ "$layout_autotools" = "true" ]; then +- exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/@CLISP_RUNTIME@" $MAXIMA_LISP_OPTIONS -q -M "$maxima_image_base.mem" "" -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" ++ exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/@CLISP_RUNTIME@" $MAXIMA_LISP_OPTIONS -q -norc -M "$maxima_image_base.mem" "" -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" + else +- exec "@CLISP_NAME@" $MAXIMA_LISP_OPTIONS -q -M "$maxima_image_base.mem" "" -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" ++ exec "@CLISP_NAME@" $MAXIMA_LISP_OPTIONS -q -norc -M "$maxima_image_base.mem" "" -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" + fi +@@ -147,5 +147,5 @@ + if [ -x "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" ]; then +- exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" $MAXIMA_LISP_OPTIONS -quiet -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" ++ exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/maxima" $MAXIMA_LISP_OPTIONS -quiet -nositeinit -noinit -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" + else +- exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/@CMUCL_RUNTIME@" $MAXIMA_LISP_OPTIONS -quiet -core "$maxima_image_base.core" -eval '(cl-user::run)' -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" ++ exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/@CMUCL_RUNTIME@" $MAXIMA_LISP_OPTIONS -quiet -nositeinit -noinit -core "$maxima_image_base.core" -eval '(cl-user::run)' -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" + fi +@@ -155,3 +155,3 @@ + else +- exec "@CMUCL_NAME@" $MAXIMA_LISP_OPTIONS -quiet -core "$maxima_image_base.core" -eval '(cl-user::run)' -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" ++ exec "@CMUCL_NAME@" $MAXIMA_LISP_OPTIONS -quiet -nositeinit -noinit -core "$maxima_image_base.core" -eval '(cl-user::run)' -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" + fi +@@ -177,3 +177,3 @@ + elif [ "$MAXIMA_LISP" = "sbcl" ]; then +- exec "@SBCL_NAME@" --core "$maxima_image_base.core" --noinform $MAXIMA_LISP_OPTIONS --end-runtime-options --eval '(cl-user::run)' --end-toplevel-options "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" ++ 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 "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9" + else diff --git a/sci-mathematics/maxima/files/maxima-wish.patch b/sci-mathematics/maxima/files/maxima-wish.patch deleted file mode 100644 index a5d9a2989e42..000000000000 --- a/sci-mathematics/maxima/files/maxima-wish.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- configure.in.orig 2010-06-28 15:55:47.187614440 +1200 -+++ configure.in 2010-06-28 16:08:30.704615168 +1200 -@@ -724,11 +724,17 @@ - [posix_shell_list="/bin/sh /bin/bash /usr/bin/bash /usr/local/bin/bash"]) - - AC_ARG_WITH(wish, -- [ --with-wish=<prog> Use <prog> for Tk wish shell (default wish)], -- [WISH="${withval}"], -- [WISH="wish"]) -+ [ --with-wish=<prog> Use <prog> for Tk wish shell (default 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) - - AC_MSG_CHECKING(POSIX shell to see that it contains getopts) - cat <<EOF > conftest-posix-shell.sh ---- interfaces/Makefile.am.orig 2010-06-28 16:09:04.235614065 +1200 -+++ interfaces/Makefile.am 2010-06-28 16:11:29.590613301 +1200 -@@ -1,2 +1,6 @@ -+if WANT_TK - SUBDIRS = emacs xmaxima -+else -+SUBDIRS = emacs -+endif - EXTRA_DIST = bin/xmaxima.iss diff --git a/sci-mathematics/maxima/maxima-5.24.0.ebuild b/sci-mathematics/maxima/maxima-5.24.0.ebuild new file mode 100644 index 000000000000..78ced3cfad6f --- /dev/null +++ b/sci-mathematics/maxima/maxima-5.24.0.ebuild @@ -0,0 +1,185 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.24.0.ebuild,v 1.1 2011/04/28 19:25:46 grozin Exp $ + +EAPI=3 + +inherit autotools elisp-common + +DESCRIPTION="Free computer algebra environment based on Macsyma" +HOMEPAGE="http://maxima.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" + +# Supported lisps (the first one is the default) +LISPS=( sbcl cmucl gcl ecls clozurecl clisp ) +# . - just dev-lisp/<lisp>, <version> - >= dev-lisp/<lisp>-<version> +MIN_VER=( . . 2.6.8_pre[ansi] 10 . . ) +# <lisp> supports readline: . - no, y - yes +SUPP_RL=( . . y . . y ) +# . - just --enable-<lisp>, <flag> - --enable-<flag> +CONF_FLAG=( . . . ecl ccl . ) + +IUSE="latex emacs tk nls unicode xemacs X ${LISPS[*]}" + +# Languages +LANGS="es pt pt_BR" +for lang in ${LANGS}; do + IUSE="${IUSE} linguas_${lang}" +done + +RDEPEND="X? ( x11-misc/xdg-utils + sci-visualization/gnuplot[gd] + tk? ( dev-lang/tk ) ) + latex? ( virtual/latex-base ) + emacs? ( virtual/emacs + latex? ( app-emacs/auctex ) ) + xemacs? ( app-editors/xemacs + latex? ( app-emacs/auctex ) )" + +PDEPEND="emacs? ( app-emacs/imaxima )" + +# generating lisp dependencies +depends() { + local LISP DEP + LISP=${LISPS[$1]} + DEP=${MIN_VER[$1]} + if [ "${DEP}" = "." ]; then + DEP="dev-lisp/${LISP}" + else + DEP=">=dev-lisp/${LISP}-${DEP}" + fi + if [ "${SUPP_RL[$1]}" = "." ]; then + DEP="${DEP} app-misc/rlwrap" + fi + echo ${DEP} +} + +n=${#LISPS[*]} +for ((n--; n >= 0; n--)); do + LISP=${LISPS[${n}]} + RDEPEND="${RDEPEND} ${LISP}? ( $(depends ${n}) )" + if (( ${n} > 0 )); then + DEF_DEP="${DEF_DEP} !${LISP}? ( " + fi +done + +DEF_DEP="${DEF_DEP} `depends 0`" + +n=${#LISPS[*]} +for ((n--; n > 0; n--)); do + DEF_DEP="${DEF_DEP} )" +done + +unset LISP + +RDEPEND="${RDEPEND} + ${DEF_DEP}" + +DEPEND="${RDEPEND} + sys-apps/texinfo" + +TEXMF="${EPREFIX}"/usr/share/texmf-site + +pkg_setup() { + local n=${#LISPS[*]} + + for ((n--; n >= 0; n--)); do + use ${LISPS[${n}]} && NLISPS="${NLISPS} ${n}" + done + + if [ -z "${NLISPS}" ]; then + ewarn "No lisp specified in USE flags, choosing ${LISPS[0]} as default" + NLISPS=0 + fi +} + +src_prepare() { + # use xdg-open to view ps, pdf + epatch "${FILESDIR}"/${PN}-xdg-utils.patch + + # Don't use lisp init files + # ClozureCL (former OpenMCL) executable name is ccl + epatch "${FILESDIR}"/${P}.patch + + # make xmaxima conditional on tk (wish) + epatch "${FILESDIR}"/${P}-wish.patch + + # don't install imaxima, since we have a separate package for it + epatch "${FILESDIR}"/${PN}-imaxima.patch + + # remove rmaxima if not needed + epatch "${FILESDIR}"/${PN}-rmaxima.patch + + # bug #343331 + rm share/Makefile.in || die + eautoreconf +} + +src_configure() { + local CONFS CONF n lang + for n in ${NLISPS}; do + CONF=${CONF_FLAG[${n}]} + if [ ${CONF} = . ]; then + CONF=${LISPS[${n}]} + fi + CONFS="${CONFS} --enable-${CONF}" + done + + # enable existing translated doc + if use nls; then + for lang in ${LANGS}; do + if use "linguas_${lang}"; then + CONFS="${CONFS} --enable-lang-${lang}" + use unicode && CONFS="${CONFS} --enable-lang-${lang}-utf8" + fi + done + fi + + econf ${CONFS} $(use_with tk wish) --with-lispdir="${SITELISP}"/${PN} +} + +src_install() { + einstall emacsdir="${ED}${SITELISP}/${PN}" || die "einstall failed" + + use tk && make_desktop_entry xmaxima xmaxima \ + /usr/share/${PN}/${PV}/xmaxima/maxima-new.png \ + "Science;Math;Education" + + if use latex; then + insinto ${TEXMF}/tex/latex/emaxima + doins interfaces/emacs/emaxima/emaxima.sty + fi + + # do not use dodoc because interfaces can't read compressed files + # read COPYING before attempt to remove it from dodoc + insinto /usr/share/${PN}/${PV}/doc + doins AUTHORS COPYING README README.lisps || die + dodir /usr/share/doc + dosym ../${PN}/${PV}/doc /usr/share/doc/${PF} || die + + if use emacs; then + elisp-site-file-install "${FILESDIR}"/50maxima-gentoo.el || die + fi +} + +pkg_preinst() { + # some lisps do not read compress info files (bug #176411) + local infofile + for infofile in "${ED}"/usr/share/info/*.bz2 ; do + bunzip2 "${infofile}" + done +} + +pkg_postinst() { + use emacs && elisp-site-regen + use latex && mktexlsr +} + +pkg_postrm() { + use emacs && elisp-site-regen + use latex && mktexlsr +} |