summaryrefslogtreecommitdiff
path: root/extra/octave
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-04-28 22:32:07 +0000
committerroot <root@rshg047.dnsready.net>2011-04-28 22:32:07 +0000
commit19f42937be8f6619a85663cb71e24c05b7e8b6d2 (patch)
treee7d059bcc0b5c309ff565da9be68ade7f29ef5fc /extra/octave
parent8784d3134c1d4b4c02d705259ae2ebd768c778fd (diff)
Thu Apr 28 22:32:07 UTC 2011
Diffstat (limited to 'extra/octave')
-rw-r--r--extra/octave/PKGBUILD29
-rw-r--r--extra/octave/octave-3.4.0-gcc46.patch24
2 files changed, 36 insertions, 17 deletions
diff --git a/extra/octave/PKGBUILD b/extra/octave/PKGBUILD
index f7a6000e6..ce71a53e1 100644
--- a/extra/octave/PKGBUILD
+++ b/extra/octave/PKGBUILD
@@ -1,42 +1,38 @@
-# $Id: PKGBUILD 103149 2010-12-15 21:12:17Z ronald $
+# $Id: PKGBUILD 120945 2011-04-27 18:09:04Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor : shining <shiningxc.at.gmail.com>
# Contributor : cyberdune <cyberdune@gmail.com>
pkgname=octave
-pkgver=3.2.4
+pkgver=3.4.0
pkgrel=2
pkgdesc="A high-level language, primarily intended for numerical computations."
arch=('i686' 'x86_64')
url="http://www.octave.org"
license=('GPL')
-depends=('fftw' 'pcre' 'curl' 'lapack' 'libx11' 'graphicsmagick' 'glpk' 'hdf5' 'gcc-libs')
+depends=('fftw' 'pcre' 'curl' 'lapack' 'libx11' 'graphicsmagick' 'glpk' 'hdf5' 'gcc-libs' 'qhull')
makedepends=('texinfo' 'graphicsmagick' 'gcc-fortran' 'umfpack')
optdepends=('texinfo: for help-support in octave'
'gnuplot: alternative plotting'
'umfpack: LU decomposition of some large sparse matrices')
-source=("ftp://ftp.octave.org/pub/octave/octave-$pkgver.tar.bz2"
- 'octave-3.2.0_as_needed.patch' 'octave-3.2.0_parallel_make.patch' 'imread.patch')
+source=("ftp://ftp.gnu.org/gnu/octave/octave-$pkgver.tar.bz2"
+ octave-3.4.0-gcc46.patch)
options=('!emptydirs')
-install=octave.install
-md5sums=('608196657f4fa010420227b77333bb71'
- '33c8886cd908ace40f8b60334df1c34f'
- 'd59d783a8d7e8d8306caed4b2b8671a4'
- '72d33ba1a862244f970cf259923815d9')
+#install=octave.install
+sha1sums=('936a8fc962abd96e7568fb5909ec2a4d7997a1a8'
+ '791c905a80510783e5f9c556c12f02400887fbec')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
- # gentoo patches
- patch -Np1 -i ${srcdir}/octave-3.2.0_as_needed.patch
- patch -Np1 -i ${srcdir}/octave-3.2.0_parallel_make.patch
- patch -Np0 -i ${srcdir}/imread.patch
-
+ # fedora gcc46 patch
+ patch -Np1 -i ${srcdir}/octave-3.4.0-gcc46.patch
+
# http://www.nabble.com/Random-rounding-errors-td16010966.html
FFLAGS="-O -ffloat-store" \
./configure --prefix=/usr --libexecdir=/usr/lib \
- --enable-shared --disable-static
+ --enable-shared --disable-static --disable-docs
make
}
@@ -45,5 +41,4 @@ package(){
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
-
}
diff --git a/extra/octave/octave-3.4.0-gcc46.patch b/extra/octave/octave-3.4.0-gcc46.patch
new file mode 100644
index 000000000..c174204ac
--- /dev/null
+++ b/extra/octave/octave-3.4.0-gcc46.patch
@@ -0,0 +1,24 @@
+diff -up octave-3.4.0/liboctave/oct-alloc.h.gcc46 octave-3.4.0/liboctave/oct-alloc.h
+--- octave-3.4.0/liboctave/oct-alloc.h.gcc46 2011-02-08 03:00:51.000000000 -0700
++++ octave-3.4.0/liboctave/oct-alloc.h 2011-02-08 09:41:23.984081687 -0700
+@@ -23,6 +23,8 @@ along with Octave; see the file COPYING.
+ #if !defined (octave_oct_alloc_h)
+ #define octave_oct_alloc_h 1
+
++#include <cstddef>
++
+ class
+ OCTAVE_API
+ octave_allocator
+diff -up octave-3.4.0/src/pr-output.cc.gcc46 octave-3.4.0/src/pr-output.cc
+--- octave-3.4.0/src/pr-output.cc.gcc46 2011-02-08 03:00:52.000000000 -0700
++++ octave-3.4.0/src/pr-output.cc 2011-02-08 09:55:16.149662744 -0700
+@@ -3024,7 +3024,7 @@ abs (T x)
+ }
+
+ #define INSTANTIATE_ABS(T) \
+- template /* static */ inline T abs (T)
++ template /* static */ T abs (T)
+
+ INSTANTIATE_ABS(signed char);
+ INSTANTIATE_ABS(short);