From patchwork Wed Sep 20 22:08:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 17139 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 51E2F27BBE2; Wed, 20 Sep 2023 23:10:04 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1D18527BBE9 for ; Wed, 20 Sep 2023 23:10:02 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qj5ON-0007lH-MN; Wed, 20 Sep 2023 18:09:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qj5OM-0007k8-OD for guix-patches@gnu.org; Wed, 20 Sep 2023 18:09:54 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qj5OL-0005RF-LG for guix-patches@gnu.org; Wed, 20 Sep 2023 18:09:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qj5OV-0005Wx-8T for guix-patches@gnu.org; Wed, 20 Sep 2023 18:10:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH 17/20] gnu: Add suitesparse-mongoose. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Sep 2023 22:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66129 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66129@debbugs.gnu.org Cc: David Elsing Received: via spool by 66129-submit@debbugs.gnu.org id=B66129.169524777221160 (code B ref 66129); Wed, 20 Sep 2023 22:10:03 +0000 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:09:32 +0000 Received: from localhost ([127.0.0.1]:60539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5Nz-0005V7-SS for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:32 -0400 Received: from mout02.posteo.de ([185.67.36.66]:58953) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NW-0005Ql-NH for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:04 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 70652240103 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247727; bh=811gxcmvEbG5QarPTEqEw+vTk/gWeP3XqLbSkvszhrs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=qwdS34kgwv9Q6PlMl3hy1jW9+/nYm8/tr9Kos3UH4S6f2vFu/7UuYjHOi2iKwURkn ntNmUu44KpSE4rMCK0hrwRuyqCaH/9Iy0OcQp0S76tYBXY7v17a3eRCompgz96N5+3 Xlb4T8ND3e1MuBdM3s+HegWp5PcOsjmMYWRdXA8pbZIrm8sjwZuPA2R/8eoK8AusX2 YLqjnOS+Yft9jDaNxpLhqqtzGADwz6W6J4S0SoQ9Z6/1KQL8S6CRWfExhi1QjT2Vo/ nbgpArfrg/ZNOhnZI1Z+oslCobH7Q5l6lXmHjoAx7r4MzSQ+GPV+nHmiV/e/baPwN9 wIRfPU+QiNAgw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjq0qgfz6ty8; Thu, 21 Sep 2023 00:08:47 +0200 (CEST) From: David Elsing Date: Wed, 20 Sep 2023 22:08:07 +0000 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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")