aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2006-01-25 16:18:47 +0000
committerbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2006-01-25 16:18:47 +0000
commit368fd90675a154f53de6dd248095e29883fbca72 (patch)
tree23fa4eb905e87bd72eae64685856caa75fad4019 /sci-mathematics/maxima
parentadded wxmaxima package (diff)
downloadsci-368fd90675a154f53de6dd248095e29883fbca72.tar.gz
sci-368fd90675a154f53de6dd248095e29883fbca72.tar.bz2
sci-368fd90675a154f53de6dd248095e29883fbca72.zip
added maxima-5.9.2
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@74 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-mathematics/maxima')
-rw-r--r--sci-mathematics/maxima/ChangeLog125
-rw-r--r--sci-mathematics/maxima/Manifest5
-rw-r--r--sci-mathematics/maxima/files/50maxima-gentoo.el7
-rw-r--r--sci-mathematics/maxima/files/digest-maxima-5.9.21
-rw-r--r--sci-mathematics/maxima/files/maxima-5.9.2-unicode-fix.patch63
-rw-r--r--sci-mathematics/maxima/maxima-5.9.2.ebuild101
6 files changed, 302 insertions, 0 deletions
diff --git a/sci-mathematics/maxima/ChangeLog b/sci-mathematics/maxima/ChangeLog
new file mode 100644
index 000000000..582fdb9bb
--- /dev/null
+++ b/sci-mathematics/maxima/ChangeLog
@@ -0,0 +1,125 @@
+# ChangeLog for sci-mathematics/maxima
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.12 2005/10/04 19:52:21 gustavoz Exp $
+
+ 04 Oct 2005; Gustavo Zacarias <gustavoz@gentoo.org>
+ maxima-5.9.1-r5.ebuild:
+ Keyworded ~sparc
+
+*maxima-5.9.1-r5 (01 Oct 2005)
+
+ 01 Oct 2005; Olivier Fisette <ribosome@gentoo.org>
+ +maxima-5.9.1-r5.ebuild:
+ Install info files in "/usr/share/info", not "/usr/info" (fixes bug #105705).
+
+*maxima-5.9.1-r4 (19 Sep 2005)
+
+ 19 Sep 2005; Olivier Fisette <ribosome@gentoo.org>
+ -files/5.9.1-sbcl-gentoo.patch, -maxima-5.9.1-r2.ebuild,
+ -maxima-5.9.1-r3.ebuild, +maxima-5.9.1-r4.ebuild:
+ New ebuild with improved support for LISP compilers, thanks to Lucas Chiesa
+ <lucas.chiesa@gmail.com> (fixes bug #98763). Removed obsolete versions.
+
+ 29 Aug 2005; Olivier Fisette <ribosome@gentoo.org> maxima-5.9.1-r3.ebuild:
+ Readded ~amd64 support, thanks to a patch by Matthew Kennedy
+ <mkennedy@gentoo.org>. Partially fixes bug #98763.
+
+*maxima-5.9.1-r3 (20 Aug 2005)
+
+ 20 Aug 2005; Olivier Fisette <ribosome@gentoo.org>
+ +files/maxima-5.9.1-unicode-fix.patch, +maxima-5.9.1-r3.ebuild:
+ New revision incorporating a Unicode patch, thanks to Thomas Weidner
+ <3.14159@gmx.net> (fixes bug #92644).
+
+ 20 Aug 2005; Olivier Fisette <ribosome@gentoo.org> maxima-5.9.1-r2.ebuild:
+ Depend on >=gcl-2.6.7 (fixes bug #81869). Removed ~amd64 previously added by
+ Matthew Kennedy since AMD64 support is obviously broken (see bug #98763).
+
+ 07 Aug 2005; Michael Hanselmann <hansmi@gentoo.org> maxima-5.9.1.ebuild:
+ Stable on ppc.
+
+ 01 Jul 2005; Matthew Kennedy <mkennedy@gentoo.org>
+ +files/5.9.1-sbcl-gentoo.patch, maxima-5.9.1-r2.ebuild:
+ Patch for SBCL support; Keywording ~mad64.
+
+ 17 Apr 2005; Olivier Fisette <ribosome@gentoo.org> -maxima-5.9.0.ebuild,
+ -maxima-5.9.0-r2.ebuild, -maxima-5.9.0-r3.ebuild, -maxima-5.9.1-r1.ebuild:
+ Removed obsolete versions.
+
+*maxima-5.9.1-r2 (17 Apr 2005)
+
+ 17 Apr 2005; Olivier Fisette <ribosome@gentoo.org>
+ +maxima-5.9.1-r2.ebuild:
+ Fixed documentation location problem (#82000).
+
+*maxima-5.9.1-r1 (28 Dec 2004)
+
+ 28 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml,
+ +files/50maxima-gentoo.el, +files/maxima-emacs.patch,
+ +maxima-5.9.0-r2.ebuild, +maxima-5.9.0-r3.ebuild, +maxima-5.9.0.ebuild,
+ +maxima-5.9.1-r1.ebuild, +maxima-5.9.1.ebuild:
+ Moved from app-sci/maxima to sci-mathematics/maxima.
+
+ 14 Oct 2004; Stefan Jones <cretin@gentoo.org> maxima-5.9.1-r1.ebuild:
+ Add missing pkg_postrm function on uninstall
+
+*maxima-5.9.1-r1 (07 Oct 2004)
+
+ 07 Oct 2004; Stefan Jones <cretin@gentoo.org> maxima-5.9.1-r1.ebuild:
+ Add user submitted emacs install, bug #66135
+
+ 07 Oct 2004; Patrick Kursawe <phosphan@gentoo.org> maxima-5.9.1.ebuild:
+ Escaping what should be escaped in postinst output - see bug #65395
+
+*maxima-5.9.1 (05 Oct 2004)
+
+ 05 Oct 2004; Stefan Jones <cretin@gentoo.org> maxima-5.9.1.ebuild:
+ New version bump, fixes bug #53470
+
+ 25 Aug 2004; Sven Wegener <swegener@gentoo.org> maxima-5.9.0-r2.ebuild,
+ maxima-5.9.0-r3.ebuild, maxima-5.9.0.ebuild:
+ Changed SRC_URI to use mirror:// syntax.
+
+ 08 Aug 2004; Olivier Fisette <ribosome@gentoo.org>
+ maxima-5.9.0-r3.ebuild, files/maxima-emacs.patch:
+ Fixed invalid reference to "/usr/local/info" in maxima emacs mode.
+ Reported by Dirk Gerrits <dirk@dirkgerrits.com> in bug #59288.
+
+ 27 Jun 2004; Aron Griffis <agriffis@gentoo.org> maxima-5.9.0-r2.ebuild:
+ QA - fix use invocation
+
+ 02 Jun 2004; Aron Griffis <agriffis@gentoo.org> maxima-5.9.0-r2.ebuild:
+ Fix use invocation
+
+ 18 May 2004; Mamoru KOMACHI <usata@gentoo.org> maxima-5.9.0-r2.ebuild:
+ Changed app-text/tetex to virutal/tetex.
+
+ 19 Apr 2004; Patrick Kursawe <phosphan@gentoo.org> maxima-5.9.0-r1.ebuild,
+ maxima-5.9.0-r2.ebuild, maxima-5.9.0.ebuild:
+ Depend on gcl/cmucl only for x86. Added IUSE. Cleanup.
+
+*maxima-5.9.0-r2 (05 Oct 2003)
+
+ 05 Oct 2003; Matthew Kennedy <mkennedy@gentoo.org> maxima-5.9.0-r2.ebuild:
+ use cmucl and not cmucl-bin (now masked)
+
+ 21 Sep 2003; Matthew Kennedy <mkennedy@gentoo.org> maxima-5.9.0-r1.ebuild:
+ depend on virtual/emacs, not app-editors/emacs
+
+ 31 Aug 2003; George Shapovalov <george@gentoo.org> maxima-5.9.0-r1.ebuild :
+ few more improvements from #16529. Now supports clisp, cmucl and gcl in any combination
+
+*maxima-5.9.0-r1 (06 Aug 2003)
+
+ 06 Aug 2003; George Shapovalov <george@gentoo.org> maxima-5.9.0-r1.ebuild :
+ expandedn the ebuild following the #16529.
+ Now has 4 use flags (two of the local) and some emacs and tex related functionality.
+ Can be built with either clisp or cmucl
+ Thanks to Cliff Yapp and Sourav Mandal for suggestions and additions
+
+*maxima-5.9.0 (19 Apr 2003)
+
+ 19 Apr 2003; George Shapovalov <george@gentoo.org> maxima-5.9.0.ebuild, files/{digest-maxima-5.9.0} :
+ initial release (#16529)
+ Free computer algebra environment, based on Macsyma
+ ebuild submitted by Sourav Mandal <sourav@sourav.net>
diff --git a/sci-mathematics/maxima/Manifest b/sci-mathematics/maxima/Manifest
new file mode 100644
index 000000000..5debd63b1
--- /dev/null
+++ b/sci-mathematics/maxima/Manifest
@@ -0,0 +1,5 @@
+MD5 34088e52192b29787ef45aa41a483be9 ChangeLog 5013
+MD5 6957a9bafd71a24b58e148bb2ee58257 files/50maxima-gentoo.el 346
+MD5 f94d8f9a9d0bf93b5f28b15f6198261e files/digest-maxima-5.9.2 65
+MD5 7a31ee68476b8dfb009b4b917b4e4e4c files/maxima-5.9.2-unicode-fix.patch 2738
+MD5 f4977f92fd46a982f7142427e1f81ab5 maxima-5.9.2.ebuild 2505
diff --git a/sci-mathematics/maxima/files/50maxima-gentoo.el b/sci-mathematics/maxima/files/50maxima-gentoo.el
new file mode 100644
index 000000000..ec4ccf00c
--- /dev/null
+++ b/sci-mathematics/maxima/files/50maxima-gentoo.el
@@ -0,0 +1,7 @@
+(setq load-path (cons "/usr/share/maxima/5.9.1/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))
+(autoload 'emaxima-mode "emaxima" "EMaxima" t)
+(add-hook 'emaxima-mode-hook 'emaxima-mark-file-as-emaxima)
+
diff --git a/sci-mathematics/maxima/files/digest-maxima-5.9.2 b/sci-mathematics/maxima/files/digest-maxima-5.9.2
new file mode 100644
index 000000000..978b3d8ab
--- /dev/null
+++ b/sci-mathematics/maxima/files/digest-maxima-5.9.2
@@ -0,0 +1 @@
+MD5 dff996cd5c2c0c871977a26e6fb001f3 maxima-5.9.2.tar.gz 5525687
diff --git a/sci-mathematics/maxima/files/maxima-5.9.2-unicode-fix.patch b/sci-mathematics/maxima/files/maxima-5.9.2-unicode-fix.patch
new file mode 100644
index 000000000..fa2dbad97
--- /dev/null
+++ b/sci-mathematics/maxima/files/maxima-5.9.2-unicode-fix.patch
@@ -0,0 +1,63 @@
+diff -ru maxima-5.9.2/src/cl-info.lisp maxima-5.9.2.new/src/cl-info.lisp
+--- maxima-5.9.2/src/cl-info.lisp 2005-06-10 14:04:25.000000000 +0200
++++ maxima-5.9.2.new/src/cl-info.lisp 2005-11-17 14:05:38.825785640 +0100
+@@ -118,7 +118,7 @@
+ (eval-when (compile eval load)
+ (defun sharp-u-reader (stream subchar arg)
+ (declare (ignore subchar arg))
+- (let ((tem (make-array 10 :element-type 'base-char
++ (let ((tem (make-array 10 :element-type 'character
+ :fill-pointer 0 :adjustable t)))
+ (unless (eql (read-char stream) #\")
+ (error "sharp-u-reader reader needs a \"right after it"))
+@@ -132,7 +132,7 @@
+ (#\r . #\return))))
+ ch))))
+ (vector-push-extend ch tem)))
+- (coerce tem '(simple-array base-char (*)))))
++ (coerce tem '(simple-array character (*)))))
+
+ (set-dispatch-macro-character #\# #\u 'sharp-u-reader)
+ )
+@@ -153,7 +153,7 @@
+ (error "illegal file start ~a" start))
+ #-gcl
+ (let ((tem (make-array (- len start)
+- :element-type 'base-char)))
++ :element-type 'character)))
+ (when (> start 0)
+ (file-position st start))
+ (read-sequence tem st :start 0 :end (length tem))
+@@ -249,7 +249,7 @@
+ ((> extra 0)
+ (setq tem
+ (make-array (+ (length x) extra)
+- :element-type 'base-char :fill-pointer 0))
++ :element-type 'character :fill-pointer 0))
+ (setq i 0)
+ (go AGAIN))
+ (t (setq tem x)))
+diff -ru maxima-5.9.2/src/numerical/f2cl-lib.lisp maxima-5.9.2.new/src/numerical/f2cl-lib.lisp
+--- maxima-5.9.2/src/numerical/f2cl-lib.lisp 2005-05-19 14:40:27.000000000 +0200
++++ maxima-5.9.2.new/src/numerical/f2cl-lib.lisp 2005-11-17 14:05:38.801789288 +0100
+@@ -1346,7 +1346,7 @@
+ ;;; These changes come from maxima.
+ ;;;
+ ;;; Revision 1.61 2005/03/28 20:38:18 rtoy
+-;;; Make strings with an element-type of character instead of base-char,
++;;; Make strings with an element-type of character instead of character,
+ ;;; in case the Lisp implementation has unicode support.
+ ;;;
+ ;;; Revision 1.60 2004/09/01 14:17:57 rtoy
+diff -ru maxima-5.9.2/src/server.lisp maxima-5.9.2.new/src/server.lisp
+--- maxima-5.9.2/src/server.lisp 2005-03-30 19:14:50.000000000 +0200
++++ maxima-5.9.2.new/src/server.lisp 2005-11-17 14:05:39.186730768 +0100
+@@ -52,7 +52,7 @@
+ :element-type (if bin '(unsigned-byte 8) 'character)))
+ #+gcl (si::socket port :host host)
+ #+lispworks (comm:open-tcp-stream host port :direction :io :element-type
+- (if bin 'unsigned-byte 'base-char))
++ (if bin 'unsigned-byte 'character))
+ #-(or allegro clisp cmu sbcl gcl lispworks)
+ (error 'not-implemented :proc (list 'open-socket host port bin))))
+
diff --git a/sci-mathematics/maxima/maxima-5.9.2.ebuild b/sci-mathematics/maxima/maxima-5.9.2.ebuild
new file mode 100644
index 000000000..93c480dec
--- /dev/null
+++ b/sci-mathematics/maxima/maxima-5.9.2.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils 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 AECA"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~sparc"
+IUSE="cmucl clisp sbcl tetex emacs auctex tcltk rlwrap"
+
+DEPEND="tetex? ( virtual/tetex )
+ emacs? ( virtual/emacs )
+ auctex? ( app-emacs/auctex )
+ >=sys-apps/texinfo-4.3
+ !clisp? ( !sbcl? ( !cmucl? ( >=dev-lisp/gcl-2.6.7 ) ) )
+ cmucl? ( >=dev-lisp/cmucl-19a )
+ clisp? ( >=dev-lisp/clisp-2.33.2-r1 )
+ sbcl? ( >=dev-lisp/sbcl-0.8.14 )"
+RDEPEND="rlwrap? app-misc/rlwrap
+ tcktk? >=dev-lang/tk-8.3.3
+ >=media-gfx/gnuplot-4.0-r1"
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}"/maxima-${PV}-unicode-fix.patch
+ # replace ugly default ghostview with gv - could do kpdf/evince more general
+ cd ${S}
+ for gvfile in $(grep -rl *); do
+ sed -i -e 's/ghostview/gv/g' ${gvfile}
+ done
+}
+
+src_compile() {
+
+ # remove xmaxima and rmaxima if not requested
+ use tcltk || sed -i -e '/^SUBDIRS/s/xmaxima//' interfaces/Makefile.in
+ use rlwrap || sed -i -e '/^@WIN32_FALSE@bin_SCRIPTS/s/rmaxima//' src/Makefile.in
+
+ local myconf=""
+ if use cmucl || use clisp || use sbcl; then
+ myconf="${myconf} $(use_enable cmucl)"
+ myconf="${myconf} $(use_enable clisp)"
+ myconf="${myconf} $(use_enable sbcl)"
+ else
+ 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
+ econf ${myconf} || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+
+ if use emacs
+ then
+ elisp-site-file-install "${FILESDIR}"/50maxima-gentoo.el
+ fi
+
+ if use tetex
+ then
+ insinto /usr/share/texmf/tex/latex/emaxima
+ doins interfaces/emacs/emaxima/emaxima.sty
+ fi
+
+ # Install documentation.
+ 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_postinst() {
+ if use emacs
+ then
+ einfo "Running elisp-site-regen...."
+ elisp-site-regen
+ fi
+ if use tetex
+ then
+ einfo "Running mktexlsr to rebuild ls-R database...."
+ mktexlsr
+ fi
+}
+
+pkg_postrm() {
+ if use emacs
+ then
+ einfo "Running elisp-site-regen...."
+ elisp-site-regen
+ fi
+}