Bug 60148 - New ebuild: app-emacs/imaxima and dev-tex/breqn
Bug#: 60148 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: emacs@gentoo.org Reported By: dirk@dirkgerrits.com
Component: Ebuilds
URL:  http://www.ifa.au.dk/~harder/imaxima.html
Summary: New ebuild: app-emacs/imaxima and dev-tex/breqn
Keywords:  EBUILD
Status Whiteboard: 
Opened: 2004-08-12 09:19 0000
Description:   Opened: 2004-08-12 09:19 0000

    

------- Comment #1 From Mamoru KOMACHI (RETIRED) 2004-09-07 07:37:28 0000 -------
More information on the package (and why you think it'll be good for Gentoo)
would be appreciated.

------- Comment #2 From Dirk Gerrits 2004-09-18 06:54:58 0000 -------
Well if a picture is worth a thousand words, the following should be
illustrational.

Maxima in GNU Emacs without imaxima:
http://maxima.sourceforge.net/screenshots/maximaemacs.png 
Maxima in GNU Emacs with imaxima:
http://maxima.sourceforge.net/screenshots/imaxima.png

Basically, Imaxima tells Maxima to produce LaTeX output.  When you type a
Maxima command in your imaxima buffer in Emacs, Maxima's LaTeX output gets
rendered into an image that gets inserted into your Emacs buffer.  That way you
get familiar mathematical notation, instead of the ASCII art that you get when
using the Emacs mode that comes with Maxima itself.

------- Comment #3 From texon 2004-10-06 21:48:15 0000 -------
No doubt about it, imaxima adds a whole new dimension to maxima.  I just
downloaded the native imaxima and installed it and now its actually plausible
to use maxima as a maple or mathematica replacement.

Maxima is, famously, derived from the first major computer algebra system,
macsyma, which unfortunately originated before the GUI.  Now, though, it is
possible to run maxima within texmacs or (x)emacs and enjoy the same typeset
output that comes with the commercial CAS systems.

------- Comment #4 From Cliff Yapp 2004-10-07 12:44:04 0000 -------
Created an attachment (id=41314) [details]
Ebuild for imaxima

Here's ebuild.	I have problems running imaxima with the latest Maxima compiled
on sbcl, but I don't think its the fault of the ebuild.

------- Comment #5 From Cliff Yapp 2004-10-07 12:45:02 0000 -------
Created an attachment (id=41315) [details]
.emacs contents for imaxima

Here's the 50imaxima-gentoo.el file

------- Comment #6 From P.L.Hayes 2004-10-07 23:38:42 0000 -------
Created an attachment (id=41345) [details]
ebuild for dev-tex/breqn

Imaxima README says it needs this to do line breaking. License marked 'as-is'
since the breqn package has no license info at all but as it's on the AMS
public ftp site it should be okay.

------- Comment #7 From P.L.Hayes 2004-10-07 23:43:17 0000 -------
Created an attachment (id=41346) [details]
modified ebuild for imaxima with breqn dep.

I know you hate elisp-site-regen Cliff but... ;-) 

------- Comment #8 From P.L.Hayes 2004-10-08 09:11:46 0000 -------
Created an attachment (id=41369) [details]
modified ebuild for imaxima with breqn dep.

Doesn't need elisp-site-regen - my mistake :/

------- Comment #9 From Mamoru KOMACHI (RETIRED) 2004-10-09 03:31:31 0000 -------
Thanks for breqn ebuild, Paul. It's okay to set the LICENSE to as-is.
However, pkg_preinst() isn't the right place to install files. This 
function is meant to set up live filesystem before merging files
from imagedir. See man 5 ebuild for detail. In this case, if you
want to install additional files you need to do that in src_install(),
like:

src_install() {
        latex-package_src_install

        insinto ${TEXMF}/tex/latex/${PN}
        doins *.sym

        dodoc *.txt
}

pkg_preinst() is also executed at binary installation and
your code will break with binary installation (because
when you install packages from binary, the source code
is not extracted from the tarball to ${S}. This is why you
need to install all files in src_install)

Anyhow, I added breqn-0.94.ebuild with that modification.

------- Comment #10 From P.L.Hayes 2004-10-09 04:16:24 0000 -------
Good - thanks Mamoru. I take it that means Cliff's imaxima ebuild with the
breqn dep and it's 50imaxima-gentoo.el file are going in too?

------- Comment #11 From Mamoru KOMACHI (RETIRED) 2004-10-09 04:40:57 0000 -------
Thanks Cliff and Paul, I added imaxima to CVS. app-text/ghostscript 
should be virtual/ghostscript, though (but that's small problem, so
I fixed it by myself). imaxima works flawlessly, and looks cool ;) 
Have fun!