diff options
author | Marcus D. Hanwell <cryos@gentoo.org> | 2007-01-13 10:41:58 +0000 |
---|---|---|
committer | Marcus D. Hanwell <cryos@gentoo.org> | 2007-01-13 10:41:58 +0000 |
commit | 80016e74837fd3258077367b4f29c9fea7a343c6 (patch) | |
tree | d8c99430b13db1f658ffc0801bfb5d1a12c5cfb0 /sci-mathematics | |
parent | Stable on ppc wrt bug 152878 (diff) | |
download | gentoo-2-80016e74837fd3258077367b4f29c9fea7a343c6.tar.gz gentoo-2-80016e74837fd3258077367b4f29c9fea7a343c6.tar.bz2 gentoo-2-80016e74837fd3258077367b4f29c9fea7a343c6.zip |
Version bump, move from the gentooscience.org overlay. Many thanks to Andrey Grozin <A.G.Grozin@inp.nsk.su> and Sebastien Fabbro <seb@ist.utl.pt> for their work on this in the overlay.
(Portage version: 2.1.2_rc4-r7)
Diffstat (limited to 'sci-mathematics')
9 files changed, 245 insertions, 4 deletions
diff --git a/sci-mathematics/maxima/ChangeLog b/sci-mathematics/maxima/ChangeLog index 1cc69ae41313..25838f7af8bf 100644 --- a/sci-mathematics/maxima/ChangeLog +++ b/sci-mathematics/maxima/ChangeLog @@ -1,6 +1,18 @@ # ChangeLog for sci-mathematics/maxima -# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.22 2006/10/31 11:24:06 je_fro Exp $ +# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.23 2007/01/13 10:41:58 cryos Exp $ + +*maxima-5.11.0 (13 Jan 2007) + + 13 Jan 2007; Marcus D. Hanwell <cryos@gentoo.org> + +files/maxima-5.11.0-default-psviewer.patch, files/50maxima-gentoo.el, + +files/maxima-5.11.0-default-browser.patch, + +files/maxima-5.11.0-diff_form.patch, + +files/maxima-5.11.0-sbcl-disable-debugger.patch, metadata.xml, + +maxima-5.11.0.ebuild: + Version bump, move from the gentooscience.org overlay. Many thanks to Andrey + Grozin <A.G.Grozin@inp.nsk.su> and Sebastien Fabbro <seb@ist.utl.pt> for + their work on this in the overlay. *maxima-5.10.0 (31 Oct 2006) diff --git a/sci-mathematics/maxima/files/50maxima-gentoo.el b/sci-mathematics/maxima/files/50maxima-gentoo.el index 1402cf456325..9b7151b17850 100644 --- a/sci-mathematics/maxima/files/50maxima-gentoo.el +++ b/sci-mathematics/maxima/files/50maxima-gentoo.el @@ -1,5 +1,5 @@ ;; maxima mode -(setq load-path (cons "/usr/shar/maxima/PV/emacs" load-path)) +(setq load-path (cons "/usr/share/maxima/PV/emacs" load-path)) (autoload 'maxima-mode "maxima" "Maxima mode" t) (autoload 'maxima "maxima" "Maxima interactive" t) (setq auto-mode-alist (cons '("\\.max" . maxima-mode) auto-mode-alist)) diff --git a/sci-mathematics/maxima/files/digest-maxima-5.11.0 b/sci-mathematics/maxima/files/digest-maxima-5.11.0 new file mode 100644 index 000000000000..706606789654 --- /dev/null +++ b/sci-mathematics/maxima/files/digest-maxima-5.11.0 @@ -0,0 +1,3 @@ +MD5 d9ae353e8eba9b9d5686e119e59ab88c maxima-5.11.0.tar.gz 13924132 +RMD160 8f7fb1b8bc7438ffdc393a0eb0f86b5efa79ef3e maxima-5.11.0.tar.gz 13924132 +SHA256 7a7259123bd81a7de3609c7e59b561d49e2710a8f7117c42f373afdd6a6786ac maxima-5.11.0.tar.gz 13924132 diff --git a/sci-mathematics/maxima/files/maxima-5.11.0-default-browser.patch b/sci-mathematics/maxima/files/maxima-5.11.0-default-browser.patch new file mode 100644 index 000000000000..d53a3f436e8a --- /dev/null +++ b/sci-mathematics/maxima/files/maxima-5.11.0-default-browser.patch @@ -0,0 +1,13 @@ +diff -U2 --recursive maxima-5.11.0-orig/interfaces/xmaxima/Tkmaxima/Menu.tcl maxima-5.11.0/interfaces/xmaxima/Tkmaxima/Menu.tcl +--- maxima-5.11.0-orig/interfaces/xmaxima/Tkmaxima/Menu.tcl 2006-12-09 20:52:11.000000000 +0100 ++++ maxima-5.11.0/interfaces/xmaxima/Tkmaxima/Menu.tcl 2006-12-26 22:59:33.000000000 +0100 +@@ -246,7 +246,7 @@ + } else { + +- set selectedbrowser mozilla ++ set selectedbrowser firefox + +- foreach b { firefox mozilla konqueror epiphany galeon amaya netscape } { ++ foreach b { firefox konqueror epiphany galeon mozilla opera } { + if { ! [catch {exec which $b} ] } { + set selectedbrowser $b diff --git a/sci-mathematics/maxima/files/maxima-5.11.0-default-psviewer.patch b/sci-mathematics/maxima/files/maxima-5.11.0-default-psviewer.patch new file mode 100644 index 000000000000..ce45515c3cef --- /dev/null +++ b/sci-mathematics/maxima/files/maxima-5.11.0-default-psviewer.patch @@ -0,0 +1,37 @@ +diff -U2 --recursive maxima-5.11.0-orig/interfaces/emacs/misc/bookmode.el maxima-5.11.0/interfaces/emacs/misc/bookmode.el +--- maxima-5.11.0-orig/interfaces/emacs/misc/bookmode.el 2000-05-08 08:09:44.000000000 +0200 ++++ maxima-5.11.0/interfaces/emacs/misc/bookmode.el 2006-12-26 23:29:42.000000000 +0100 +@@ -681,5 +681,5 @@ + (and tem + (list (concat "View "(nth 1 tem)) +- 'call-process "ghostview" nil nil nil ++ 'call-process "gv" nil nil nil + (expand-file-name(nth 1 tem)) + )) +@@ -706,5 +706,5 @@ + (cond ((looking-at "%PS") "") + (t "gzip -dc | ")) +- "ghostview -") ++ "gv -") + + ))) +diff -U2 --recursive maxima-5.11.0-orig/interfaces/xmaxima/Tkmaxima/Constants.tcl maxima-5.11.0/interfaces/xmaxima/Tkmaxima/Constants.tcl +--- maxima-5.11.0-orig/interfaces/xmaxima/Tkmaxima/Constants.tcl 2006-10-02 00:42:48.000000000 +0200 ++++ maxima-5.11.0/interfaces/xmaxima/Tkmaxima/Constants.tcl 2006-12-26 23:31:47.000000000 +0100 +@@ -144,5 +144,5 @@ + image/png netmath + image/jpeg netmath +- application/postscript "ghostview -safer %s" ++ application/postscript "gv -safer %s" + application/pdf "acroread %s" + application/x-dvi "xdvi %s" +diff -U2 --recursive maxima-5.11.0-orig/src/plot.lisp maxima-5.11.0/src/plot.lisp +--- maxima-5.11.0-orig/src/plot.lisp 2006-10-10 23:13:17.000000000 +0200 ++++ maxima-5.11.0/src/plot.lisp 2006-12-26 23:33:25.000000000 +0100 +@@ -76,5 +76,5 @@ + )) + +-(defvar $viewps_command "(ghostview \"~a\")") ++(defvar $viewps_command "(gv \"~a\")") + + ;; $plot_realpart option is false by default but *plot-realpart* is true because coerce-float-fun diff --git a/sci-mathematics/maxima/files/maxima-5.11.0-diff_form.patch b/sci-mathematics/maxima/files/maxima-5.11.0-diff_form.patch new file mode 100644 index 000000000000..8bf1f5c8e239 --- /dev/null +++ b/sci-mathematics/maxima/files/maxima-5.11.0-diff_form.patch @@ -0,0 +1,9 @@ +diff -U2 --recursive maxima-5.11.0-orig/src/init-cl.lisp maxima-5.11.0/src/init-cl.lisp +--- maxima-5.11.0-orig/src/init-cl.lisp 2006-12-09 22:50:19.000000000 +0100 ++++ maxima-5.11.0/src/init-cl.lisp 2006-12-27 00:11:06.000000000 +0100 +@@ -326,4 +326,5 @@ + "contrib/unit" + "contrib/Zeilberger" ++ "diff_form" + "diffequations" + "lbfgs" diff --git a/sci-mathematics/maxima/files/maxima-5.11.0-sbcl-disable-debugger.patch b/sci-mathematics/maxima/files/maxima-5.11.0-sbcl-disable-debugger.patch new file mode 100644 index 000000000000..478af44cfc78 --- /dev/null +++ b/sci-mathematics/maxima/files/maxima-5.11.0-sbcl-disable-debugger.patch @@ -0,0 +1,20 @@ +diff -U2 --recursive maxima-5.11.0-orig/src/Makefile.am maxima-5.11.0/src/Makefile.am +--- maxima-5.11.0-orig/src/Makefile.am 2006-11-25 13:00:04.000000000 +0100 ++++ maxima-5.11.0/src/Makefile.am 2006-12-26 23:53:46.000000000 +0100 +@@ -152,5 +152,5 @@ + + if SBCL +-EXECUTESBCL = $(SBCL_NAME) --noinform --noprint --eval ++EXECUTESBCL = $(SBCL_NAME) --noinform --noprint --disable-debugger --eval + all-local: binary-sbcl/maxima.core + install-exec-local: install-sbcl +diff -U2 --recursive maxima-5.11.0-orig/src/Makefile.in maxima-5.11.0/src/Makefile.in +--- maxima-5.11.0-orig/src/Makefile.in 2006-12-21 17:49:36.000000000 +0100 ++++ maxima-5.11.0/src/Makefile.in 2006-12-26 23:54:21.000000000 +0100 +@@ -202,5 +202,5 @@ + @SCL_TRUE@EXECUTESCL = $(SCL_NAME) -noinit -batch + @ACL_TRUE@EXECUTEACL = $(ACL_NAME) -batch +-@SBCL_TRUE@EXECUTESBCL = $(SBCL_NAME) --noinform --noprint --eval ++@SBCL_TRUE@EXECUTESBCL = $(SBCL_NAME) --noinform --noprint --disable-debugger --eval + @GCL_TRUE@EXECUTEGCL = $(GCL_NAME) -batch -eval + @OPENMCL_TRUE@EXECUTEOPENMCL = $(OPENMCL_NAME) -e diff --git a/sci-mathematics/maxima/maxima-5.11.0.ebuild b/sci-mathematics/maxima/maxima-5.11.0.ebuild new file mode 100644 index 000000000000..280aeab7cc67 --- /dev/null +++ b/sci-mathematics/maxima/maxima-5.11.0.ebuild @@ -0,0 +1,137 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.11.0.ebuild,v 1.1 2007/01/13 10:41:58 cryos Exp $ + +inherit eutils elisp-common autotools + +DESCRIPTION="Free computer algebra environment based on Macsyma" +HOMEPAGE="http://maxima.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2 AECA" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="cmucl clisp sbcl gcl tetex emacs auctex tk nls unicode" + +# rlwrap is recommended for cmucl and sbcl +RDEPEND=">=sci-visualization/gnuplot-4.0 + app-text/gv + tetex? ( virtual/tetex ) + emacs? ( virtual/emacs ) + auctex? ( app-emacs/auctex ) + clisp? ( >=dev-lisp/clisp-2.33.2-r1 ) + gcl? ( >=dev-lisp/gcl-2.6.7 ) + sbcl? ( >=dev-lisp/sbcl-0.9.4 app-misc/rlwrap ) + cmucl? ( >=dev-lisp/cmucl-19a app-misc/rlwrap ) + !clisp? ( !sbcl? ( !cmucl? ( >=dev-lisp/gcl-2.6.7 ) ) ) + tk? ( >=dev-lang/tk-8.3.3 )" + +DEPEND="${RDEPEND} >=sys-apps/texinfo-4.3" + +for lang in es pt; do + IUSE="${IUSE} linguas_${lang}" +done + +# chosen apps are hardcoded in maxima source: +# - ghostview for postscript (changed to gv) +# - acroread for pdf +# - xdvi for dvi. this could change, with pain. + +src_unpack() { + unpack ${A} + # replace obsolete netscape with firefox, add opera as choices + epatch "${FILESDIR}"/${P}-default-browser.patch + # replace ugly ghostview with gv + epatch "${FILESDIR}"/${P}-default-psviewer.patch + # no debug during compile + epatch "${FILESDIR}"/${P}-sbcl-disable-debugger.patch + # diff_form autoloading + epatch "${FILESDIR}/${P}-diff_form.patch" +} + +src_compile() { + # automake version mismatch otherwise (sbcl only) + use sbcl && eautoreconf + + # remove rmaxima if neither cmucl nor sbcl + if ! use sbcl && ! use cmucl ; then + sed -i -e '/^@WIN32_FALSE@bin_SCRIPTS/s/rmaxima//' src/Makefile.in + fi + + # remove xmaxima if no tk + local myconf="" + if use tk; then + myconf="${myconf} --with-wish=wish" + else + myconf="${myconf} --with-wish=none" + sed -i -e '/^SUBDIRS/s/xmaxima//' interfaces/Makefile.in + fi + + # enable gcl if no other lisp selected + if use gcl || (! use cmucl && ! use clisp && ! use sbcl ); then + if ! built_with_use dev-lisp/gcl ansi; then + eerror "GCL must be installed with ANSI." + eerror "Try USE=\"ansi\" emerge gcl" + die "This package needs gcl with USE=ansi" + fi + myconf="${myconf} --enable-gcl" + fi + + # enable existing translated doc + if use nls; then + for lang in es pt; do + if use linguas_${lang}; then + myconf="${myconf} --enable-lang-${lang}" + use unicode && myconf="${myconf} --enable-lang-${lang}-utf8" + fi + done + fi + + econf \ + $(use_enable cmucl) \ + $(use_enable clisp) \ + $(use_enable sbcl) \ + ${myconf} \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + use tk && make_desktop_entry xmaxima xmaxima \ + /usr/share/${PN}/${PV}/xmaxima/maxima-new.png + + if use emacs; then + sed -e "s/PV/${PV}/" "${FILESDIR}"/50maxima-gentoo.el > 50maxima-gentoo.el + elisp-site-file-install 50maxima-gentoo.el + fi + + if use tetex; then + insinto /usr/share/texmf/tex/latex/emaxima + doins interfaces/emacs/emaxima/emaxima.sty + fi + + insinto /usr/share/${PN}/${PV}/doc + doins AUTHORS ChangeLog COPYING NEWS README* + dodir /usr/share/doc + dosym /usr/share/${PN}/${PV}/doc /usr/share/doc/${PF} +} + +pkg_preinst() { + # some lisp do not gunzip info files on the fly + if use cmucl || use clisp || use sbcl; then + for infofile in $(ls ${D}/usr/share/info/*.gz); do + gunzip ${infofile} + done + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen + use tetex && mktexlsr +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/sci-mathematics/maxima/metadata.xml b/sci-mathematics/maxima/metadata.xml index 5a2f1c7b832e..ba2304321c92 100644 --- a/sci-mathematics/maxima/metadata.xml +++ b/sci-mathematics/maxima/metadata.xml @@ -1,5 +1,15 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<herd>sci-mathematics</herd> + <herd>sci-mathematics</herd> + <longdescription lang="en"> + Computer Algebra system, descendent of Macsyma. + Maxima is a system for the manipulation of symbolic and + numerical expressions, including differentiation, integration, + Taylor series, Laplace transforms, ordinary differential + equations, systems of linear equations, and vectors, matrices, + and tensors. Maxima produces high precision results by using + exact fractions and arbitrarily long floating point representations, + and can plot functions and data in two and three dimensions. + </longdescription> </pkgmetadata> |