# ChangeLog for app-sci/maxima
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-sci/maxima/ChangeLog,v 1.13 2004/10/02 15:18:27 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-sci/maxima/ChangeLog,v 1.14 2004/10/06 04:30:13 cretin Exp $
+
+*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:
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 2fcf668cee266277a5e9fa527a9a525d ChangeLog 2183
-MD5 780474ef22cbaff6cd18228747a7fd83 maxima-5.9.0-r2.ebuild 2357
MD5 870604232354646e69c57d16da1a6af8 maxima-5.9.0-r3.ebuild 2477
-MD5 b91d1554583fba944bc04476c4af394e maxima-5.9.0.ebuild 778
+MD5 780474ef22cbaff6cd18228747a7fd83 maxima-5.9.0-r2.ebuild 2357
+MD5 4da44e411f7bd263e2e3c5bdb0db921b maxima-5.9.1.ebuild 2472
+MD5 47524f8a909ed8dd006953faf194a862 ChangeLog 2317
MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
-MD5 aaa91ea4812a84a1054b82e69d3fe05b files/digest-maxima-5.9.0 65
+MD5 b91d1554583fba944bc04476c4af394e maxima-5.9.0.ebuild 778
MD5 aaa91ea4812a84a1054b82e69d3fe05b files/digest-maxima-5.9.0-r2 65
MD5 aaa91ea4812a84a1054b82e69d3fe05b files/digest-maxima-5.9.0-r3 65
+MD5 aaa91ea4812a84a1054b82e69d3fe05b files/digest-maxima-5.9.0 65
+MD5 6f3becd603f999b2bb7488753ec07518 files/digest-maxima-5.9.1 65
MD5 55d928e715074355a442baf0934487de files/maxima-emacs.patch 826
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.9.10 (GNU/Linux)
-
-iD8DBQFBXsbKI1lqEGTUzyQRAhX7AKDWnIkKguObLd16+2cjp/YWSLn5cwCfYYVd
-yif8oWBWEizFmQh1UHXjB/s=
-=9cUa
------END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/maxima/maxima-5.9.1.ebuild,v 1.1 2004/10/06 04:30:13 cretin Exp $
+
+inherit eutils
+
+DESCRIPTION="Free computer algebra environment, based on Macsyma"
+HOMEPAGE="http://maxima.sourceforge.net/"
+SRC_URI="mirror://sourceforge/maxima/${P}.tar.gz"
+
+LICENSE="GPL-2 AECA"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+IUSE="cmucl clisp gcl tetex emacs auctex"
+
+DEPEND="tetex? ( virtual/tetex )
+ emacs? ( virtual/emacs )
+ auctex? ( app-emacs/auctex )
+ >=sys-apps/texinfo-4.3
+ x86? ( !clisp? ( !gcl? ( !cmucl? ( dev-lisp/cmucl ) ) ) )
+ clisp? ( dev-lisp/clisp )
+ x86? ( cmucl? ( dev-lisp/cmucl ) )
+ x86? ( gcl? ( dev-lisp/gcl ) )"
+RDEPEND=">=dev-lang/tk-8.3.3"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}/interfaces/emacs/emaxima
+ epatch ${FILESDIR}/maxima-emacs.patch
+}
+
+src_compile() {
+ local myconf=""
+ if use cmucl || use clisp || use gcl; then
+ if use cmucl; then
+ myconf="${myconf} --enable-cmucl"
+ fi
+ if use clisp; then
+ myconf="${myconf} --enable-clisp"
+ fi
+ if use gcl; then
+ myconf="${myconf} --enable-gcl"
+ fi
+ else
+ myconf="${myconf} --enable-cmucl"
+ fi
+
+ ./configure --prefix=/usr ${myconf} || die
+ emake || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+ if use emacs
+ then
+ elisp-install ${S}/interfaces/emacs/emaxima *.el *.elc
+ insinto /usr/share/emacs/site-lisp
+ doins ${S}/interfaces/emacs/emaxima/emaxima.lisp
+ fi
+ if use tetex
+ then
+ insinto /usr/share/texmf/tex/latex/emaxima
+ doins ${S}/interfaces/emacs/emaxima/emaxima.sty
+ fi
+ #move docs to the appropriate place
+ dodoc AUTHORS ChangeLog COPYING COPYING1 NEWS README*
+ mv ${D}/usr/share/${PN}/${PV}/doc/* ${D}/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
+ if use emacs
+ then
+ einfo "In order to use Maxima with emacs, add the following to your"
+ einfo ".emacs file:"
+ einfo "(setq load-path (cons "/usr/share/maxima/5.9.0/emacs" load-path))"
+ einfo "(autoload 'maxima-mode "maxima" "Maxima mode" t)"
+ einfo "(autoload 'maxima "maxima" "Maxima interactive" t)"
+ einfo "(setq auto-mode-alist (cons '("\\.max" . maxima-mode) auto-mode-alist))"
+ einfo "(autoload 'emaxima-mode "emaxima" "EMaxima" t)"
+ einfo "(add-hook 'emaxima-mode-hook 'emaxima-mark-file-as-emaxima)"
+ fi
+}