From patchwork Thu Oct 5 21:34:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54507 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 7C7A427BBEA; Thu, 5 Oct 2023 22:38:12 +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 639C527BBE2 for ; Thu, 5 Oct 2023 22:38:11 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qoW2T-0003Ah-WD; Thu, 05 Oct 2023 17:37:46 -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 1qoW2S-00039w-D4 for guix-patches@gnu.org; Thu, 05 Oct 2023 17:37:44 -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 1qoW2S-00042D-4x for guix-patches@gnu.org; Thu, 05 Oct 2023 17:37:44 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qoW2k-0002cG-IB for guix-patches@gnu.org; Thu, 05 Oct 2023 17:38:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v3 04/20] gnu: Add suitesparse-btf. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 05 Oct 2023 21:38:02 +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.16965418259805 (code B ref 66129); Thu, 05 Oct 2023 21:38:02 +0000 Received: (at 66129) by debbugs.gnu.org; 5 Oct 2023 21:37:05 +0000 Received: from localhost ([127.0.0.1]:48701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1l-0002Wn-7m for submit@debbugs.gnu.org; Thu, 05 Oct 2023 17:37:05 -0400 Received: from mout01.posteo.de ([185.67.36.65]:36551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoW1i-0002Vd-6j for 66129@debbugs.gnu.org; Thu, 05 Oct 2023 17:36:58 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 226E6240027 for <66129@debbugs.gnu.org>; Thu, 5 Oct 2023 23:36:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696541794; bh=NRhXhauNALfcE0jDAXE2CCJIhk61A8OTqdZO/js6poo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=cBP3EG5eR5fC50sGenJer7+aMvW1CyhDs9ZTeGV6XmjVDSPTWrgVFcaCS8XJBMVxs KcCdT3IhLn20SRBHU0/sfYtxwoMOHzDM10ki+VBqUuVgaq/1z+6fpNIiHT2CZW7q/V SXi8c63pvhMiqDcnY89SNFjgAiUb6YZdLw1Qdz3U8fr7IUTJ0wyhazN0JBVRwsmabJ YgFyAUyHqkt5+uBuPP7GBGtVIfQ4brGLUpD9PVUwv0oXdgh+eRIur05JQCvQgT96b3 mrlY2uH8fxCQ67YXcTblttYbZRNlVu9CPn6PLLjZe/GD7zIFh4YyHn9TulDtVJADFS K8V0oeZ8HjZJQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S1lHj5Nj9z6tvc; Thu, 5 Oct 2023 23:36:33 +0200 (CEST) From: David Elsing Date: Thu, 5 Oct 2023 21:34:47 +0000 Message-ID: In-Reply-To: <7ylecgah6b.fsf@posteo.net> References: <7ylecgah6b.fsf@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-btf): New variable. --- gnu/packages/maths.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 2216cc67b8..1b1a39688b 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5168,6 +5168,39 @@ (define-public suitesparse-amd to Cholesky factorization (or for LU factorization with diagonal pivoting).") (license license:bsd-3))) +(define-public suitesparse-btf + (package + (name "suitesparse-btf") + (version "2.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 "BTF"))) + (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 _ + (install-file "../BTF/Doc/License.txt" + (string-append #$output "/share/doc/" + #$name "-" #$version))))))) + (inputs (list suitesparse-config)) + (home-page "https://people.engr.tamu.edu/davis/suitesparse.html") + (synopsis "Library for permuting matrices into block upper triangular form") + (description "BTF (Block Triangular Form) is a C library for permuting a +matrix into block upper triangular form.") + (license license:lgpl2.1+))) + (define-public suitesparse (package (name "suitesparse")