aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkusle <markusle@32389bae-6d03-0410-99cf-db05cde120eb>2008-05-28 21:46:19 +0000
committermarkusle <markusle@32389bae-6d03-0410-99cf-db05cde120eb>2008-05-28 21:46:19 +0000
commit71105d28f87ad812235799f6cbc94bd93d7c15b7 (patch)
treecaa17fb2cba5faa6de0e7940c1443154a0ceaed7 /sci-mathematics/octave
parentpyglet-1.1_beta1 (diff)
downloadsci-71105d28f87ad812235799f6cbc94bd93d7c15b7.tar.gz
sci-71105d28f87ad812235799f6cbc94bd93d7c15b7.tar.bz2
sci-71105d28f87ad812235799f6cbc94bd93d7c15b7.zip
Major ebuild cleanup. Disabled failing tests and added patched from
debian svn. git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@1107 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-mathematics/octave')
-rw-r--r--sci-mathematics/octave/ChangeLog8
-rw-r--r--sci-mathematics/octave/Manifest8
-rw-r--r--sci-mathematics/octave/files/octave-3.0.1-add_syspath.patch19
-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.1-test-fix.patch53
-rw-r--r--sci-mathematics/octave/octave-3.0.1.ebuild120
7 files changed, 256 insertions, 76 deletions
diff --git a/sci-mathematics/octave/ChangeLog b/sci-mathematics/octave/ChangeLog
index b01244c72..b3ae9a71d 100644
--- a/sci-mathematics/octave/ChangeLog
+++ b/sci-mathematics/octave/ChangeLog
@@ -2,6 +2,14 @@
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 28 May 2008; Markus Dittrich <markusle@gentoo.org>
+ +files/octave-3.0.1-add_syspath.patch,
+ +files/octave-3.0.1-fix_handle_for_plotyy.patch,
+ +files/octave-3.0.1-no_helvetica.patch,
+ +files/octave-3.0.1-test-fix.patch, octave-3.0.1.ebuild:
+ Major ebuild cleanup. Disabled failing tests and added patched from debian
+ svn.
+
18 Mar 2008; Markus Dittrich <markusle@gentoo.org>
+files/octave-3.0.0-pkg.patch, octave-3.0.0.ebuild:
Added patch to have 'pkg install' exit with error code if it can't
diff --git a/sci-mathematics/octave/Manifest b/sci-mathematics/octave/Manifest
index b6437c749..2f9b86d7e 100644
--- a/sci-mathematics/octave/Manifest
+++ b/sci-mathematics/octave/Manifest
@@ -1,9 +1,13 @@
AUX octave-2.9.18-test-fix.patch 1241 RMD160 1cac3e4cd2cce480a184a8319ce0cb2d34503b2c SHA1 87905a77f3b9f63b56bd8c4ee8ae12e3a3c2ee4a SHA256 f72d643e3b9e143005dd450bb25a15ae87a41a0dcbbc34f3cced6da0f9980a3b
AUX octave-3.0.0-pkg.patch 471 RMD160 c8d7c9fddce78ef1344e5d8c8d3b95df432956c1 SHA1 43931da426dd988c451ff852391f33d236941efa SHA256 48974218d067c8e85d7cf0d4eea3921b5db743872f53131012e4c19696feb414
+AUX octave-3.0.1-add_syspath.patch 821 RMD160 951af410580969ef2dafbf76717043cbd1c5efce SHA1 b6516d6270a98af5427d267a8f91255e50bbd62e SHA256 8c592513223782ba6110d89fae55c287788330fc74eafa526e2c69abeae1276e
+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.1-test-fix.patch 2171 RMD160 a8275924c3161a7f78bcb84426527060d6c12ddd SHA1 0af5a53b2f251f9bf06976ec800b5eb217adf0bf SHA256 229bae7b5163c9d06d5df9d96db2c2ef3e0613576ec8f1b91698f286940247a0
DIST octave-2.9.19.tar.bz2 9807420 RMD160 c0f7d7b384f3e2f51cdb7ee0360d4ddf52e4493a SHA1 1cee64ccbcce0aca2b771175fcfbca817c9ba705 SHA256 684165a4b7f45e02761dded6ecf50d57652d55beb2295cdac3b7518ec6dc02d8
DIST octave-3.0.0.tar.bz2 9821575 RMD160 02fc58b63210ec99cfcad9dc2cee2ad1b6d11326 SHA1 874b3d40db5d882e37614ffa6cdb9fdd71e173f8 SHA256 f2351eed4f6505993275947802a35ecbc9b7e587ebbb5ee7ba72d54280de4418
DIST octave-3.0.1.tar.bz2 9854711 RMD160 3141454b1e9a8efcac0772aed63c27aaad082861 SHA1 e4cebe74a1182df610d91e45974653227dd4b342 SHA256 310bfc622d74fd5c3727c2304ad594888f3016a89f183af7afdfef3fd5c15e6d
EBUILD octave-2.9.19.ebuild 3730 RMD160 83bede43b38adeeb947a73eab8b1a72dfd2b423c SHA1 91e0f8ca90ce245fe008f0fe1b4c19f31c6c731b SHA256 b9ed09502561add7639a7b0494b3f101583ad4cfe49f1d818d3342c39be4d42b
EBUILD octave-3.0.0.ebuild 4143 RMD160 29397d608bf4d27ea1c230a6152d20ab69e5079b SHA1 991374e1717b25034f230cfbc6963470bef7f43c SHA256 18de83949602b28e6bb48a3d1a1df79f8b1cee3ab47fa32b6d0ffc645f2af67c
-EBUILD octave-3.0.1.ebuild 4132 RMD160 2f2b2e22cb85a04ebffe24f01383e8153b480014 SHA1 865c7735e2ab490ec88b620425b0f28595cf753e SHA256 9e0f6d0fc6ed43ae2cf38adea353202bc552994381bceb559eb9f0e793aba785
-MISC ChangeLog 981 RMD160 c29fa3d69f2c26d7380c4f4f200a2596a9cbbdd1 SHA1 084a94c7edec21ad69b3d8c4d42dd97f8f548ec2 SHA256 87abede80e3b255b773f38c3c999a6580ae79b098e6af146e47a9d01cf243e0a
+EBUILD octave-3.0.1.ebuild 2790 RMD160 53d0e20012a9334b0a2268ee7738b8540b26223a SHA1 b1817120233e039b23e02b7e1570b93779022494 SHA256 4e53769529270a0d454a455e106590326df4bc900e72b0727f3977397d9a1d1e
+MISC ChangeLog 1312 RMD160 75648a1de71df004522720db748565f19250722c SHA1 ad11cd6071655c2d39fd99a4495e063e14ea3191 SHA256 ded8e3760b20188e7fa93657c2ecdc710c76fd55ab82705773b06d908d87c317
diff --git a/sci-mathematics/octave/files/octave-3.0.1-add_syspath.patch b/sci-mathematics/octave/files/octave-3.0.1-add_syspath.patch
new file mode 100644
index 000000000..7abd25bfe
--- /dev/null
+++ b/sci-mathematics/octave/files/octave-3.0.1-add_syspath.patch
@@ -0,0 +1,19 @@
+# patch from debian svn
+## 50_add_syspath.dpatch by Thomas Weber <thomas.weber.mail@gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Put library path in loadpath (bug fix for #477556)
+## DP: http://www.cae.wisc.edu/pipermail/octave-maintainers/2008-May/007330.html
+diff -urNad octave3.0-3.0.1~/src/load-path.cc octave3.0-3.0.1/src/load-path.cc
+--- octave3.0-3.0.1~/src/load-path.cc 2008-04-21 18:00:20.000000000 +0200
++++ octave3.0-3.0.1/src/load-path.cc 2008-05-21 10:20:38.000000000 +0200
+@@ -382,7 +382,7 @@
+ xpath += dir_path::path_sep_str + tpath;
+
+ if (! sys_path.empty ())
+- xpath += sys_path;
++ xpath += dir_path::path_sep_str + sys_path;
+
+ do_set (xpath, false);
+ }
+diff -urNad octave3.0-3.0.1~/src/load-path.cc.orig octave3.0-3.0.1/src/load-path.cc.orig
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
new file mode 100644
index 000000000..38fafc142
--- /dev/null
+++ b/sci-mathematics/octave/files/octave-3.0.1-fix_handle_for_plotyy.patch
@@ -0,0 +1,76 @@
+## 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
new file mode 100644
index 000000000..35a7c9915
--- /dev/null
+++ b/sci-mathematics/octave/files/octave-3.0.1-no_helvetica.patch
@@ -0,0 +1,48 @@
+## 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.1-test-fix.patch b/sci-mathematics/octave/files/octave-3.0.1-test-fix.patch
new file mode 100644
index 000000000..af4d15c40
--- /dev/null
+++ b/sci-mathematics/octave/files/octave-3.0.1-test-fix.patch
@@ -0,0 +1,53 @@
+diff -Naur octave-3.0.1/scripts/general/interpft.m octave-3.0.1.new/scripts/general/interpft.m
+--- octave-3.0.1/scripts/general/interpft.m 2008-04-21 11:58:40.000000000 -0400
++++ octave-3.0.1.new/scripts/general/interpft.m 2008-05-28 11:54:37.000000000 -0400
+@@ -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, eps);
+-%!assert (interpft(y', n), y', eps);
+-%!assert (interpft([y,y],n), [y,y], eps);
+
+ %!error (interpft(y,n,0))
+ %!error (interpft(y,[n,n]))
+diff -Naur octave-3.0.1/test/build_sparse_tests.sh octave-3.0.1.new/test/build_sparse_tests.sh
+--- octave-3.0.1/test/build_sparse_tests.sh 2008-04-21 12:00:21.000000000 -0400
++++ octave-3.0.1.new/test/build_sparse_tests.sh 2008-05-28 12:15:14.000000000 -0400
+@@ -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.1/test/test_system.m octave-3.0.1.new/test/test_system.m
+--- octave-3.0.1/test/test_system.m 2008-04-21 12:00:22.000000000 -0400
++++ octave-3.0.1.new/test/test_system.m 2008-05-28 11:53:26.000000000 -0400
+@@ -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/octave-3.0.1.ebuild b/sci-mathematics/octave/octave-3.0.1.ebuild
index 6ab53fec2..a6659cde9 100644
--- a/sci-mathematics/octave/octave-3.0.1.ebuild
+++ b/sci-mathematics/octave/octave-3.0.1.ebuild
@@ -4,8 +4,8 @@
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"
+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"
@@ -13,16 +13,12 @@ SLOT="0"
IUSE="emacs readline zlib doc hdf5 curl fftw xemacs sparse"
KEYWORDS="~amd64 ~x86" #~alpha ~hppa ~ppc ~ppc64 ~sparc
-DEPEND="dev-util/dejagnu
- virtual/blas
- virtual/lapack
+RDEPEND="virtual/lapack
dev-libs/libpcre
- >=sys-libs/ncurses-5.2-r3
- >=sci-visualization/gnuplot-3.7.1-r3
+ sys-libs/ncurses
+ sci-visualization/gnuplot
>=sci-mathematics/glpk-4.15
- >=dev-util/gperf-2.7.2
- >=media-libs/qhull-3.1-r1
- virtual/latex-base
+ media-libs/qhull
fftw? ( >=sci-libs/fftw-3.1.2 )
zlib? ( sys-libs/zlib )
hdf5? ( sci-libs/hdf5 )
@@ -30,50 +26,51 @@ DEPEND="dev-util/dejagnu
xemacs? ( virtual/xemacs )
sparse? ( sci-libs/umfpack
sci-libs/colamd
+ sci-libs/camd
sci-libs/ccolamd
sci-libs/cholmod
- sci-libs/cxsparse )
- !=app-text/texi2html-1.70"
+ sci-libs/cxsparse )"
+
+DEPEND="${RDEPEND}
+ virtual/latex-base
+ || ( ( dev-texlive/texlive-genericrecommended )
+ app-text/tetex
+ app-text/ptex )
+ dev-util/dejagnu
+ dev-util/gperf
+ dev-util/pkgconfig"
-FORTRAN="gfortran g77 f2c"
+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}"/${P}-add_syspath.patch
+ epatch "${FILESDIR}"/${P}-fix_handle_for_plotyy.patch
+ epatch "${FILESDIR}"/${P}-no_helvetica.patch
}
src_compile() {
- local myconf="--localstatedir=/var/state/octave --enable-rpath"
-
- # force use of external blas, lapack, fftw
- myconf="${myconf} --with-blas=blas --with-lapack=lapack"
- myconf="${myconf} --enable-static --enable-shared --enable-dl"
-
- # disable sparse matrix stuff for now
- local sparse_conf;
- if use sparse; then
- sparse_conf="--with-umfpack --with-colamd --with-ccolamd"
- sparse_conf="${sparse_conf} --with-cholmod --with-cxsparse"
- else
- sparse_conf="--without-umfpack --without-colamd --without-ccolamd"
- sparse_conf="${sparse_conf} --without-cholmod --without-cxsparse"
- fi
- myconf="${myconf} ${sparse_conf}"
-
- if [[ "${FORTRANC}" == "g77" ]]; then
- myconf="${myconf} --with-f77"
- elif [[ "${FORTRANC}" == "f2c" ]]; then
- myconf="${myconf} --with-f2c"
- fi
econf \
+ --localstatedir=/var/state/octave \
+ --enable-rpath \
+ --enable-static \
+ --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) \
- ${myconf} \
|| die "econf failed"
emake || die "emake failed"
@@ -85,11 +82,14 @@ src_compile() {
}
src_install() {
- cd "${S}"
- make install DESTDIR="${D}" || die "make install failed"
+ emake install DESTDIR="${D}" || die "emake install failed"
+
if use doc; then
- octave-install-doc || die "Octave doc install failed"
+ 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
@@ -100,41 +100,13 @@ src_install() {
fi
cd ..
fi
- dodir /etc/env.d || die
- echo "LDPATH=/usr/lib/octave-${PV}" > "${D}"/etc/env.d/99octave \
- || die "Failed to set up env.d files"
- # Fixes ls-R files to remove /var/tmp/portage references.
- sed -i -e "s:${D}::g" "${D}"/usr/libexec/${PN}/ls-R && \
- sed -i -e "s:${D}::g" "${D}"/usr/share/${PN}/ls-R || \
- die "Failed to fix ls-R files."
-}
+ echo "LDPATH=/usr/$(get_libdir)/octave-${PV}" > 99octave
+ doenvd 99octave || 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.pdf || die
- doins doc/interpreter/octave.pdf || die
- doins doc/liboctave/liboctave.pdf || die
- doins doc/refcard/refcard-a4.pdf || die
- doins doc/refcard/refcard-legal.pdf || die
- doins doc/refcard/refcard-letter.pdf || 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."
}