From patchwork Wed Sep 20 22:08:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54096 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 EFB5A27BBE9; Wed, 20 Sep 2023 23:10:31 +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 9F38627BBE2 for ; Wed, 20 Sep 2023 23:10:30 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qj5OQ-0007nx-7i; Wed, 20 Sep 2023 18:09:58 -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 1qj5ON-0007lE-Hv for guix-patches@gnu.org; Wed, 20 Sep 2023 18:09:55 -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 1qj5ON-0005SB-9p for guix-patches@gnu.org; Wed, 20 Sep 2023 18:09:55 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qj5OW-0005XS-TR for guix-patches@gnu.org; Wed, 20 Sep 2023 18:10:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH 20/20] gnu: Add suitesparse-umfpack. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Sep 2023 22:10:04 +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.169524777921194 (code B ref 66129); Wed, 20 Sep 2023 22:10:04 +0000 Received: (at 66129) by debbugs.gnu.org; 20 Sep 2023 22:09:39 +0000 Received: from localhost ([127.0.0.1]:60547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5O7-0005Vh-0W for submit@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:39 -0400 Received: from mout02.posteo.de ([185.67.36.66]:49095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qj5NZ-0005RO-1s for 66129@debbugs.gnu.org; Wed, 20 Sep 2023 18:09:05 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C0AF7240101 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 00:08:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695247729; bh=/EY3tYxJ5N/9QyEr5mHxtHfvla6DdaavTsMoO5C1FfI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=TyvLhiiQjtSzJUGnTkA1CXMMwbDbO6TMqt1aTiBV7PfsRWT6Ly9t2MyjNHueCKXuE JgxlyPPqMyFl1oVVDB1dyLDGZHnE5ZDoSgEk5OiyMjV4iJZ0QWE5+ys0j1SMPZpb2m a6TohXDnD0Brf0HFh9J16EKeeJod3pBJz6crVBWBOsaGYWjcj+uQioqtSpbqZIiHiN AotnE+GuQUHK9EHdqdkbZiq6BrBgCYzCev/Uf71ry/Y0weFMjypGrnETIKUeeNMcV7 331ImtIpGZ0k8WDsenr7eMUFmzyt2l1FFp43EAXd2rwGNxsnr4kdm9lIJ3E+//NN68 eXfp2Jzl0y9cw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrXjs3Gj7z6trs; Thu, 21 Sep 2023 00:08:49 +0200 (CEST) From: David Elsing Date: Wed, 20 Sep 2023 22:08:10 +0000 Message-ID: <8e74bc2facc6f585b5a61d29a2ddc3cd6384fefa.1695246169.git.david.elsing@posteo.net> 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-umfpack): New variable. --- gnu/packages/maths.scm | 68 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index f45ff900cf..eeff1b5ece 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5737,6 +5737,74 @@ (define-public suitesparse-spqr matrices.") (license license:gpl2+))) +(define-public suitesparse-umfpack + (package + (name "suitesparse-umfpack") + (version "6.2.0") + (source (suitesparse-package-src name "UMFPACK")) + (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 " + (string-join + (map (lambda (path) + (string-append path "/lib/cmake/SuiteSparse")) + (list #$suitesparse-amd + #$suitesparse-camd + #$suitesparse-ccolamd + #$suitesparse-cholmod + #$suitesparse-colamd + #$suitesparse-config))) + ")\nset(DUMMY\n"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "../source/Doc" + (invoke "make")))) + (add-after 'install 'install-doc + (lambda _ + (let ((outdir + (string-append #$output "/share/doc/" + #$name "-" #$version))) + (install-file "../source/Doc/UMFPACK_UserGuide.pdf" outdir) + (install-file "../source/Doc/UMFPACK_QuickStart.pdf" outdir)))) + (replace 'install-license-files + (lambda _ + (let ((outdir + (string-append #$output "/share/doc/" + #$name "-" #$version))) + (install-file "../source/Doc/License.txt" outdir) + (install-file "../source/Doc/gpl.txt" outdir))))))) + (inputs + (list openblas + suitesparse-amd + suitesparse-camd + suitesparse-ccolamd + suitesparse-cholmod + suitesparse-colamd + suitesparse-config)) + (native-inputs + (list (texlive-updmap.cfg + (list texlive-etoolbox + texlive-framed + texlive-mdframed + texlive-needspace + texlive-xcolor + texlive-zref)))) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Routines for solving sparse linear problems via LU factorization") + (description "UMFPACK is a set of routines for solving unsymmetric sparse +linear systems using the Unsymmetric MultiFrontal method and direct sparse LU +factorization.") + (license license:gpl2+))) + (define-public suitesparse (package (name "suitesparse")