aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortulku <tulku@32389bae-6d03-0410-99cf-db05cde120eb>2006-01-31 02:24:58 +0000
committertulku <tulku@32389bae-6d03-0410-99cf-db05cde120eb>2006-01-31 02:24:58 +0000
commit0a8736a31ec0ea4b24e4c802b09846e0458c44ab (patch)
treeac5dfb2774831ad24c12658b3e4ed7014f8e8db5 /sci-mathematics
parentmaxima-5.9.2.ebuild: changed gnuplot category for sci-visualisation (diff)
downloadsci-0a8736a31ec0ea4b24e4c802b09846e0458c44ab.tar.gz
sci-0a8736a31ec0ea4b24e4c802b09846e0458c44ab.tar.bz2
sci-0a8736a31ec0ea4b24e4c802b09846e0458c44ab.zip
Version bump
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@88 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/octave-forge/ChangeLog123
-rw-r--r--sci-mathematics/octave-forge/Manifest14
-rw-r--r--sci-mathematics/octave-forge/files/digest-octave-forge-2004.11.16-r11
-rw-r--r--sci-mathematics/octave-forge/files/digest-octave-forge-2004.11.16-r21
-rw-r--r--sci-mathematics/octave-forge/files/digest-octave-forge-2005.06.131
-rw-r--r--sci-mathematics/octave-forge/files/digest-octave-forge-2005.06.13-r11
-rw-r--r--sci-mathematics/octave-forge/files/digest-octave-forge-2006.01.281
-rw-r--r--sci-mathematics/octave-forge/files/octave-forge-mex.patch41
-rw-r--r--sci-mathematics/octave-forge/files/octave-forge-randmtzig.patch11
-rw-r--r--sci-mathematics/octave-forge/metadata.xml5
-rw-r--r--sci-mathematics/octave-forge/octave-forge-2004.11.16-r1.ebuild71
-rw-r--r--sci-mathematics/octave-forge/octave-forge-2004.11.16-r2.ebuild71
-rw-r--r--sci-mathematics/octave-forge/octave-forge-2005.06.13-r1.ebuild72
-rw-r--r--sci-mathematics/octave-forge/octave-forge-2005.06.13.ebuild72
-rw-r--r--sci-mathematics/octave-forge/octave-forge-2006.01.28.ebuild69
-rw-r--r--sci-mathematics/octave/ChangeLog268
-rw-r--r--sci-mathematics/octave/Manifest13
-rw-r--r--sci-mathematics/octave/files/digest-octave-2.1.57-r11
-rw-r--r--sci-mathematics/octave/files/digest-octave-2.1.691
-rw-r--r--sci-mathematics/octave/files/digest-octave-2.1.711
-rw-r--r--sci-mathematics/octave/files/digest-octave-2.1.71-r11
-rw-r--r--sci-mathematics/octave/files/digest-octave-2.1.71-r21
-rw-r--r--sci-mathematics/octave/files/digest-octave-2.1.721
-rw-r--r--sci-mathematics/octave/metadata.xml5
-rw-r--r--sci-mathematics/octave/octave-2.1.57-r1.ebuild122
-rw-r--r--sci-mathematics/octave/octave-2.1.69.ebuild119
-rw-r--r--sci-mathematics/octave/octave-2.1.71-r1.ebuild106
-rw-r--r--sci-mathematics/octave/octave-2.1.71.ebuild113
-rw-r--r--sci-mathematics/octave/octave-2.1.72.ebuild122
29 files changed, 1428 insertions, 0 deletions
diff --git a/sci-mathematics/octave-forge/ChangeLog b/sci-mathematics/octave-forge/ChangeLog
new file mode 100644
index 000000000..335aafc7b
--- /dev/null
+++ b/sci-mathematics/octave-forge/ChangeLog
@@ -0,0 +1,123 @@
+# ChangeLog for sci-mathematics/octave-forge
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave-forge/ChangeLog,v 1.12 2005/10/01 21:54:30 ribosome Exp $
+
+* octave-forge-2006.01.28 (30 Jan 2006)
+
+ 30 Jan 2006; Lucas Chiesa <lucas.chiesa@gmail.com> octave-forge-2006.01.28.ebuild:
+ Version bump. Removed the two patches because they were fixed in source.
+ Bug #120979
+
+*octave-forge-2005.06.13-r1 (01 Oct 2005)
+*octave-forge-2004.11.16-r2 (01 Oct 2005)
+
+ 01 Oct 2005; Olivier Fisette <ribosome@gentoo.org>
+ octave-forge-2004.11.16-r1.ebuild, +octave-forge-2004.11.16-r2.ebuild,
+ +octave-forge-2005.06.13-r1.ebuild:
+ New revisions using ncurses in place of libtermcap-compat (see bug #103105).
+
+ 21 Aug 2005; Olivier Fisette <ribosome@gentoo.org>
+ -files/2004.11.16.patch, +files/octave-forge-mex.patch,
+ +files/octave-forge-randmtzig.patch:
+ Added mex and randmtzig patches (fixes bug #99783). Thanks to Federico
+ Zenith <zenith@chemeng.ntnu.no>.
+
+*octave-forge-2005.06.13 (20 Aug 2005)
+
+ 20 Aug 2005; Olivier Fisette <ribosome@gentoo.org>
+ +octave-forge-2005.06.13.ebuild:
+ New version. Depends strictly on Octave 2.69 rather than 2.69 or later like
+ previous ebuilds (see bug #99781). This dependency should be kept in sync as
+ new versions of Octave and Octave-Forge are released.
+
+ 26 Jun 2005; Olivier Fisette <ribosome@gentoo.org>
+ -files/octave-2.1.57+.patch, -files/octave-forge-2004.02.12-fPIC.patch,
+ -octave-forge-2004.02.12.ebuild, -octave-forge-2004.02.12-r1.ebuild,
+ -octave-forge-2004.11.16.ebuild, octave-forge-2004.11.16-r1.ebuild:
+ Stable x86 and amd64. Removed obsolete versions.
+
+*octave-forge-2004.02.12-r1 (10 Mar 2005)
+
+ 10 Mar 2005; Patrick Kursawe <phosphan@gentoo.org>
+ +octave-forge-2004.02.12-r1.ebuild, octave-forge-2004.02.12.ebuild:
+ Fixing bug #84366 (wrong path to graceplot) for old version
+
+*octave-forge-2004.11.16-r1 (08 Mar 2005)
+
+ 08 Mar 2005; Patrick Kursawe <phosphan@gentoo.org>
+ +octave-forge-2004.11.16-r1.ebuild:
+ Fixing bug #84366 (wrong path to graceplot)
+
+ 12 Feb 2005; Robin H. Johnson <robbat2@gentoo.org>
+ octave-forge-2004.11.16.ebuild:
+ Put in a fix to allow aurecord to build when X isn't installed.
+
+ 18 Jan 2005; Patrick Kursawe <phosphan@gentoo.org>
+ octave-forge-2004.02.12.ebuild:
+ Fixing range of allowed octave versions
+
+ 17 Jan 2005; Patrick Kursawe <phosphan@gentoo.org>
+ octave-forge-2004.02.12.ebuild:
+ Updating DEPEND
+
+*octave-forge-2004.11.16 (17 Jan 2005)
+
+ 17 Jan 2005; Patrick Kursawe <phosphan@gentoo.org> +files/2004.11.16.patch
+ +octave-forge-2004.11.16.ebuild:
+ Version bump
+
+*octave-forge-2003.02.22 (28 Dec 2004)
+
+ 28 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml,
+ +files/octave-2.1.57+.patch, +files/octave-forge-2004.02.12-fPIC.patch,
+ +octave-forge-2003.02.22.ebuild, +octave-forge-2003.06.02.ebuild,
+ +octave-forge-2004.02.12.ebuild:
+ Moved from app-sci/octave-forge to sci-mathematics/octave-forge.
+
+ 06 Jun 2004; Danny van Dyk <kugelfang@gentoo.org>
+ octave-forge-2004.02.12.ebuild:
+ Marked stable on amd64.
+
+ 23 Mar 2004; Patrick Kursawe <phosphan@gentoo.org>
+ octave-forge-2004.02.12.ebuild:
+ Added patch for octave-2.1.57+ from
+ http://www.octave.org/mailing-lists/bug-octave/2004/182 - thanks to Jonathan
+ Stickel <jjstickel@sbcglobal.net> for the hint.
+
+ 17 Mar 2004; Daniel Ahlberg <aliz@gentoo.org>
+ octave-forge-2004.02.12.ebuild:
+ Adding amd64 keyword. Closing #42350.
+
+*octave-forge-2004.02.12 (10 Mar 2004)
+
+ 10 Mar 2004; Patrick Kursawe <phosphan@gentoo.org>
+ octave-forge-2003.06.02.ebuild, octave-forge-2004.02.12.ebuild:
+ New version, requires a few more tweaks in ebuild.
+
+ 09 Mar 2004; Patrick Kursawe <phosphan@gentoo.org>
+ octave-forge-2003.02.22.ebuild, octave-forge-2003.06.02.ebuild:
+ Added virtual/tetex to DEPEND
+
+ 18 Oct 2003; Chuck Short <zul@gentoo.org> octave-forge-2003.06.02.ebuild:
+ Added ~sparc to keywords.
+
+ 09 Oct 2003; David Holm <dholm@gentoo.org> octave-forge-2003.06.02.ebuild:
+ Added to ~ppc.
+
+*octave-forge-2003.06.02 (23 Aug 2003)
+
+ 23 Aug 2003; George Shapovalov <george@gentoo.org> octave-forge-2003.06.02.ebuild :
+ new version (#20087)
+ should now work with all version of GNU/Octave from v2.1.39 to the latest version (v2.1.49).
+ ebuild updated by Shaun Cloherty <s.cloherty@gsbme.unsw.edu.au>
+
+ 10 Jun 2003; <msterret@gentoo.org> octave-forge-2003.02.22.ebuild:
+ DEPEND on sed >= 4
+
+*octave-forge-2003.02.22.ebuild (09 Jun 2003)
+
+ 09 Jun 2003; George Shapovalov <george@gentoo.org> Manifest, octave-forge-2003.02.22.ebuild, files/{digest-octave-forge-2003.02.22} :
+ initial release (#20087)
+ A collection of custom scripts, functions and extensions for GNU Octave
+ ebuild submitted by Brent Redeker <bredeker@cc.edu>
+ update submitted by Shaun Cloherty <s.cloherty@gsbme.unsw.edu.au>
diff --git a/sci-mathematics/octave-forge/Manifest b/sci-mathematics/octave-forge/Manifest
new file mode 100644
index 000000000..56a07ea9d
--- /dev/null
+++ b/sci-mathematics/octave-forge/Manifest
@@ -0,0 +1,14 @@
+MD5 c32f90a03a488ec16cf18c8c472b8cc7 ChangeLog 4884
+MD5 3aacf6f3c335a1f63edef94a9bd7011a files/digest-octave-forge-2004.11.16-r1 76
+MD5 3aacf6f3c335a1f63edef94a9bd7011a files/digest-octave-forge-2004.11.16-r2 76
+MD5 cfc1fc06a341728e53b81d09d6376dea files/digest-octave-forge-2005.06.13 76
+MD5 cfc1fc06a341728e53b81d09d6376dea files/digest-octave-forge-2005.06.13-r1 76
+MD5 8f3c1504d5ec0fbf321777004fc0549b files/digest-octave-forge-2006.01.28 76
+MD5 64ae87b1b1190c6a51f7dfd91be73d05 files/octave-forge-mex.patch 1580
+MD5 e1393e9f0f19ccc9e6192c227cccc644 files/octave-forge-randmtzig.patch 428
+MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
+MD5 9c1f0cdc188f3c183d9f523635926b47 octave-forge-2004.11.16-r1.ebuild 2271
+MD5 3334f713282804a5632cbef98de4d46a octave-forge-2004.11.16-r2.ebuild 2259
+MD5 fb924747cbcd79b9a4f4bc7b4e0634bd octave-forge-2005.06.13-r1.ebuild 2319
+MD5 c0b992412fda6a292815ccacec4c3fec octave-forge-2005.06.13.ebuild 2326
+MD5 c2fff36f43b47571719562f038a29ecd octave-forge-2006.01.28.ebuild 2240
diff --git a/sci-mathematics/octave-forge/files/digest-octave-forge-2004.11.16-r1 b/sci-mathematics/octave-forge/files/digest-octave-forge-2004.11.16-r1
new file mode 100644
index 000000000..21c0054a6
--- /dev/null
+++ b/sci-mathematics/octave-forge/files/digest-octave-forge-2004.11.16-r1
@@ -0,0 +1 @@
+MD5 a8e52c27159a110a26ab57c10d3883b0 octave-forge-2004.11.16.tar.gz 3639093
diff --git a/sci-mathematics/octave-forge/files/digest-octave-forge-2004.11.16-r2 b/sci-mathematics/octave-forge/files/digest-octave-forge-2004.11.16-r2
new file mode 100644
index 000000000..21c0054a6
--- /dev/null
+++ b/sci-mathematics/octave-forge/files/digest-octave-forge-2004.11.16-r2
@@ -0,0 +1 @@
+MD5 a8e52c27159a110a26ab57c10d3883b0 octave-forge-2004.11.16.tar.gz 3639093
diff --git a/sci-mathematics/octave-forge/files/digest-octave-forge-2005.06.13 b/sci-mathematics/octave-forge/files/digest-octave-forge-2005.06.13
new file mode 100644
index 000000000..b04974e6d
--- /dev/null
+++ b/sci-mathematics/octave-forge/files/digest-octave-forge-2005.06.13
@@ -0,0 +1 @@
+MD5 cf82a74d27636abf07f1732b4851f2e2 octave-forge-2005.06.13.tar.gz 3680082
diff --git a/sci-mathematics/octave-forge/files/digest-octave-forge-2005.06.13-r1 b/sci-mathematics/octave-forge/files/digest-octave-forge-2005.06.13-r1
new file mode 100644
index 000000000..b04974e6d
--- /dev/null
+++ b/sci-mathematics/octave-forge/files/digest-octave-forge-2005.06.13-r1
@@ -0,0 +1 @@
+MD5 cf82a74d27636abf07f1732b4851f2e2 octave-forge-2005.06.13.tar.gz 3680082
diff --git a/sci-mathematics/octave-forge/files/digest-octave-forge-2006.01.28 b/sci-mathematics/octave-forge/files/digest-octave-forge-2006.01.28
new file mode 100644
index 000000000..840407c16
--- /dev/null
+++ b/sci-mathematics/octave-forge/files/digest-octave-forge-2006.01.28
@@ -0,0 +1 @@
+MD5 77bf68f642df58cb88fe87fb9ecbb782 octave-forge-2006.01.28.tar.gz 3741016
diff --git a/sci-mathematics/octave-forge/files/octave-forge-mex.patch b/sci-mathematics/octave-forge/files/octave-forge-mex.patch
new file mode 100644
index 000000000..f712ceba9
--- /dev/null
+++ b/sci-mathematics/octave-forge/files/octave-forge-mex.patch
@@ -0,0 +1,41 @@
+diff -ru ../octave-forge-2004.11.16.orig/extra/mex/Makefile ./extra/mex/Makefile
+--- ../octave-forge-2004.11.16.orig/extra/mex/Makefile 2004-11-16 07:56:42.000000000 +0100
++++ ./extra/mex/Makefile 2005-01-17 12:22:39.271524116 +0100
+@@ -43,23 +43,23 @@
+ $(INSTALL_DATA) matrix.h $(LIBPATH)/matrix.h ; \
+ fi
+ endif
+- @if ! test -e $(man1dir) ; then \
+- echo creating $(man1dir) ; \
+- $(INSTALL) -d $(man1dir) ; \
++ @if ! test -e $(DESTDIR)/$(man1dir) ; then \
++ echo creating $(DESTDIR)/$(man1dir) ; \
++ $(INSTALL) -d $(DESTDIR)/$(man1dir) ; \
+ fi
+- @if test -d $(man1dir) ; then \
+- echo installing mex/mex.1 in $(man1dir) ; \
+- $(RM) $(man1dir)/mex.1; \
+- $(INSTALL_DATA) mex.1 $(man1dir)/mex.1 ; \
++ @if test -d $(DESTDIR)/$(man1dir) ; then \
++ echo installing mex/mex.1 in $(DESTDIR)/$(man1dir) ; \
++ $(RM) $(DESTDIR)/$(man1dir)/mex.1; \
++ $(INSTALL_DATA) mex.1 $(DESTDIR)/$(man1dir)/mex.1 ; \
+ fi
+- @if ! test -e $(bindir) ; then \
+- echo creating $(bindir) ; \
+- $(INSTALL) -d $(bindir) ; \
++ @if ! test -e $(DESTDIR)/$(bindir) ; then \
++ echo creating $(DESTDIR)/$(bindir) ; \
++ $(INSTALL) -d $(DESTDIR)/$(bindir) ; \
+ fi
+- @if test -d $(bindir) ; then \
+- echo installing mex/mex in $(bindir) ; \
+- $(RM) $(bindir)/mex ; \
+- $(INSTALL_SCRIPT) mex $(bindir)/mex ; \
++ @if test -d $(DESTDIR)/$(bindir) ; then \
++ echo installing mex/mex in $(DESTDIR)/$(bindir) ; \
++ $(RM) $(DESTDIR)/$(bindir)/mex ; \
++ $(INSTALL_SCRIPT) mex $(DESTDIR)/$(bindir)/mex ; \
+ fi
+
+ clean: ; $(RM) mex mex_* $(MEXLIB) *.o *.oct core octave-core *~
diff --git a/sci-mathematics/octave-forge/files/octave-forge-randmtzig.patch b/sci-mathematics/octave-forge/files/octave-forge-randmtzig.patch
new file mode 100644
index 000000000..6b9169819
--- /dev/null
+++ b/sci-mathematics/octave-forge/files/octave-forge-randmtzig.patch
@@ -0,0 +1,11 @@
+diff -pur octave-forge-2005.06.13/FIXES/randmtzig.c octave-forge-2005.06.13.patched/FIXES/randmtzig.c
+--- octave-forge-2005.06.13/FIXES/randmtzig.c 2005-05-28 18:08:43.000000000 +0200
++++ octave-forge-2005.06.13.patched/FIXES/randmtzig.c 2005-07-21 12:50:02.000000000 +0200
+@@ -153,6 +153,7 @@
+ instead.
+ */
+ #include <sys/types.h>
++#include <stdint.h>
+
+
+ /* XXX FIXME XXX may want to suppress X86 if sizeof(long)>4 */
diff --git a/sci-mathematics/octave-forge/metadata.xml b/sci-mathematics/octave-forge/metadata.xml
new file mode 100644
index 000000000..b229aec85
--- /dev/null
+++ b/sci-mathematics/octave-forge/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+</pkgmetadata>
diff --git a/sci-mathematics/octave-forge/octave-forge-2004.11.16-r1.ebuild b/sci-mathematics/octave-forge/octave-forge-2004.11.16-r1.ebuild
new file mode 100644
index 000000000..923581447
--- /dev/null
+++ b/sci-mathematics/octave-forge/octave-forge-2004.11.16-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave-forge/octave-forge-2004.11.16-r1.ebuild,v 1.4 2005/10/01 21:54:30 ribosome Exp $
+
+inherit eutils
+
+DESCRIPTION="A collection of custom scripts, functions and extensions for GNU Octave"
+HOMEPAGE="http://octave.sourceforge.net/"
+SRC_URI="mirror://sourceforge/octave/${P}.tar.gz"
+
+LICENSE="as-is"
+KEYWORDS="~x86 ~ppc ~sparc ~amd64"
+SLOT="0"
+IUSE="ginac qhull"
+
+DEPEND=">=sci-mathematics/octave-2.1.62
+ >=sys-apps/sed-4
+ sys-libs/libtermcap-compat
+ !amd64? ( ginac? ( sci-mathematics/ginac ) )
+ qhull? ( >=media-libs/qhull-3.1-r1 )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-mex.patch
+
+ # make it compile when X isn't installed. The source file there really
+ # doesn't need X at all.
+ # 02 Feb 2005, Robin H. Johnson <robbat2@gentoo.org>
+ sed -e '/#include <X11/d' -i ${S}/main/audio/aurecord.cc
+}
+
+src_compile() {
+ econf || die "econf failed"
+
+ # this must be done before the *PATH variables are changed
+ cd extra/graceplot && make grace_octave_path.m
+ cd ${S}
+
+ # The *PATH variables need to be changed, or they will
+ # cause Portage access violations. They cannot be easily set just using
+ # arguments passed to ./configure (at least, they can not easily be set
+ # correctly)
+ echo -en "Modifying paths..."
+ for path in M O X ALTM ALTO; do
+ sed -i "s|^\(${path}PATH = \)|\1${D}|" Makeconf || \
+ die "failed to modify ${path}PATH"
+ done
+ echo -e "done.\n"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "install failed"
+
+ # strip the fudged install paths
+ sed -i "s|${D}||g" ${D}/usr/bin/mex || die "sed failed"
+
+ dodoc AUTHORS COPYING* ChangeLog INDEX RELEASE-NOTES TODO
+}
+
+pkg_postinst() {
+ einfo "If you do not have GiNaC and Qhull installed, octave-forge did not"
+ einfo "compile itself with support for the geometry and symbolic math"
+ einfo "extensions. If you would like these features, please emerge ginac"
+ einfo "and/or qhull and then re-emerge octave-forge. Alternately, you can"
+ einfo "specify USE='ginac qhull' and re-emerge octave-forge; in that case"
+ einfo "the ebuild will automatically install the additional packages."
+}
+
diff --git a/sci-mathematics/octave-forge/octave-forge-2004.11.16-r2.ebuild b/sci-mathematics/octave-forge/octave-forge-2004.11.16-r2.ebuild
new file mode 100644
index 000000000..ca06dec55
--- /dev/null
+++ b/sci-mathematics/octave-forge/octave-forge-2004.11.16-r2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave-forge/octave-forge-2004.11.16-r2.ebuild,v 1.1 2005/10/01 21:54:30 ribosome Exp $
+
+inherit eutils
+
+DESCRIPTION="A collection of custom scripts, functions and extensions for GNU Octave"
+HOMEPAGE="http://octave.sourceforge.net/"
+SRC_URI="mirror://sourceforge/octave/${P}.tar.gz"
+
+LICENSE="as-is"
+KEYWORDS="x86 ~ppc ~sparc amd64"
+SLOT="0"
+IUSE="ginac qhull"
+
+DEPEND=">=sci-mathematics/octave-2.1.62
+ >=sys-apps/sed-4
+ sys-libs/ncurses
+ !amd64? ( ginac? ( sci-mathematics/ginac ) )
+ qhull? ( >=media-libs/qhull-3.1-r1 )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-mex.patch
+
+ # make it compile when X isn't installed. The source file there really
+ # doesn't need X at all.
+ # 02 Feb 2005, Robin H. Johnson <robbat2@gentoo.org>
+ sed -e '/#include <X11/d' -i ${S}/main/audio/aurecord.cc
+}
+
+src_compile() {
+ econf || die "econf failed"
+
+ # this must be done before the *PATH variables are changed
+ cd extra/graceplot && make grace_octave_path.m
+ cd ${S}
+
+ # The *PATH variables need to be changed, or they will
+ # cause Portage access violations. They cannot be easily set just using
+ # arguments passed to ./configure (at least, they can not easily be set
+ # correctly)
+ echo -en "Modifying paths..."
+ for path in M O X ALTM ALTO; do
+ sed -i "s|^\(${path}PATH = \)|\1${D}|" Makeconf || \
+ die "failed to modify ${path}PATH"
+ done
+ echo -e "done.\n"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "install failed"
+
+ # strip the fudged install paths
+ sed -i "s|${D}||g" ${D}/usr/bin/mex || die "sed failed"
+
+ dodoc AUTHORS COPYING* ChangeLog INDEX RELEASE-NOTES TODO
+}
+
+pkg_postinst() {
+ einfo "If you do not have GiNaC and Qhull installed, octave-forge did not"
+ einfo "compile itself with support for the geometry and symbolic math"
+ einfo "extensions. If you would like these features, please emerge ginac"
+ einfo "and/or qhull and then re-emerge octave-forge. Alternately, you can"
+ einfo "specify USE='ginac qhull' and re-emerge octave-forge; in that case"
+ einfo "the ebuild will automatically install the additional packages."
+}
+
diff --git a/sci-mathematics/octave-forge/octave-forge-2005.06.13-r1.ebuild b/sci-mathematics/octave-forge/octave-forge-2005.06.13-r1.ebuild
new file mode 100644
index 000000000..b16dc1322
--- /dev/null
+++ b/sci-mathematics/octave-forge/octave-forge-2005.06.13-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave-forge/octave-forge-2005.06.13-r1.ebuild,v 1.1 2005/10/01 21:54:30 ribosome Exp $
+
+inherit eutils
+
+DESCRIPTION="A collection of custom scripts, functions and extensions for GNU Octave"
+HOMEPAGE="http://octave.sourceforge.net/"
+SRC_URI="mirror://sourceforge/octave/${P}.tar.gz"
+
+LICENSE="as-is"
+KEYWORDS="~x86 ~ppc ~sparc ~amd64"
+SLOT="0"
+IUSE="ginac qhull"
+
+DEPEND="=sci-mathematics/octave-2.1.69*
+ >=sys-apps/sed-4
+ sys-libs/ncurses
+ !amd64? ( ginac? ( sci-mathematics/ginac ) )
+ qhull? ( >=media-libs/qhull-3.1-r1 )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-mex.patch
+ epatch ${FILESDIR}/${PN}-randmtzig.patch
+
+ # make it compile when X isn't installed. The source file there really
+ # doesn't need X at all.
+ # 02 Feb 2005, Robin H. Johnson <robbat2@gentoo.org>
+ sed -e '/#include <X11/d' -i ${S}/main/audio/aurecord.cc
+}
+
+src_compile() {
+ econf --enable-shared || die "econf failed"
+
+ # this must be done before the *PATH variables are changed
+ cd extra/graceplot && make grace_octave_path.m
+ cd ${S}
+
+ # The *PATH variables need to be changed, or they will
+ # cause Portage access violations. They cannot be easily set just using
+ # arguments passed to ./configure (at least, they can not easily be set
+ # correctly)
+ echo -en "Modifying paths..."
+ for path in M O X ALTM ALTO; do
+ sed -i "s|^\(${path}PATH = \)|\1${D}|" Makeconf || \
+ die "failed to modify ${path}PATH"
+ done
+ echo -e "done.\n"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "install failed"
+
+ # strip the fudged install paths
+ sed -i "s|${D}||g" ${D}/usr/bin/mex || die "sed failed"
+
+ dodoc AUTHORS COPYING* ChangeLog INDEX RELEASE-NOTES TODO
+}
+
+pkg_postinst() {
+ einfo "If you do not have GiNaC and Qhull installed, octave-forge did not"
+ einfo "compile itself with support for the geometry and symbolic math"
+ einfo "extensions. If you would like these features, please emerge ginac"
+ einfo "and/or qhull and then re-emerge octave-forge. Alternately, you can"
+ einfo "specify USE='ginac qhull' and re-emerge octave-forge; in that case"
+ einfo "the ebuild will automatically install the additional packages."
+}
+
diff --git a/sci-mathematics/octave-forge/octave-forge-2005.06.13.ebuild b/sci-mathematics/octave-forge/octave-forge-2005.06.13.ebuild
new file mode 100644
index 000000000..4827fa7c5
--- /dev/null
+++ b/sci-mathematics/octave-forge/octave-forge-2005.06.13.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave-forge/octave-forge-2005.06.13.ebuild,v 1.3 2005/08/21 18:56:45 ribosome Exp $
+
+inherit eutils
+
+DESCRIPTION="A collection of custom scripts, functions and extensions for GNU Octave"
+HOMEPAGE="http://octave.sourceforge.net/"
+SRC_URI="mirror://sourceforge/octave/${P}.tar.gz"
+
+LICENSE="as-is"
+KEYWORDS="~x86 ~ppc ~sparc ~amd64"
+SLOT="0"
+IUSE="ginac qhull"
+
+DEPEND="=sci-mathematics/octave-2.1.69*
+ >=sys-apps/sed-4
+ sys-libs/libtermcap-compat
+ !amd64? ( ginac? ( sci-mathematics/ginac ) )
+ qhull? ( >=media-libs/qhull-3.1-r1 )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-mex.patch
+ epatch ${FILESDIR}/${PN}-randmtzig.patch
+
+ # make it compile when X isn't installed. The source file there really
+ # doesn't need X at all.
+ # 02 Feb 2005, Robin H. Johnson <robbat2@gentoo.org>
+ sed -e '/#include <X11/d' -i ${S}/main/audio/aurecord.cc
+}
+
+src_compile() {
+ econf --enable-shared || die "econf failed"
+
+ # this must be done before the *PATH variables are changed
+ cd extra/graceplot && make grace_octave_path.m
+ cd ${S}
+
+ # The *PATH variables need to be changed, or they will
+ # cause Portage access violations. They cannot be easily set just using
+ # arguments passed to ./configure (at least, they can not easily be set
+ # correctly)
+ echo -en "Modifying paths..."
+ for path in M O X ALTM ALTO; do
+ sed -i "s|^\(${path}PATH = \)|\1${D}|" Makeconf || \
+ die "failed to modify ${path}PATH"
+ done
+ echo -e "done.\n"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "install failed"
+
+ # strip the fudged install paths
+ sed -i "s|${D}||g" ${D}/usr/bin/mex || die "sed failed"
+
+ dodoc AUTHORS COPYING* ChangeLog INDEX RELEASE-NOTES TODO
+}
+
+pkg_postinst() {
+ einfo "If you do not have GiNaC and Qhull installed, octave-forge did not"
+ einfo "compile itself with support for the geometry and symbolic math"
+ einfo "extensions. If you would like these features, please emerge ginac"
+ einfo "and/or qhull and then re-emerge octave-forge. Alternately, you can"
+ einfo "specify USE='ginac qhull' and re-emerge octave-forge; in that case"
+ einfo "the ebuild will automatically install the additional packages."
+}
+
diff --git a/sci-mathematics/octave-forge/octave-forge-2006.01.28.ebuild b/sci-mathematics/octave-forge/octave-forge-2006.01.28.ebuild
new file mode 100644
index 000000000..4c123bf8b
--- /dev/null
+++ b/sci-mathematics/octave-forge/octave-forge-2006.01.28.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave-forge/octave-forge-2005.06.13-r1.ebuild,v 1.1 2005/10/01 21:54:30 ribosome Exp $
+
+inherit eutils
+
+DESCRIPTION="A collection of custom scripts, functions and extensions for GNU Octave"
+HOMEPAGE="http://octave.sourceforge.net/"
+SRC_URI="mirror://sourceforge/octave/${P}.tar.gz"
+
+LICENSE="as-is"
+KEYWORDS="~x86 ~ppc ~sparc ~amd64"
+SLOT="0"
+IUSE="ginac qhull"
+
+DEPEND="=sci-mathematics/octave-2.1.72*
+ >=sys-apps/sed-4
+ sys-libs/ncurses
+ !amd64? ( ginac? ( sci-mathematics/ginac ) )
+ qhull? ( >=media-libs/qhull-3.1-r1 )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # make it compile when X isn't installed. The source file there really
+ # doesn't need X at all.
+ # 02 Feb 2005, Robin H. Johnson <robbat2@gentoo.org>
+ sed -e '/#include <X11/d' -i ${S}/main/audio/aurecord.cc
+}
+
+src_compile() {
+ econf --enable-shared || die "econf failed"
+
+ # this must be done before the *PATH variables are changed
+ cd extra/graceplot && make grace_octave_path.m
+ cd ${S}
+ # The *PATH variables need to be changed, or they will
+ # cause Portage access violations. They cannot be easily set just using
+ # arguments passed to ./configure (at least, they can not easily be set
+ # correctly)
+ echo -en "Modifying paths..."
+ for path in M O X ALTM ALTO; do
+ sed -i "s|^\(${path}PATH = \)|\1${D}|" Makeconf || \
+ die "failed to modify ${path}PATH"
+ done
+ echo -e "done.\n"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "install failed"
+
+ # strip the fudged install paths
+ sed -i "s|${D}||g" ${D}/usr/bin/mex || die "sed failed"
+
+ dodoc AUTHORS COPYING* ChangeLog INDEX RELEASE-NOTES TODO
+}
+
+pkg_postinst() {
+ einfo "If you do not have GiNaC and Qhull installed, octave-forge did not"
+ einfo "compile itself with support for the geometry and symbolic math"
+ einfo "extensions. If you would like these features, please emerge ginac"
+ einfo "and/or qhull and then re-emerge octave-forge. Alternately, you can"
+ einfo "specify USE='ginac qhull' and re-emerge octave-forge; in that case"
+ einfo "the ebuild will automatically install the additional packages."
+}
+
diff --git a/sci-mathematics/octave/ChangeLog b/sci-mathematics/octave/ChangeLog
new file mode 100644
index 000000000..a0f82873e
--- /dev/null
+++ b/sci-mathematics/octave/ChangeLog
@@ -0,0 +1,268 @@
+# ChangeLog for sci-mathematics/octave
+# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/ChangeLog,v 1.24 2006/01/30 10:06:57 robbat2 Exp $
+
+*octave-2.1.72 (31 Jan 2006)
+
+ 31 Jan 2006; Lucas Chiesa <lucas.chiesa@gmail.com> octave-2.1.72.ebuild:
+ Version bump. Thanks Sebastian Schubert <sebastian-schubert@gmx.de>.
+ Bug #120976.
+
+ 30 Jan 2006; Robin H. Johnson <robbat2@gentoo.org> Manifest:
+ Manifest fix.
+
+ 29 Jan 2006; Marcus D. Hanwell <cryos@gentoo.org> octave-2.1.71-r2.ebuild:
+ Dependency update: media-gfx/gnuplot -> sci-visualization/gnuplot.
+
+ 29 Jan 2006; Marcus D. Hanwell <cryos@gentoo.org> octave-2.1.71-r1.ebuild:
+ Dependency update: media-gfx/gnuplot -> sci-visualization/gnuplot.
+
+ 29 Jan 2006; Marcus D. Hanwell <cryos@gentoo.org> octave-2.1.57-r1.ebuild:
+ Dependency update: media-gfx/gnuplot -> sci-visualization/gnuplot.
+
+ 29 Jan 2006; Marcus D. Hanwell <cryos@gentoo.org> octave-2.1.71.ebuild:
+ Dependency update: media-gfx/gnuplot -> sci-visualization/gnuplot.
+
+ 29 Jan 2006; Marcus D. Hanwell <cryos@gentoo.org> octave-2.1.69.ebuild:
+ Dependency update: media-gfx/gnuplot -> sci-visualization/gnuplot.
+
+ 16 Nov 2005; Ferris McCormick <fmccor@gentoo.org> octave-2.1.71-r2.ebuild:
+ (Re)add ~sparc keyword after having changed sparc's default virtual for
+ mpi to lam-mpi. With this change, octave builds on sparc with USE=mpi,
+ and it runs the mini-test suggested by the ebuild installation. This
+ closes Bug #108955 for sparc.
+
+*octave-2.1.71-r2 (16 Nov 2005)
+
+ 16 Nov 2005; Markus Dittrich <markusle@gentoo.org>
+ +octave-2.1.71-r2.ebuild:
+ Implemented proper compilation when using MPI. This fixes bug #108955.
+
+*octave-2.1.71-r1 (13 Nov 2005)
+
+ 13 Nov 2005; Olivier Fisette <ribosome@gentoo.org>
+ +octave-2.1.71-r1.ebuild:
+ Migrated to fortran.eclass (bug #65950).
+
+ 22 Oct 2005; Marcus D. Hanwell <cryos@gentoo.org> octave-2.1.71.ebuild:
+ Allow the use of gfortran too for gcc4, closes bug 108781.
+
+ 17 Sep 2005; Aron Griffis <agriffis@gentoo.org> octave-2.1.69.ebuild:
+ Mark 2.1.69 stable on alpha
+
+ 06 Sep 2005; Danny van Dyk <kugelfang@gentoo.org> octave-2.1.69.ebuild:
+ Fixed USE=mpi handling.
+
+*octave-2.1.71 (21 Aug 2005)
+
+ 21 Aug 2005; Olivier Fisette <ribosome@gentoo.org> octave-2.1.69.ebuild,
+ +octave-2.1.71.ebuild:
+ New version (fixes bug #99481), along with a sed trick to remove Portage
+ paths in ls-R files (fixes bug #92565). Thanks to Colin Macdonald
+ <cbm@sfu.ca>.
+
+ 14 Aug 2005; Michael Hanselmann <hansmi@gentoo.org> octave-2.1.69.ebuild:
+ Stable on ppc.
+
+ 26 Jun 2005; Olivier Fisette <ribosome@gentoo.org> octave-2.1.69.ebuild:
+ Stable x86 and amd64.
+
+ 26 Jun 2005; Olivier Fisette <ribosome@gentoo.org> -files/filebuf.diff,
+ -files/kill-dvips.diff, -octave-2.1.64.ebuild:
+ Removed obsolete version and unused patches.
+
+ 10 Jun 2005; Patrick Kursawe <phosphan@gentoo.org> octave-2.1.57-r1.ebuild,
+ octave-2.1.64.ebuild, octave-2.1.69.ebuild:
+ Adding library directory to LDPATH
+
+ 04 Jun 2005; Olivier Fisette <ribosome@gentoo.org>
+ octave-2.1.57-r1.ebuild, octave-2.1.64.ebuild, octave-2.1.69.ebuild:
+ Added warning about agressive CFLAGS. (See bug #76067.)
+
+ 04 Jun 2005; Olivier Fisette <ribosome@gentoo.org>
+ -octave-2.1.36-r1.ebuild, -octave-2.1.50.ebuild, -octave-2.1.57.ebuild:
+ Removed obsolete versions. Fixed header.
+
+*octave-2.1.69 (21 Apr 2005)
+
+ 21 Apr 2005; Marcus D. Hanwell <cryos@gentoo.org> +octave-2.1.69.ebuild:
+ Version bump, closes bug 89397.
+
+ 18 Apr 2005; Joseph Jezak <josejx@gentoo.org> octave-2.1.57-r1.ebuild:
+ Marked ppc stable.
+
+ 29 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> :
+ Change encoding to UTF-8 for GLEP 31 compliance
+
+*octave-2.1.64 (28 Dec 2004)
+
+ 28 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml,
+ +files/filebuf.diff, +files/kill-dvips.diff, +octave-2.1.36-r1.ebuild,
+ +octave-2.1.50.ebuild, +octave-2.1.57-r1.ebuild, +octave-2.1.57.ebuild,
+ +octave-2.1.64.ebuild:
+ Moved from app-sci/octave to sci-mathematics/octave.
+
+ 19 Dec 2004; Bryan Østergaard <kloeri@gentoo.org>
+ octave-2.1.57-r1.ebuild:
+ Stable on alpha.
+
+ 15 Dec 2004; Patrick Kursawe <phosphan@gentoo.org> octave-2.1.64.ebuild:
+ Latest version does not like texi2html-1.70 (bug #74307)
+
+*octave-2.1.64 (07 Dec 2004)
+
+ 07 Dec 2004; Patrick Kursawe <phosphan@gentoo.org> +octave-2.1.64.ebuild:
+ Version bump
+
+ 30 Nov 2004; Patrick Kursawe <phosphan@gentoo.org> octave-2.1.50.ebuild:
+ Adding fortran compiler check from newest version to .50 because of bug #66193.
+
+ 04 Oct 2004; Patrick Kursawe <phosphan@gentoo.org> octave-2.1.57-r1.ebuild:
+ Adding proper quotes to LDFLAGS, fixing bug #66111
+
+ 01 Oct 2004; Danny van Dyk <kugelfang@gentoo.org> octave-2.1.57-r1.ebuild:
+ Switched on blas use-flag as all arches have at least blas-atlas in testing
+ now.
+
+ 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
+ octave-2.1.36-r1.ebuild, octave-2.1.50.ebuild, octave-2.1.57-r1.ebuild,
+ octave-2.1.57.ebuild:
+ virtual/glibc -> virtual/libc
+
+ 15 Jun 2004; Michael Sterrett <mr_bones_@gentoo.org>
+ octave-2.1.36-r1.ebuild, octave-2.1.50.ebuild, octave-2.1.57.ebuild:
+ PROVIDE is for virtuals
+
+ 06 Jun 2004; Danny van Dyk <kugelfang@gentoo.org> octave-2.1.57-r1.ebuild:
+ Marked stable on amd64.
+
+ 27 May 2004; Patrick Kursawe <phosphan@gentoo.org> octave-2.1.57-r1.ebuild:
+ Fixed typo about g77/f77 USE flag, bug #51858
+
+ 15 May 2004; Danny van Dyk <kugelfang@gentoo.org> octave-2.1.57-r1.ebuild:
+ Now checking on both g77 and ifc Fortran compilers. Moved check routine to
+ pkg_setup.
+
+ 12 May 2004; Danny van Dyk <kugelfang@gentoo.org> octave-2.1.57-r1.ebuild:
+ The ebuild checks now if g77 has been compiled. If not, a warning is shown.
+ However, the compilation process proceeds, in case that a different compiler
+ than g77 shall be used. Fixes BUG #50777.
+
+*octave-2.1.57-r1 (10 May 2004)
+
+ 10 May 2004; Patrick Kursawe <phosphan@gentoo.org> octave-2.1.57-r1.ebuild:
+ Installs emacs related files if emacs is in USE now
+
+ 09 May 2004; Danny van Dyk <kugelfang@gentoo.org> octave-2.1.57.ebuild:
+ Added local useflag "blas" to make ebuild depend on virtual/blas.
+
+ 05 May 2004; Bryan Østergaard <kloeri@gentoo.org> octave-2.1.57.ebuild:
+ Stable on alpha.
+
+ 21 Apr 2004; Patrick Kursawe <phosphan@gentoo.org> octave-2.1.36-r1.ebuild:
+ replaced another patch by epatch
+
+ 19 Apr 2004; Patrick Kursawe <phosphan@gentoo.org> octave-2.0.17-r2.ebuild,
+ octave-2.1.49.ebuild, octave-2.1.50.ebuild:
+ Cleanup, added IUSE.
+
+ 30 Mar 2004; Patrick Kursawe <phosphan@gentoo.org> octave-2.1.57.ebuild:
+ Adding one of the mirrors to SRC_URI
+
+*octave-2.1.57 (23 Mar 2004)
+
+ 23 Mar 2004; Patrick Kursawe <phosphan@gentoo.org> octave-2.1.57.ebuild:
+ Version bump.
+
+*octave-2.1.50 (07 Jan 2003)
+
+ 07 Jan 2003; George Shapovalov <george@gentoo.org> octave-2.1.50.ebuild :
+ new version
+ now supports hdf5 for real. Also added mpi use flag.
+
+ 31 Dec 2003; Mamoru KOMACHI <usata@gentoo.org> octave-2.0.17-r2.ebuild,
+ octave-2.1.36-r1.ebuild, octave-2.1.49.ebuild:
+ Changed app-text/tetex to virtual/tetex
+
+ 16 Sep 2003; Seemant Kulleen <seemant@gentoo.org> octave-2.0.17-r2.ebuild,
+ octave-2.1.36-r1.ebuild, octave-2.1.49.ebuild:
+ filter out -ffast-math, as it causes segfaults. Thanks to: Jani Kotakoski
+ <jkkoski@iki.fi> in bug #28809
+
+ 28 Aug 2003; Jason Wever <weeve@gentoo.org> octave-2.1.49.ebuild:
+ Added ~sparc to keywords to fix bug 27486.
+
+*octave-2.1.49 (09 Jun 2003)
+ 09 Jun 2003; George Shapovalov <george@gentoo.org> octave-2.1.49.ebuild :
+ new version,
+ ebuild now uses additional "static readline hdf5 zlib" use flags, hdf5 is local for now.
+ Also the patch and PROVIDE are no longer necessary.
+ Thanks to Shaun Cloherty <s.cloherty@gsbme.unsw.edu.au> for submission
+
+ 29 Mar 2003; George Shapovalov <george@gentoo.org> octave-2.0.17-r2.ebuild :
+ some clean-ups:
+ removed virtual/glibc from DEPEND, as it is quite populated anyway,
+ removed PROVIDE, as nothing depends on octave and its been quite some time since it was moved from dev-lang
+ Also corrected default-1.0/packages profile entry, to pick up latest release in 2.0* series.
+
+ 23 Feb 2003; George Shapovalov <george@gentoo.org> octave-2.0.17-r2.ebuild :
+ looks like tetex is not an optional but required dependency for 2.0.17,
+ added app-text/tetex to DEPEND (#7277)
+
+ 02 Feb 2003; George Shapovalov <george@gentoo.org> octave-2.1.40.ebuild, octave-2.1.36-r1.ebuild :
+
+ fixed tetex optional dependency typo. Thanks to Daniel Karlsson <d.k@home.se> (#14685) for reporting this.
+
+*octave-2.1.40 (13 Dec 2002)
+
+ 10 Feb 2003; Peter Johanson <latexer@gentoo.org> octave-2.1.40.ebuild :
+ Added ~alpha to KEYWORDS.
+
+ 13 Dec 2002; George Shapovalov <george@gentoo.org> octave-2.1.40.ebuild, files/digest-octave-2.1.40 :
+ new version
+
+*octave-2.0.17-r2 (09 Apr 2003)
+
+ 02 Jul 2003; Daniel Ahlberg <aliz@gentoo.org> :
+ Added missing changelog entry.
+
+*octave-2.0.17-r1 (13 Jul 2002)
+
+ 25 Oct 2002; George Shapovalov <george@gentoo.org> octave-2.0.17-r1.ebuild, files/digest-octave-2.0.17-r1 :
+ fix for sandbox violation
+
+*octave-2.1.36-r1 (01 Oct 02)
+
+ 01 Oct 2002; Matthew Turk <satai@gentoo.org> :
+ Closing bug 8486 by ripping out all references to dvips. DVIPS generates
+ fonts on the fly, which causes massive sandbox failures. Instead, we leave
+ docs in DVI format if USE=tetex, which are then installed uncompressed into
+ /usr/share/doc/octave-2.1.36-r1 .
+
+*octave-2.1.36 (15 Jul 2002)
+
+ 19 Sep 2002; Owen Stampflee <owen@gentoo.org> :
+ Added PPC to KEYWORDS.
+
+ 15 Jul 2002; Nick Hadaway <raker@gentoo.org>
+ octave-2.1.36.ebuild, files/digest-octave-2.1.36, files/filebuf.diff :
+ Updated to latest "unstable" version. Included a patch to compile
+ properly with gcc-3.x. After fixing the problem I found RedHat's
+ patch posted to the bug report. And theirs was cleaner than mine.
+ Closes bug #4933
+
+*octave-2.0.17 (13 Jul 2002)
+
+ 03 Sep 2002; Nick Hadaway <raker@gentoo.org> octave-2.0.17.ebuild :
+ Changed to econf. Changed from emake to make to alleviate build
+ problems.
+
+ 13 Jul 2002; Nick Hadaway <raker@gentoo.org> octave-2.0.17.ebuild :
+ Updated to latest stable version. The "unstable" version is on it's way.
+
+*octave-2.0.16 (19 Feb 2002)
+
+ 19 Feb 2002; T.Neidt <tod@gentoo.org> ChangeLog, octave-2.0.16.ebuild :
+ Initial commit. GNU Octave is a high-level language, primarily intended
+ for numerical computations. It is mostly compatible with Matlab.
+
diff --git a/sci-mathematics/octave/Manifest b/sci-mathematics/octave/Manifest
new file mode 100644
index 000000000..9c54fdee5
--- /dev/null
+++ b/sci-mathematics/octave/Manifest
@@ -0,0 +1,13 @@
+MD5 ddec2640db87a028c7f79f0deea6b2ec ChangeLog 10537
+MD5 32c6cee1f5b42b8b20369c3722fb4db2 files/digest-octave-2.1.57-r1 67
+MD5 67d13a7bca35d1d0210394b7735fd073 files/digest-octave-2.1.69 67
+MD5 6582a298022b4c4301eca44791cb6da2 files/digest-octave-2.1.71 67
+MD5 6582a298022b4c4301eca44791cb6da2 files/digest-octave-2.1.71-r1 67
+MD5 6582a298022b4c4301eca44791cb6da2 files/digest-octave-2.1.71-r2 67
+MD5 e63335a4907b66890e2afbffe2edce3d files/digest-octave-2.1.72 67
+MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
+MD5 8cd2802495f5b60bd5caebf50010d776 octave-2.1.57-r1.ebuild 3673
+MD5 ac40b9f81059c8a7e9a563490ab617e8 octave-2.1.69.ebuild 3638
+MD5 650b9c16600e7e97b90ae197cd4632e8 octave-2.1.71-r1.ebuild 3431
+MD5 71bd2a0f999ed981dd71c8bc2f6cd1f6 octave-2.1.71.ebuild 3554
+MD5 8f6f761449c011cbabbc42c942d72e9a octave-2.1.72.ebuild 3780
diff --git a/sci-mathematics/octave/files/digest-octave-2.1.57-r1 b/sci-mathematics/octave/files/digest-octave-2.1.57-r1
new file mode 100644
index 000000000..083d5364f
--- /dev/null
+++ b/sci-mathematics/octave/files/digest-octave-2.1.57-r1
@@ -0,0 +1 @@
+MD5 b781f5d0cd750cb9bb3ef23523f5f339 octave-2.1.57.tar.bz2 4202080
diff --git a/sci-mathematics/octave/files/digest-octave-2.1.69 b/sci-mathematics/octave/files/digest-octave-2.1.69
new file mode 100644
index 000000000..f83124841
--- /dev/null
+++ b/sci-mathematics/octave/files/digest-octave-2.1.69
@@ -0,0 +1 @@
+MD5 32d598e5c148d2319e3ba66834ea096d octave-2.1.69.tar.bz2 5818959
diff --git a/sci-mathematics/octave/files/digest-octave-2.1.71 b/sci-mathematics/octave/files/digest-octave-2.1.71
new file mode 100644
index 000000000..c5707c297
--- /dev/null
+++ b/sci-mathematics/octave/files/digest-octave-2.1.71
@@ -0,0 +1 @@
+MD5 2ab06912017c833549035111f0ab592f octave-2.1.71.tar.bz2 5784751
diff --git a/sci-mathematics/octave/files/digest-octave-2.1.71-r1 b/sci-mathematics/octave/files/digest-octave-2.1.71-r1
new file mode 100644
index 000000000..c5707c297
--- /dev/null
+++ b/sci-mathematics/octave/files/digest-octave-2.1.71-r1
@@ -0,0 +1 @@
+MD5 2ab06912017c833549035111f0ab592f octave-2.1.71.tar.bz2 5784751
diff --git a/sci-mathematics/octave/files/digest-octave-2.1.71-r2 b/sci-mathematics/octave/files/digest-octave-2.1.71-r2
new file mode 100644
index 000000000..c5707c297
--- /dev/null
+++ b/sci-mathematics/octave/files/digest-octave-2.1.71-r2
@@ -0,0 +1 @@
+MD5 2ab06912017c833549035111f0ab592f octave-2.1.71.tar.bz2 5784751
diff --git a/sci-mathematics/octave/files/digest-octave-2.1.72 b/sci-mathematics/octave/files/digest-octave-2.1.72
new file mode 100644
index 000000000..5cbb4d4e0
--- /dev/null
+++ b/sci-mathematics/octave/files/digest-octave-2.1.72
@@ -0,0 +1 @@
+MD5 47012ee5efee3a36d04fea3341748862 octave-2.1.72.tar.bz2 5808544
diff --git a/sci-mathematics/octave/metadata.xml b/sci-mathematics/octave/metadata.xml
new file mode 100644
index 000000000..b229aec85
--- /dev/null
+++ b/sci-mathematics/octave/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+</pkgmetadata>
diff --git a/sci-mathematics/octave/octave-2.1.57-r1.ebuild b/sci-mathematics/octave/octave-2.1.57-r1.ebuild
new file mode 100644
index 000000000..1c15c23d2
--- /dev/null
+++ b/sci-mathematics/octave/octave-2.1.57-r1.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-2.1.57-r1.ebuild,v 1.8 2006/01/29 19:40:31 cryos Exp $
+
+inherit flag-o-matic
+
+DESCRIPTION="GNU Octave is a high-level language (MatLab compatible) intended for numerical computations"
+HOMEPAGE="http://www.octave.org/"
+SRC_URI="ftp://ftp.octave.org/pub/octave/bleeding-edge/${P}.tar.bz2
+ ftp://ftp.math.uni-hamburg.de/pub/soft/math/octave/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ppc alpha ~sparc amd64"
+IUSE="emacs static readline zlib tetex hdf5 mpi ifc blas"
+
+DEPEND="virtual/libc
+ >=sys-libs/ncurses-5.2-r3
+ >=sci-visualization/gnuplot-3.7.1-r3
+ >=sci-libs/fftw-2.1.3
+ >=dev-util/gperf-2.7.2
+ zlib? ( sys-libs/zlib )
+ hdf5? ( sci-libs/hdf5 )
+ tetex? ( virtual/tetex )
+ x86? ( ifc? ( dev-lang/ifc ) )
+ blas? ( virtual/blas )"
+
+# NOTE: octave supports blas/lapack from intel but this is not open
+# source nor is it free (as in beer OR speech) Check out...
+# http://developer.intel.com/software/products/mkl/mkl52/index.htm for
+# more information
+
+pkg_setup() {
+ use ifc || if [ -z `which g77` ]; then
+ #if ifc is defined then the dep was already checked
+ eerror "No fortran compiler found on the system!"
+ eerror "Please add fortran to your USE flags and reemerge gcc!"
+ die
+ fi
+}
+
+src_compile() {
+ filter-flags -ffast-math
+
+ local myconf
+
+ use static || myconf="--disable-static --enable-shared --enable-dl"
+ use readline || myconf="${myconf} --disable-readline"
+ use hdf5 || myconf="${myconf} --without-hdf5"
+ use mpi || myconf="${myconf} --without-mpi"
+
+ # Only add -lz to LDFLAGS if we have zlib in USE !
+ # BUG #52604
+ # Danny van Dyk 2004/08/26
+ use zlib && LDFLAGS="${LDFLAGS} -lz"
+
+ # NOTE: This version actually works with gcc-3.x
+ ./configure ${myconf} --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var/state/octave \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man \
+ --host=${CHOST} \
+ --build=${CHOST} \
+ --target=${CHOST} \
+ --enable-rpath \
+ --enable-lite-kernel \
+ LDFLAGS="${LDFLAGS}" || die "configure failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make \
+ prefix=${D}/usr \
+ mandir=${D}/usr/share/man \
+ infodir=${D}/usr/share/info \
+ install || die "make install failed"
+ use tetex && octave-install-doc
+ if use emacs; then
+ cd emacs
+ exeinto /usr/bin
+ doexe otags
+ doman otags.1
+ for emacsdir in /usr/share/emacs/site-lisp /usr/lib/xemacs/site-lisp; do
+ insinto ${emacsdir}
+ doins *.el
+ done
+ cd ..
+ fi
+ dodir /etc/env.d
+ echo "LDPATH=/usr/lib/octave-${PV}" > ${D}/etc/env.d/99octave
+}
+
+pkg_postinst() {
+ echo
+ einfo "Some users have reported failures at running simple tests if"
+ einfo "octave was built with agressive optimisations. You can check if"
+ einfo "your setup is affected by this bug by running the following test"
+ einfo "(inside the octave interpreter):"
+ einfo
+ einfo "octave:1> y = [1 3 4 2 1 5 3 5 6 7 4 5 7 10 11 3];"
+ einfo "octave:2> g = [1 1 1 1 1 1 1 1 2 2 2 2 2 3 3 3];"
+ einfo "octave:3> anova(y, g)"
+ einfo
+ einfo "If these commands complete successfully with no error message,"
+ einfo "your installation should be ok. Otherwise, try recompiling"
+ einfo "octave using less agressive \"CFLAGS\" (combining \"-O3\" and"
+ einfo "\"-march=pentium4\" is known to cause problems)."
+ echo
+}
+
+octave-install-doc() {
+ echo "Installing documentation..."
+ insinto /usr/share/doc/${PF}
+ doins doc/faq/Octave-FAQ.dvi
+ doins doc/interpreter/octave.dvi
+ doins doc/liboctave/liboctave.dvi
+ doins doc/refcard/refcard-a4.dvi
+ doins doc/refcard/refcard-legal.dvi
+ doins doc/refcard/refcard-letter.dvi
+}
diff --git a/sci-mathematics/octave/octave-2.1.69.ebuild b/sci-mathematics/octave/octave-2.1.69.ebuild
new file mode 100644
index 000000000..7bf3e63c0
--- /dev/null
+++ b/sci-mathematics/octave/octave-2.1.69.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-2.1.69.ebuild,v 1.9 2006/01/29 19:39:33 cryos Exp $
+
+inherit flag-o-matic
+
+DESCRIPTION="GNU Octave is a high-level language (MatLab compatible) intended for numerical computations"
+HOMEPAGE="http://www.octave.org/"
+SRC_URI="ftp://ftp.octave.org/pub/octave/bleeding-edge/${P}.tar.bz2
+ ftp://ftp.math.uni-hamburg.de/pub/soft/math/octave/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc ~sparc x86"
+IUSE="emacs static readline zlib tetex hdf5 mpi ifc blas"
+
+DEPEND="virtual/libc
+ >=sys-libs/ncurses-5.2-r3
+ >=sci-visualization/gnuplot-3.7.1-r3
+ >=sci-libs/fftw-2.1.3
+ >=dev-util/gperf-2.7.2
+ zlib? ( sys-libs/zlib )
+ hdf5? ( sci-libs/hdf5 )
+ tetex? ( virtual/tetex )
+ x86? ( ifc? ( dev-lang/ifc ) )
+ blas? ( virtual/blas )
+ mpi? ( sys-cluster/lam-mpi )
+ !=app-text/texi2html-1.70"
+
+# NOTE: octave supports blas/lapack from intel but this is not open
+# source nor is it free (as in beer OR speech) Check out...
+# http://developer.intel.com/software/products/mkl/mkl52/index.htm for
+# more information
+
+pkg_setup() {
+ use ifc || if [ -z `which g77` ]; then
+ #if ifc is defined then the dep was already checked
+ eerror "No fortran compiler found on the system!"
+ eerror "Please add fortran to your USE flags and reemerge gcc!"
+ die
+ fi
+}
+
+src_compile() {
+ filter-flags -ffast-math
+
+ local myconf="--localstatedir=/var/state/octave --enable-rpath"
+ myconf="${myconf} --enable-lite-kernel"
+ use static || myconf="${myconf} --disable-static --enable-shared --enable-dl"
+ # Only add -lz to LDFLAGS if we have zlib in USE !
+ # BUG #52604
+ # Danny van Dyk 2004/08/26
+ use zlib && LDFLAGS="${LDFLAGS} -lz"
+
+ if use mpi; then
+ myconf="${myconf} --with-mpi=lammpi++"
+ else
+ myconf="${myconf} --without-mpi"
+ fi
+
+ econf \
+ $(use_with hdf5) \
+ $(use_enable readline) \
+ ${myconf} \
+ LDFLAGS="${LDFLAGS}" || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make install DESTDIR=${D} || die "make install failed"
+ use tetex && octave-install-doc
+ if use emacs; then
+ cd emacs
+ exeinto /usr/bin
+ doexe otags
+ doman otags.1
+ for emacsdir in /usr/share/emacs/site-lisp /usr/lib/xemacs/site-lisp; do
+ insinto ${emacsdir}
+ doins *.el
+ done
+ cd ..
+ fi
+ dodir /etc/env.d
+ echo "LDPATH=/usr/lib/octave-${PV}" > ${D}/etc/env.d/99octave
+
+ # Fixes ls-R files to remove /var/tmp/portage references.
+ sed -i -e "s:${D}::g" ${D}/usr/libexec/${PN}/ls-R || die
+ sed -i -e "s:${D}::g" ${D}/usr/share/${PN}/ls-R || die
+}
+
+pkg_postinst() {
+ echo
+ einfo "Some users have reported failures at running simple tests if"
+ einfo "octave was built with agressive optimisations. You can check if"
+ einfo "your setup is affected by this bug by running the following test"
+ einfo "(inside the octave interpreter):"
+ einfo
+ einfo "octave:1> y = [1 3 4 2 1 5 3 5 6 7 4 5 7 10 11 3];"
+ einfo "octave:2> g = [1 1 1 1 1 1 1 1 2 2 2 2 2 3 3 3];"
+ einfo "octave:3> anova(y, g)"
+ einfo
+ einfo "If these commands complete successfully with no error message,"
+ einfo "your installation should be ok. Otherwise, try recompiling"
+ einfo "octave using less agressive \"CFLAGS\" (combining \"-O3\" and"
+ einfo "\"-march=pentium4\" is known to cause problems)."
+ echo
+}
+
+octave-install-doc() {
+ echo "Installing documentation..."
+ insinto /usr/share/doc/${PF}
+ doins doc/faq/Octave-FAQ.dvi
+ doins doc/interpreter/octave.dvi
+ doins doc/liboctave/liboctave.dvi
+ doins doc/refcard/refcard-a4.dvi
+ doins doc/refcard/refcard-legal.dvi
+ doins doc/refcard/refcard-letter.dvi
+}
diff --git a/sci-mathematics/octave/octave-2.1.71-r1.ebuild b/sci-mathematics/octave/octave-2.1.71-r1.ebuild
new file mode 100644
index 000000000..76e5d5cd6
--- /dev/null
+++ b/sci-mathematics/octave/octave-2.1.71-r1.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-2.1.71-r1.ebuild,v 1.2 2006/01/29 19:41:01 cryos Exp $
+
+inherit flag-o-matic fortran
+
+DESCRIPTION="GNU Octave is a high-level language (MatLab compatible) intended for numerical computations"
+LICENSE="GPL-2"
+HOMEPAGE="http://www.octave.org/"
+SRC_URI="ftp://ftp.octave.org/pub/octave/bleeding-edge/${P}.tar.bz2
+ ftp://ftp.math.uni-hamburg.de/pub/soft/math/octave/${P}.tar.bz2"
+
+SLOT="0"
+IUSE="emacs static readline zlib tetex hdf5 mpi ifc blas"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+DEPEND="virtual/libc
+ >=sys-libs/ncurses-5.2-r3
+ >=sci-visualization/gnuplot-3.7.1-r3
+ >=sci-libs/fftw-2.1.3
+ >=dev-util/gperf-2.7.2
+ zlib? ( sys-libs/zlib )
+ hdf5? ( sci-libs/hdf5 )
+ tetex? ( virtual/tetex )
+ x86? ( ifc? ( dev-lang/ifc ) )
+ blas? ( virtual/blas )
+ !=app-text/texi2html-1.70"
+
+# NOTE: octave supports blas/lapack from intel but this is not open
+# source nor is it free (as in beer OR speech) Check out...
+# http://developer.intel.com/software/products/mkl/mkl52/index.htm for
+# more information
+
+src_compile() {
+ filter-flags -ffast-math
+
+ local myconf="--localstatedir=/var/state/octave --enable-rpath"
+ myconf="${myconf} --enable-lite-kernel"
+ use static || myconf="${myconf} --disable-static --enable-shared --enable-dl"
+ # Only add -lz to LDFLAGS if we have zlib in USE !
+ # BUG #52604
+ # Danny van Dyk 2004/08/26
+ use zlib && LDFLAGS="${LDFLAGS} -lz"
+
+ econf \
+ $(use_with hdf5) \
+ $(use_with mpi) \
+ $(use_enable readline) \
+ ${myconf} \
+ LDFLAGS="${LDFLAGS}" || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die "make install failed"
+ if use tetex; then
+ octave-install-doc || die "Octave doc install failed"
+ fi
+ if use emacs; then
+ cd emacs
+ exeinto /usr/bin
+ doexe otags || die
+ doman otags.1 || die
+ for emacsdir in /usr/share/emacs/site-lisp /usr/lib/xemacs/site-lisp; do
+ insinto ${emacsdir}
+ doins *.el || die
+ done
+ cd ..
+ fi
+ dodir /etc/env.d || die
+ echo "LDPATH=/usr/lib/octave-${PV}" > "${D}"/etc/env.d/99octave || die
+
+ # Fixes ls-R files to remove /var/tmp/portage references.
+ sed -i -e "s:${D}::g" "${D}"/usr/libexec/${PN}/ls-R || die
+ sed -i -e "s:${D}::g" "${D}"/usr/share/${PN}/ls-R || die
+}
+
+pkg_postinst() {
+ echo
+ einfo "Some users have reported failures at running simple tests if"
+ einfo "octave was built with agressive optimisations. You can check if"
+ einfo "your setup is affected by this bug by running the following test"
+ einfo "(inside the octave interpreter):"
+ einfo
+ einfo "octave:1> y = [1 3 4 2 1 5 3 5 6 7 4 5 7 10 11 3];"
+ einfo "octave:2> g = [1 1 1 1 1 1 1 1 2 2 2 2 2 3 3 3];"
+ einfo "octave:3> anova(y, g)"
+ einfo
+ einfo "If these commands complete successfully with no error message,"
+ einfo "your installation should be ok. Otherwise, try recompiling"
+ einfo "octave using less agressive \"CFLAGS\" (combining \"-O3\" and"
+ einfo "\"-march=pentium4\" is known to cause problems)."
+ echo
+}
+
+octave-install-doc() {
+ echo "Installing documentation..."
+ insinto /usr/share/doc/${PF}
+ doins doc/faq/Octave-FAQ.dvi || die
+ doins doc/interpreter/octave.dvi || die
+ doins doc/liboctave/liboctave.dvi || die
+ doins doc/refcard/refcard-a4.dvi || die
+ doins doc/refcard/refcard-legal.dvi || die
+ doins doc/refcard/refcard-letter.dvi || die
+}
diff --git a/sci-mathematics/octave/octave-2.1.71.ebuild b/sci-mathematics/octave/octave-2.1.71.ebuild
new file mode 100644
index 000000000..2c8cc94ea
--- /dev/null
+++ b/sci-mathematics/octave/octave-2.1.71.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-2.1.71.ebuild,v 1.3 2006/01/29 19:40:02 cryos Exp $
+
+inherit flag-o-matic
+
+DESCRIPTION="GNU Octave is a high-level language (MatLab compatible) intended for numerical computations"
+HOMEPAGE="http://www.octave.org/"
+SRC_URI="ftp://ftp.octave.org/pub/octave/bleeding-edge/${P}.tar.bz2
+ ftp://ftp.math.uni-hamburg.de/pub/soft/math/octave/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE="emacs static readline zlib tetex hdf5 mpi ifc blas"
+
+DEPEND="virtual/libc
+ >=sys-libs/ncurses-5.2-r3
+ >=sci-visualization/gnuplot-3.7.1-r3
+ >=sci-libs/fftw-2.1.3
+ >=dev-util/gperf-2.7.2
+ zlib? ( sys-libs/zlib )
+ hdf5? ( sci-libs/hdf5 )
+ tetex? ( virtual/tetex )
+ x86? ( ifc? ( dev-lang/ifc ) )
+ blas? ( virtual/blas )
+ !=app-text/texi2html-1.70"
+
+# NOTE: octave supports blas/lapack from intel but this is not open
+# source nor is it free (as in beer OR speech) Check out...
+# http://developer.intel.com/software/products/mkl/mkl52/index.htm for
+# more information
+
+pkg_setup() {
+ use ifc || if [ -z `which g77` ] && [ -z `which gfortran` ]; then
+ #if ifc is defined then the dep was already checked
+ eerror "No fortran compiler found on the system!"
+ eerror "Please add fortran to your USE flags and reemerge gcc!"
+ die
+ fi
+}
+
+src_compile() {
+ filter-flags -ffast-math
+
+ local myconf="--localstatedir=/var/state/octave --enable-rpath"
+ myconf="${myconf} --enable-lite-kernel"
+ use static || myconf="${myconf} --disable-static --enable-shared --enable-dl"
+ # Only add -lz to LDFLAGS if we have zlib in USE !
+ # BUG #52604
+ # Danny van Dyk 2004/08/26
+ use zlib && LDFLAGS="${LDFLAGS} -lz"
+
+ econf \
+ $(use_with hdf5) \
+ $(use_with mpi) \
+ $(use_enable readline) \
+ ${myconf} \
+ LDFLAGS="${LDFLAGS}" || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make install DESTDIR=${D} || die "make install failed"
+ use tetex && octave-install-doc
+ if use emacs; then
+ cd emacs
+ exeinto /usr/bin
+ doexe otags
+ doman otags.1
+ for emacsdir in /usr/share/emacs/site-lisp /usr/lib/xemacs/site-lisp; do
+ insinto ${emacsdir}
+ doins *.el
+ done
+ cd ..
+ fi
+ dodir /etc/env.d
+ echo "LDPATH=/usr/lib/octave-${PV}" > ${D}/etc/env.d/99octave
+
+ # Fixes ls-R files to remove /var/tmp/portage references.
+ sed -i -e "s:${D}::g" ${D}/usr/libexec/${PN}/ls-R || die
+ sed -i -e "s:${D}::g" ${D}/usr/share/${PN}/ls-R || die
+}
+
+pkg_postinst() {
+ echo
+ einfo "Some users have reported failures at running simple tests if"
+ einfo "octave was built with agressive optimisations. You can check if"
+ einfo "your setup is affected by this bug by running the following test"
+ einfo "(inside the octave interpreter):"
+ einfo
+ einfo "octave:1> y = [1 3 4 2 1 5 3 5 6 7 4 5 7 10 11 3];"
+ einfo "octave:2> g = [1 1 1 1 1 1 1 1 2 2 2 2 2 3 3 3];"
+ einfo "octave:3> anova(y, g)"
+ einfo
+ einfo "If these commands complete successfully with no error message,"
+ einfo "your installation should be ok. Otherwise, try recompiling"
+ einfo "octave using less agressive \"CFLAGS\" (combining \"-O3\" and"
+ einfo "\"-march=pentium4\" is known to cause problems)."
+ echo
+}
+
+octave-install-doc() {
+ echo "Installing documentation..."
+ insinto /usr/share/doc/${PF}
+ doins doc/faq/Octave-FAQ.dvi
+ doins doc/interpreter/octave.dvi
+ doins doc/liboctave/liboctave.dvi
+ doins doc/refcard/refcard-a4.dvi
+ doins doc/refcard/refcard-legal.dvi
+ doins doc/refcard/refcard-letter.dvi
+}
diff --git a/sci-mathematics/octave/octave-2.1.72.ebuild b/sci-mathematics/octave/octave-2.1.72.ebuild
new file mode 100644
index 000000000..69e0099f9
--- /dev/null
+++ b/sci-mathematics/octave/octave-2.1.72.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-2.1.71-r2.ebuild,v 1.3 2006/01/29 19:41:30 cryos Exp $
+
+inherit flag-o-matic fortran
+
+DESCRIPTION="GNU Octave is a high-level language (MatLab compatible) intended for numerical computations"
+LICENSE="GPL-2"
+HOMEPAGE="http://www.octave.org/"
+SRC_URI="ftp://ftp.octave.org/pub/octave/bleeding-edge/${P}.tar.bz2
+ ftp://ftp.math.uni-hamburg.de/pub/soft/math/octave/${P}.tar.bz2"
+
+SLOT="0"
+IUSE="emacs static readline zlib tetex hdf5 mpi blas"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+DEPEND="virtual/libc
+ >=sys-libs/ncurses-5.2-r3
+ >=sci-visualization/gnuplot-3.7.1-r3
+ >=sci-libs/fftw-2.1.3
+ >=dev-util/gperf-2.7.2
+ zlib? ( sys-libs/zlib )
+ hdf5? ( sci-libs/hdf5 )
+ tetex? ( virtual/tetex )
+ blas? ( virtual/blas )
+ mpi? ( virtual/mpi )
+ !=app-text/texi2html-1.70"
+
+# NOTE: octave supports blas/lapack from intel but this is not open
+# source nor is it free (as in beer OR speech) Check out...
+# http://developer.intel.com/software/products/mkl/mkl52/index.htm for
+# more information
+
+src_compile() {
+ filter-flags -ffast-math
+
+ local myconf="--localstatedir=/var/state/octave --enable-rpath"
+ myconf="${myconf} --enable-lite-kernel"
+ use static || myconf="${myconf} --disable-static --enable-shared --enable-dl"
+ # Only add -lz to LDFLAGS if we have zlib in USE !
+ # BUG #52604
+ # Danny van Dyk 2004/08/26
+ use zlib && LDFLAGS="${LDFLAGS} -lz"
+
+ # MPI requires the use of gcc/g++ wrappers
+ # mpicc/mpic++
+ # octave links agains -lmpi by default
+ # mpich needs -lmpich instead
+ if use mpi; then
+ CC="mpicc" && CXX="mpiCC"
+ if has_version 'sys-cluster/mpich'; then
+ myconf="${myconf} --with-mpi=mpich"
+ else
+ myconf="${myconf} --with-mpi=mpi"
+ fi
+ else
+ myconf="${myconf} --without-mpi"
+ fi
+
+
+ econf \
+ $(use_with hdf5) \
+ $(use_enable readline) \
+ ${myconf} \
+ LDFLAGS="${LDFLAGS}" \
+ CC="${CC}" CXX="${CXX}" || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die "make install failed"
+ if use tetex; then
+ octave-install-doc || die "Octave doc install failed"
+ fi
+ if use emacs; then
+ cd emacs
+ exeinto /usr/bin
+ doexe otags || die
+ doman otags.1 || die
+ for emacsdir in /usr/share/emacs/site-lisp /usr/lib/xemacs/site-lisp; do
+ insinto ${emacsdir}
+ doins *.el || die
+ done
+ cd ..
+ fi
+ dodir /etc/env.d || die
+ echo "LDPATH=/usr/lib/octave-${PV}" > "${D}"/etc/env.d/99octave || die
+
+ # Fixes ls-R files to remove /var/tmp/portage references.
+ sed -i -e "s:${D}::g" "${D}"/usr/libexec/${PN}/ls-R || die
+ sed -i -e "s:${D}::g" "${D}"/usr/share/${PN}/ls-R || die
+}
+
+pkg_postinst() {
+ echo
+ einfo "Some users have reported failures at running simple tests if"
+ einfo "octave was built with agressive optimisations. You can check if"
+ einfo "your setup is affected by this bug by running the following test"
+ einfo "(inside the octave interpreter):"
+ einfo
+ einfo "octave:1> y = [1 3 4 2 1 5 3 5 6 7 4 5 7 10 11 3];"
+ einfo "octave:2> g = [1 1 1 1 1 1 1 1 2 2 2 2 2 3 3 3];"
+ einfo "octave:3> anova(y, g)"
+ einfo
+ einfo "If these commands complete successfully with no error message,"
+ einfo "your installation should be ok. Otherwise, try recompiling"
+ einfo "octave using less agressive \"CFLAGS\" (combining \"-O3\" and"
+ einfo "\"-march=pentium4\" is known to cause problems)."
+ echo
+}
+
+octave-install-doc() {
+ echo "Installing documentation..."
+ insinto /usr/share/doc/${PF}
+ doins doc/faq/Octave-FAQ.dvi || die
+ doins doc/interpreter/octave.dvi || die
+ doins doc/liboctave/liboctave.dvi || die
+ doins doc/refcard/refcard-a4.dvi || die
+ doins doc/refcard/refcard-legal.dvi || die
+ doins doc/refcard/refcard-letter.dvi || die
+}