[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#66129] [PATCH 17/20] gnu: Add suitesparse-mongoose.
From: |
David Elsing |
Subject: |
[bug#66129] [PATCH 17/20] gnu: Add suitesparse-mongoose. |
Date: |
Wed, 20 Sep 2023 22:08:07 +0000 |
* gnu/packages/maths.scm (suitesparse-mongoose): New variable.
---
gnu/packages/maths.scm | 72 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 72 insertions(+)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 84ad02b3df..e958e6521b 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -5539,6 +5539,78 @@ (define-public suitesparse-rbio
for reading and writing sparse matrices in the Rutherford/Boeing format.")
(license license:gpl2+)))
+(define-public suitesparse-mongoose
+ (package
+ (name "suitesparse-mongoose")
+ (version "3.2.0")
+ (source (suitesparse-package-src name "Mongoose"))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack '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")))))
+ (add-after 'build 'build-doc
+ (lambda _
+ ;; XeLaTeX fails with .eps graphics
+ (with-directory-excursion "../source/Doc"
+ (for-each
+ (lambda (name)
+ (invoke "epstopdf" name))
+ (find-files "Figures" "\\.eps$"))
+ (substitute* "Mongoose_UserGuide.tex"
+ (("\\.eps") ".pdf"))
+ (invoke "make"))))
+ (add-after 'install 'install-doc
+ (lambda _
+ (install-file "../source/Doc/Mongoose_UserGuide.pdf"
+ (string-append #$output "/share/doc/"
+ #$name "-" #$version))))
+ (replace 'install-license-files
+ (lambda _
+ (install-file "../source/Doc/License.txt"
+ (string-append #$output "/share/doc/"
+ #$name "-" #$version)))))))
+ (inputs (list suitesparse-config))
+ (native-inputs
+ (list texlive-epstopdf
+ (texlive-updmap.cfg
+ (list texlive-algorithmicx
+ texlive-booktabs
+ texlive-lastpage
+ texlive-multirow
+ texlive-pgf
+ texlive-caption
+ texlive-etoolbox
+ texlive-csquotes
+ texlive-fancybox
+ texlive-enumitem
+ texlive-microtype
+ texlive-cancel
+ texlive-sourcecodepro
+ texlive-xkeyval
+ texlive-fontspec
+ texlive-wasy
+ texlive-wasysym
+ texlive-float
+ texlive-tcolorbox
+ texlive-environ
+ texlive-xcolor
+ texlive-xetex
+ texlive-listings))))
+ (home-page "https://people.engr.tamu.edu/davis/suitesparse.html")
+ (synopsis "Graph partitioning library")
+ (description "Mongoose is a library for graph partitioning by computing
+edge cuts using a coarsening and refinement framework.")
+ (license license:gpl3)))
+
(define-public suitesparse
(package
(name "suitesparse")
--
2.41.0
- [bug#66129] [PATCH 05/20] gnu: Add suitesparse-camd., (continued)
- [bug#66129] [PATCH 05/20] gnu: Add suitesparse-camd., David Elsing, 2023/09/20
- [bug#66129] [PATCH 08/20] gnu: Add gklib., David Elsing, 2023/09/20
- [bug#66129] [PATCH 07/20] gnu: Add suitesparse-ccolamd., David Elsing, 2023/09/20
- [bug#66129] [PATCH 10/20] gnu: Add gklib-suitesparse., David Elsing, 2023/09/20
- [bug#66129] [PATCH 06/20] gnu: Add suitesparse-colamd., David Elsing, 2023/09/20
- [bug#66129] [PATCH 09/20] gnu: Add metis-5.2., David Elsing, 2023/09/20
- [bug#66129] [PATCH 13/20] gnu: Add suitesparse-cxsparse., David Elsing, 2023/09/20
- [bug#66129] [PATCH 15/20] gnu: Add suitesparse-ldl., David Elsing, 2023/09/20
- [bug#66129] [PATCH 14/20] gnu: Add suitesparse-klu., David Elsing, 2023/09/20
- [bug#66129] [PATCH 19/20] gnu: Add suitesparse-spqr., David Elsing, 2023/09/20
- [bug#66129] [PATCH 17/20] gnu: Add suitesparse-mongoose.,
David Elsing <=
- [bug#66129] [PATCH 16/20] gnu: Add suitesparse-rbio., David Elsing, 2023/09/20
- [bug#66129] [PATCH 18/20] gnu: Add suitesparse-spex., David Elsing, 2023/09/20
- [bug#66129] [PATCH 12/20] gnu: Add suitesparse-cholmod., David Elsing, 2023/09/20
- [bug#66129] [PATCH 20/20] gnu: Add suitesparse-umfpack., David Elsing, 2023/09/20
- [bug#66129] [PATCH v2 01/20] gnu: suitesparse: Tweak description., David Elsing, 2023/09/21
- [bug#66129] [PATCH v2 04/20] gnu: Add suitesparse-btf., David Elsing, 2023/09/21
- [bug#66129] [PATCH v2 02/20] gnu: Add suitesparse-config., David Elsing, 2023/09/21
- [bug#66129] [PATCH v2 03/20] gnu: Add suitesparse-amd., David Elsing, 2023/09/21
- [bug#66129] [PATCH v2 06/20] gnu: Add suitesparse-colamd., David Elsing, 2023/09/21
- [bug#66129] [PATCH v2 05/20] gnu: Add suitesparse-camd., David Elsing, 2023/09/21