mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-19 05:07:11 -05:00
gnu: hypre: Update to 2020.0.
* gnu/packages/maths.scm (hypre): Update to 2020.0. [source](modules, snippet): Remove. [native-inputs]: Remove PERL, NETPBM and GHOSTSCRIPT. Add PYTHON, PYTHON-SPHINX and PYTHON-BREATHE. Add TEXLIVE-ADJUSTBOX, TEXLIVE-AMSFONTS, TEXLIVE-CAPTION, TEXLIVE-ETOOLBOX, TEXLIVE-JKNAPPEN, TEXLIVE-SECTSTY, TEXLIVE-TEX-GYRE, TEXLIVE-WASY, TEXLIVE-XCOLOR, TEXLIVE-GENERIC-LISTOFITEMS, TEXLIVE-GENERIC-ULEM, TEXLIVE-LATEX-CAPT-OF, TEXLIVE-LATEX-CMAP, TEXLIVE-LATEX-COLORTBL, TEXLIVE-LATEX-ETOC, TEXLIVE-LATEX-FANCYHDR, TEXLIVE-LATEX-FANCYVRB, TEXLIVE-LATEX-FLOAT, TEXLIVE-LATEX-FNCYCHAP, TEXLIVE-LATEX-FRAMED, TEXLIVE-LATEX-GEOMETRY, TEXLIVE-LATEX-HANGING, TEXLIVE-LATEX-MULTIROW, TEXLIVE-LATEX-NATBIB, TEXLIVE-LATEX-NEEDSPACE, TEXLIVE-LATEX-NEWUNICODECHAR, TEXLIVE-LATEX-PARSKIP, TEXLIVE-LATEX-STACKENGINE, TEXLIVE-LATEX-TABULARY, TEXLIVE-LATEX-TITLESEC, TEXLIVE-LATEX-TOCLOFT, TEXLIVE-LATEX-UPQUOTE, TEXLIVE-LATEX-VARWIDTH, TEXLIVE-LATEX-WASYSYM, and TEXLIVE-LATEX-WRAPFIG to TEXLIVE-UPDMAP.CFG. [arguments]: Adjust doc build target and installation phase. Remove trailing #t's.
This commit is contained in:
parent
bf84be15a8
commit
f72a1253a1
1 changed files with 54 additions and 28 deletions
|
@ -26,7 +26,7 @@
|
||||||
;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
|
;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
|
||||||
;;; Copyright © 2018 Nadya Voronova <voronovank@gmail.com>
|
;;; Copyright © 2018 Nadya Voronova <voronovank@gmail.com>
|
||||||
;;; Copyright © 2018 Adam Massmann <massmannak@gmail.com>
|
;;; Copyright © 2018 Adam Massmann <massmannak@gmail.com>
|
||||||
;;; Copyright © 2018, 2020 Marius Bakke <mbakke@fastmail.com>
|
;;; Copyright © 2018, 2020, 2021 Marius Bakke <marius@gnu.org>
|
||||||
;;; Copyright © 2018 Eric Brown <brown@fastmail.com>
|
;;; Copyright © 2018 Eric Brown <brown@fastmail.com>
|
||||||
;;; Copyright © 2018 Julien Lepiller <julien@lepiller.eu>
|
;;; Copyright © 2018 Julien Lepiller <julien@lepiller.eu>
|
||||||
;;; Copyright © 2018 Amin Bandali <bandali@gnu.org>
|
;;; Copyright © 2018 Amin Bandali <bandali@gnu.org>
|
||||||
|
@ -135,6 +135,7 @@ (define-module (gnu packages maths)
|
||||||
#:use-module (gnu packages tbb)
|
#:use-module (gnu packages tbb)
|
||||||
#:use-module (gnu packages scheme)
|
#:use-module (gnu packages scheme)
|
||||||
#:use-module (gnu packages shells)
|
#:use-module (gnu packages shells)
|
||||||
|
#:use-module (gnu packages sphinx)
|
||||||
#:use-module (gnu packages tcl)
|
#:use-module (gnu packages tcl)
|
||||||
#:use-module (gnu packages texinfo)
|
#:use-module (gnu packages texinfo)
|
||||||
#:use-module (gnu packages tex)
|
#:use-module (gnu packages tex)
|
||||||
|
@ -4611,7 +4612,7 @@ (define-public xaos
|
||||||
(define-public hypre
|
(define-public hypre
|
||||||
(package
|
(package
|
||||||
(name "hypre")
|
(name "hypre")
|
||||||
(version "2.15.1")
|
(version "2.20.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -4620,28 +4621,55 @@ (define-public hypre
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1lvh4ybqkriyqfg2zmic6mrg1981qv1i9vry1fdgsabn81hb71g4"))
|
(base32 "14iqjwg5sv1qjn7c2cfv0xxmn9rwamjrhh9hgs8fjbywcbvrkjdi"))))
|
||||||
(modules '((guix build utils)))
|
|
||||||
(snippet
|
|
||||||
'(begin
|
|
||||||
;; Remove use of __DATE__ and __TIME__ for reproducibility;
|
|
||||||
;; substitute the release date.
|
|
||||||
(substitute* "src/utilities/HYPRE_utilities.h"
|
|
||||||
(("Date Compiled: .*$")
|
|
||||||
"Date Compiled: Oct 19 2018 15:23:00 +0000\"\n"))
|
|
||||||
#t))))
|
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(outputs '("out" ; 6.1 MiB of headers and libraries
|
(outputs '("out" ;5.3 MiB of headers and libraries
|
||||||
"doc")) ; 4.8 MiB of documentation
|
"doc")) ;12 MiB of documentation
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("doc++" ,doc++)
|
`(("doc++" ,doc++)
|
||||||
("netpbm" ,netpbm)
|
("doxygen" ,doxygen)
|
||||||
("perl" ,perl) ; needed to run 'ppmquant' during tests
|
("python" ,python)
|
||||||
("texlive" ,(texlive-updmap.cfg (list texlive-xypic
|
("python-breathe" ,python-breathe)
|
||||||
texlive-cm
|
("python-sphinx" ,python-sphinx)
|
||||||
texlive-latex-hyperref
|
("texlive" ,(texlive-updmap.cfg (list texlive-adjustbox
|
||||||
texlive-bibtex)))
|
texlive-amsfonts
|
||||||
("ghostscript" ,ghostscript)))
|
texlive-bibtex
|
||||||
|
texlive-caption
|
||||||
|
texlive-cm
|
||||||
|
texlive-etoolbox
|
||||||
|
texlive-jknappen
|
||||||
|
texlive-sectsty
|
||||||
|
texlive-tex-gyre
|
||||||
|
texlive-wasy
|
||||||
|
texlive-xcolor
|
||||||
|
texlive-xypic
|
||||||
|
texlive-generic-listofitems
|
||||||
|
texlive-generic-ulem
|
||||||
|
texlive-latex-capt-of
|
||||||
|
texlive-latex-cmap
|
||||||
|
texlive-latex-colortbl
|
||||||
|
texlive-latex-etoc
|
||||||
|
texlive-latex-fancyhdr
|
||||||
|
texlive-latex-fancyvrb
|
||||||
|
texlive-latex-float
|
||||||
|
texlive-latex-fncychap
|
||||||
|
texlive-latex-framed
|
||||||
|
texlive-latex-geometry
|
||||||
|
texlive-latex-hanging
|
||||||
|
texlive-latex-hyperref
|
||||||
|
texlive-latex-multirow
|
||||||
|
texlive-latex-natbib
|
||||||
|
texlive-latex-needspace
|
||||||
|
texlive-latex-newunicodechar
|
||||||
|
texlive-latex-parskip
|
||||||
|
texlive-latex-stackengine
|
||||||
|
texlive-latex-tabulary
|
||||||
|
texlive-latex-titlesec
|
||||||
|
texlive-latex-tocloft
|
||||||
|
texlive-latex-upquote
|
||||||
|
texlive-latex-varwidth
|
||||||
|
texlive-latex-wasysym
|
||||||
|
texlive-latex-wrapfig)))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("blas" ,openblas)
|
`(("blas" ,openblas)
|
||||||
("lapack" ,lapack)))
|
("lapack" ,lapack)))
|
||||||
|
@ -4671,7 +4699,7 @@ (define-public hypre
|
||||||
configure-flags)))))))
|
configure-flags)))))))
|
||||||
(add-after 'build 'build-docs
|
(add-after 'build 'build-docs
|
||||||
(lambda _
|
(lambda _
|
||||||
(invoke "make" "-Cdocs" "pdf" "html")))
|
(invoke "make" "-C" "docs")))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
(setenv "LD_LIBRARY_PATH" (string-append (getcwd) "/hypre/lib"))
|
(setenv "LD_LIBRARY_PATH" (string-append (getcwd) "/hypre/lib"))
|
||||||
|
@ -4682,8 +4710,7 @@ (define-public hypre
|
||||||
(when (positive? size)
|
(when (positive? size)
|
||||||
(error (format #f "~a size ~d; error indication~%"
|
(error (format #f "~a size ~d; error indication~%"
|
||||||
filename size)))))
|
filename size)))))
|
||||||
(find-files "test" ".*\\.err$"))
|
(find-files "test" ".*\\.err$"))))
|
||||||
#t))
|
|
||||||
(add-after 'install 'install-docs
|
(add-after 'install 'install-docs
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
;; Custom install because docs/Makefile doesn't honor ${docdir}.
|
;; Custom install because docs/Makefile doesn't honor ${docdir}.
|
||||||
|
@ -4692,10 +4719,9 @@ (define-public hypre
|
||||||
(with-directory-excursion "docs"
|
(with-directory-excursion "docs"
|
||||||
(for-each (lambda (base)
|
(for-each (lambda (base)
|
||||||
(install-file (string-append base ".pdf") docdir)
|
(install-file (string-append base ".pdf") docdir)
|
||||||
(copy-recursively base docdir)) ; html docs
|
(copy-recursively (string-append base "-html")
|
||||||
'("HYPRE_usr_manual"
|
(string-append docdir "/" base)))
|
||||||
"HYPRE_ref_manual")))
|
'("usr-manual" "ref-manual")))))))))
|
||||||
#t))))))
|
|
||||||
(home-page "http://www.llnl.gov/casc/hypre/")
|
(home-page "http://www.llnl.gov/casc/hypre/")
|
||||||
(synopsis "Library of solvers and preconditioners for linear equations")
|
(synopsis "Library of solvers and preconditioners for linear equations")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue