From patchwork Thu Sep 21 13:27:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54135 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 B597327BBEA; Thu, 21 Sep 2023 14:30:30 +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=ham 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 13D0527BBE2 for ; Thu, 21 Sep 2023 14:30:30 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJkv-0006RM-Lh; Thu, 21 Sep 2023 09:30:09 -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 1qjJkj-00065L-M2 for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:57 -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 1qjJki-0006yK-3R for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJks-0004yN-0e for guix-patches@gnu.org; Thu, 21 Sep 2023 09:30:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 16/20] gnu: Add suitesparse-rbio. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:30:05 +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.169530296218974 (code B ref 66129); Thu, 21 Sep 2023 13:30:05 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:22 +0000 Received: from localhost ([127.0.0.1]:33094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJk9-0004vr-SA for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:22 -0400 Received: from mout01.posteo.de ([185.67.36.65]:49231) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjU-0004qn-Kv for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:41 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id F3F6F240029 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302905; bh=WSr+PYMsG6+ykcHKJCY7tFw164BAp98UrWdOeJGMvX0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=b7z+Lw/fzJr/Egzrh0z9y211eyhW8nMen279e3PbF/aniEGtsISf4rY2zftCDtIcC DgAjJGhWeoWewBsGEjTfV4jNVgHg9/fRzuXFs0iwzCdACU4iWgs3xZw64/EcVym9Gj 3+PDagYcibNKbrO1TQJXor2O7KoNEGw4zVnfy2BtB97p+WdExH9avwUZ4ZSwZGDmgS ZQT/aWUjd6L0E7MHHxoGQKMbS6o0Sx5Yn/iZIiBt/6aUeswjW1xUV8F/0J33f+l8Uq D1LNe1556DAY8QFTr+0/LukUdguZnXJp35DnKHU2GZNEWp4hJXbFFePaQw/DFa+AS/ 9vk4otXngurtA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6w4JgHz6tvp; Thu, 21 Sep 2023 15:28:24 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:51 +0000 Message-ID: <95023c251b41004544b43f1fa543b5b258d4417d.1695302719.git.david.elsing@posteo.net> In-Reply-To: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> References: <2e6dce4c1faecf1e5516f477a1b372da205573ba.1695302719.git.david.elsing@posteo.net> 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-rbio): New variable. --- gnu/packages/maths.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 1121f09b22..2b7f7ef0ef 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5514,6 +5514,41 @@ (define-public suitesparse-ldl code.") (license license:lgpl2.1+))) +(define-public suitesparse-rbio + (package + (name "suitesparse-rbio") + (version "4.2.0") + (source (suitesparse-package-src name "RBio")) + (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-config))) + ")\nset(DUMMY\n"))))) + (replace 'install-license-files + (lambda _ + (let ((out (string-append #$output + "/share/doc/" #$name "-" #$version))) + (install-file "../source/Doc/License.txt" out) + (install-file "../source/Doc/gpl.txt" out))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Library for the Rutherford/Boeing sparse matrix format") + (description "This package provides the C library of RBio. It can be used +for reading and writing sparse matrices in the Rutherford/Boeing format.") + (license license:gpl2+))) + (define-public suitesparse (package (name "suitesparse")