mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
gnu: suitesparse: Update to 4.5.5.
* gnu/packages/maths.scm (suitesparse): Update to 4.5.5. [source]: Add 'modules' and 'snippet' field to remove bundled source. [arguments]: Remove 'prepare-out' phase. Adjust #:make-flags for metis. Make build parallel, since it now appears to be safe. [inputs]: Add metis.
This commit is contained in:
parent
2509522c4f
commit
bd5b5ac0c5
1 changed files with 13 additions and 14 deletions
|
@ -2424,7 +2424,7 @@ (define-public openspecfun
|
||||||
(define-public suitesparse
|
(define-public suitesparse
|
||||||
(package
|
(package
|
||||||
(name "suitesparse")
|
(name "suitesparse")
|
||||||
(version "4.4.3")
|
(version "4.5.5")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -2433,32 +2433,31 @@ (define-public suitesparse
|
||||||
version ".tar.gz"))
|
version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"100hdzr0mf4mzlwnqpmwpfw4pymgsf9n3g0ywb1yps2nk1zbkdy5"))))
|
"1dnr6pmjzc2qmbkmb4shigx1l74ilf6abn7svyd6brxgvph8vadr"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
;; Remove bundled metis source
|
||||||
|
'(delete-file-recursively "metis-5.1.0"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:parallel-build? #f ;cholmod build fails otherwise
|
'(#:tests? #f ;no "check" target
|
||||||
#:tests? #f ;no "check" target
|
|
||||||
#:make-flags
|
#:make-flags
|
||||||
(list "CC=gcc"
|
(list "CC=gcc"
|
||||||
"BLAS=-lblas"
|
"BLAS=-lblas"
|
||||||
"TBB=-ltbb"
|
"TBB=-ltbb"
|
||||||
"CHOLMOD_CONFIG=-DNPARTITION" ;required when METIS is not used
|
"MY_METIS_LIB=-lmetis"
|
||||||
(string-append "INSTALL_LIB="
|
(string-append "INSTALL_LIB="
|
||||||
(assoc-ref %outputs "out") "/lib")
|
(assoc-ref %outputs "out") "/lib")
|
||||||
(string-append "INSTALL_INCLUDE="
|
(string-append "INSTALL_INCLUDE="
|
||||||
(assoc-ref %outputs "out") "/include"))
|
(assoc-ref %outputs "out") "/include")
|
||||||
|
"library")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(delete 'configure) ;no configure script
|
(delete 'configure)))) ;no configure script
|
||||||
(add-before 'install 'prepare-out
|
|
||||||
;; README.txt states that the target directories must exist prior to
|
|
||||||
;; running "make install".
|
|
||||||
(lambda _
|
|
||||||
(mkdir-p (string-append (assoc-ref %outputs "out") "/lib"))
|
|
||||||
(mkdir-p (string-append (assoc-ref %outputs "out") "/include")))))))
|
|
||||||
(inputs
|
(inputs
|
||||||
`(("tbb" ,tbb)
|
`(("tbb" ,tbb)
|
||||||
("lapack" ,lapack)))
|
("lapack" ,lapack)
|
||||||
|
("metis" ,metis)))
|
||||||
(home-page "http://faculty.cse.tamu.edu/davis/suitesparse.html")
|
(home-page "http://faculty.cse.tamu.edu/davis/suitesparse.html")
|
||||||
(synopsis "Suite of sparse matrix software")
|
(synopsis "Suite of sparse matrix software")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue