mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 04:59:27 -05:00
gnu: Add suitesparse-cxsparse.
* gnu/packages/maths.scm (suitesparse-cxsparse): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
75faca26c2
commit
ec2c7d2d48
1 changed files with 34 additions and 0 deletions
|
@ -5533,6 +5533,40 @@ (define-public suitesparse-cholmod
|
||||||
and other related operations.")
|
and other related operations.")
|
||||||
(license (list license:gpl2+ license:lgpl2.1+))))
|
(license (list license:gpl2+ license:lgpl2.1+))))
|
||||||
|
|
||||||
|
(define-public suitesparse-cxsparse
|
||||||
|
(package
|
||||||
|
(name "suitesparse-cxsparse")
|
||||||
|
(version "4.2.0")
|
||||||
|
(source suitesparse-source)
|
||||||
|
(build-system cmake-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:tests? #f
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'chdir
|
||||||
|
(lambda _
|
||||||
|
(chdir "CXSparse")))
|
||||||
|
(add-after 'chdir 'set-cmake-module-path
|
||||||
|
(lambda _
|
||||||
|
(substitute* "CMakeLists.txt"
|
||||||
|
(("set.*CMAKE_MODULE_PATH.*")
|
||||||
|
(string-append "set(CMAKE_MODULE_PATH "
|
||||||
|
#$suitesparse-config "/lib/cmake/SuiteSparse)\n"
|
||||||
|
"set(DUMMY\n")))))
|
||||||
|
(replace 'install-license-files
|
||||||
|
(lambda _
|
||||||
|
(let ((out (string-append #$output
|
||||||
|
"/share/doc/" #$name "-" #$version)))
|
||||||
|
(install-file "../CXSparse/Doc/License.txt" out)
|
||||||
|
(install-file "../CXSparse/Doc/lesser.txt" out)))))))
|
||||||
|
(inputs (list suitesparse-config))
|
||||||
|
(home-page "https://people.engr.tamu.edu/davis/suitesparse.html")
|
||||||
|
(synopsis "Concise eXtended Sparse Matrix Package")
|
||||||
|
(description "CXSparse is a collection of sparse matrix algorithms for
|
||||||
|
direct methods on both real and complex matrices.")
|
||||||
|
(license license:lgpl2.1+)))
|
||||||
|
|
||||||
(define-public suitesparse
|
(define-public suitesparse
|
||||||
(package
|
(package
|
||||||
(name "suitesparse")
|
(name "suitesparse")
|
||||||
|
|
Loading…
Reference in a new issue