Moved from app-sci/maxima to sci-mathematics/maxima.
authorOlivier Fisette <ribosome@gentoo.org>
Tue, 28 Dec 2004 14:38:51 +0000 (14:38 +0000)
committerOlivier Fisette <ribosome@gentoo.org>
Tue, 28 Dec 2004 14:38:51 +0000 (14:38 +0000)
15 files changed:
sci-mathematics/maxima/ChangeLog [new file with mode: 0644]
sci-mathematics/maxima/Manifest [new file with mode: 0644]
sci-mathematics/maxima/files/50maxima-gentoo.el [new file with mode: 0644]
sci-mathematics/maxima/files/digest-maxima-5.9.0 [new file with mode: 0644]
sci-mathematics/maxima/files/digest-maxima-5.9.0-r2 [new file with mode: 0644]
sci-mathematics/maxima/files/digest-maxima-5.9.0-r3 [new file with mode: 0644]
sci-mathematics/maxima/files/digest-maxima-5.9.1 [new file with mode: 0644]
sci-mathematics/maxima/files/digest-maxima-5.9.1-r1 [new file with mode: 0644]
sci-mathematics/maxima/files/maxima-emacs.patch [new file with mode: 0644]
sci-mathematics/maxima/maxima-5.9.0-r2.ebuild [new file with mode: 0644]
sci-mathematics/maxima/maxima-5.9.0-r3.ebuild [new file with mode: 0644]
sci-mathematics/maxima/maxima-5.9.0.ebuild [new file with mode: 0644]
sci-mathematics/maxima/maxima-5.9.1-r1.ebuild [new file with mode: 0644]
sci-mathematics/maxima/maxima-5.9.1.ebuild [new file with mode: 0644]
sci-mathematics/maxima/metadata.xml [new file with mode: 0644]

diff --git a/sci-mathematics/maxima/ChangeLog b/sci-mathematics/maxima/ChangeLog
new file mode 100644 (file)
index 0000000..5babff4
--- /dev/null
@@ -0,0 +1,75 @@
+# ChangeLog for app-sci/maxima
+# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.1 2004/12/28 14:38:51 ribosome Exp $
+
+*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 (file)
index 0000000..e6ebdcf
--- /dev/null
@@ -0,0 +1,14 @@
+MD5 870604232354646e69c57d16da1a6af8 maxima-5.9.0-r3.ebuild 2477
+MD5 780474ef22cbaff6cd18228747a7fd83 maxima-5.9.0-r2.ebuild 2357
+MD5 450124e4e8ae5a35df660a58d7b0ffd5 maxima-5.9.1-r1.ebuild 2532
+MD5 c460b4acb43710708be8561f6aecac41 maxima-5.9.1.ebuild 2490
+MD5 0e9910aaf20f51b2536b850d5ee2f230 ChangeLog 2734
+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
diff --git a/sci-mathematics/maxima/files/50maxima-gentoo.el b/sci-mathematics/maxima/files/50maxima-gentoo.el
new file mode 100644 (file)
index 0000000..ec4ccf0
--- /dev/null
@@ -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.0 b/sci-mathematics/maxima/files/digest-maxima-5.9.0
new file mode 100644 (file)
index 0000000..ca2a7e3
--- /dev/null
@@ -0,0 +1 @@
+MD5 a1d6d6ed6afb0eebf03df865c0a19f19 maxima-5.9.0.tar.gz 7116131
diff --git a/sci-mathematics/maxima/files/digest-maxima-5.9.0-r2 b/sci-mathematics/maxima/files/digest-maxima-5.9.0-r2
new file mode 100644 (file)
index 0000000..ca2a7e3
--- /dev/null
@@ -0,0 +1 @@
+MD5 a1d6d6ed6afb0eebf03df865c0a19f19 maxima-5.9.0.tar.gz 7116131
diff --git a/sci-mathematics/maxima/files/digest-maxima-5.9.0-r3 b/sci-mathematics/maxima/files/digest-maxima-5.9.0-r3
new file mode 100644 (file)
index 0000000..ca2a7e3
--- /dev/null
@@ -0,0 +1 @@
+MD5 a1d6d6ed6afb0eebf03df865c0a19f19 maxima-5.9.0.tar.gz 7116131
diff --git a/sci-mathematics/maxima/files/digest-maxima-5.9.1 b/sci-mathematics/maxima/files/digest-maxima-5.9.1
new file mode 100644 (file)
index 0000000..a849fad
--- /dev/null
@@ -0,0 +1 @@
+MD5 659acfad1f61444cf5b38f6c28279d40 maxima-5.9.1.tar.gz 8093534
diff --git a/sci-mathematics/maxima/files/digest-maxima-5.9.1-r1 b/sci-mathematics/maxima/files/digest-maxima-5.9.1-r1
new file mode 100644 (file)
index 0000000..a849fad
--- /dev/null
@@ -0,0 +1 @@
+MD5 659acfad1f61444cf5b38f6c28279d40 maxima-5.9.1.tar.gz 8093534
diff --git a/sci-mathematics/maxima/files/maxima-emacs.patch b/sci-mathematics/maxima/files/maxima-emacs.patch
new file mode 100644 (file)
index 0000000..1775d82
--- /dev/null
@@ -0,0 +1,20 @@
+--- maxima.el~ 2004-07-20 19:18:05.000000000 +0200
++++ maxima.el  2004-08-03 18:17:47.559653376 +0200
+@@ -50,7 +50,7 @@
+ ;; Some variables that may have to be set in order to use the maxima help:
+ ;;  maxima-info-dir
+ ;;         This should be the directory where the maxima info files are kept.
+-;;         By default, it is "/usr/local/info/"
++;;         By default, it is "/usr/share/info/"
+ ;;  maxima-info-index-file
+ ;;         This should be the name of the maxima info file that contains
+ ;;         the index, by default, it is "maxima.info-15"
+@@ -213,7 +213,7 @@
+ (defvar maxima-newline-style nil
+   "For compatability.")
+
+-(defcustom maxima-info-dir "/usr/local/info/"
++(defcustom maxima-info-dir "/usr/share/info/"
+   "*The directory where the maxima info files are kept."
+   :group 'maxima
+   :type '(directory))
diff --git a/sci-mathematics/maxima/maxima-5.9.0-r2.ebuild b/sci-mathematics/maxima/maxima-5.9.0-r2.ebuild
new file mode 100644 (file)
index 0000000..42723b5
--- /dev/null
@@ -0,0 +1,84 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.9.0-r2.ebuild,v 1.1 2004/12/28 14:38:51 ribosome Exp $
+
+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_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
+}
diff --git a/sci-mathematics/maxima/maxima-5.9.0-r3.ebuild b/sci-mathematics/maxima/maxima-5.9.0-r3.ebuild
new file mode 100644 (file)
index 0000000..7b90bd2
--- /dev/null
@@ -0,0 +1,92 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.9.0-r3.ebuild,v 1.1 2004/12/28 14:38:51 ribosome 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
+}
diff --git a/sci-mathematics/maxima/maxima-5.9.0.ebuild b/sci-mathematics/maxima/maxima-5.9.0.ebuild
new file mode 100644 (file)
index 0000000..44ad7fe
--- /dev/null
@@ -0,0 +1,29 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.9.0.ebuild,v 1.1 2004/12/28 14:38:51 ribosome Exp $
+
+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"
+IUSE=""
+KEYWORDS="x86 ~ppc"
+
+DEPEND=">=dev-lisp/clisp-2.29
+       >=sys-apps/texinfo-4.3"
+RDEPEND=">=dev-lang/tk-8.3.3"
+
+src_compile() {
+       econf || die
+       emake || die
+}
+
+src_install() {
+       make DESTDIR=${D} install || die
+
+       #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}/
+}
diff --git a/sci-mathematics/maxima/maxima-5.9.1-r1.ebuild b/sci-mathematics/maxima/maxima-5.9.1-r1.ebuild
new file mode 100644 (file)
index 0000000..46f0bb5
--- /dev/null
@@ -0,0 +1,100 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.9.1-r1.ebuild,v 1.1 2004/12/28 14:38:51 ribosome 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
+}
+
+pkg_postrm() {
+       if use emacs
+       then
+               einfo "Running elisp-site-regen...."
+               elisp-site-regen
+       fi
+}
diff --git a/sci-mathematics/maxima/maxima-5.9.1.ebuild b/sci-mathematics/maxima/maxima-5.9.1.ebuild
new file mode 100644 (file)
index 0000000..a33e935
--- /dev/null
@@ -0,0 +1,92 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.9.1.ebuild,v 1.1 2004/12/28 14:38:51 ribosome 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
+}
diff --git a/sci-mathematics/maxima/metadata.xml b/sci-mathematics/maxima/metadata.xml
new file mode 100644 (file)
index 0000000..b229aec
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+</pkgmetadata>