# 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.15 2004/10/07 13:18:47 phosphan Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-sci/maxima/ChangeLog,v 1.16 2004/10/08 03:20:24 cretin Exp $
+
+*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
MD5 870604232354646e69c57d16da1a6af8 maxima-5.9.0-r3.ebuild 2477
MD5 780474ef22cbaff6cd18228747a7fd83 maxima-5.9.0-r2.ebuild 2357
+MD5 eaf258157b0eaedc28e8cda2c4db383f maxima-5.9.1-r1.ebuild 2432
MD5 c460b4acb43710708be8561f6aecac41 maxima-5.9.1.ebuild 2490
-MD5 2b9e2dc44f4e88299860e9c15d0a540d ChangeLog 2464
+MD5 da977d8cdcc76204626b18c3e6ed72ca ChangeLog 2614
MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
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 6f3becd603f999b2bb7488753ec07518 files/digest-maxima-5.9.1-r1 65
+MD5 6957a9bafd71a24b58e148bb2ee58257 files/50maxima-gentoo.el 346
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
--- /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-r1.ebuild,v 1.1 2004/10/08 03:20:24 cretin Exp $
+
+inherit eutils elisp-common
+
+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"
+IUSE="cmucl clisp gcl sbcl tetex emacs auctex"
+
+DEPEND="tetex? ( virtual/tetex )
+ emacs? ( virtual/emacs )
+ auctex? ( app-emacs/auctex )
+ >=sys-apps/texinfo-4.3
+ x86? ( !clisp? ( !sbcl? ( !gcl? ( !cmucl? ( dev-lisp/cmucl ) ) ) ) )
+ clisp? ( >=dev-lisp/clisp-2.33.2-r1 )
+ x86? ( cmucl? ( >=dev-lisp/cmucl-19a ) )
+ x86? ( gcl? ( >=dev-lisp/gcl-2.6.4 ) )
+ x86? ( sbcl? ( >=dev-lisp/sbcl-0.8.14 ) )"
+RDEPEND=">=dev-lang/tk-8.3.3
+ >=media-gfx/gnuplot-4.0-r1"
+
+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 || use sbcl; then
+ if use cmucl; then
+ myconf="${myconf} --enable-cmucl"
+ fi
+ if use clisp; then
+ myconf="${myconf} --enable-clisp"
+ fi
+ if use gcl; then
+ ewarn "Important - GCL must be installed with"
+ ewarn "ANSI support. Otherwise this build will"
+ ewarn "fail. To check this, start gcl and look"
+ ewarn "for a header like the following:"
+ ewarn "GCL (GNU Common Lisp) 2.6.5 ANSI"
+ ewarn "If you see CtL1 where ANSI is, then you"
+ ewarn "need to emerge gcl using something like"
+ ewarn "USE=\"ansi\" emerge gcl"
+ myconf="${myconf} --enable-gcl"
+ fi
+ if use sbcl; then
+ myconf="${myconf} --enable-sbcl"
+ 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-site-file-install ${FILESDIR}/50maxima-gentoo.el
+ 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 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
+}