aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-office/texmacs/ChangeLog6
-rw-r--r--app-office/texmacs/Manifest35
-rw-r--r--app-office/texmacs/files/digest-texmacs-1.0.6.76
-rw-r--r--app-office/texmacs/files/digest-texmacs-1.0.6.86
-rw-r--r--app-office/texmacs/files/digest-texmacs-1.0.6.9-r1 (renamed from app-office/texmacs/files/digest-texmacs-1.0.6.6)5
-rw-r--r--app-office/texmacs/files/texmacs-maxima-5.12.0.patch24
-rw-r--r--app-office/texmacs/texmacs-1.0.6.6.ebuild79
-rw-r--r--app-office/texmacs/texmacs-1.0.6.8.ebuild72
-rw-r--r--app-office/texmacs/texmacs-1.0.6.9-r1.ebuild (renamed from app-office/texmacs/texmacs-1.0.6.7.ebuild)5
-rw-r--r--sci-mathematics/maxima/ChangeLog219
-rw-r--r--sci-mathematics/maxima/Manifest24
-rw-r--r--sci-mathematics/maxima/files/50maxima-gentoo.el12
-rw-r--r--sci-mathematics/maxima/files/digest-maxima-5.12.03
-rw-r--r--sci-mathematics/maxima/files/maxima-5.12.0-xdg-utils.patch31
-rw-r--r--sci-mathematics/maxima/maxima-5.12.0.ebuild170
-rw-r--r--sci-mathematics/maxima/metadata.xml15
16 files changed, 523 insertions, 189 deletions
diff --git a/app-office/texmacs/ChangeLog b/app-office/texmacs/ChangeLog
index 776a0db9d..98dd6712a 100644
--- a/app-office/texmacs/ChangeLog
+++ b/app-office/texmacs/ChangeLog
@@ -2,6 +2,12 @@
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*texmacs-1.0.6.9-r1 (3 May 2007)
+ 3 May 2007; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ -texmacs-1.0.6.6.ebuild -texmacs-1.0.6.7.ebuild -texmacs-1.0.6.8.ebuild
+ +texmacs-1.0.6.9-r1.ebuild +files/texmacs-maxima-5.12.0.patch:
+ patch to run maxima-5.12.0 included
+
*texmacs-1.0.6.8 (21 Jan 2007)
21 Jan 2007; Andrey Grozin <A.G.Grozin@inp.nsk.su>
diff --git a/app-office/texmacs/Manifest b/app-office/texmacs/Manifest
index fe60d186e..e7e8b82f3 100644
--- a/app-office/texmacs/Manifest
+++ b/app-office/texmacs/Manifest
@@ -2,23 +2,16 @@ AUX TeXmacs.desktop 267 RMD160 9c538fb430c4e496a9571e84d0c1622c16279045 SHA1 bac
MD5 235442e11a960e89fe244ad6307eccf5 files/TeXmacs.desktop 267
RMD160 9c538fb430c4e496a9571e84d0c1622c16279045 files/TeXmacs.desktop 267
SHA256 f6292ac99e7adc8efd006df2dc458b4f8bc075dd5c4be2b8fdeb30a63198ff08 files/TeXmacs.desktop 267
-DIST TeXmacs-1.0.6.6-src.tar.gz 3789730 RMD160 587d671fb0732a3cd80e0452a039518c2a4a7b4e SHA1 07df6d2a624c43a1b39d770c7ac3c390311876e9 SHA256 253f1d1dba7f4b5405d7d55253c35942ce8cc38dcd9e8f10e4ac5cb65cd8928d
-DIST TeXmacs-1.0.6.7-src.tar.gz 3801955 RMD160 0dd5d1a71dcdaa7404e9cddc29c2e34e3685e9d0 SHA1 5dc396cb1cee2c1c189deddaba44547cb0931b5b SHA256 6df5520a8a16a00d7dc8973a87a5eade7841b6337ae8e43c70ec3e8ca17fd206
-DIST TeXmacs-1.0.6.8-src.tar.gz 3836627 RMD160 099cac803f030643d2db08a531c1c767e52f8b1e SHA1 1fdef469a3dd7d4c3d37ee16797d218186e05a08 SHA256 a6f817fa3573df74095b47eee847a52f72ce285fc442eeb726219898f78441eb
+AUX texmacs-maxima-5.12.0.patch 1439 RMD160 a62e46f407e60aa8d0185203694d48fdafcdffdc SHA1 7857ff69b9ca2dbbee7fcaad6275a90b8112b677 SHA256 301d1e4811f5a795d6e539f9e853bfdd986dfe747456a8b87fa2fa6069fda67c
+MD5 7f32feff0d9a92c9f84ed285c6c9f957 files/texmacs-maxima-5.12.0.patch 1439
+RMD160 a62e46f407e60aa8d0185203694d48fdafcdffdc files/texmacs-maxima-5.12.0.patch 1439
+SHA256 301d1e4811f5a795d6e539f9e853bfdd986dfe747456a8b87fa2fa6069fda67c files/texmacs-maxima-5.12.0.patch 1439
DIST TeXmacs-1.0.6.9-src.tar.gz 3840213 RMD160 506f65b65a934f94737e4d190cc8317e74622f38 SHA1 9b038e353efcfba6e3f24d108a6c94e837191fb0 SHA256 87472e49639bfd635255df1b0c26aa6b28a80dca0782d782d263f184958a47d7
DIST TeXmacs-600dpi-fonts.tar.gz 2899193 RMD160 b5a27a59ed0c178f94836b828d12d3534b506582 SHA1 0a3a279b842b63f55449856690483d07c6e1219c SHA256 e8eeb3c97a1405fd037b0567f683a6d2225d47c7829893b9768bd6c1c707cc81
-EBUILD texmacs-1.0.6.6.ebuild 1794 RMD160 95e45bc24493545814340aa0a11ed18cb893f3e4 SHA1 e2fdb36f3075c242c3fa0023b81c8304eb0df35f SHA256 04390425f46a355c46c58058b01a53f4048b14d05ed6b80357f7dd811a5b5d65
-MD5 ed9beb4c3661988f0f9e8b9a4573c70a texmacs-1.0.6.6.ebuild 1794
-RMD160 95e45bc24493545814340aa0a11ed18cb893f3e4 texmacs-1.0.6.6.ebuild 1794
-SHA256 04390425f46a355c46c58058b01a53f4048b14d05ed6b80357f7dd811a5b5d65 texmacs-1.0.6.6.ebuild 1794
-EBUILD texmacs-1.0.6.7.ebuild 1658 RMD160 b7b551e3a52bcb224cd7a4611e1a7ed1f97f8aad SHA1 5da7b1b11fe3d9c9b0404b012782ae40767f5f3e SHA256 3425abcdc0e4d7c46827c55a75ac6dfee171e10ef92bc85e9dc479f848c5f4cb
-MD5 1c373b792fcd58676f5e26a3dcc29039 texmacs-1.0.6.7.ebuild 1658
-RMD160 b7b551e3a52bcb224cd7a4611e1a7ed1f97f8aad texmacs-1.0.6.7.ebuild 1658
-SHA256 3425abcdc0e4d7c46827c55a75ac6dfee171e10ef92bc85e9dc479f848c5f4cb texmacs-1.0.6.7.ebuild 1658
-EBUILD texmacs-1.0.6.8.ebuild 1658 RMD160 b7b551e3a52bcb224cd7a4611e1a7ed1f97f8aad SHA1 5da7b1b11fe3d9c9b0404b012782ae40767f5f3e SHA256 3425abcdc0e4d7c46827c55a75ac6dfee171e10ef92bc85e9dc479f848c5f4cb
-MD5 1c373b792fcd58676f5e26a3dcc29039 texmacs-1.0.6.8.ebuild 1658
-RMD160 b7b551e3a52bcb224cd7a4611e1a7ed1f97f8aad texmacs-1.0.6.8.ebuild 1658
-SHA256 3425abcdc0e4d7c46827c55a75ac6dfee171e10ef92bc85e9dc479f848c5f4cb texmacs-1.0.6.8.ebuild 1658
+EBUILD texmacs-1.0.6.9-r1.ebuild 1737 RMD160 f226f0500d162e70ed314b59c8c64a34f9b1109f SHA1 acbe0101822f93fe3b4f79929537c6a37cccf72f SHA256 31399980d3aed828a99803c6e1d8977cd145ec70884561f9092ea7dd2777920a
+MD5 c67cb5175692758c5598b7ddbffb1bab texmacs-1.0.6.9-r1.ebuild 1737
+RMD160 f226f0500d162e70ed314b59c8c64a34f9b1109f texmacs-1.0.6.9-r1.ebuild 1737
+SHA256 31399980d3aed828a99803c6e1d8977cd145ec70884561f9092ea7dd2777920a texmacs-1.0.6.9-r1.ebuild 1737
EBUILD texmacs-1.0.6.9.ebuild 1658 RMD160 b7b551e3a52bcb224cd7a4611e1a7ed1f97f8aad SHA1 5da7b1b11fe3d9c9b0404b012782ae40767f5f3e SHA256 3425abcdc0e4d7c46827c55a75ac6dfee171e10ef92bc85e9dc479f848c5f4cb
MD5 1c373b792fcd58676f5e26a3dcc29039 texmacs-1.0.6.9.ebuild 1658
RMD160 b7b551e3a52bcb224cd7a4611e1a7ed1f97f8aad texmacs-1.0.6.9.ebuild 1658
@@ -31,15 +24,9 @@ MISC metadata.xml 447 RMD160 e29f6d98fb4ed38a56ef9415b5ce356f7660b8b5 SHA1 45c58
MD5 97b4c157ab6219cb08b82945f14b5aa3 metadata.xml 447
RMD160 e29f6d98fb4ed38a56ef9415b5ce356f7660b8b5 metadata.xml 447
SHA256 65665d792841d785709329fb8d2770006cc9888a992b0ce64f5572f4b25520ab metadata.xml 447
-MD5 3464bd4ec236d512addd68dce0e746bd files/digest-texmacs-1.0.6.6 455
-RMD160 b66e99b7ee3d2b4c07e5ec46b003e77b0fd066e1 files/digest-texmacs-1.0.6.6 455
-SHA256 8f25756ee7a77494c730e33c9117820c5ca94f5e4a58a81b9f9764baa3dbef34 files/digest-texmacs-1.0.6.6 455
-MD5 59613b256c815478114bc2e596799761 files/digest-texmacs-1.0.6.7 527
-RMD160 9f632596d9a1b8e5226cb8abe8d03b63b96b7ae4 files/digest-texmacs-1.0.6.7 527
-SHA256 15089ce77ad427a7e06b68ed684696830808e0e776f90f77dbd7ecbd923a3424 files/digest-texmacs-1.0.6.7 527
-MD5 f2cfbf8efce779fc6e1b7dc152ec9501 files/digest-texmacs-1.0.6.8 527
-RMD160 50e332171debd61d13675a7b59ab746358c88037 files/digest-texmacs-1.0.6.8 527
-SHA256 964b85c7a1181cbdd6561ba88ec0509b5a326dc155ba6a897a5e1939c82b64d5 files/digest-texmacs-1.0.6.8 527
MD5 cad5a522fd0acd6b223fd2806f99c1f1 files/digest-texmacs-1.0.6.9 527
RMD160 2646c1f5f096a322e27815d1e2287e8284924c28 files/digest-texmacs-1.0.6.9 527
SHA256 3f0db3e4eebfbfe0409bf1044a035886923bb8b70319fd1e724b7191a1d485e2 files/digest-texmacs-1.0.6.9 527
+MD5 cad5a522fd0acd6b223fd2806f99c1f1 files/digest-texmacs-1.0.6.9-r1 527
+RMD160 2646c1f5f096a322e27815d1e2287e8284924c28 files/digest-texmacs-1.0.6.9-r1 527
+SHA256 3f0db3e4eebfbfe0409bf1044a035886923bb8b70319fd1e724b7191a1d485e2 files/digest-texmacs-1.0.6.9-r1 527
diff --git a/app-office/texmacs/files/digest-texmacs-1.0.6.7 b/app-office/texmacs/files/digest-texmacs-1.0.6.7
deleted file mode 100644
index d341acd88..000000000
--- a/app-office/texmacs/files/digest-texmacs-1.0.6.7
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 baa7ef9969aeecab9460b2bead7302ae TeXmacs-1.0.6.7-src.tar.gz 3801955
-RMD160 0dd5d1a71dcdaa7404e9cddc29c2e34e3685e9d0 TeXmacs-1.0.6.7-src.tar.gz 3801955
-SHA256 6df5520a8a16a00d7dc8973a87a5eade7841b6337ae8e43c70ec3e8ca17fd206 TeXmacs-1.0.6.7-src.tar.gz 3801955
-MD5 945dfd3f76b20082aeea8131d87a260f TeXmacs-600dpi-fonts.tar.gz 2899193
-RMD160 b5a27a59ed0c178f94836b828d12d3534b506582 TeXmacs-600dpi-fonts.tar.gz 2899193
-SHA256 e8eeb3c97a1405fd037b0567f683a6d2225d47c7829893b9768bd6c1c707cc81 TeXmacs-600dpi-fonts.tar.gz 2899193
diff --git a/app-office/texmacs/files/digest-texmacs-1.0.6.8 b/app-office/texmacs/files/digest-texmacs-1.0.6.8
deleted file mode 100644
index 7d596578c..000000000
--- a/app-office/texmacs/files/digest-texmacs-1.0.6.8
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 eb279c5118ce13b0b2448dd589f4a79f TeXmacs-1.0.6.8-src.tar.gz 3836627
-RMD160 099cac803f030643d2db08a531c1c767e52f8b1e TeXmacs-1.0.6.8-src.tar.gz 3836627
-SHA256 a6f817fa3573df74095b47eee847a52f72ce285fc442eeb726219898f78441eb TeXmacs-1.0.6.8-src.tar.gz 3836627
-MD5 945dfd3f76b20082aeea8131d87a260f TeXmacs-600dpi-fonts.tar.gz 2899193
-RMD160 b5a27a59ed0c178f94836b828d12d3534b506582 TeXmacs-600dpi-fonts.tar.gz 2899193
-SHA256 e8eeb3c97a1405fd037b0567f683a6d2225d47c7829893b9768bd6c1c707cc81 TeXmacs-600dpi-fonts.tar.gz 2899193
diff --git a/app-office/texmacs/files/digest-texmacs-1.0.6.6 b/app-office/texmacs/files/digest-texmacs-1.0.6.9-r1
index db15a5830..e3df21ecc 100644
--- a/app-office/texmacs/files/digest-texmacs-1.0.6.6
+++ b/app-office/texmacs/files/digest-texmacs-1.0.6.9-r1
@@ -1,5 +1,6 @@
-RMD160 587d671fb0732a3cd80e0452a039518c2a4a7b4e TeXmacs-1.0.6.6-src.tar.gz 3789730
-SHA256 253f1d1dba7f4b5405d7d55253c35942ce8cc38dcd9e8f10e4ac5cb65cd8928d TeXmacs-1.0.6.6-src.tar.gz 3789730
+MD5 fde50d2c6a543e63be22534d77de474d TeXmacs-1.0.6.9-src.tar.gz 3840213
+RMD160 506f65b65a934f94737e4d190cc8317e74622f38 TeXmacs-1.0.6.9-src.tar.gz 3840213
+SHA256 87472e49639bfd635255df1b0c26aa6b28a80dca0782d782d263f184958a47d7 TeXmacs-1.0.6.9-src.tar.gz 3840213
MD5 945dfd3f76b20082aeea8131d87a260f TeXmacs-600dpi-fonts.tar.gz 2899193
RMD160 b5a27a59ed0c178f94836b828d12d3534b506582 TeXmacs-600dpi-fonts.tar.gz 2899193
SHA256 e8eeb3c97a1405fd037b0567f683a6d2225d47c7829893b9768bd6c1c707cc81 TeXmacs-600dpi-fonts.tar.gz 2899193
diff --git a/app-office/texmacs/files/texmacs-maxima-5.12.0.patch b/app-office/texmacs/files/texmacs-maxima-5.12.0.patch
new file mode 100644
index 000000000..0ebdc9aa7
--- /dev/null
+++ b/app-office/texmacs/files/texmacs-maxima-5.12.0.patch
@@ -0,0 +1,24 @@
+diff -U2 --recursive TeXmacs-1.0.6.9-src.orig/plugins/maxima/bin/maxima_detect TeXmacs-1.0.6.9-src/plugins/maxima/bin/maxima_detect
+--- TeXmacs-1.0.6.9-src.orig/plugins/maxima/bin/maxima_detect 2007-02-11 21:39:53.000000000 +0600
++++ TeXmacs-1.0.6.9-src/plugins/maxima/bin/maxima_detect 2007-05-05 05:31:03.000000000 +0700
+@@ -64,7 +64,8 @@
+ version 5.9.3
+ version 5.10
+-version 5.11" >/dev/null
++version 5.11
++version 5.12" >/dev/null
+ then
+- # 5.9.1 or 5.9.2 or 5.9.3 or 5.10 or 5.11
++ # 5.9.1 or 5.9.2 or 5.9.3 or 5.10 or 5.11 or 5.12
+ maxima -d | grep -F 'maxima-htmldir=' | sed -e \
+ 's/maxima-htmldir=/"/' -e 's|$|/maxima_toc.html"|'
+diff -U2 --recursive TeXmacs-1.0.6.9-src.orig/plugins/maxima/bin/tm_maxima TeXmacs-1.0.6.9-src/plugins/maxima/bin/tm_maxima
+--- TeXmacs-1.0.6.9-src.orig/plugins/maxima/bin/tm_maxima 2007-02-11 21:39:53.000000000 +0600
++++ TeXmacs-1.0.6.9-src/plugins/maxima/bin/tm_maxima 2007-05-05 05:31:20.000000000 +0700
+@@ -21,5 +21,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.*) exec maxima -u $1 -l $2 -p "$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.11.0.lisp";;
++ 5.11.* | 5.12.*) exec maxima -u $1 -l $2 -p "$TEXMACS_MAXIMA_PATH/texmacs-maxima-5.11.0.lisp";;
+ cygwin)
+ CYGWIN_ROOT="C:\cygwin"
diff --git a/app-office/texmacs/texmacs-1.0.6.6.ebuild b/app-office/texmacs/texmacs-1.0.6.6.ebuild
deleted file mode 100644
index 1d760cd59..000000000
--- a/app-office/texmacs/texmacs-1.0.6.6.ebuild
+++ /dev/null
@@ -1,79 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-# although flag-o-matic functions in portage, we should inherit it
-inherit flag-o-matic eutils
-
-MY_P=${P/tex/TeX}-src
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="GNU TeXmacs is a free GUI scientific editor, inspired by TeX and GNU Emacs."
-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="ispell aspell static"
-# TeXmacs 1.0.X-r? -> stable release, TeXmacs 1.0.X.Y -> development release
-KEYWORDS="~x86"
-
-RDEPEND="virtual/tetex
- >=dev-scheme/guile-1.4
- >=sys-apps/sed-4
- media-libs/freetype
- || ( ( x11-libs/libX11
- x11-libs/libICE )
- virtual/x11
- )
- media-libs/imlib2
- ispell? ( >=app-text/ispell-3.2 )
- aspell? ( >=app-text/aspell-0.5 )"
-
-DEPEND="${RDEPEND}
- || ( x11-proto/xproto
- virtual/x11 )
- virtual/ghostscript"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- use aspell && sed -i -e 's/ispell -a -d/aspell -a -d/' src/Plugins/Ispell/ispell.cpp
-}
-
-src_compile() {
-
- # we're not trusting texmacs optimisations here, so
- # we only want the following two
- strip-flags
- append-flags -fno-default-inline
- append-flags -fno-inline
-
- econf || die
- # and now replace the detected optimisations with our safer ones
- sed -i "s:\(^CXXOPTIMIZE = \).*:\1${CXXFLAGS}:" src/common.makefile
- # emake b0rked
- if use static ; then
- emake -j1 STATIC_TEXMACS || die
- else
- emake -j1 || die
- fi
-
-}
-
-
-src_install() {
-
- make DESTDIR=${D} install || die
- dodoc COMPILE
-
- insinto /usr/share/applications
- doins ${FILESDIR}/TeXmacs.desktop
-
- # now install the fonts
- cd ${WORKDIR}
- dodir /usr/share/texmf
- cp -r fonts ${D}/usr/share/texmf/
-
-}
diff --git a/app-office/texmacs/texmacs-1.0.6.8.ebuild b/app-office/texmacs/texmacs-1.0.6.8.ebuild
deleted file mode 100644
index f19e6739c..000000000
--- a/app-office/texmacs/texmacs-1.0.6.8.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-# although flag-o-matic functions in portage, we should inherit it
-inherit flag-o-matic eutils
-
-MY_P=${P/tex/TeX}-src
-S=${WORKDIR}/${MY_P}
-
-DESCRIPTION="GNU TeXmacs is a free GUI scientific editor, inspired by TeX and GNU Emacs."
-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="spell static"
-# TeXmacs 1.0.X-r? -> stable release, TeXmacs 1.0.X.Y -> development release
-KEYWORDS="~x86 ~amd64"
-
-RDEPEND="virtual/tetex
- >=dev-scheme/guile-1.4
- >=sys-apps/sed-4
- media-libs/freetype
- || ( ( x11-libs/libX11
- x11-libs/libICE )
- virtual/x11
- )
- media-libs/imlib2
- spell? ( || ( >=app-text/ispell-3.2 >=app-text/aspell-0.5 ) )"
-
-DEPEND="${RDEPEND}
- || ( x11-proto/xproto
- virtual/x11 )
- virtual/ghostscript"
-
-src_compile() {
-
- # we're not trusting texmacs optimisations here, so
- # we only want the following two
- strip-flags
- append-flags -fno-default-inline
- append-flags -fno-inline
-
- econf || die
- # and now replace the detected optimisations with our safer ones
- sed -i "s:\(^CXXOPTIMIZE = \).*:\1${CXXFLAGS}:" src/common.makefile
- # emake b0rked
- if use static ; then
- emake -j1 STATIC_TEXMACS || die
- else
- emake -j1 || die
- fi
-
-}
-
-
-src_install() {
-
- make DESTDIR=${D} install || die
- dodoc COMPILE
-
- insinto /usr/share/applications
- doins ${FILESDIR}/TeXmacs.desktop
-
- # now install the fonts
- cd ${WORKDIR}
- dodir /usr/share/texmf
- cp -r fonts ${D}/usr/share/texmf/
-
-}
diff --git a/app-office/texmacs/texmacs-1.0.6.7.ebuild b/app-office/texmacs/texmacs-1.0.6.9-r1.ebuild
index f19e6739c..7f1a1bab1 100644
--- a/app-office/texmacs/texmacs-1.0.6.7.ebuild
+++ b/app-office/texmacs/texmacs-1.0.6.9-r1.ebuild
@@ -35,6 +35,11 @@ DEPEND="${RDEPEND}
virtual/x11 )
virtual/ghostscript"
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}/${PN}-maxima-5.12.0.patch"
+}
+
src_compile() {
# we're not trusting texmacs optimisations here, so
diff --git a/sci-mathematics/maxima/ChangeLog b/sci-mathematics/maxima/ChangeLog
new file mode 100644
index 000000000..8a680447c
--- /dev/null
+++ b/sci-mathematics/maxima/ChangeLog
@@ -0,0 +1,219 @@
+# ChangeLog for sci-mathematics/maxima
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.28 2007/04/18 17:53:41 bicatali Exp $
+
+*maxima-5.12.0 (4 May 2007)
+ 4 May 2007; Andrey Grozin <A.G.Grozin@inp.nsk.su>
+ +maxima-5.12.0.ebuild, +files/maxima-5.12.0-xdg-utils.patch:
+ version bump
+
+ 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..f01174a66
--- /dev/null
+++ b/sci-mathematics/maxima/Manifest
@@ -0,0 +1,24 @@
+AUX 50maxima-gentoo.el 600 RMD160 c45cc012987d2a74670ad9aac2b019a1233bd151 SHA1 f05c4ce4f51f2e3d0399fa04de9d8fc8b0296386 SHA256 32cd4c9e958c96e93bb74ee324196efa8f88a90e4508c4c67733c691d6969dfe
+MD5 95fb9c201700548f3d70d62eed081a98 files/50maxima-gentoo.el 600
+RMD160 c45cc012987d2a74670ad9aac2b019a1233bd151 files/50maxima-gentoo.el 600
+SHA256 32cd4c9e958c96e93bb74ee324196efa8f88a90e4508c4c67733c691d6969dfe files/50maxima-gentoo.el 600
+AUX maxima-5.12.0-xdg-utils.patch 1331 RMD160 8ca073862f0774b758fec50a5bf476b44e741fa5 SHA1 7bf99c594ca48917e50a043d0d276fb91e854cd9 SHA256 bbde0771178713c8eee4ca226765dc3695ef23de66a78ee289efa46c1aef2090
+MD5 e4de70a18243e8702e8a5364d81abb5d files/maxima-5.12.0-xdg-utils.patch 1331
+RMD160 8ca073862f0774b758fec50a5bf476b44e741fa5 files/maxima-5.12.0-xdg-utils.patch 1331
+SHA256 bbde0771178713c8eee4ca226765dc3695ef23de66a78ee289efa46c1aef2090 files/maxima-5.12.0-xdg-utils.patch 1331
+DIST maxima-5.12.0.tar.gz 17998273 RMD160 fd8cc793de427aa1af70e614706823f948a67367 SHA1 0b96c36fe603bb429504b99b2670eeb0b2fc7c71 SHA256 8853aa6a74e273f8c545615902e0a94086f7a1fee8de55bc2f3d1873c6644b6e
+EBUILD maxima-5.12.0.ebuild 4910 RMD160 efd871e39c59a6ea71a0d4893a7f3eb764c4ee39 SHA1 fc9e1f91f64a985f3326047737525c461d8ffb77 SHA256 707d7db33bdd86c124945fc58d5d0539b108db6ab9cdc1d497a8677436b92fff
+MD5 d3d8b7e79d0fd53851f7f36d6776c38c maxima-5.12.0.ebuild 4910
+RMD160 efd871e39c59a6ea71a0d4893a7f3eb764c4ee39 maxima-5.12.0.ebuild 4910
+SHA256 707d7db33bdd86c124945fc58d5d0539b108db6ab9cdc1d497a8677436b92fff maxima-5.12.0.ebuild 4910
+MISC ChangeLog 8687 RMD160 5763962539fcc641df42d59f6bf2d7eda87433db SHA1 4b8a2922bc5add74ec3b964ed136bbb69535dfd7 SHA256 3e5c1dfd5316131fc4ef6e7c3b656bc78004f2e67fc8fca4386ab12d1dc1e4f3
+MD5 caf85dabf1a974eed7aa0c6070311b5d ChangeLog 8687
+RMD160 5763962539fcc641df42d59f6bf2d7eda87433db ChangeLog 8687
+SHA256 3e5c1dfd5316131fc4ef6e7c3b656bc78004f2e67fc8fca4386ab12d1dc1e4f3 ChangeLog 8687
+MISC metadata.xml 737 RMD160 6f833e02ea5b87a66064c32e7c35889c63c96649 SHA1 bff378e387662ce5e4c4168c74ee7ff1493c41a4 SHA256 9deb0b30538b6d35c0877384b97620eda2dde0bf3b4c702ccdadb007e868daef
+MD5 747fd88897ef9ae5002fa891864f42aa metadata.xml 737
+RMD160 6f833e02ea5b87a66064c32e7c35889c63c96649 metadata.xml 737
+SHA256 9deb0b30538b6d35c0877384b97620eda2dde0bf3b4c702ccdadb007e868daef metadata.xml 737
+MD5 5749b0b53323500c1392bdb5b0dddd09 files/digest-maxima-5.12.0 247
+RMD160 2dc1cede912492e5901f8e068612ce8e4dd3f61b files/digest-maxima-5.12.0 247
+SHA256 7d78353cc4ca8b2efb6b80d33e81b9c6abdd3c5c473defa79a0b5cd147af5e35 files/digest-maxima-5.12.0 247
diff --git a/sci-mathematics/maxima/files/50maxima-gentoo.el b/sci-mathematics/maxima/files/50maxima-gentoo.el
new file mode 100644
index 000000000..cbba83115
--- /dev/null
+++ b/sci-mathematics/maxima/files/50maxima-gentoo.el
@@ -0,0 +1,12 @@
+;; 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)
diff --git a/sci-mathematics/maxima/files/digest-maxima-5.12.0 b/sci-mathematics/maxima/files/digest-maxima-5.12.0
new file mode 100644
index 000000000..77d26230d
--- /dev/null
+++ b/sci-mathematics/maxima/files/digest-maxima-5.12.0
@@ -0,0 +1,3 @@
+MD5 0cc3c006ffc94e4f922161b6e6b98f11 maxima-5.12.0.tar.gz 17998273
+RMD160 fd8cc793de427aa1af70e614706823f948a67367 maxima-5.12.0.tar.gz 17998273
+SHA256 8853aa6a74e273f8c545615902e0a94086f7a1fee8de55bc2f3d1873c6644b6e maxima-5.12.0.tar.gz 17998273
diff --git a/sci-mathematics/maxima/files/maxima-5.12.0-xdg-utils.patch b/sci-mathematics/maxima/files/maxima-5.12.0-xdg-utils.patch
new file mode 100644
index 000000000..8f6cb64e8
--- /dev/null
+++ b/sci-mathematics/maxima/files/maxima-5.12.0-xdg-utils.patch
@@ -0,0 +1,31 @@
+diff -U2 --recursive maxima-5.12.0.orig/interfaces/emacs/misc/bookmode.el maxima-5.12.0/interfaces/emacs/misc/bookmode.el
+--- maxima-5.12.0.orig/interfaces/emacs/misc/bookmode.el 2000-05-08 13:09:44.000000000 +0700
++++ maxima-5.12.0/interfaces/emacs/misc/bookmode.el 2007-05-04 17:31:33.000000000 +0700
+@@ -681,5 +681,5 @@
+ (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))
+ ))
+@@ -706,5 +706,5 @@
+ (cond ((looking-at "%PS") "")
+ (t "gzip -dc | "))
+- "ghostview -")
++ "xdg-open -")
+
+ )))
+diff -U2 --recursive maxima-5.12.0.orig/interfaces/xmaxima/Tkmaxima/Constants.tcl maxima-5.12.0/interfaces/xmaxima/Tkmaxima/Constants.tcl
+--- maxima-5.12.0.orig/interfaces/xmaxima/Tkmaxima/Constants.tcl 2006-10-02 05:42:48.000000000 +0700
++++ maxima-5.12.0/interfaces/xmaxima/Tkmaxima/Constants.tcl 2007-05-04 17:34:36.000000000 +0700
+@@ -144,7 +144,7 @@
+ image/png netmath
+ image/jpeg netmath
+- application/postscript "ghostview -safer %s"
+- application/pdf "acroread %s"
+- application/x-dvi "xdvi %s"
++ application/postscript "xdg-open %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.12.0.ebuild b/sci-mathematics/maxima/maxima-5.12.0.ebuild
new file mode 100644
index 000000000..d5ac16f93
--- /dev/null
+++ b/sci-mathematics/maxima/maxima-5.12.0.ebuild
@@ -0,0 +1,170 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils elisp-common autotools
+
+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"
+IUSE="cmucl clisp sbcl gcl tetex emacs tk nls unicode"
+
+# rlwrap is recommended for cmucl and sbcl
+RDEPEND=">=sci-visualization/gnuplot-4.0
+ x11-misc/xdg-utils
+ tetex? ( virtual/tetex )
+ emacs? ( virtual/emacs
+ tetex? ( || ( app-emacs/auctex app-xemacs/auctex ) ) )
+ clisp? ( >=dev-lisp/clisp-2.33.2-r1 )
+ gcl? ( >=dev-lisp/gcl-2.6.7 )
+ sbcl? ( >=dev-lisp/sbcl-0.9.4 app-misc/rlwrap )
+ cmucl? ( >=dev-lisp/cmucl-19a app-misc/rlwrap )
+ !clisp? ( !sbcl? ( !cmucl? ( >=dev-lisp/gcl-2.6.7 ) ) )
+ tk? ( >=dev-lang/tk-8.3.3 )"
+
+DEPEND="${RDEPEND} >=sys-apps/texinfo-4.3"
+# the make install already strips maxima exec.
+RESTRICT="strip"
+
+LANGS="es pt pt_BR"
+
+for lang in ${LANGS}; do
+ IUSE="${IUSE} linguas_${lang}"
+done
+
+pkg_setup() {
+# Don't install in the main tree, as this may cause file collisions
+ if use tetex; 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 ! built_with_use -a sci-visualization/gnuplot png gd; then
+ elog "To benefit full plotting capability of maxima,"
+ elog "enable the png and gd USE flags enabled for"
+ elog "both sci-visualization/gnuplot and media-libs/gd"
+ elog "Then re-emerge maxima"
+ epause 5
+ fi
+
+ # enable gcl if no other lisp selected
+ if use gcl || (! use cmucl && ! use clisp && ! use sbcl ); then
+ if ! built_with_use dev-lisp/gcl ansi; then
+ eerror "GCL must be installed with ANSI."
+ eerror "Try USE=\"ansi\" emerge gcl"
+ die "This package needs gcl with USE=ansi"
+ fi
+ enablegcl="--enable-gcl"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ # use xdg-open to view ps, pdf
+ epatch "${FILESDIR}/${P}-xdg-utils.patch"
+}
+
+src_compile() {
+ # automake version mismatch otherwise (sbcl only)
+ use sbcl && eautoreconf
+
+ # remove rmaxima if neither cmucl nor sbcl
+ if ! use sbcl && ! use cmucl ; then
+ sed -i -e '/^@WIN32_FALSE@bin_SCRIPTS/s/rmaxima//' src/Makefile.in
+ fi
+
+ # remove xmaxima if no tk
+ local myconf="${enablegcl}"
+ if use tk; then
+ myconf="${myconf} --with-wish=wish"
+ else
+ myconf="${myconf} --with-wish=none"
+ sed -i -e '/^SUBDIRS/s/xmaxima//' interfaces/Makefile.in
+ 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 \
+ $(use_enable cmucl) \
+ $(use_enable clisp) \
+ $(use_enable sbcl) \
+ ${myconf} \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ use tk && make_desktop_entry xmaxima xmaxima \
+ /usr/share/${PN}/${PV}/xmaxima/maxima-new.png
+
+ use emacs && \
+ elisp-site-file-install "${FILESDIR}/50maxima-gentoo.el"
+
+ if use tetex; then
+ insinto "${MAXIMA_TEXMFDIR}/tex/latex/emaxima"
+ doins interfaces/emacs/emaxima/emaxima.sty
+ fi
+
+ insinto "/usr/share/${PN}/${PV}/doc"
+ doins AUTHORS ChangeLog COPYING NEWS README*
+ dodir /usr/share/doc
+ dosym "/usr/share/${PN}/${PV}/doc" "/usr/share/doc/${PF}"
+}
+
+pkg_preinst() {
+ # all lisps do not bunzip2 info files on the fly
+ for infofile in $(ls ${D}/usr/share/info/*.bz2); do
+ bunzip2 "${infofile}"
+ done
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+ use tetex && 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>