aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrozin <grozin@32389bae-6d03-0410-99cf-db05cde120eb>2008-04-29 19:06:22 +0000
committergrozin <grozin@32389bae-6d03-0410-99cf-db05cde120eb>2008-04-29 19:06:22 +0000
commitbcf8d4018fab0a1258f8d48c1e0047828c9ebc28 (patch)
treeb180d14ba088d8d92346010e3d0b83b3c6fd75ef
parentCall eautoreconf in every required directory by hand as AC_CONFIG_SUBDIRS isn... (diff)
downloadsci-bcf8d4018fab0a1258f8d48c1e0047828c9ebc28.tar.gz
sci-bcf8d4018fab0a1258f8d48c1e0047828c9ebc28.tar.bz2
sci-bcf8d4018fab0a1258f8d48c1e0047828c9ebc28.zip
maxima-5.15.0 and related stuff
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@1031 32389bae-6d03-0410-99cf-db05cde120eb
-rw-r--r--app-office/texmacs/ChangeLog8
-rw-r--r--app-office/texmacs/Manifest9
-rw-r--r--app-office/texmacs/files/texmacs-1.0.6.14-r1.patch (renamed from app-office/texmacs/files/texmacs-1.0.6.14.patch)55
-rw-r--r--app-office/texmacs/files/texmacs-maxima-5.14.0.patch24
-rw-r--r--app-office/texmacs/texmacs-1.0.6.12-r1.ebuild63
-rw-r--r--app-office/texmacs/texmacs-1.0.6.14-r1.ebuild (renamed from app-office/texmacs/texmacs-1.0.6.14.ebuild)2
-rw-r--r--dev-tex/breqn/ChangeLog28
-rw-r--r--dev-tex/breqn/Manifest7
-rw-r--r--dev-tex/breqn/breqn-0.97a.ebuild55
-rw-r--r--dev-tex/breqn/metadata.xml5
-rw-r--r--sci-mathematics/maxima/ChangeLog332
-rw-r--r--sci-mathematics/maxima/Manifest7
-rw-r--r--sci-mathematics/maxima/files/50maxima-gentoo.el16
-rw-r--r--sci-mathematics/maxima/files/maxima-no-init-files.patch31
-rw-r--r--sci-mathematics/maxima/files/maxima-xdg-utils.patch35
-rw-r--r--sci-mathematics/maxima/maxima-5.15.0.ebuild227
-rw-r--r--sci-mathematics/maxima/metadata.xml15
-rw-r--r--sci-mathematics/wxmaxima/ChangeLog78
-rw-r--r--sci-mathematics/wxmaxima/Manifest4
-rw-r--r--sci-mathematics/wxmaxima/metadata.xml12
-rw-r--r--sci-mathematics/wxmaxima/wxmaxima-0.7.5.ebuild62
21 files changed, 857 insertions, 218 deletions
diff --git a/app-office/texmacs/ChangeLog b/app-office/texmacs/ChangeLog
index 2b2cd53fb..8c9708065 100644
--- a/app-office/texmacs/ChangeLog
+++ b/app-office/texmacs/ChangeLog
@@ -2,6 +2,14 @@
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*texmacs-1.0.6.14-r1 (29 Apr 2008)
+29 Apr 2008; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ +texmacs-1.0.6.14-r1.ebuild, +files/texmacs-1.0.6.14-r1.patch,
+ -texmacs-1.0.6.12-r1.ebuild, -texmacs-1.0.6.14.ebuild,
+ -texmacs-maxima-5.14.0.patch:
+ A new version of the patch to support maxima-5.15.0;
+ cleaning old versions
+
*texmacs-1.0.6.14 (21 Mar 2008)
21 Mar 2008; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+texmacs-1.0.6.14.ebuild, +files/texmacs-1.0.6.14.patch,
diff --git a/app-office/texmacs/Manifest b/app-office/texmacs/Manifest
index 07ea9c2c6..6a84aed1e 100644
--- a/app-office/texmacs/Manifest
+++ b/app-office/texmacs/Manifest
@@ -1,10 +1,7 @@
AUX TeXmacs.desktop 267 RMD160 9c538fb430c4e496a9571e84d0c1622c16279045 SHA1 baca78d1d4965ee4075158953a4c3fed26e855eb SHA256 f6292ac99e7adc8efd006df2dc458b4f8bc075dd5c4be2b8fdeb30a63198ff08
-AUX texmacs-1.0.6.14.patch 4063 RMD160 133add3a5060c3eeddbe1e1275b8928d8d9a8fd8 SHA1 77a604dcc32070798d4108f35af1286b75a791c6 SHA256 450e9a2ce3bc51bc6e5787344aa65c6eee95f6410a752012851c2346b713ccc5
-AUX texmacs-maxima-5.14.0.patch 1591 RMD160 586582af7b7868a001f5891a70b7d4457beac055 SHA1 6979af5888ee29078667ec1b94e2164056cea8b7 SHA256 cb978cee2451c8a5a5405705aa114b024a54e0c66cd129f84d39ebd3a95cb29a
-DIST TeXmacs-1.0.6.12-src.tar.gz 4215464 RMD160 c1d53d8e20f0d701f1e2fb602753d7d85ae7fb53 SHA1 3fbddeb824703c61b5d4a193c4097f68305f9063 SHA256 7a90d5dd2a5d38753371dd37474034d361df019424f5c5b285b30c493adbe6a5
+AUX texmacs-1.0.6.14-r1.patch 4128 RMD160 90db536e4060e5f8d74516714516f7e239022672 SHA1 8f939b809a42a4b4b901a55ce42ff3332ac51a6d SHA256 66060f0ae84d135f7096b4da8278c09dc4b4e41810c78262b96ba410771ad7e0
DIST TeXmacs-1.0.6.14-src.tar.gz 4313953 RMD160 1558176e93527367907cc461fe6075d4c508e23a SHA1 bab1a969be883608f5ffbaef9994d6b86c43226e SHA256 6912e66665fc8f0be3510930a280f407ef29959765b5caa89cc93886df3eee1c
DIST TeXmacs-600dpi-fonts.tar.gz 2899193 RMD160 b5a27a59ed0c178f94836b828d12d3534b506582 SHA1 0a3a279b842b63f55449856690483d07c6e1219c SHA256 e8eeb3c97a1405fd037b0567f683a6d2225d47c7829893b9768bd6c1c707cc81
-EBUILD texmacs-1.0.6.12-r1.ebuild 1639 RMD160 8a0491d6ae0195e04705814f435c237c8ef64422 SHA1 b7617eb66b6fd51b0209d7de3ca5b2327b6e6ce4 SHA256 88b4a29f99c1bc1bcd28f9ed6ee7d6af7c24392a34cb2eaddaadcba5d18e0ac3
-EBUILD texmacs-1.0.6.14.ebuild 1624 RMD160 ee81e39188dd25d606d41b8f1be7df985c011150 SHA1 6cee7a85474e15aa7fbcfe0141973ead7751e2ce SHA256 c0bbf59b8375f19c1939ae2b5eb40cc5da44b654c311bd3bf90d7d41f0be1e52
-MISC ChangeLog 9954 RMD160 12fa636ee73ccf73f72bbcdd3c3cb151cc44b885 SHA1 641a1e89d0cd4e6da14b59c104d3b78a5bd65b76 SHA256 37f319762e6216e4897837a566281084e42c211d2f09416ecad20b9e63a64c90
+EBUILD texmacs-1.0.6.14-r1.ebuild 1625 RMD160 5b4b81ca02addf6d642c882d9404ba2b8f64a057 SHA1 748d2a89e043ec83d2141eac4bf1d832617ad8fe SHA256 a20d107ba3ca9bbde2fbece5abec51d1ebb58d0fda7bcdeda8d7ddc0f93eadd5
+MISC ChangeLog 10274 RMD160 c3c4953343d79760fa266607ca4603f72605de9f SHA1 2b7fd223073b9b28c3fc5fdeeccc89f9e4453b7a SHA256 1b70eca30bb63b200d36a406928dc658484b987f3e42a861205dd7abec49651a
MISC metadata.xml 447 RMD160 e29f6d98fb4ed38a56ef9415b5ce356f7660b8b5 SHA1 45c581010bad5fedc2ad5e2cb01722e51b618269 SHA256 65665d792841d785709329fb8d2770006cc9888a992b0ce64f5572f4b25520ab
diff --git a/app-office/texmacs/files/texmacs-1.0.6.14.patch b/app-office/texmacs/files/texmacs-1.0.6.14-r1.patch
index 50c1355f9..1372cda9e 100644
--- a/app-office/texmacs/files/texmacs-1.0.6.14.patch
+++ b/app-office/texmacs/files/texmacs-1.0.6.14-r1.patch
@@ -1,38 +1,34 @@
-diff --recursive -U2 TeXmacs-1.0.6.14-src.orig/plugins/maxima/bin/maxima_detect TeXmacs-1.0.6.14-src/plugins/maxima/bin/maxima_detect
+diff -U2 --recursive TeXmacs-1.0.6.14-src.orig/plugins/maxima/bin/maxima_detect TeXmacs-1.0.6.14-src/plugins/maxima/bin/maxima_detect
--- TeXmacs-1.0.6.14-src.orig/plugins/maxima/bin/maxima_detect 2008-03-19 23:16:36.000000000 +0600
-+++ TeXmacs-1.0.6.14-src/plugins/maxima/bin/maxima_detect 2008-03-22 10:12:13.000000000 +0600
-@@ -37,4 +37,30 @@
++++ TeXmacs-1.0.6.14-src/plugins/maxima/bin/maxima_detect 2008-04-30 09:18:08.000000000 +0700
+@@ -37,4 +37,26 @@
}
+# maximum version
+V1=0; V2=0; V3=0
+
+max_ver() {
-+ if [ -z "$1" ]; then
-+ return
-+ fi
-+
-+ if [ $1 -gt $V1 ]
-+ then V1=$1; V2=$2; V3=$3
-+ elif [ $1 -eq $V1 ]
-+ then
-+ if [ $2 -gt $V2 ]
-+ then V2=$2; V3=$3
-+ elif [ $2 -eq $V2 ]
++ while [ -n "$1" ]; do
++ if [ $1 -gt $V1 ]
++ then V1=$1; V2=$2; V3=$3
++ elif [ $1 -eq $V1 ]
+ then
-+ if [ $3 -gt $V3 ]
-+ then V3=$3
++ if [ $2 -gt $V2 ]
++ then V2=$2; V3=$3
++ elif [ $2 -eq $V2 ]
++ then
++ if [ $3 -gt $V3 ]
++ then V3=$3
++ fi
+ fi
+ fi
-+ fi
-+
-+ shift; shift; shift
-+ max_ver $@
++ shift; shift; shift
++ done
+}
+
if [ $OSTYPE = "cygwin" ] ; then EXT='.bat'; else EXT=''; fi
MAXIMA=`which maxima$EXT 2>/dev/null`
-@@ -57,16 +83,28 @@
+@@ -57,16 +79,28 @@
if [ "$1" ]
then
- if $MAXIMA --list-avail | grep -F "version 5.9.1
@@ -65,27 +61,28 @@ diff --recursive -U2 TeXmacs-1.0.6.14-src.orig/plugins/maxima/bin/maxima_detect
+ if [ $GOOD = yes ]
then
- # 5.9.1 or 5.9.2 or 5.9.3 or 5.10 or 5.11 or 5.12 or 5.13 or 5.14
-+ # 5.9.1 or later
- maxima -d | grep -F 'maxima-htmldir=' | sed -e \
+- maxima -d | grep -F 'maxima-htmldir=' | sed -e \
- 's/maxima-htmldir=/"/' -e 's|$|/maxima_toc.html"|'
-+ 's/maxima-htmldir=/"/' -e 's|$|/maxima_toc.html"|'
++ # 5.9.1 or later
++ maxima -d | grep -F 'maxima-htmldir=' |\
++ sed -e 's/maxima-htmldir=/"/' -e 's|$|/maxima_toc.html"|'
else
# 5.9.0
-@@ -74,6 +112,9 @@
+@@ -74,6 +108,9 @@
fi
else
- maxima --list-avail | sed -e '1d' -e 's/version /"/' \
- -e 's/, lisp / /' -e 's/$/"/' -e '2s/^/(/' -e '$s/$/)/'
+ echo '('
+ maxima --list-avail |\
-+ grep '^version [a-z0-9\.]\+, lisp [a-z]\+$' |\
-+ sed -e 's/^version \([a-z0-9\.]\+\), lisp \([a-z]\+\)$/"\1 \2"/'
++ grep '^version [a-z0-9\.]\+, lisp [a-zA-Z0-9]\+$' |\
++ sed -e 's/^version \([a-z0-9\.]\+\), lisp \([a-zA_Z0-9]\+\)$/"\1 \2"/'
+ echo ')'
fi
else
-diff --recursive -U2 TeXmacs-1.0.6.14-src.orig/plugins/maxima/bin/tm_maxima TeXmacs-1.0.6.14-src/plugins/maxima/bin/tm_maxima
+diff -U2 --recursive TeXmacs-1.0.6.14-src.orig/plugins/maxima/bin/tm_maxima TeXmacs-1.0.6.14-src/plugins/maxima/bin/tm_maxima
--- TeXmacs-1.0.6.14-src.orig/plugins/maxima/bin/tm_maxima 2008-03-19 23:16:36.000000000 +0600
-+++ TeXmacs-1.0.6.14-src/plugins/maxima/bin/tm_maxima 2008-03-22 10:12:13.000000000 +0600
++++ TeXmacs-1.0.6.14-src/plugins/maxima/bin/tm_maxima 2008-04-30 09:15:19.000000000 +0700
@@ -5,4 +5,5 @@
case $1 in
diff --git a/app-office/texmacs/files/texmacs-maxima-5.14.0.patch b/app-office/texmacs/files/texmacs-maxima-5.14.0.patch
deleted file mode 100644
index 0281cf9bf..000000000
--- a/app-office/texmacs/files/texmacs-maxima-5.14.0.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-diff -U2 --recursive TeXmacs-1.0.6.12-src-orig/plugins/maxima/bin/maxima_detect TeXmacs-1.0.6.12-src/plugins/maxima/bin/maxima_detect
---- TeXmacs-1.0.6.12-src-orig/plugins/maxima/bin/maxima_detect 2007-11-05 15:21:32.000000000 +0600
-+++ TeXmacs-1.0.6.12-src/plugins/maxima/bin/maxima_detect 2008-01-09 04:43:10.000000000 +0600
-@@ -63,7 +63,8 @@
- version 5.11
- version 5.12
--version 5.13" >/dev/null
-+version 5.13
-+version 5.14" >/dev/null
- then
-- # 5.9.1 or 5.9.2 or 5.9.3 or 5.10 or 5.11 or 5.12 or 5.13
-+ # 5.9.1 or 5.9.2 or 5.9.3 or 5.10 or 5.11 or 5.12 or 5.13 or 5.14
- maxima -d | grep -F 'maxima-htmldir=' | sed -e \
- 's/maxima-htmldir=/"/' -e 's|$|/maxima_toc.html"|'
-diff -U2 --recursive TeXmacs-1.0.6.12-src-orig/plugins/maxima/bin/tm_maxima TeXmacs-1.0.6.12-src/plugins/maxima/bin/tm_maxima
---- TeXmacs-1.0.6.12-src-orig/plugins/maxima/bin/tm_maxima 2007-11-05 15:21:32.000000000 +0600
-+++ TeXmacs-1.0.6.12-src/plugins/maxima/bin/tm_maxima 2008-01-09 04:43:10.000000000 +0600
-@@ -18,5 +18,5 @@
- 5.9.1.1* | 5.9.2* | 5.9.3*) exec maxima -u $1 -l $2 -p "$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.9.2.lisp";;
- 5.10.*) exec maxima -u $1 -l $2 -p "$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.10.0.lisp";;
-- 5.11.* | 5.12.* | 5.13.*) exec maxima -u $1 -l $2 -p "$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.11.0.lisp";;
-+ 5.11.* | 5.12.* | 5.13.* | 5.14.*) exec maxima -u $1 -l $2 -p "$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.11.0.lisp";;
- cygwin)
- exec maxima.bat -p "`echo $TEXMACS_MAXIMA_PATH/texmacs-maxima-5.11.0.lisp|cygpath --windows -f -`";;
diff --git a/app-office/texmacs/texmacs-1.0.6.12-r1.ebuild b/app-office/texmacs/texmacs-1.0.6.12-r1.ebuild
deleted file mode 100644
index 087821715..000000000
--- a/app-office/texmacs/texmacs-1.0.6.12-r1.ebuild
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-inherit eutils
-MY_P=${P/tex/TeX}-src
-DESCRIPTION="Wysiwyg text processor with high-quality maths"
-
-SRC_URI="ftp://ftp.texmacs.org/pub/TeXmacs/targz/${MY_P}.tar.gz
- ftp://ftp.texmacs.org/pub/TeXmacs/targz/TeXmacs-600dpi-fonts.tar.gz"
-
-HOMEPAGE="http://www.texmacs.org/"
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="imlib jpeg svg netpbm spell"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="virtual/latex-base
- virtual/ghostscript
- >=dev-scheme/guile-1.4
- media-libs/freetype
- x11-libs/libXext
- imlib? ( media-libs/imlib2 )
- jpeg? ( || ( media-gfx/imagemagick media-gfx/jpeg2ps ) )
- svg? ( || ( media-gfx/inkscape gnome-base/librsvg ) )
- netpbm? ( media-libs/netpbm )
- spell? ( || ( >=app-text/ispell-3.2 >=app-text/aspell-0.5 ) )"
-
-DEPEND="${RDEPEND}
- x11-proto/xproto"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- if has_version ">=dev-scheme/guile-1.8"; then
- if ! built_with_use dev-scheme/guile deprecated; then
- eerror "Please re-emerge dev-scheme/guile with the USE flag +deprecated"
- die "Bad guile version"
- fi
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${PN}-maxima-5.14.0.patch
-}
-
-src_compile() {
- econf $(use_with imlib imlib2 ) \
- --enable-optimize="${CXXFLAGS}" \
- || die "econf failed"
- emake || die "emake failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "emake install failed"
- dodoc TODO || die "dodoc failed"
- domenu "${FILESDIR}/TeXmacs.desktop" || die "domenu failed"
-
- # now install the fonts
- insinto /usr/share/texmf
- doins -r "${WORKDIR}/fonts" || die "installing fonts failed"
-}
diff --git a/app-office/texmacs/texmacs-1.0.6.14.ebuild b/app-office/texmacs/texmacs-1.0.6.14-r1.ebuild
index 9ff2aa66f..55ae29cb8 100644
--- a/app-office/texmacs/texmacs-1.0.6.14.ebuild
+++ b/app-office/texmacs/texmacs-1.0.6.14-r1.ebuild
@@ -42,7 +42,7 @@ pkg_setup() {
src_unpack() {
unpack ${A}
cd "${S}"
- epatch "${FILESDIR}"/${P}.patch
+ epatch "${FILESDIR}"/${PF}.patch
}
src_compile() {
diff --git a/dev-tex/breqn/ChangeLog b/dev-tex/breqn/ChangeLog
deleted file mode 100644
index 8298ff5b8..000000000
--- a/dev-tex/breqn/ChangeLog
+++ /dev/null
@@ -1,28 +0,0 @@
-# ChangeLog for dev-tex/breqn
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: $
-
-*breqn-0.97a (21 Mar 2008)
- 21 Mar 2008; Andrey Grozin <A.G.Grozin@inp.nsk.su>
- +breqn-0.97a.ebuild:
- Version bump, LICENSE changed to LPPL-1.3.
-
- 12 Mar 2007; Alexandre Buisse <nattfodd@gentoo.org> metadata.xml:
- Replaced text-markup by tex as maintaining herd (text-markup split).
-
- 05 Feb 2007; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
- Regenerate digest in Manifest2 format.
-
- 28 Dec 2004; Dylan Carlson <absinthe@gentoo.org> breqn-0.94.ebuild:
- Keywords ~amd64.
-
- 25 Nov 2004; Daniel Black <dragonheart@gentoo.org> breqn-0.94.ebuild:
- ppc keyword as per bug #72350.
-
-*breqn-0.94 (09 Oct 2004)
-
- 09 Oct 2004; Mamoru KOMACHI <usata@gentoo.org> +metadata.xml,
- +breqn-0.94.ebuild:
- Initial import. Ebuild submitted by P.L.Hayes <paul@wolfbone.ath.cx>;
- bug #60148.
-
diff --git a/dev-tex/breqn/Manifest b/dev-tex/breqn/Manifest
deleted file mode 100644
index 40d931b09..000000000
--- a/dev-tex/breqn/Manifest
+++ /dev/null
@@ -1,7 +0,0 @@
-DIST breqn-technotes.tex 5029 RMD160 2baa3898fff43054cd33f6381659fd05248e3c80 SHA1 a54841e2e09fbce4e8b60dbf0705fb809a200c8c SHA256 938d18e49abfae413ca2089cdfc23b2d731481ac3deb178dcdfb51f890bbba2d
-DIST breqn.dtx 232209 RMD160 8483294f9ced91bfe9e5da0d43aa24c3d0e0cd95 SHA1 07c8ba22dc9ab40d1093aa5c4036d205de43cdc1 SHA256 9bb60d287b832919e1549ceab0ebc68c085c7ab41facb54143930b1103d79e7d
-DIST flexisym.dtx 49286 RMD160 dfb940649419784f12e86e1f614869df89cc85d7 SHA1 17ab122a0736569f2aac2fcfd6fa5578fda48143 SHA256 06d8c4011e4d9c35e06e0fa8f512f3833b8b6642a1767e38fd3962b52658aeb4
-DIST mathstyle.dtx 12593 RMD160 fc83b9744caa56dedb672aafc95c6cb35e0efd0e SHA1 165b2c08304810e697aba018e5e7ddef8b6dc900 SHA256 082ed48d4a4c8a395c03f2744b584504bdc9f10e34922edbc1c218de029031c3
-EBUILD breqn-0.97a.ebuild 1230 RMD160 1c6e0cceb36af501fcb6d6115f5c280e9ebe6636 SHA1 0c603394b2dada6c9fff9ca00ae8153a475e588c SHA256 692c1c5c6e3df873b365366edb019d30b6ecbdb4a3fab384440c68999fec25f1
-MISC ChangeLog 905 RMD160 38f9eb377c36b4abd4712f916742b7205b3fd81d SHA1 8b2fdc9cdaa5a5308537f72e3557cbe2c005ba95 SHA256 9f378a186d4357fc09463bc3e5856227ff59cd2f74518ecede453cc146c4d93e
-MISC metadata.xml 156 RMD160 2bf6b2ed9ff0fcef1e902cf093ccf4ae2dcc70a0 SHA1 e9260cd53905d8569cf3327ded4c6d01653fc389 SHA256 b4971b8472ab3fe4fbfe41b331a79193ca19e86c08d055ad1c20eaf9e04b79b6
diff --git a/dev-tex/breqn/breqn-0.97a.ebuild b/dev-tex/breqn/breqn-0.97a.ebuild
deleted file mode 100644
index a2e40b09d..000000000
--- a/dev-tex/breqn/breqn-0.97a.ebuild
+++ /dev/null
@@ -1,55 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-inherit latex-package
-
-DESCRIPTION="LaTeX package for line breaking of equations."
-HOMEPAGE="http://www.ctan.org/tex-archive/macros/latex/contrib/mh/"
-SRC_URI="http://www.ctan.org/get/macros/latex/contrib/mh/breqn.dtx
- http://www.ctan.org/get/macros/latex/contrib/mh/flexisym.dtx
- http://www.ctan.org/get/macros/latex/contrib/mh/mathstyle.dtx
- http://www.ctan.org/get/macros/latex/contrib/mh/breqn-technotes.tex"
-LICENSE="LPPL-1.3"
-SLOT="0"
-IUSE="doc"
-KEYWORDS="~x86"
-
-src_unpack() {
- mkdir "${S}"
- cd "${DISTDIR}"
- cp breqn.dtx flexisym.dtx mathstyle.dtx breqn-technotes.tex "${S}"
-}
-
-src_compile() {
- # Unpacking *.dtx
- for i in *.dtx; do
- tex $i
- done
-
- if use doc; then
- # To avoid sandbox violations
- export VARTEXFONTS="${T}/fonts"
-
- for i in mathstyle flexisym breqn; do
- pdflatex $i.drv
- makeindex -s gind.ist $i.idx
- pdflatex $i.drv
- makeindex -s gind.ist $i.idx
- pdflatex $i.drv
- done
-
- pdflatex breqn-technotes
- pdflatex breqn-technotes
- fi
-}
-
-src_install() {
- insinto "${TEXMF}"/tex/latex/mh
- doins *.sty *.sym
-
- if use doc; then
- insinto /usr/share/doc/${P}
- doins *.pdf
- fi
-}
diff --git a/dev-tex/breqn/metadata.xml b/dev-tex/breqn/metadata.xml
deleted file mode 100644
index ba6a8a880..000000000
--- a/dev-tex/breqn/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>tex</herd>
-</pkgmetadata>
diff --git a/sci-mathematics/maxima/ChangeLog b/sci-mathematics/maxima/ChangeLog
new file mode 100644
index 000000000..e81b7c56d
--- /dev/null
+++ b/sci-mathematics/maxima/ChangeLog
@@ -0,0 +1,332 @@
+# ChangeLog for sci-mathematics/maxima
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.52 2008/04/18 21:59:20 maekke Exp $
+
+*maxima-5.15.0 (29 Apr 2008)
+
+ 29 Apr 2008; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ +maxima-5.15.0.ebuild:
+ Version bump. Now includes app-emacs/imaxima.
+
+ 18 Apr 2008; Markus Meier <maekke@gentoo.org> maxima-5.14.0.ebuild:
+ amd64/x86 stable, bug #215787
+
+ 12 Apr 2008; nixnut <nixnut@gentoo.org> maxima-5.14.0.ebuild:
+ Stable on ppc wrt bug 215787
+
+ 08 Apr 2008; Raúl Porcel <armin76@gentoo.org> maxima-5.14.0.ebuild:
+ sparc stable wrt #215787
+
+ 07 Feb 2008; Sébastien Fabbro <bicatali@gentoo.org>
+ -files/maxima-5.13.0-xdg-utils.patch,
+ -files/maxima-5.14.0-xdg-utils.patch, +files/maxima-no-init-files.patch,
+ +files/maxima-xdg-utils.patch, maxima-5.13.0-r1.ebuild,
+ maxima-5.14.0.ebuild:
+ Do not load host lisp init files, see bug #203748. Join xdg patches.
+
+ 02 Feb 2008; Sébastien Fabbro <bicatali@gentoo.org> maxima-5.14.0.ebuild:
+ Fixed default lisp dependency (bug #208515)
+
+*maxima-5.14.0 (29 Jan 2008)
+
+ 29 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org>
+ +files/maxima-5.14.0-xdg-utils.patch, +maxima-5.14.0.ebuild:
+ Version bump. Now supports again multiple lisp simultaneously.
+ Thanks much to Andrey Grozin <A.G.Grozin@inp.nsk.su> to
+ update the ebuild and maintain it in the science overlay.
+
+ 08 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org>
+ -files/maxima-emacs.patch, -maxima-5.9.1.ebuild, maxima-5.13.0-r1.ebuild:
+ tetex version dependency should now be more than 3 (bug #203558)
+
+ 22 Dec 2007; nixnut <nixnut@gentoo.org> maxima-5.13.0-r1.ebuild:
+ Stable on ppc wrt bug 201216
+
+ 08 Dec 2007; Samuli Suominen <drac@gentoo.org> maxima-5.13.0-r1.ebuild:
+ amd64 stable wrt #201216
+
+ 06 Dec 2007; Ferris McCormick <fmccor@gentoo.org> maxima-5.13.0-r1.ebuild:
+ Sparc stable --- Bug #201216 --- all tests pass.
+
+ 05 Dec 2007; Markus Meier <maekke@gentoo.org> maxima-5.13.0-r1.ebuild:
+ x86 stable, bug #201216
+
+ 20 Nov 2007; Markus Dittrich <markusle@gentoo.org> maxima-5.9.1.ebuild,
+ maxima-5.13.0-r1.ebuild:
+ Switched tetex useflag and dependency to latex and latex-base,
+ respectively (see bug #196745).
+
+ 08 Oct 2007; Ulrich Mueller <ulm@gentoo.org> maxima-5.13.0-r1.ebuild:
+ Fix typo PV->PN in Emacs load path, bug #195043.
+
+ 08 Oct 2007; Sébastien Fabbro <bicatali@gentoo.org>
+ maxima-5.13.0-r1.ebuild:
+ Fixed emacs load path, I said.
+
+ 08 Oct 2007; Sébastien Fabbro <bicatali@gentoo.org>
+ -files/maxima-5.11.0-diff_form.patch,
+ -files/maxima-5.11.0-xdg-utils.patch, -maxima-5.11.0-r2.ebuild,
+ -maxima-5.13.0.ebuild:
+ Fixed emacs load path, thanks to ulm (bug #195043). Removed old versions.
+
+*maxima-5.13.0-r1 (06 Oct 2007)
+
+ 06 Oct 2007; Sébastien Fabbro <bicatali@gentoo.org>
+ +maxima-5.13.0-r1.ebuild:
+ Clarify logic thanks to ulm. Bumped revision, many changes since 5.13.0
+
+ 23 Sep 2007; Sébastien Fabbro <bicatali@gentoo.org> maxima-5.13.0.ebuild:
+ fixed logic for lisp priorities. Now dependencies pull only the compiling
+ lisp when 2 use flags are selected.
+
+ 22 Sep 2007; Steve Arnold <nerdboy@gentoo.org> maxima-5.13.0.ebuild:
+ updated desktop entry to match freedesktop spec (again)
+
+ 20 Sep 2007; Sébastien Fabbro <bicatali@gentoo.org> maxima-5.13.0.ebuild:
+ Enabling only one lisp. Priority are: 1.sbcl, 2.clisp, 3.
+ cmucl, 4. gcl, since gcl-2.6.7 is fairly unstable for maxima. Hopefully
+ taking care of bug #192613. General cleaning and commenting, removed
+ useless eautoreconf.
+
+ 14 Sep 2007; Sébastien Fabbro <bicatali@gentoo.org> maxima-5.9.1.ebuild:
+ fixed a doc link (bug #182643)
+
+ 14 Sep 2007; Sébastien Fabbro <bicatali@gentoo.org> maxima-5.13.0.ebuild:
+ fixed default lisp as sbcl in DEPENDS
+
+ 13 Sep 2007; Sébastien Fabbro <bicatali@gentoo.org> maxima-5.13.0.ebuild:
+ updated sbcl as default lisp and some cleanup
+
+*maxima-5.13.0 (13 Sep 2007)
+
+ 13 Sep 2007; Sébastien Fabbro <bicatali@gentoo.org>
+ -files/maxima-5.9.1-fix-clisp-getpid.patch,
+ -files/maxima-5.9.1-no-kill-minus-one.patch,
+ -files/maxima-5.9.1-unicode-fix.patch,
+ -files/maxima-5.9.3-default-browser.patch,
+ -files/maxima-5.9.3-emaxima.patch,
+ -files/maxima-5.11.0-default-browser.patch,
+ -files/maxima-5.11.0-default-psviewer.patch,
+ -files/maxima-5.11.0-sbcl-disable-debugger.patch,
+ +files/maxima-5.13.0-xdg-utils.patch, -maxima-5.9.1-r5.ebuild,
+ -maxima-5.11.0.ebuild, -maxima-5.11.0-r1.ebuild, +maxima-5.13.0.ebuild,
+ maxima-5.11.0-r2.ebuild:
+ Version bump. Thanks for Andrey Grozin <A.G.Grozin@inp.nsk.su> to maintain
+ it in the science overlay. Closing bug #191529 and bug #192241. Cleaning
+ old versions.
+
+ 09 Jul 2007; Steve Arnold <nerdboy@gentoo.org> maxima-5.11.0.ebuild,
+ maxima-5.11.0-r1.ebuild, maxima-5.11.0-r2.ebuild:
+ Updated desktop category to match current freedesktop spec (now shows
+ under Education instead of Other).
+
+ 18 Apr 2007; Sébastien Fabbro <bicatali@gentoo.org>
+ maxima-5.11.0-r2.ebuild:
+ fixed nostrip->strip
+
+*maxima-5.11.0-r2 (18 Apr 2007)
+
+ 18 Apr 2007; Sébastien Fabbro <bicatali@gentoo.org>
+ -files/maxima-5.10.0.patch, +files/maxima-5.11.0-xdg-utils.patch,
+ files/50maxima-gentoo.el, -maxima-5.9.3.ebuild, -maxima-5.10.0.ebuild,
+ +maxima-5.11.0-r2.ebuild:
+ auctex flag replaced by emacs+tetex. Cleaned ebuild, removed
+ obsolete versions. Added a warning using gnuplot.
+ maxima-5.11.0-r2 now depends on x11-misc/xdg-utils,
+ default-browser.patch and default-psviewer.patch replaced
+ by xdg-utils.patch; sbcl-disable-debugger.patch dropped,
+ see http://bugzilla.redhat.com/214568. Thanks to Andrey Grozin for his
+ work on the gentooscience overlay.
+
+*maxima-5.11.0-r1 (16 Apr 2007)
+
+ 16 Apr 2007; Christian Faulhammer <opfer@gentoo.org> maxima-5.9.3.ebuild,
+ +maxima-5.11.0-r1.ebuild:
+ moved from USE flag tcltk to tk, see bug 17808; added check for TEXMFSITE
+ and install there to avoid possible collisions, see bug 169178, reported by
+ Sebastian Schubert <sebastian-schubert@gmx.de>
+
+ 08 Mar 2007; Christian Faulhammer <opfer@gentoo.org>
+ files/50maxima-gentoo.el:
+ add load path correctly, fixes bug 169588, reported by Ulrich Mueller
+ <ulm@kph.uni-mainz.de>
+
+ 22 Feb 2007; Markus Ullmann <jokey@gentoo.org> ChangeLog:
+ Redigest for Manifest2
+
+*maxima-5.11.0 (13 Jan 2007)
+
+ 13 Jan 2007; Marcus D. Hanwell <cryos@gentoo.org>
+ +files/maxima-5.11.0-default-psviewer.patch, files/50maxima-gentoo.el,
+ +files/maxima-5.11.0-default-browser.patch,
+ +files/maxima-5.11.0-diff_form.patch,
+ +files/maxima-5.11.0-sbcl-disable-debugger.patch, metadata.xml,
+ +maxima-5.11.0.ebuild:
+ Version bump, move from the gentooscience.org overlay. Many thanks to Andrey
+ Grozin <A.G.Grozin@inp.nsk.su> and Sebastien Fabbro <seb@ist.utl.pt> for
+ their work on this in the overlay.
+
+*maxima-5.10.0 (31 Oct 2006)
+
+ 31 Oct 2006; Jeff Gardner <je_fro@gentoo.org> +maxima-5.10.0.ebuild:
+ New version for bug #136289
+
+ 12 Jul 2006; Danny van Dyk <kugelfang@gentoo.org> maxima-5.9.3.ebuild:
+ QA: Corrected typo: tcktk vs tcltk.
+
+ 17 Apr 2006; Marcus D. Hanwell <cryos@gentoo.org>
+ files/50maxima-gentoo.el:
+ Updated emacs file, closes bug 130245.
+
+*maxima-5.9.3 (15 Apr 2006)
+
+ 15 Apr 2006; Marcus D. Hanwell <cryos@gentoo.org>
+ +files/maxima-5.9.3-default-browser.patch,
+ +files/maxima-5.9.3-emaxima.patch, +maxima-5.9.3.ebuild:
+ Version bump with lots of fixes, see bugs for more details. Many thanks to
+ Sebastien Fabbro <seb@ist.utl.pt>, Robert Dodier <robert.dodier@gmail.com>,
+ Thomas Weidner <3.14159@gmx.net> and others for their work. Closes bugs
+ 112717 and 112754.
+
+ 11 Apr 2006; Stephanie Lockwood-Childs <wormo@gentoo.org>
+ maxima-5.9.1-r5.ebuild:
+ stop xmaxima with clisp from executing 'kill -TERM -1' on exit (Bug #111062)
+ and keywording ~ppc (Bug #126254)
+
+ 15 Mar 2006; Olivier Fisette <ribosome@gentoo.org>
+ -maxima-5.9.1-r4.ebuild:
+ Removing obsolete version.
+
+ 15 Mar 2006; Olivier Fisette <ribosome@gentoo.org> maxima-5.9.1.ebuild:
+ Added missing gnuplot dependency (fixes bug #112431).
+
+ 30 Jan 2006; Robin H. Johnson <robbat2@gentoo.org> Manifest:
+ Fix manifest.
+
+ 29 Jan 2006; Marcus D. Hanwell <cryos@gentoo.org> maxima-5.9.1-r5.ebuild:
+ Dependency update: media-gfx/gnuplot -> sci-visualization/gnuplot.
+
+ 29 Jan 2006; Marcus D. Hanwell <cryos@gentoo.org> maxima-5.9.1-r4.ebuild:
+ Dependency update: media-gfx/gnuplot -> sci-visualization/gnuplot.
+
+ 04 Oct 2005; Gustavo Zacarias <gustavoz@gentoo.org>
+ maxima-5.9.1-r5.ebuild:
+ Keyworded ~sparc
+
+*maxima-5.9.1-r5 (01 Oct 2005)
+
+ 01 Oct 2005; Olivier Fisette <ribosome@gentoo.org>
+ +maxima-5.9.1-r5.ebuild:
+ Install info files in "/usr/share/info", not "/usr/info" (fixes bug #105705).
+
+*maxima-5.9.1-r4 (19 Sep 2005)
+
+ 19 Sep 2005; Olivier Fisette <ribosome@gentoo.org>
+ -files/5.9.1-sbcl-gentoo.patch, -maxima-5.9.1-r2.ebuild,
+ -maxima-5.9.1-r3.ebuild, +maxima-5.9.1-r4.ebuild:
+ New ebuild with improved support for LISP compilers, thanks to Lucas Chiesa
+ <lucas.chiesa@gmail.com> (fixes bug #98763). Removed obsolete versions.
+
+ 29 Aug 2005; Olivier Fisette <ribosome@gentoo.org> maxima-5.9.1-r3.ebuild:
+ Readded ~amd64 support, thanks to a patch by Matthew Kennedy
+ <mkennedy@gentoo.org>. Partially fixes bug #98763.
+
+*maxima-5.9.1-r3 (20 Aug 2005)
+
+ 20 Aug 2005; Olivier Fisette <ribosome@gentoo.org>
+ +files/maxima-5.9.1-unicode-fix.patch, +maxima-5.9.1-r3.ebuild:
+ New revision incorporating a Unicode patch, thanks to Thomas Weidner
+ <3.14159@gmx.net> (fixes bug #92644).
+
+ 20 Aug 2005; Olivier Fisette <ribosome@gentoo.org> maxima-5.9.1-r2.ebuild:
+ Depend on >=gcl-2.6.7 (fixes bug #81869). Removed ~amd64 previously added by
+ Matthew Kennedy since AMD64 support is obviously broken (see bug #98763).
+
+ 07 Aug 2005; Michael Hanselmann <hansmi@gentoo.org> maxima-5.9.1.ebuild:
+ Stable on ppc.
+
+ 01 Jul 2005; Matthew Kennedy <mkennedy@gentoo.org>
+ +files/5.9.1-sbcl-gentoo.patch, maxima-5.9.1-r2.ebuild:
+ Patch for SBCL support; Keywording ~mad64.
+
+ 17 Apr 2005; Olivier Fisette <ribosome@gentoo.org> -maxima-5.9.0.ebuild,
+ -maxima-5.9.0-r2.ebuild, -maxima-5.9.0-r3.ebuild, -maxima-5.9.1-r1.ebuild:
+ Removed obsolete versions.
+
+*maxima-5.9.1-r2 (17 Apr 2005)
+
+ 17 Apr 2005; Olivier Fisette <ribosome@gentoo.org>
+ +maxima-5.9.1-r2.ebuild:
+ Fixed documentation location problem (#82000).
+
+*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
index 000000000..827b3d329
--- /dev/null
+++ b/sci-mathematics/maxima/Manifest
@@ -0,0 +1,7 @@
+AUX 50maxima-gentoo.el 736 RMD160 b63c5645b35a206d72eac803f0c52db729b70d55 SHA1 2540fb77c42d4dea1fb0e0fb4eafd9ad1c95f95b SHA256 f9148a04432c81999378a69d910f2ab2b22355f5d8d2c78442cc76d2586585f4
+AUX maxima-no-init-files.patch 2626 RMD160 ffc34cc7e1d6ade44b100252233e83aa7e383744 SHA1 97497929054fcf6924ac56006c9c4ad28c7b443d SHA256 58b82fa1cdcc2eafc0f912541b350ae7aec8c492be5f6b0ce2174ae01f399d88
+AUX maxima-xdg-utils.patch 1090 RMD160 964f5d858b7521b5a3794705999a7fcbddd937e2 SHA1 576ff7b80737a60f71d3e5df0c2cf84161c63627 SHA256 99c600c4c7e813305da375a4afa4a5e7ea6aa4ec9f1ecc051b9c913281af53ea
+DIST maxima-5.15.0.tar.gz 19851523 RMD160 037e2341d130d78e1ff2f067916caae1a13d80f9 SHA1 8487d120471e97f24014889f6f13dfa9fb651293 SHA256 e2229ae88fa34b93d47c9df3deaa54307859326ede21826da509238e6bff5a14
+EBUILD maxima-5.15.0.ebuild 6256 RMD160 410beeefaed3ae8b303bd14c1b9a50278b07f670 SHA1 89825712ca4c6979d5a9b5bd3022c1e48c5e7bf9 SHA256 1f8b4ffb2db0ebc1c13654cc21fadb4e6d6440ee62898c1ecaaf161058dde088
+MISC ChangeLog 13283 RMD160 7051d59deabddbeb1eaf21845ce4fba95d88bb09 SHA1 2f1764cfe0232d4145ec4144b4be377eebffcf17 SHA256 b5f69560b67040901b80ca2b384f5ed949e182903ed6131d5af6de27e9badc44
+MISC metadata.xml 737 RMD160 6f833e02ea5b87a66064c32e7c35889c63c96649 SHA1 bff378e387662ce5e4c4168c74ee7ff1493c41a4 SHA256 9deb0b30538b6d35c0877384b97620eda2dde0bf3b4c702ccdadb007e868daef
diff --git a/sci-mathematics/maxima/files/50maxima-gentoo.el b/sci-mathematics/maxima/files/50maxima-gentoo.el
new file mode 100644
index 000000000..829c705aa
--- /dev/null
+++ b/sci-mathematics/maxima/files/50maxima-gentoo.el
@@ -0,0 +1,16 @@
+;; maxima mode
+(add-to-list 'load-path "@SITELISP@")
+(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 'dbl "dbl" "Make a debugger to run lisp, maxima and or gdb in" t)
+(autoload 'gcl-mode "gcl" "Major mode for editing maxima code and interacting with debugger" t)
+(setq auto-mode-alist (cons '("\\.ma?[cx]\\'" . maxima-mode) auto-mode-alist))
+
+;; emaxima mode
+(autoload 'emaxima-mode "emaxima" "EMaxima" t)
+(add-hook 'emaxima-mode-hook 'emaxima-mark-file-as-emaxima)
+
+;; imaxima
+(autoload 'imaxima "imaxima" "Image support for Maxima." t)
+(autoload 'imath-mode "imath" "Interactive Math minor mode." t)
diff --git a/sci-mathematics/maxima/files/maxima-no-init-files.patch b/sci-mathematics/maxima/files/maxima-no-init-files.patch
new file mode 100644
index 000000000..2e49a2bad
--- /dev/null
+++ b/sci-mathematics/maxima/files/maxima-no-init-files.patch
@@ -0,0 +1,31 @@
+--- src/maxima.in.orig 2008-02-07 11:53:43.006379528 +0000
++++ src/maxima.in 2008-02-07 11:55:02.278897011 +0000
+@@ -111,15 +111,15 @@
+ fi
+ if [ "$MAXIMA_LISP" = "clisp" ]; then
+ if [ "$layout_autotools" = "true" ]; then
+- exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/@CLISP_RUNTIME@" -q -M "$maxima_image_base.mem" "" -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9"
++ exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/@CLISP_RUNTIME@" -q -norc -M "$maxima_image_base.mem" "" -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9"
+ else
+- exec "@CLISP_NAME@" -q -M "$maxima_image_base.mem" "" -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9"
++ exec "@CLISP_NAME@" -q -norc -M "$maxima_image_base.mem" "" -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9"
+ fi
+ elif [ "$MAXIMA_LISP" = "cmucl" ]; then
+ if [ "$layout_autotools" = "true" ]; then
+- exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/@CMUCL_RUNTIME@" -quiet -core "$maxima_image_base.core" -eval '(cl-user::run)' -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9"
++ exec "$MAXIMA_IMAGESDIR/binary-$MAXIMA_LISP/@CMUCL_RUNTIME@" -quiet -nositeinit -noinit -core "$maxima_image_base.core" -eval '(cl-user::run)' -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9"
+ else
+- exec "@CMUCL_NAME@" -quiet -core "$maxima_image_base.core" -eval '(cl-user::run)' -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9"
++ exec "@CMUCL_NAME@" -quiet -nositeinit -noinit -core "$maxima_image_base.core" -eval '(cl-user::run)' -- "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9"
+ fi
+ elif [ "$MAXIMA_LISP" = "scl" ]; then
+ if [ "$layout_autotools" = "true" ]; then
+@@ -138,7 +138,7 @@
+ # in the function get-application-args in command-line.lisp
+ exec "@OPENMCL_NAME@" -I "$maxima_image_base.image" "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9"
+ elif [ "$MAXIMA_LISP" = "sbcl" ]; then
+- exec "@SBCL_NAME@" --core "$maxima_image_base.core" --noinform --end-runtime-options --eval '(cl-user::run)' --end-toplevel-options "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9"
++ exec "@SBCL_NAME@" --core "$maxima_image_base.core" --noinform --end-runtime-options --no-sysinit --no-userinit --eval '(cl-user::run)' --end-toplevel-options "$arg1" "$arg2" "$arg3" "$arg4" "$arg5" "$arg6" "$arg7" "$arg8" "$arg9"
+ else
+ echo "$0: lisp=\"$MAXIMA_LISP\" not known. Use --list-avail to see possible options." >&2
+ exit 1
diff --git a/sci-mathematics/maxima/files/maxima-xdg-utils.patch b/sci-mathematics/maxima/files/maxima-xdg-utils.patch
new file mode 100644
index 000000000..876fe6fcd
--- /dev/null
+++ b/sci-mathematics/maxima/files/maxima-xdg-utils.patch
@@ -0,0 +1,35 @@
+--- interfaces/emacs/misc/bookmode.el.orig 2008-02-07 12:42:18.008472937 +0000
++++ interfaces/emacs/misc/bookmode.el 2008-02-07 12:43:02.531010132 +0000
+@@ -680,7 +680,7 @@
+
+ (and tem
+ (list (concat "View "(nth 1 tem))
+- 'call-process "ghostview" nil nil nil
++ 'call-process "xdg-open" nil nil nil
+ (expand-file-name(nth 1 tem))
+ ))
+ (list "Cancel")
+@@ -705,7 +705,7 @@
+ (concat
+ (cond ((looking-at "%PS") "")
+ (t "gzip -dc | "))
+- "ghostview -")
++ "xdg-open -")
+
+ )))
+
+--- interfaces/xmaxima/Tkmaxima/Constants.tcl.orig 2008-02-07 12:42:47.294141832 +0000
++++ interfaces/xmaxima/Tkmaxima/Constants.tcl 2008-02-07 12:43:02.539010587 +0000
+@@ -143,9 +143,9 @@
+ image/gif netmath
+ image/png netmath
+ image/jpeg netmath
+- application/postscript "ghostview -safer %s"
+- application/pdf "acroread %s"
+- application/x-dvi "xdvi %s"
++ application/postscript "xdg-open -safer %s"
++ application/pdf "xdg-open %s"
++ application/x-dvi "xdg-open %s"
+ }
+ set maxima_priv(imagecounter) 0
+
diff --git a/sci-mathematics/maxima/maxima-5.15.0.ebuild b/sci-mathematics/maxima/maxima-5.15.0.ebuild
new file mode 100644
index 000000000..dce65fdc6
--- /dev/null
+++ b/sci-mathematics/maxima/maxima-5.15.0.ebuild
@@ -0,0 +1,227 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+inherit eutils elisp-common
+
+DESCRIPTION="Free computer algebra environment based on Macsyma"
+HOMEPAGE="http://maxima.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2 AECA"
+SLOT="0"
+KEYWORDS="~x86"
+
+# Supported lisps with readline
+SUPP_RL="gcl clisp"
+# Supported lisps without readline
+SUPP_NORL="cmucl sbcl"
+SUPP_LISPS="${SUPP_RL} ${SUPP_NORL}"
+# Default lisp if none selected
+DEF_LISP="sbcl"
+
+IUSE="latex emacs tk nls unicode xemacs X ${SUPP_LISPS} ${IUSE}"
+
+# Languages
+LANGS="es pt pt_BR"
+for lang in ${LANGS}; do
+ IUSE="${IUSE} linguas_${lang}"
+done
+
+# tetex>=3, so no use of virtual/latex-base (bug #203558)
+# >=maxima-5.15.0 includes imaxima; it depends on dev-tex/mh
+RDEPEND="!app-emacs/imaxima
+ X? ( x11-misc/xdg-utils
+ sci-visualization/gnuplot
+ tk? ( dev-lang/tk ) )
+ latex? ( || ( dev-texlive/texlive-latexrecommended
+ >=app-text/tetex-3
+ app-text/ptex ) )
+ emacs? ( virtual/emacs latex? ( app-emacs/auctex dev-tex/mh ) )
+ xemacs? ( virtual/xemacs latex? ( app-xemacs/auctex dev-tex/mh ) )"
+
+# create lisp dependencies
+for LISP in ${SUPP_LISPS}; do
+ RDEPEND="${RDEPEND} ${LISP}? ( dev-lisp/${LISP} )"
+ DEF_DEP="${DEF_DEP} !${LISP}? ( "
+done
+DEF_DEP="${DEF_DEP} dev-lisp/${DEF_LISP}"
+for LISP in ${SUPP_NORL}; do
+ RDEPEND="${RDEPEND} ${LISP}? ( app-misc/rlwrap )"
+ [[ ${LISP} = ${DEF_LISP} ]] && \
+ DEF_DEP="${DEF_DEP} app-misc/rlwrap"
+done
+for LISP in ${SUPP_LISPS}; do
+ DEF_DEP="${DEF_DEP} )"
+done
+
+RDEPEND="${RDEPEND}
+ ${DEF_DEP}"
+
+DEPEND="${RDEPEND}
+ sys-apps/texinfo"
+
+pkg_setup() {
+ LISPS=""
+
+ for LISP in ${SUPP_LISPS}; do
+ use ${LISP} && LISPS="${LISPS} ${LISP}"
+ done
+
+ if [ -z "${LISPS}" ]; then
+ ewarn "No lisp specified in USE flags, choosing ${DEF_LISP} as default"
+ LISPS="${DEF_LISP}"
+ fi
+
+ RL=""
+
+ for LISP in ${SUPP_NORL}; do
+ use ${LISP} && RL="yes"
+ done
+
+ if use gcl; then
+ if ! built_with_use dev-lisp/gcl ansi; then
+ eerror "gcl must be emerged with the USE flag ansi"
+ die "This package needs gcl with USE=ansi"
+ fi
+ # gcl in the main tree is broken (bug #205803)
+ ewarn "Please use gcl from http://repo.or.cz/w/gentoo-lisp-overlay.git"
+ fi
+
+ # Calculating MAXIMA_TEXMFDIR
+ if use latex; then
+ local TEXMFPATH="$(kpsewhich -var-value=TEXMFSITE)"
+ local TEXMFCONFIGFILE="$(kpsewhich texmf.cnf)"
+
+ if [ -z "${TEXMFPATH}" ]; then
+ eerror "You haven't defined the TEXMFSITE variable in your TeX config."
+ eerror "Please do so in the file ${TEXMFCONFIGFILE:-/var/lib/texmf/web2c/texmf.cnf}"
+ die "Define TEXMFSITE in TeX configuration!"
+ else
+ # go through the colon separated list of directories
+ # (maybe only one) provided in the variable
+ # TEXMFPATH (generated from TEXMFSITE from TeX's config)
+ # and choose only the first entry.
+ # All entries are separated by colons, even when defined
+ # with semi-colons, kpsewhich changes
+ # the output to a generic format, so IFS has to be redefined.
+ local IFS="${IFS}:"
+
+ for strippedpath in ${TEXMFPATH}; do
+ if [ -d ${strippedpath} ]; then
+ MAXIMA_TEXMFDIR="${strippedpath}"
+ break
+ fi
+ done
+
+ # verify if an existing path was chosen to prevent from
+ # installing into the wrong directory
+ if [ -z ${MAXIMA_TEXMFDIR} ]; then
+ eerror "TEXMFSITE does not contain any existing directory."
+ eerror "Please define an existing directory in your TeX config file"
+ eerror "${TEXMFCONFIGFILE:-/var/lib/texmf/web2c/texmf.cnf} or create at least one of the there specified directories"
+ die "TEXMFSITE variable did not contain an existing directory"
+ fi
+ fi
+ fi
+
+ if use X && ! built_with_use sci-visualization/gnuplot gd; then
+ elog "To benefit full plotting capability of maxima,"
+ elog "enable the gd USE flag for sci-visualization/gnuplot"
+ elog "Then re-emerge maxima"
+ epause 5
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # use xdg-open to view ps, pdf
+ epatch "${FILESDIR}"/${PN}-xdg-utils.patch
+ epatch "${FILESDIR}"/${PN}-no-init-files.patch
+ # remove rmaxima if neither cmucl nor sbcl
+ if [ -z "${RL}" ]; then
+ sed -i \
+ -e '/^@WIN32_FALSE@bin_SCRIPTS/s/rmaxima//' \
+ "${S}"/src/Makefile.in \
+ || die "sed for rmaxima failed"
+ fi
+}
+
+src_compile() {
+ local myconf=""
+ for LISP in ${LISPS}; do
+ myconf="${myconf} --enable-${LISP}"
+ done
+
+ # remove xmaxima if no tk
+ if use tk; then
+ myconf="${myconf} --with-wish=wish"
+ else
+ myconf="${myconf} --with-wish=none"
+ sed -i \
+ -e '/^SUBDIRS/s/xmaxima//' \
+ interfaces/Makefile.in || die "sed for tk failed"
+ fi
+
+ # enable existing translated doc
+ if use nls; then
+ for lang in ${LANGS}; do
+ if use "linguas_${lang}"; then
+ myconf="${myconf} --enable-lang-${lang}"
+ use unicode && myconf="${myconf} --enable-lang-${lang}-utf8"
+ fi
+ done
+ fi
+
+ econf ${myconf} || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ einstall emacsdir="${D}${SITELISP}/${PN}" || die "einstall failed"
+
+ use tk && make_desktop_entry xmaxima xmaxima \
+ /usr/share/${PN}/${PV}/xmaxima/maxima-new.png \
+ "Science;Math;Education"
+
+ if use latex; then
+ insinto "${MAXIMA_TEXMFDIR}"/tex/latex/emaxima
+ doins interfaces/emacs/emaxima/emaxima.sty
+ fi
+
+ # do not use dodoc because interfaces can't read compressed files
+ # read COPYING before attempt to remove it
+ insinto /usr/share/${PN}/${PV}/doc
+ doins AUTHORS COPYING README README.lisps || die
+ dodir /usr/share/doc
+ dosym /usr/share/${PN}/${PV}/doc /usr/share/doc/${PF}
+
+ if use emacs; then
+ elisp-site-file-install "${FILESDIR}"/50maxima-gentoo.el
+ # imaxima docs
+ cd interfaces/emacs/imaxima
+ insinto /usr/share/${PN}/${PV}/doc/imaxima
+ doins ChangeLog NEWS README || die "installing imaxima docs failed"
+ insinto /usr/share/${PN}/${PV}/doc/imaxima/imath-example
+ doins imath-example/*.txt || die "installing imaxima docs failed"
+ fi
+}
+
+pkg_preinst() {
+ # some lisps do not read compress info files (bug #176411)
+ for infofile in "${D}"/usr/share/info/*.bz2 ; do
+ bunzip2 "${infofile}"
+ done
+ for infofile in "${D}"/usr/share/info/*.gz ; do
+ gunzip "${infofile}"
+ done
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+ use latex && mktexlsr
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/sci-mathematics/maxima/metadata.xml b/sci-mathematics/maxima/metadata.xml
new file mode 100644
index 000000000..ba2304321
--- /dev/null
+++ b/sci-mathematics/maxima/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci-mathematics</herd>
+ <longdescription lang="en">
+ Computer Algebra system, descendent of Macsyma.
+ Maxima is a system for the manipulation of symbolic and
+ numerical expressions, including differentiation, integration,
+ Taylor series, Laplace transforms, ordinary differential
+ equations, systems of linear equations, and vectors, matrices,
+ and tensors. Maxima produces high precision results by using
+ exact fractions and arbitrarily long floating point representations,
+ and can plot functions and data in two and three dimensions.
+ </longdescription>
+</pkgmetadata>
diff --git a/sci-mathematics/wxmaxima/ChangeLog b/sci-mathematics/wxmaxima/ChangeLog
new file mode 100644
index 000000000..57d4474a3
--- /dev/null
+++ b/sci-mathematics/wxmaxima/ChangeLog
@@ -0,0 +1,78 @@
+# ChangeLog for sci-mathematics/wxmaxima
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*wxmaxima-0.7.5 (29 Apr 2008)
+ 29 Apr 2008; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ +wxmaxima-0.7.5.ebuild:
+ Version bump (for maxima-5.15.0).
+
+ 19 Apr 2008; Sébastien Fabbro <bicatali@gentoo.org>
+ wxmaxima-0.7.4.ebuild:
+ Fixed icon install
+
+ 18 Apr 2008; Markus Meier <maekke@gentoo.org> wxmaxima-0.7.4.ebuild:
+ amd64/x86 stable, bug #215787
+
+ 12 Apr 2008; nixnut <nixnut@gentoo.org> wxmaxima-0.7.4.ebuild:
+ Stable on ppc wrt bug 215787
+
+ 01 Mar 2008; nixnut <nixnut@gentoo.org> wxmaxima-0.7.4.ebuild:
+ Added ~ppc wrt bug 211796
+
+ 26 Feb 2008; Sébastien Fabbro <bicatali@gentoo.org>
+ wxmaxima-0.7.3a.ebuild, wxmaxima-0.7.4.ebuild:
+ Duplicate license file (see bug #211534)
+
+*wxmaxima-0.7.4 (29 Jan 2008)
+
+ 29 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org>
+ -wxmaxima-0.7.1.ebuild, +wxmaxima-0.7.4.ebuild:
+ Version bump. Thanks much to Andrey Grozin <A.G.Grozin@inp.nsk.su> for
+ taking care of it in the science overlay
+
+ 22 Dec 2007; nixnut <nixnut@gentoo.org> wxmaxima-0.7.3a.ebuild:
+ Added ~ppc
+
+ 08 Dec 2007; Samuli Suominen <drac@gentoo.org> wxmaxima-0.7.3a.ebuild:
+ amd64 stable wrt #201218
+
+ 05 Dec 2007; Markus Meier <maekke@gentoo.org> wxmaxima-0.7.3a.ebuild:
+ x86 stable, bug #201218
+
+ 04 Dec 2007; Sébastien Fabbro <bicatali@gentoo.org>
+ wxmaxima-0.7.3a.ebuild:
+ Modernized with newer wxwigets eclass, fixed missing running dependencies
+
+ 29 Sep 2007; Ryan Hill <dirtyepic@gentoo.org> wxmaxima-0.7.1.ebuild,
+ wxmaxima-0.7.3a.ebuild:
+ Lock wxGTK to 2.6.
+
+*wxmaxima-0.7.3a (13 Sep 2007)
+
+ 13 Sep 2007; Sébastien Fabbro <bicatali@gentoo.org>
+ -wxmaxima-0.7.2.ebuild, +wxmaxima-0.7.3a.ebuild:
+ Version bump. Removing wxmaxima-0.7.2 and closing bug #180252.
+
+ 10 Jul 2007; Steve Arnold <nerdboy@gentoo.org> wxmaxima-0.7.1.ebuild,
+ wxmaxima-0.7.2.ebuild:
+ Updated desktop category and added desktop_database_update to pkg_post.
+ Seemed like the right thing to do...
+
+*wxmaxima-0.7.2 (18 Apr 2007)
+
+ 18 Apr 2007; Sébastien Fabbro <bicatali@gentoo.org>
+ +wxmaxima-0.7.2.ebuild:
+ Version bump. Closing bug #174299.
+
+ 23 Feb 2007; Sébastien Fabbro <bicatali@gentoo.org> metadata.xml:
+ changed sci -> sci-mathematics
+
+*wxmaxima-0.7.1 (23 Feb 2007)
+
+ 23 Feb 2007; Sébastien Fabbro <bicatali@gentoo.org> +metadata.xml,
+ +wxmaxima-0.7.1.ebuild:
+ Initial import. Closing bug #83167. Thanks to Lucas Chiesa
+ <lucas.chiesa@gmail.com> for his help in the gentooscience overlay,
+ Andreas Volz <linux@brachttal.net>, and Yosef Meller <yosefm@gmail.com>
+ for their initial help.
diff --git a/sci-mathematics/wxmaxima/Manifest b/sci-mathematics/wxmaxima/Manifest
new file mode 100644
index 000000000..4437e7fcc
--- /dev/null
+++ b/sci-mathematics/wxmaxima/Manifest
@@ -0,0 +1,4 @@
+DIST wxMaxima-0.7.5.tar.gz 826665 RMD160 a5bb7826ed47f6f2f2ea00ef1c35fc92103f9fa1 SHA1 a43e9fcf7eb87775c964d0645c2c9af7ec6cb998 SHA256 8273fb3715271a0338a5d115153546f95308187bf1c946e4e812b4e2d9517052
+EBUILD wxmaxima-0.7.5.ebuild 1462 RMD160 e688668c8cddddf24c2de42c281297da8e1ba1fb SHA1 a2a827d44887cee8833c5175f92d4eace6e97f56 SHA256 cdaf406f073c13071f4d4e41b91651c57a8533a82c8e952b30ba4212c967fcc8
+MISC ChangeLog 2654 RMD160 4b4eb48eee0441c3133b89f3d143e690682d6011 SHA1 52fe5636415239108c1adfb126ae7b6dff246974 SHA256 aef3b7699b66a9319d0637aa27d8e30d160b394f5a4b98064c316e1aa055be97
+MISC metadata.xml 517 RMD160 baf1e245fd04a68066d9df651bfabafdad5bf93b SHA1 5f2e8be04f1cbfb3f71c45e535044d029632e49f SHA256 84060fc148aeee241cd08b55666c2c0783203d5085b8b3ebe2d95a6b6e198b71
diff --git a/sci-mathematics/wxmaxima/metadata.xml b/sci-mathematics/wxmaxima/metadata.xml
new file mode 100644
index 000000000..1abfd4dd7
--- /dev/null
+++ b/sci-mathematics/wxmaxima/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci-mathematics</herd>
+<longdescription lang="en">
+wxMaxima is a wxWidgets GUI for the computer algebra system maxima.
+Most of maxima functions are accessible through menus, some have
+dialogs. The input line has command history (up-key, down-key) and
+completion based on previous input (tab-key).
+wxMaxima provides 2d formated display of maxima output.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-mathematics/wxmaxima/wxmaxima-0.7.5.ebuild b/sci-mathematics/wxmaxima/wxmaxima-0.7.5.ebuild
new file mode 100644
index 000000000..42f7fb05c
--- /dev/null
+++ b/sci-mathematics/wxmaxima/wxmaxima-0.7.5.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/wxmaxima/wxmaxima-0.7.4.ebuild,v 1.6 2008/04/19 09:46:48 bicatali Exp $
+
+WX_GTK_VER="2.8"
+inherit eutils autotools wxwidgets fdo-mime
+
+MYP=wxMaxima-${PV}
+
+DESCRIPTION="Graphical frontend to Maxima, using the wxWidgets toolkit."
+HOMEPAGE="http://wxmaxima.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MYP}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="unicode"
+
+DEPEND=">=dev-libs/libxml2-2.5.0
+ >=x11-libs/wxGTK-2.8.7"
+RDEPEND="${DEPEND}
+ >=sci-mathematics/maxima-5.14.0"
+
+S="${WORKDIR}/${MYP}"
+
+src_compile () {
+
+ # consistent package names
+ sed -i \
+ -e "s:${datadir}/wxMaxima:${datadir}/${PN}:g" \
+ Makefile.in data/Makefile.in || die "sed failed"
+
+ sed -i \
+ -e 's:share/wxMaxima:share/wxmaxima:g' \
+ src/wxMaxima.cpp || die "sed failed"
+
+ econf \
+ --enable-dnd \
+ --enable-printing \
+ --with-wx-config=${WX_CONFIG} \
+ $(use_unicode unicode-glyphs) \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install () {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ doicon wxmaxima.png
+ make_desktop_entry wxmaxima wxMaxima wxmaxima
+ dodir /usr/share/doc/${PF}
+ dosym /usr/share/${PN}/README /usr/share/doc/${PF}/README
+ dodoc AUTHORS
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}