Author: viric
Date: Tue Feb 21 11:34:57 2012
New Revision: 32451
URL: https://nixos.org/websvn/nix/?rev=32451&sc=1

Log:
Updating octave to 3.6.0

Modified:
   nixpkgs/trunk/pkgs/development/interpreters/octave/default.nix
   nixpkgs/trunk/pkgs/development/libraries/clapack/default.nix
   nixpkgs/trunk/pkgs/top-level/all-packages.nix

Modified: nixpkgs/trunk/pkgs/development/interpreters/octave/default.nix
==============================================================================
--- nixpkgs/trunk/pkgs/development/interpreters/octave/default.nix      Tue Feb 
21 10:58:15 2012        (r32450)
+++ nixpkgs/trunk/pkgs/development/interpreters/octave/default.nix      Tue Feb 
21 11:34:57 2012        (r32451)
@@ -1,13 +1,19 @@
 {stdenv, fetchurl, gfortran, readline, ncurses, perl, flex, texinfo, qhull,
-libX11, graphicsmagick}:
+libX11, graphicsmagick, pcre, blas, clapack, texLive }:
 
-stdenv.mkDerivation {
-  name = "octave-3.2.4";
+stdenv.mkDerivation rec {
+  name = "octave-3.6.0";
   src = fetchurl {
-    url = ftp://ftp.octave.org/pub/octave/octave-3.2.4.tar.bz2;
-    sha256 = "0iyivx7qz7cvwz7qczqrl4ysqivlhn5ax92z9md0m77dqw2isis8";
+    url = "mirror://gnu/octave/${name}.tar.bz2";
+    sha256 = "1mwj5pbbdzfbmcqyk0vx6si7mh8yhayppwnb1i63v871gxy775z5";
   };
-  buildInputs = [gfortran readline ncurses perl flex texinfo qhull libX11
-    graphicsmagick ];
-  configureFlags = "--enable-readline --enable-dl";
+
+  buildInputs = [ gfortran readline ncurses perl flex texinfo qhull libX11
+    graphicsmagick pcre blas clapack texLive ];
+
+  NIX_LDFLAGS = "-lf2c"; # For clapack
+
+  enableParallelBuilding = true;
+
+  configureFlags = "--enable-readline --enable-dl --disable-docs";
 }

Modified: nixpkgs/trunk/pkgs/development/libraries/clapack/default.nix
==============================================================================
--- nixpkgs/trunk/pkgs/development/libraries/clapack/default.nix        Tue Feb 
21 10:58:15 2012        (r32450)
+++ nixpkgs/trunk/pkgs/development/libraries/clapack/default.nix        Tue Feb 
21 11:34:57 2012        (r32451)
@@ -1,4 +1,4 @@
-{stdenv, fetchurl, cmake}:
+{stdenv, fetchurl, cmake, withPIC ? false }:
 
 stdenv.mkDerivation rec {
   name = "clapack-3.2.1";
@@ -16,8 +16,13 @@
     cp ../INCLUDE/* $out/include
   '';
 
-  doCheck = true;
-  checkPhase = "ctest";
+  cmakeFlags = if withPIC then "-DCMAKE_C_FLAGS=-fPIC" else "";
+
+  # We disable the test phase, because some tests fail.
+  # Forums say it's normal for some to fail:
+  # http://icl.cs.utk.edu/lapack-forum/viewtopic.php?f=2&t=167
+  # doCheck = true;
+  # checkPhase = "ctest";
 
   meta = {
     homepage = http://www.netlib.org/clapack/;

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Tue Feb 21 10:58:15 
2012        (r32450)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Tue Feb 21 11:34:57 
2012        (r32451)
@@ -2665,10 +2665,9 @@
   maude = callPackage ../development/interpreters/maude { };
 
   octave = callPackage ../development/interpreters/octave {
-    # Needed because later gm versions require an initialization the actual 
octave is not
-    # doing.
-    # 
http://www-old.cae.wisc.edu/pipermail/octave-maintainers/2010-February/015295.html
-    graphicsmagick = graphicsmagick137;
+    clapack = clapack.override {
+      withPIC = true;
+    };
   };
 
   # mercurial (hg) bleeding edge version
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to