From fcf40039504c493341977fbed76009c96924633f Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 29 Jun 2017 10:02:32 +0300 Subject: gnu: r-spams: Update to 2.6-2017-03-22. * gnu/packages/statistics.scm (r-spams): Update to 2.6-2017-03-22. [arguments]: Remove R-3.3 work-around and syntax fixes, add phase to prevent tuning r-spams to the compiling hardware. --- gnu/packages/statistics.scm | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 832b8dc7c5..41c0668151 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus ;;; Copyright © 2015 Vicente Vera Parra ;;; Copyright © 2016 Andreas Enge -;;; Copyright © 2016 Efraim Flashner +;;; Copyright © 2016, 2017 Efraim Flashner ;;; Copyright © 2016 Pjotr Prins ;;; Copyright © 2016 Roel Janssen ;;; Copyright © 2016 Ben Woodcroft @@ -3768,37 +3768,26 @@ (define-public r-googlesheets (define-public r-spams (package (name "r-spams") - (version "2.5-svn2014-07-04") + (version "2.6-2017-03-22") (source (origin (method url-fetch) - (uri (string-append "https://gforge.inria.fr/frs/download.php/33815/" + (uri (string-append "https://gforge.inria.fr/frs/download.php/36615/" "spams-R-v" version ".tar.gz")) (sha256 (base32 - "1k459jg9a334slkw31w63l4d39xszjzsng7dv5j1mp78zifz7hvx")))) + "13z2293jixf1r9g8dyy856xrhvpjr2ln2n9smn6644126r9hmhkx")))) (build-system r-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-after 'unpack 'chdir (lambda _ (chdir "spams") #t)) - ;; Since R 3.3.0 including R headers inside of an extern "C" block - ;; causes C headers to be included, which results in a lot of - ;; duplicate definitions. This can be avoided by defining - ;; NO_C_HEADERS before including the R headers. - (add-after 'chdir 'patch-use-of-R-headers + ;; Don't tune for the building machine + (add-after 'chdir 'no-mtune (lambda _ - (substitute* "src/spams.cpp" - (("#include " line) - (string-append "#define NO_C_HEADERS\n" line))) - #t)) - ;; This looks like a syntax error. - (add-after 'chdir 'patch-isnan - (lambda _ - (substitute* '"src/spams/linalg/linalg.h" - (("if isnan\\(lambda\\) \\{") - "if (isnan(lambda)) {")) + (substitute* "src/Makevars" + (("-mtune=native") "")) #t))))) (propagated-inputs `(("r-lattice" ,r-lattice) -- cgit v1.2.3