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
|
More information on the package (and why you think it'll be good for Gentoo)
would be appreciated.
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.
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.
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.
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.
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?
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!