summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2010-06-24 17:12:18 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2010-06-24 17:12:18 +0000
commit1a2cd4bafb07c7a35f0034c42e5d1f2fe1e4cd35 (patch)
tree1de17a92c4b0e8785071c72d4681b23104068963 /sci-mathematics
parentStable for HPPA (bug #308379). (diff)
downloadhistorical-1a2cd4bafb07c7a35f0034c42e5d1f2fe1e4cd35.tar.gz
historical-1a2cd4bafb07c7a35f0034c42e5d1f2fe1e4cd35.tar.bz2
historical-1a2cd4bafb07c7a35f0034c42e5d1f2fe1e4cd35.zip
Cleaning old versions
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/octave/ChangeLog11
-rw-r--r--sci-mathematics/octave/Manifest19
-rw-r--r--sci-mathematics/octave/files/octave-2.1.72-gcc4.1-gentoo.patch120
-rw-r--r--sci-mathematics/octave/files/octave-2.1.73-gcc-4.3.patch265
-rw-r--r--sci-mathematics/octave/files/octave-3.0.0-pkg.patch12
-rw-r--r--sci-mathematics/octave/files/octave-3.0.1-fix_handle_for_plotyy.patch76
-rw-r--r--sci-mathematics/octave/files/octave-3.0.1-no_helvetica.patch48
-rw-r--r--sci-mathematics/octave/files/octave-3.0.3-test-fix.patch53
-rw-r--r--sci-mathematics/octave/files/octave-3.2.0-dlmwrite.patch12
-rw-r--r--sci-mathematics/octave/octave-2.1.73-r2.ebuild154
-rw-r--r--sci-mathematics/octave/octave-2.1.73.ebuild140
-rw-r--r--sci-mathematics/octave/octave-3.0.3.ebuild107
12 files changed, 14 insertions, 1003 deletions
diff --git a/sci-mathematics/octave/ChangeLog b/sci-mathematics/octave/ChangeLog
index 8a5e747f8cad..73404d40b7be 100644
--- a/sci-mathematics/octave/ChangeLog
+++ b/sci-mathematics/octave/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for sci-mathematics/octave
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/ChangeLog,v 1.92 2010/06/23 09:32:45 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/ChangeLog,v 1.93 2010/06/24 17:12:17 bicatali Exp $
+
+ 24 Jun 2010; SĂ©bastien Fabbro <bicatali@gentoo.org>
+ -files/octave-2.1.72-gcc4.1-gentoo.patch, -octave-2.1.73.ebuild,
+ -octave-2.1.73-r2.ebuild, -files/octave-2.1.73-gcc-4.3.patch,
+ -files/octave-3.0.0-pkg.patch,
+ -files/octave-3.0.1-fix_handle_for_plotyy.patch,
+ -files/octave-3.0.1-no_helvetica.patch, -octave-3.0.3.ebuild,
+ -files/octave-3.0.3-test-fix.patch, -files/octave-3.2.0-dlmwrite.patch:
+ Cleaning old versions
23 Jun 2010; Justin Lecher <jlec@gentoo.org> octave-2.1.73.ebuild,
octave-2.1.73-r1.ebuild:
diff --git a/sci-mathematics/octave/Manifest b/sci-mathematics/octave/Manifest
index 120d812347bb..c32c3a1eccc9 100644
--- a/sci-mathematics/octave/Manifest
+++ b/sci-mathematics/octave/Manifest
@@ -1,15 +1,8 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-AUX octave-2.1.72-gcc4.1-gentoo.patch 4224 RMD160 d179b48f2e47e0e9b2312b3b21cc625ecaeb2e9a SHA1 54da4d74cb5d172310de64fc6cc9e32d56823e82 SHA256 24f0ccb8c2aa4004bd251f0095b8a83417f320326ba99a0bba46f8b178722a66
AUX octave-2.1.73-f2c-fix.patch 419 RMD160 3f8768b9073bcd2d93a5c6064d518299ad0b86a6 SHA1 3c4ee31b5d85d1d8c5f523f39ea25a4a2e577b0d SHA256 18c29afa2402e562cf11ac5a0c7718ed5c9713846dfd0245b2930aaa1939fa41
-AUX octave-2.1.73-gcc-4.3.patch 8087 RMD160 b2d9bbb8f012b6fe9106594394627fd76f112ef9 SHA1 fb5407e628ed4ecbb1ab5c0bb43a595ca2e7bbb1 SHA256 d4a080e57562163c36ab435ba09a94fa4e748a9c91f700625706967e1c0092f6
AUX octave-2.1.73-gcc4.1-gentoo.patch 956 RMD160 f331768b814a213029014bf16021318706b084f5 SHA1 3f52c4cd9d74476d13250da9c9091f5e5d3389b1 SHA256 5526650682c4d50a10a04ebed218737246c55bceb0bb773a709a846e0adc2af5
-AUX octave-3.0.0-pkg.patch 471 RMD160 c8d7c9fddce78ef1344e5d8c8d3b95df432956c1 SHA1 43931da426dd988c451ff852391f33d236941efa SHA256 48974218d067c8e85d7cf0d4eea3921b5db743872f53131012e4c19696feb414
-AUX octave-3.0.1-fix_handle_for_plotyy.patch 2112 RMD160 91679fed7b115c7f0e48824c8471359b34692f20 SHA1 e2d4dc03ed34a010cfff2205e384a35d70431255 SHA256 ee602e772b74195be2967662f799eaceb54d715cf32e6d247ad7198a629e5bc8
-AUX octave-3.0.1-no_helvetica.patch 1816 RMD160 7bfe46409699b6bd199ab725e6e324e4eea69003 SHA1 8934236ea328a7ede2016f412909c0d93842d4a1 SHA256 432b490ff6055b12d219e268391859e549e4076073ca8029b454e7644965c8e3
-AUX octave-3.0.3-test-fix.patch 2177 RMD160 a0fb9ba636b3225bed404da2214e80d6d76c626a SHA1 2f1b29a1fe3b660f11fd6e846c84886ead3142b4 SHA256 0519dd6f18ed0ec696852a08123cc3ddb30a9622cb53950acf6a8d3509c439cb
-AUX octave-3.2.0-dlmwrite.patch 408 RMD160 b07957be254b27a0b354abdf2bf8ef60eaa57f40 SHA1 939f22b2de2d38147c3a0cae10d13bc80087dc38 SHA256 5a581e927e1c2c3b859e08c950f1695bd4db2d539b650cf9497713e03b1af485
AUX octave-3.2.0_as_needed.patch 485 RMD160 6476d8af9ada03c4b169e87e65d674a3b4bb810b SHA1 f0af5b1435ae2ca9eee08e37de5f3dda0e662b26 SHA256 cd4e0d0299b487959396313a42fdc94b2f069dd99c3127789496cfa40da71e9e
AUX octave-3.2.0_parallel_make.patch 374 RMD160 0e597204583c44c6c67aa5c5360a73f0f6bae298 SHA1 85170197541aa797ff41f7c46e1e3594dbf32fe4 SHA256 d2864f9b0dbea021120be04d16f57759d881bff11bf2b90e34c7b68c770adb23
AUX octave-3.2.4-fltk-magic.patch 627 RMD160 f0b36faf95cf123e9a51d40555f9c4fe0b1f75d6 SHA1 819e3bc87998a3a8a803668bc865cef7e89b3e7a SHA256 0f2e265a5345409e8dce8071a7586e3addc113d1f89a96ed8c8d0d84efbdcbb8
@@ -17,19 +10,15 @@ AUX octave-3.2.4-imread.patch 684 RMD160 d3ccc76eabe52ed90d7b6d3e41d48e9871221f3
AUX octave-3.2.4-ldflags.patch 365 RMD160 65e753b086871b91e43995ce56491a2e057a020d SHA1 c70ae715234f737d6218b955748ecf65c56cf0be SHA256 55a3bd8cba99c9bc70cd2d7f40544beda9752df18ed681cf7fd44c4e4d937b80
AUX octave-example-fix.patch 566 RMD160 9761e1a45e0d54795aff5cd50120b963492ac175 SHA1 9f84d6831a1d7773c9504a1d93308de97af85d88 SHA256 e387b14de2e5ef4e4246a84721d6b4a378670b3bffbffdc65db56e7dadcde76a
DIST octave-2.1.73.tar.bz2 5790133 RMD160 d34c6ecd8f84c728ad7687d9568b9d69ade6f5db SHA1 58221aa15fcefd66b03531ac0ae9b1d2356e7555 SHA256 8ccaee227c6cad3b5633a904414f17ce73de8eab2abd4d2e6a3972dd878ffbc3
-DIST octave-3.0.3.tar.bz2 10159024 RMD160 1a162862a457675e2d94de306c1ec8f1643c9e07 SHA1 5c619254521a5fe14b3ec8a6eecbf104f9fa41dc SHA256 f90108bf6a2f9930907aa740d1c4d39551985cf3b5c5eb5dfdb436e0d3b5d79d
DIST octave-3.2.4.tar.bz2 12080959 RMD160 6dcdea7ef2431b8427da5e6b9d2113e0e5736f43 SHA1 7de078564027108f3436f3ba7bf5993a6b411a67 SHA256 48471d05c7ed9c0a5a4d5fa4ae8a857447ac3da1197f86cfe79b9d8f4fdfd147
EBUILD octave-2.1.73-r1.ebuild 4430 RMD160 9d9df41cf8076caa76e9c4a2dbcb12183b0436ed SHA1 40f0d5de5a658d01adeba0ed21e9cb33b2c17762 SHA256 de74869aeebdba5c56eebc4ba7fc648baea2b10d8a78dd624c337cef0ab7a3f7
-EBUILD octave-2.1.73-r2.ebuild 4593 RMD160 57768e35057cf967aad85d0be56f9381f6c35b9b SHA1 350720616d3ddbae4a337269f429a82704c1cd8c SHA256 88059be54c26282937ffdbab146661ca6d089520ec66457fc127793fe236b610
-EBUILD octave-2.1.73.ebuild 4270 RMD160 6ab6bd95b32fdcc6c0d66776202f42cb859f9dac SHA1 aa2e0f617cd20c2ecaf3504325281b15c71eea41 SHA256 5e49862d97d42479da4a64274ec5166d813c0841b5c459ae000dd879aa8872d6
-EBUILD octave-3.0.3.ebuild 2681 RMD160 b2b31461e4b4fa71b5d4a9cd3c7616f005165958 SHA1 3ccfbfca3c9c8c5d0c9ae81b9bf0f26118c696d1 SHA256 190ff7f058e1bfc39c267511a16f91cda59e718b4e457fdf90c1eb3dc63b729a
EBUILD octave-3.2.4-r1.ebuild 2915 RMD160 235976a2952fc9a4ea9c901917c2b0cc6e26f683 SHA1 f29bef71017a7b092e64766e5191dbd8c23f0304 SHA256 8c8fa4b03a4d394ecc7d89eda5a24e7f7472fa773bc60e349914720bde9788e9
-MISC ChangeLog 23129 RMD160 205c0c821d4f670b0297becb81f64d4ae1f808ea SHA1 3d8f2234e945a9cd3a322f9a47f96cf7cb903939 SHA256 fd2d1e447dcab30fb19d56c32abb8ac1c73541a4d24699352e9faa658365b96f
+MISC ChangeLog 23566 RMD160 626c620a983cbe25516312679b14e80f80947b8f SHA1 b7f918a9da0e4eae251ce69a45f0a58892965f11 SHA256 2c2b3f65875323815405b4f966bc0ce7589b49143c0f67248896c3849f1e6714
MISC metadata.xml 260 RMD160 27a4292b758e1199d0092b731cba79033f1b4167 SHA1 9997a99a4d6115f3b901208ba711d735ce9be36e SHA256 5fda55fd44bfec5755e1c3ac828887c37f0eebed6b3b972454e123ac2472d3ff
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
-iEYEARECAAYFAkwh1MUACgkQgAnW8HDreRYJdACbBFddyG91oLLjf6/VR6raOPuj
-GFsAn0VadRo44ojNsFHL8YR8KZoJosAr
-=YneB
+iEYEARECAAYFAkwjkfoACgkQ1ycZbhPLE2DiQACfcfXNOhXMIvV5CaJnzr18FpGX
+BLAAn13UesXB6yPfVzudY5igkUGIPXIB
+=RI6u
-----END PGP SIGNATURE-----
diff --git a/sci-mathematics/octave/files/octave-2.1.72-gcc4.1-gentoo.patch b/sci-mathematics/octave/files/octave-2.1.72-gcc4.1-gentoo.patch
deleted file mode 100644
index 92620414d089..000000000000
--- a/sci-mathematics/octave/files/octave-2.1.72-gcc4.1-gentoo.patch
+++ /dev/null
@@ -1,120 +0,0 @@
-diff -Naur octave-2.1.72/liboctave/CMatrix.h octave-2.1.72-new/liboctave/CMatrix.h
---- octave-2.1.72/liboctave/CMatrix.h 2005-11-11 13:47:27.000000000 -0600
-+++ octave-2.1.72-new/liboctave/CMatrix.h 2006-03-14 11:26:53.000000000 -0600
-@@ -204,17 +204,6 @@
-
- ComplexMatrix expm (void) const;
-
-- // column vector by row vector -> matrix operations
--
-- friend ComplexMatrix operator * (const ColumnVector& a,
-- const ComplexRowVector& b);
--
-- friend ComplexMatrix operator * (const ComplexColumnVector& a,
-- const RowVector& b);
--
-- friend ComplexMatrix operator * (const ComplexColumnVector& a,
-- const ComplexRowVector& b);
--
- // matrix by diagonal matrix -> matrix operations
-
- ComplexMatrix& operator += (const DiagMatrix& a);
-@@ -290,6 +279,17 @@
- ComplexMatrix Sylvester (const ComplexMatrix&, const ComplexMatrix&,
- const ComplexMatrix&);
-
-+// column vector by row vector -> matrix operations
-+
-+ComplexMatrix operator * (const ColumnVector& a,
-+ const ComplexRowVector& b);
-+
-+ComplexMatrix operator * (const ComplexColumnVector& a,
-+ const RowVector& b);
-+
-+ComplexMatrix operator * (const ComplexColumnVector& a,
-+ const ComplexRowVector& b);
-+
- extern ComplexMatrix operator * (const Matrix&, const ComplexMatrix&);
- extern ComplexMatrix operator * (const ComplexMatrix&, const Matrix&);
- extern ComplexMatrix operator * (const ComplexMatrix&, const ComplexMatrix&);
-diff -Naur octave-2.1.72/liboctave/dColVector.h octave-2.1.72-new/liboctave/dColVector.h
---- octave-2.1.72/liboctave/dColVector.h 2005-11-11 13:47:32.000000000 -0600
-+++ octave-2.1.72-new/liboctave/dColVector.h 2006-03-14 11:12:19.000000000 -0600
-@@ -103,6 +103,13 @@
- ColumnVector (double *d, int l) : MArray<double> (d, l) { }
- };
-
-+// Publish externally used friend functions.
-+
-+extern ColumnVector real (const ComplexColumnVector& a);
-+extern ColumnVector imag (const ComplexColumnVector& a);
-+
-+
-+
- MARRAY_FORWARD_DEFS (MArray, ColumnVector, double)
-
- #endif
-diff -Naur octave-2.1.72/liboctave/dMatrix.h octave-2.1.72-new/liboctave/dMatrix.h
---- octave-2.1.72/liboctave/dMatrix.h 2005-11-11 13:47:32.000000000 -0600
-+++ octave-2.1.72-new/liboctave/dMatrix.h 2006-03-14 11:14:00.000000000 -0600
-@@ -181,10 +181,6 @@
-
- boolMatrix operator ! (void) const;
-
-- // column vector by row vector -> matrix operations
--
-- friend Matrix operator * (const ColumnVector& a, const RowVector& b);
--
- // other operations
-
- Matrix map (d_d_Mapper f) const;
-@@ -235,6 +231,15 @@
- Matrix (double *d, int r, int c) : MArray2<double> (d, r, c) { }
- };
-
-+// Publish externally used friend functions.
-+
-+extern Matrix real (const ComplexMatrix& a);
-+extern Matrix imag (const ComplexMatrix& a);
-+
-+// column vector by row vector -> matrix operations
-+
-+extern Matrix operator * (const ColumnVector& a, const RowVector& b);
-+
- extern Matrix Givens (double, double);
-
- extern Matrix Sylvester (const Matrix&, const Matrix&, const Matrix&);
-diff -Naur octave-2.1.72/liboctave/dNDArray.h octave-2.1.72-new/liboctave/dNDArray.h
---- octave-2.1.72/liboctave/dNDArray.h 2005-11-11 13:47:32.000000000 -0600
-+++ octave-2.1.72-new/liboctave/dNDArray.h 2006-03-14 11:15:13.000000000 -0600
-@@ -131,6 +131,11 @@
- NDArray (double *d, const dim_vector& dv) : MArrayN<double> (d, dv) { }
- };
-
-+// Publish externally used friend functions.
-+
-+extern NDArray real (const ComplexNDArray& a);
-+extern NDArray imag (const ComplexNDArray& a);
-+
- extern NDArray min (double d, const NDArray& m);
- extern NDArray min (const NDArray& m, double d);
- extern NDArray min (const NDArray& a, const NDArray& b);
-diff -Naur octave-2.1.72/src/ov.h octave-2.1.72-new/src/ov.h
---- octave-2.1.72/src/ov.h 2005-11-11 13:48:31.000000000 -0600
-+++ octave-2.1.72-new/src/ov.h 2006-03-14 11:16:03.000000000 -0600
-@@ -814,6 +814,15 @@
- octave_value *nil_rep (void) const;
- };
-
-+// Publish externally used friend functions.
-+
-+extern octave_value
-+do_unary_op (octave_value::unary_op op, const octave_value& a);
-+
-+extern octave_value
-+do_binary_op (octave_value::binary_op op,
-+ const octave_value& a, const octave_value& b);
-+
- #define OV_UNOP_FN(name) \
- inline octave_value \
- name (const octave_value& a) \
diff --git a/sci-mathematics/octave/files/octave-2.1.73-gcc-4.3.patch b/sci-mathematics/octave/files/octave-2.1.73-gcc-4.3.patch
deleted file mode 100644
index 622b32cf1b26..000000000000
--- a/sci-mathematics/octave/files/octave-2.1.73-gcc-4.3.patch
+++ /dev/null
@@ -1,265 +0,0 @@
-diff -Naur octave-2.1.73/doc/interpreter/munge-texi.cc octave-2.1.73.new/doc/interpreter/munge-texi.cc
---- octave-2.1.73/doc/interpreter/munge-texi.cc 2005-05-02 07:15:47.000000000 -0400
-+++ octave-2.1.73.new/doc/interpreter/munge-texi.cc 2008-04-18 08:56:55.000000000 -0400
-@@ -29,6 +29,8 @@
- #include <iostream>
- #include <fstream>
- #include <string>
-+#include <cstring>
-+#include <cstdlib>
- #include <map>
-
- static const char doc_delim = '';
-diff -Naur octave-2.1.73/liboctave/chMatrix.cc octave-2.1.73.new/liboctave/chMatrix.cc
---- octave-2.1.73/liboctave/chMatrix.cc 2005-05-02 07:16:21.000000000 -0400
-+++ octave-2.1.73.new/liboctave/chMatrix.cc 2008-04-18 08:56:55.000000000 -0400
-@@ -32,6 +32,7 @@
-
- #include <iostream>
- #include <string>
-+#include <cstring>
-
- #include "lo-error.h"
- #include "str-vec.h"
-diff -Naur octave-2.1.73/liboctave/data-conv.cc octave-2.1.73.new/liboctave/data-conv.cc
---- octave-2.1.73/liboctave/data-conv.cc 2005-05-02 07:16:22.000000000 -0400
-+++ octave-2.1.73.new/liboctave/data-conv.cc 2008-04-18 08:56:55.000000000 -0400
-@@ -28,6 +28,7 @@
- #include <cctype>
-
- #include <iostream>
-+#include <cstdlib>
-
- #include "byte-swap.h"
- #include "data-conv.h"
-diff -Naur octave-2.1.73/liboctave/lo-sysdep.cc octave-2.1.73.new/liboctave/lo-sysdep.cc
---- octave-2.1.73/liboctave/lo-sysdep.cc 2005-05-02 07:16:26.000000000 -0400
-+++ octave-2.1.73.new/liboctave/lo-sysdep.cc 2008-04-18 08:56:55.000000000 -0400
-@@ -27,6 +27,7 @@
-
- #include <iostream>
- #include <string>
-+#include <cstring>
-
- #ifdef HAVE_UNISTD_H
- #ifdef HAVE_SYS_TYPES_H
-diff -Naur octave-2.1.73/liboctave/lo-utils.cc octave-2.1.73.new/liboctave/lo-utils.cc
---- octave-2.1.73/liboctave/lo-utils.cc 2005-05-02 07:16:26.000000000 -0400
-+++ octave-2.1.73.new/liboctave/lo-utils.cc 2008-04-18 08:56:55.000000000 -0400
-@@ -31,6 +31,7 @@
- #include <cstdio>
-
- #include <string>
-+#include <cstring>
-
- #ifdef HAVE_UNISTD_H
- #ifdef HAVE_SYS_TYPES_H
-diff -Naur octave-2.1.73/liboctave/oct-env.cc octave-2.1.73.new/liboctave/oct-env.cc
---- octave-2.1.73/liboctave/oct-env.cc 2005-05-02 07:16:27.000000000 -0400
-+++ octave-2.1.73.new/liboctave/oct-env.cc 2008-04-18 08:56:55.000000000 -0400
-@@ -45,6 +45,7 @@
- #include <cstdlib>
-
- #include <string>
-+#include <cstring>
-
- #ifdef HAVE_UNISTD_H
- #ifdef HAVE_SYS_TYPES_H
-diff -Naur octave-2.1.73/liboctave/oct-sort.cc octave-2.1.73.new/liboctave/oct-sort.cc
---- octave-2.1.73/liboctave/oct-sort.cc 2005-05-02 07:16:28.000000000 -0400
-+++ octave-2.1.73.new/liboctave/oct-sort.cc 2008-04-18 08:56:55.000000000 -0400
-@@ -84,6 +84,9 @@
- #include <config.h>
- #endif
-
-+#include <cstdlib>
-+#include <cstring>
-+
- #include "lo-mappers.h"
- #include "quit.h"
- #include "oct-sort.h"
-diff -Naur octave-2.1.73/src/DLD-FUNCTIONS/sort.cc octave-2.1.73.new/src/DLD-FUNCTIONS/sort.cc
---- octave-2.1.73/src/DLD-FUNCTIONS/sort.cc 2006-03-20 16:11:03.000000000 -0500
-+++ octave-2.1.73.new/src/DLD-FUNCTIONS/sort.cc 2008-04-18 08:56:55.000000000 -0400
-@@ -294,7 +294,7 @@
- template class octave_sort<vec_index<unsigned EIGHT_BYTE_INT> *>;
-
- template <>
--static octave_value
-+octave_value
- mx_sort (ArrayN<double> &m, int dim, sortmode mode)
- {
- octave_value retval;
-@@ -345,11 +345,12 @@
- // things up.
-
- if (lo_ieee_signbit (octave_NaN))
-+ {
- if (mode == UNDEFINED || mode == ASCENDING)
- {
- unsigned int i = 0;
- double *vtmp = (double *)p;
-- while (xisnan (vtmp[i++]) && i < ns);
-+ while (xisnan (vtmp[i++]) && i < ns) {}
- for (unsigned int l = 0; l < ns - i + 1; l++)
- vtmp[l] = vtmp[l+i-1];
- for (unsigned int l = ns - i + 1; l < ns; l++)
-@@ -359,12 +360,13 @@
- {
- unsigned int i = ns;
- double *vtmp = (double *)p;
-- while (xisnan (vtmp[--i]) && i > 0);
-+ while (xisnan (vtmp[--i]) && i > 0) {}
- for (int l = i; l >= 0; l--)
- vtmp[l-i+ns-1] = vtmp[l];
- for (unsigned int l = 0; l < ns - i - 1; l++)
- vtmp[l] = octave_NaN;
- }
-+ }
-
- p += ns;
- }
-@@ -404,10 +406,11 @@
- // fix things up.
-
- if (lo_ieee_signbit (octave_NaN))
-+ {
- if (mode == UNDEFINED || mode == ASCENDING)
- {
- unsigned int i = 0;
-- while (xisnan (v[i++*stride + offset]) && i < ns);
-+ while (xisnan (v[i++*stride + offset]) && i < ns) {}
- for (unsigned int l = 0; l < ns - i + 1; l++)
- v[l*stride + offset] = v[(l+i-1)*stride + offset];
- for (unsigned int l = ns - i + 1; l < ns; l++)
-@@ -416,12 +419,13 @@
- else
- {
- unsigned int i = ns;
-- while (xisnan (v[--i*stride + offset]) && i > 0);
-+ while (xisnan (v[--i*stride + offset]) && i > 0) {}
- for (int l = i; l >= 0; l--)
- v[(l-i+ns-1)*stride + offset] = v[l*stride + offset];
- for (unsigned int l = 0; l < ns - i - 1; l++)
- v[l*stride + offset] = octave_NaN;
- }
-+ }
- }
- }
-
-@@ -431,7 +435,7 @@
- }
-
- template <>
--static octave_value_list
-+octave_value_list
- mx_sort_indexed (ArrayN<double> &m, int dim, sortmode mode)
- {
- octave_value_list retval;
-@@ -506,10 +510,11 @@
- // If it will be sorted to the beginning, fix things up.
-
- if (lo_ieee_signbit (octave_NaN))
-+ {
- if (mode == UNDEFINED || mode == ASCENDING)
- {
- unsigned int i = 0;
-- while (xisnan (v[i++*stride+offset]) && i < ns);
-+ while (xisnan (v[i++*stride+offset]) && i < ns) {}
- OCTAVE_LOCAL_BUFFER (double, itmp, i - 1);
- for (unsigned int l = 0; l < i -1; l++)
- itmp[l] = idx(l*stride + offset);
-@@ -527,7 +532,7 @@
- else
- {
- unsigned int i = ns;
-- while (xisnan (v[--i*stride+offset]) && i > 0);
-+ while (xisnan (v[--i*stride+offset]) && i > 0) {}
- OCTAVE_LOCAL_BUFFER (double, itmp, ns - i - 1);
- for (unsigned int l = 0; l < ns - i -1; l++)
- itmp[l] = idx((l+i+1)*stride + offset);
-@@ -542,6 +547,7 @@
- idx(l*stride + offset) = itmp[k];
- }
- }
-+ }
- }
-
- retval(1) = idx;
-diff -Naur octave-2.1.73/src/file-io.cc octave-2.1.73.new/src/file-io.cc
---- octave-2.1.73/src/file-io.cc 2006-03-20 16:11:02.000000000 -0500
-+++ octave-2.1.73.new/src/file-io.cc 2008-04-18 08:56:55.000000000 -0400
-@@ -42,6 +42,7 @@
- #include <cerrno>
- #include <climits>
- #include <cstdio>
-+#include <cstring>
-
- #include <iostream>
- #include <vector>
-diff -Naur octave-2.1.73/src/oct-stream.cc octave-2.1.73.new/src/oct-stream.cc
---- octave-2.1.73/src/oct-stream.cc 2005-05-05 15:07:24.000000000 -0400
-+++ octave-2.1.73.new/src/oct-stream.cc 2008-04-18 08:56:55.000000000 -0400
-@@ -1255,7 +1255,7 @@
- int c3 = is.get ();
-
- if (c3 != EOF)
--
-+ {
- if (c3 == 'f')
- {
- int c4 = is.get ();
-@@ -1290,6 +1290,7 @@
-
- is >> ref;
- }
-+ }
- }
- else
- {
-diff -Naur octave-2.1.73/src/ov-fcn-inline.cc octave-2.1.73.new/src/ov-fcn-inline.cc
---- octave-2.1.73/src/ov-fcn-inline.cc 2005-05-02 07:17:16.000000000 -0400
-+++ octave-2.1.73.new/src/ov-fcn-inline.cc 2008-04-18 08:56:55.000000000 -0400
-@@ -126,7 +126,7 @@
- OSSTREAM buf;
-
- // Skip preceeding newline(s)
-- while (is.get (c) && c == '\n');
-+ while (is.get (c) && c == '\n') {}
-
- if (is)
- {
-diff -Naur octave-2.1.73/src/parse.y octave-2.1.73.new/src/parse.y
---- octave-2.1.73/src/parse.y 2006-03-20 16:11:03.000000000 -0500
-+++ octave-2.1.73.new/src/parse.y 2008-04-18 08:56:55.000000000 -0400
-@@ -34,6 +34,7 @@
-
- #include <cassert>
- #include <cstdio>
-+#include <cstring>
-
- #ifdef YYBYACC
- #include <cstdlib>
-diff -Naur octave-2.1.73/src/pr-output.cc octave-2.1.73.new/src/pr-output.cc
---- octave-2.1.73/src/pr-output.cc 2005-05-02 07:17:17.000000000 -0400
-+++ octave-2.1.73.new/src/pr-output.cc 2008-04-18 08:56:55.000000000 -0400
-@@ -1602,7 +1602,7 @@
- }
-
- template <>
--static inline void
-+inline void
- pr_plus_format (std::ostream& os, const Complex& c)
- {
- double rp = c.real ();
-diff -Naur octave-2.1.73/src/unwind-prot.cc octave-2.1.73.new/src/unwind-prot.cc
---- octave-2.1.73/src/unwind-prot.cc 2005-05-02 07:17:20.000000000 -0400
-+++ octave-2.1.73.new/src/unwind-prot.cc 2008-04-18 08:56:55.000000000 -0400
-@@ -30,6 +30,7 @@
- #endif
-
- #include <cstddef>
-+#include <cstring>
-
- #include "CMatrix.h"
-
diff --git a/sci-mathematics/octave/files/octave-3.0.0-pkg.patch b/sci-mathematics/octave/files/octave-3.0.0-pkg.patch
deleted file mode 100644
index 77fe1fb64735..000000000000
--- a/sci-mathematics/octave/files/octave-3.0.0-pkg.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Naur octave-3.0.0/scripts/pkg/pkg.m octave-3.0.0.new/scripts/pkg/pkg.m
---- octave-3.0.0/scripts/pkg/pkg.m 2007-12-20 11:55:26.000000000 -0500
-+++ octave-3.0.0.new/scripts/pkg/pkg.m 2008-03-16 06:32:07.000000000 -0400
-@@ -514,7 +514,7 @@
- ## Warn about non existent files
- for i = 1:length (files)
- if (isempty (glob(files{i})))
-- warning ("file %s does not exist", files{i});
-+ error ("file %s does not exist", files{i});
- endif
- endfor
-
diff --git a/sci-mathematics/octave/files/octave-3.0.1-fix_handle_for_plotyy.patch b/sci-mathematics/octave/files/octave-3.0.1-fix_handle_for_plotyy.patch
deleted file mode 100644
index 38fafc14244d..000000000000
--- a/sci-mathematics/octave/files/octave-3.0.1-fix_handle_for_plotyy.patch
+++ /dev/null
@@ -1,76 +0,0 @@
-## patch from debian svn
-## 50_fix_handle_for_plotyy.dpatch by Thomas Weber <thomas.weber.mail@gmail.com>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: Bug fix for 472069
-diff -urNad octave3.0-3.0.0~/scripts/plot/plotyy.m octave3.0-3.0.0/scripts/plot/plotyy.m
---- octave3.0-3.0.0~/scripts/plot/plotyy.m 2007-12-13 18:48:59.000000000 +0100
-+++ octave3.0-3.0.0/scripts/plot/plotyy.m 2008-03-28 12:20:12.000000000 +0100
-@@ -55,7 +55,37 @@
-
- function [Ax, H1, H2] = plotyy (varargin)
-
-- [ax, varargin] = __plt_get_axis_arg__ ("plotyy", varargin{:});
-+ ## Don't use __plt_get_axis_arg__ here as ax is a two vector for plotyy
-+ if (nargin > 1 && length (varargin{1}) == 2 && ishandle(varargin{1}(1))
-+ && ishandle(varargin{1}(2)) &&
-+ all (floor (varargin{1}) != varargin{1}))
-+ obj1 = get (varargin{1}(1));
-+ obj2 = get (varargin{1}(2));
-+ if (strcmp (obj1.type, "axes") || strcmp (obj2.type, "axes"))
-+ ax = [obj1, obj2];
-+ varargin(1) = [];
-+ if (isempty (varargin))
-+ varargin = {};
-+ endif
-+ else
-+ error ("plotyy: expecting first argument to be axes handle");
-+ endif
-+ else
-+ f = get (0, "currentfigure");
-+ if (isempty (f))
-+ ax(1) = axes ();
-+ ax(2) = axes ();
-+ else
-+ ax = get (f, "children");
-+ for i = 3 : length (ax)
-+ delete (ax (i));
-+ endfor
-+ ax = ax(1:2);
-+ endif
-+ if (nargin < 2)
-+ varargin = {};
-+ endif
-+ endif
-
- if (nargin < 4)
- print_usage ();
-@@ -63,8 +93,6 @@
-
- oldh = gca ();
- unwind_protect
-- axes (ax);
-- newplot ();
- [ax, h1, h2] = __plotyy__ (ax, varargin{:});
- unwind_protect_cleanup
- axes (oldh);
-@@ -92,6 +120,8 @@
-
- xlim = [min([x1(:); x2(:)]), max([x1(:); x2(:)])];
-
-+ axes (ax(1));
-+ newplot ();
- h1 = feval (fun1, x1, y1);
-
- set (ax(1), "ycolor", getcolor (h1(1)));
-@@ -101,7 +131,9 @@
-
- cf = gcf ();
- set (cf, "nextplot", "add");
-- ax(2) = axes ();
-+ axes (ax(2));
-+ newplot ();
-+
- colors = get (ax(1), "colororder");
- set (ax(2), "colororder", [colors(2:end,:); colors(1,:)]);
-
diff --git a/sci-mathematics/octave/files/octave-3.0.1-no_helvetica.patch b/sci-mathematics/octave/files/octave-3.0.1-no_helvetica.patch
deleted file mode 100644
index 35a7c9915eb6..000000000000
--- a/sci-mathematics/octave/files/octave-3.0.1-no_helvetica.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-## patch from debian svn
-## don_set_helvetica.dpatch by Thomas Weber <thomas.weber.mail@gmail.com>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: Don't set Helvetica as default font, it's not available as TrueType font
-## DP: #477688
-diff -urNad octave3.0-3.0.1~/scripts/plot/__go_draw_axes__.m octave3.0-3.0.1/scripts/plot/__go_draw_axes__.m
---- octave3.0-3.0.1~/scripts/plot/__go_draw_axes__.m 2008-04-21 18:00:20.000000000 +0200
-+++ octave3.0-3.0.1/scripts/plot/__go_draw_axes__.m 2008-05-25 17:30:08.000000000 +0200
-@@ -1601,7 +1601,7 @@
-
- function [f, s, fnt, it, bld] = get_fontname_and_size (t)
- if (isempty (t.fontname))
-- fnt = "Helvetica";
-+ fnt = "";
- else
- fnt = t.fontname;
- endif
-@@ -1639,7 +1639,7 @@
- if (strcmp (fld, "string"))
- [f, s, fnt, it, bld] = get_fontname_and_size (obj);
- else
-- f = "Helvetica";
-+ f = "";
- s = 10;
- fnt = f;
- it = false;
-diff -urNad octave3.0-3.0.1~/src/graphics.cc octave3.0-3.0.1/src/graphics.cc
---- octave3.0-3.0.1~/src/graphics.cc 2008-04-21 18:00:20.000000000 +0200
-+++ octave3.0-3.0.1/src/graphics.cc 2008-05-25 17:30:08.000000000 +0200
-@@ -2336,7 +2336,7 @@
- rotation (0),
- horizontalalignment ("left"),
- color (Matrix (1, 3, 0.0)),
-- fontname ("Helvetica"),
-+ fontname (""),
- fontsize (10),
- fontangle (radio_values ("{normal}|italic|oblique")),
- fontweight (radio_values ("{normal}|bold|demi|light")),
-@@ -2470,7 +2470,7 @@
- m["rotation"] = 0;
- m["horizontalalignment"] = "left";
- m["color"] = Matrix (1, 3, 1.0);
-- m["fontname"] = "Helvetica";
-+ m["fontname"] = "";
- m["fontsize"] = 10;
- m["fontangle"] = radio_property (radio_values ("{normal}|italic|oblique"));
- m["fontweight"] = radio_property (radio_values ("{normal}|bold|demi|light"));
diff --git a/sci-mathematics/octave/files/octave-3.0.3-test-fix.patch b/sci-mathematics/octave/files/octave-3.0.3-test-fix.patch
deleted file mode 100644
index fc976928c3b0..000000000000
--- a/sci-mathematics/octave/files/octave-3.0.3-test-fix.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-diff -Naur octave-3.0.3/scripts/general/interpft.m octave-3.0.3.new/scripts/general/interpft.m
---- octave-3.0.3/scripts/general/interpft.m 2008-09-29 01:36:19.000000000 -0400
-+++ octave-3.0.3.new/scripts/general/interpft.m 2008-11-17 06:41:18.000000000 -0500
-@@ -105,10 +105,6 @@
- %! legend ('sin(4t+0.3)cos(3t-0.1','spline','interpft','data');
-
- %!shared n,y
--%! x = [0:10]'; y = sin(x); n = length (x);
--%!assert (interpft(y, n), y, 2*eps);
--%!assert (interpft(y', n), y', 2*eps);
--%!assert (interpft([y,y],n), [y,y], 2*eps);
-
- %!error (interpft(y,n,0))
- %!error (interpft(y,[n,n]))
-diff -Naur octave-3.0.3/test/build_sparse_tests.sh octave-3.0.3.new/test/build_sparse_tests.sh
---- octave-3.0.3/test/build_sparse_tests.sh 2008-09-24 03:13:50.000000000 -0400
-+++ octave-3.0.3.new/test/build_sparse_tests.sh 2008-11-17 06:38:19.000000000 -0500
-@@ -872,20 +872,6 @@
- %! load(savefile,"as_save");
- %! unlink(savefile);
- %! assert(as_save,sparse(af));
--%!test # save binary
--%! savefile= tmpnam();
--%! as_save=as; save("-binary",savefile,"bf","as_save","af");
--%! clear as_save;
--%! load(savefile,"as_save");
--%! unlink(savefile);
--%! assert(as_save,sparse(af));
--%!test # save hdf5
--%! savefile= tmpnam();
--%! as_save=as; save("-hdf5",savefile,"bf","as_save","af");
--%! clear as_save;
--%! load(savefile,"as_save");
--%! unlink(savefile);
--%! assert(as_save,sparse(af));
- %!test # save matlab
- %! savefile= tmpnam();
- %! as_save=as; save("-mat",savefile,"bf","as_save","af");
-diff -Naur octave-3.0.3/test/test_system.m octave-3.0.3.new/test/test_system.m
---- octave-3.0.3/test/test_system.m 2008-09-24 03:13:50.000000000 -0400
-+++ octave-3.0.3.new/test/test_system.m 2008-11-17 06:38:19.000000000 -0500
-@@ -377,11 +377,6 @@
- %!error <Invalid call to file_in_path.*> file_in_path ("foo", "bar", "baz", "ooka");
-
- %% test/octave.test/system/tilde_expand-1.m
--%!testif HAVE_GETPWUID
--%! x = getpwuid (getuid ());
--%! assert((strcmp (x.dir, tilde_expand ("~"))
--%! && strcmp (x.dir, tilde_expand (sprintf ("~%s", x.name)))
--%! && strcmp ("foobar", tilde_expand ("foobar"))));
-
- %% test/octave.test/system/tilde_expand-2.m
- %!error <Invalid call to tilde_expand.*> tilde_expand ();
diff --git a/sci-mathematics/octave/files/octave-3.2.0-dlmwrite.patch b/sci-mathematics/octave/files/octave-3.2.0-dlmwrite.patch
deleted file mode 100644
index 1521165ac2f7..000000000000
--- a/sci-mathematics/octave/files/octave-3.2.0-dlmwrite.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Naur octave-3.2.0/scripts/io/dlmwrite.m octave-3.2.0.new/scripts/io/dlmwrite.m
---- octave-3.2.0/scripts/io/dlmwrite.m 2009-05-25 02:04:59.000000000 -0400
-+++ octave-3.2.0.new/scripts/io/dlmwrite.m 2009-09-08 22:08:40.000000000 -0400
-@@ -85,7 +85,7 @@
- function dlmwrite (file, a, varargin)
-
- if (nargin < 2 || ! ischar (file))
-- ptint_usage ();
-+ print_usage ();
- endif
-
- ## set defaults
diff --git a/sci-mathematics/octave/octave-2.1.73-r2.ebuild b/sci-mathematics/octave/octave-2.1.73-r2.ebuild
deleted file mode 100644
index 2334e21d73db..000000000000
--- a/sci-mathematics/octave/octave-2.1.73-r2.ebuild
+++ /dev/null
@@ -1,154 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-2.1.73-r2.ebuild,v 1.11 2009/09/23 20:11:50 patrick Exp $
-
-inherit flag-o-matic fortran autotools xemacs-elisp-common
-
-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 doc hdf5 mpi xemacs"
-KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
-
-DEPEND="dev-util/dejagnu
- >=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
- virtual/blas
- virtual/lapack
- zlib? ( sys-libs/zlib )
- hdf5? ( sci-libs/hdf5 )
- doc? ( virtual/latex-base )
- mpi? ( virtual/mpi )
- xemacs? ( app-editors/xemacs )
- !=app-text/texi2html-1.70"
-RDEPEND="${DEPEND}
- emacs? ( virtual/emacs )"
-
-# 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
-FORTRAN="gfortran g77 f2c"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}"/${P}-gcc4.1-gentoo.patch
- epatch "${FILESDIR}"/${PN}-example-fix.patch
- epatch "${FILESDIR}"/${P}-f2c-fix.patch
- epatch "${FILESDIR}"/${P}-gcc-4.3.patch
- eautoconf
-}
-
-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 && append-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"
- if has_version 'sys-cluster/mpich' ; then
- CXX="mpiCC"
- myconf="${myconf} --with-mpi=mpich"
- elif has_version 'sys-cluster/mpich2' ; then
- if built_with_use sys-cluster/mpich2 cxx ; then
- elog "mpich2 must be built without C++ support!"
- die "please rebuild mpich2 with USE=-cxx..."
- fi
- F77="mpif77"
- myconf="${myconf} --with-mpi=mpich"
- else
- myconf="${myconf} --with-mpi=mpi"
- fi
- else
- CC="$(tc-getCC)"
- CXX="$(tc-getCXX)"
- myconf="${myconf} --without-mpi"
- fi
-
- CC="${CC}" CXX="${CXX}" F77="${F77}" \
- econf \
- $(use_with hdf5) \
- $(use_enable readline) \
- ${myconf} \
- || die "econf failed"
-
- emake || die "emake failed"
-
- if use xemacs; then
- cd "${S}/emacs"
- xemacs-elisp-comp *.el
- fi
-}
-
-src_install() {
- # needed to avoid possible sandbox violations by latex
- export VARTEXFONTS="${T}/fonts"
-
- make install DESTDIR="${D}" || die "make install failed"
- if use doc; then
- octave-install-doc || die "Octave doc install failed"
- fi
- if use emacs || use xemacs; then
- cd emacs
- exeinto /usr/bin
- doexe otags || die
- doman otags.1 || die
- if use xemacs; then
- xemacs-elisp-install ${PN} *.el *.elc
- fi
- 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.73.ebuild b/sci-mathematics/octave/octave-2.1.73.ebuild
deleted file mode 100644
index 9f27909978b6..000000000000
--- a/sci-mathematics/octave/octave-2.1.73.ebuild
+++ /dev/null
@@ -1,140 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-2.1.73.ebuild,v 1.13 2010/06/23 09:32:45 jlec 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 doc hdf5 mpi blas"
-KEYWORDS="alpha amd64 ppc ppc64 ~sparc x86"
-
-DEPEND=">=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 )
- doc? ( virtual/latex-base )
- blas? ( virtual/blas )
- mpi? ( virtual/mpi )
- !=app-text/texi2html-1.70"
-RDEPEND="${DEPEND}"
-# 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_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}"/${P}-gcc4.1-gentoo.patch
-}
-
-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 && append-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"
- if has_version 'sys-cluster/mpich' ; then
- CXX="mpiCC"
- myconf="${myconf} --with-mpi=mpich"
- elif has_version 'sys-cluster/mpich2' ; then
- if built_with_use sys-cluster/mpich2 cxx ; then
- elog "mpich2 must be built without C++ support!"
- die "please rebuild mpich2 with USE=-cxx..."
- fi
- F77="mpif77"
- myconf="${myconf} --with-mpi=mpich"
- else
- myconf="${myconf} --with-mpi=mpi"
- fi
- else
- CC="$(tc-getCC)"
- CXX="$(tc-getCXX)"
- myconf="${myconf} --without-mpi"
- fi
-
- CC="${CC}" CXX="${CXX}" F77="${F77}" \
- econf \
- $(use_with hdf5) \
- $(use_enable readline) \
- ${myconf} \
- || die "econf failed"
-
- emake || die "emake failed"
-}
-
-src_install() {
- # needed to avoid possible sandbox violations by latex
- export VARTEXFONTS="${T}/fonts"
-
- make install DESTDIR="${D}" || die "make install failed"
- if use doc; 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-3.0.3.ebuild b/sci-mathematics/octave/octave-3.0.3.ebuild
deleted file mode 100644
index d02943f9ca53..000000000000
--- a/sci-mathematics/octave/octave-3.0.3.ebuild
+++ /dev/null
@@ -1,107 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/octave/octave-3.0.3.ebuild,v 1.10 2009/10/12 20:06:24 jer Exp $
-
-inherit flag-o-matic fortran xemacs-elisp-common
-
-DESCRIPTION="High-level interactive language for numerical computations"
-LICENSE="GPL-3"
-HOMEPAGE="http://www.octave.org/"
-SRC_URI="ftp://ftp.gnu.org/pub/gnu/${PN}/${P}.tar.bz2"
-
-SLOT="0"
-IUSE="emacs readline zlib doc hdf5 curl fftw xemacs sparse"
-KEYWORDS="alpha amd64 hppa ppc ~ppc64 sparc x86"
-
-RDEPEND="virtual/lapack
- dev-libs/libpcre
- sys-libs/ncurses
- sci-visualization/gnuplot
- >=sci-mathematics/glpk-4.15
- media-libs/qhull
- fftw? ( >=sci-libs/fftw-3.1.2 )
- zlib? ( sys-libs/zlib )
- hdf5? ( sci-libs/hdf5 )
- curl? ( net-misc/curl )
- xemacs? ( app-editors/xemacs )
- sparse? ( sci-libs/umfpack
- sci-libs/colamd
- sci-libs/camd
- sci-libs/ccolamd
- sci-libs/cholmod
- sci-libs/cxsparse )
- !sci-mathematics/octave-forge"
-
-DEPEND="${RDEPEND}
- virtual/latex-base
- sys-apps/texinfo
- || ( dev-texlive/texlive-genericrecommended
- app-text/ptex )
- dev-util/gperf
- dev-util/pkgconfig"
-
-FORTRAN="gfortran ifc g77 f2c"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${PN}-3.0.0-pkg.patch
- epatch "${FILESDIR}"/${P}-test-fix.patch
- epatch "${FILESDIR}"/${PN}-3.0.1-fix_handle_for_plotyy.patch
- epatch "${FILESDIR}"/${PN}-3.0.1-no_helvetica.patch
-}
-
-src_compile() {
- econf \
- --localstatedir=/var/state/octave \
- --enable-shared \
- --with-blas="$(pkg-config --libs blas)" \
- --with-lapack="$(pkg-config --libs lapack)" \
- $(use_with hdf5) \
- $(use_with curl) \
- $(use_with zlib) \
- $(use_with fftw) \
- $(use_with sparse umfpack) \
- $(use_with sparse colamd) \
- $(use_with sparse ccolamd) \
- $(use_with sparse cholmod) \
- $(use_with sparse cxsparse) \
- $(use_enable readline)
-
- emake || die "emake failed"
-
- if use xemacs; then
- cd "${S}/emacs"
- xemacs-elisp-comp *.el
- fi
-}
-
-src_install() {
- emake install DESTDIR="${D}" || die "emake install failed"
-
- if use doc; then
- einfo "Installing documentation..."
- insinto /usr/share/doc/${PF}
- doins $(find doc -name \*.pdf)
- fi
-
- if use emacs || use xemacs; then
- cd emacs
- exeinto /usr/bin
- doexe octave-tags || die "Failed to install octave-tags"
- doman octave-tags.1 || die "Failed to install octave-tags.1"
- if use xemacs; then
- xemacs-elisp-install ${PN} *.el *.elc
- fi
- cd ..
- fi
-
- echo "LDPATH=/usr/$(get_libdir)/octave-${PV}" > 99octave
- doenvd 99octave || die
-
- # Fixes ls-R files to remove /var/tmp/portage references.
- sed -i \
- -e "s:${D}::g" \
- "${D}"/usr/*/${PN}/ls-R \
- || die "Failed to fix ls-R files."
-}