From patchwork Thu Sep 21 13:27:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54128 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 F3C0027BBE2; Thu, 21 Sep 2023 14:29:58 +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 8512A27BBE9 for ; Thu, 21 Sep 2023 14:29:57 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJkg-0005zV-2q; Thu, 21 Sep 2023 09:29: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 1qjJkf-0005xC-2h for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:53 -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 1qjJke-0006xL-Kc for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:52 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJko-0004xR-FM for guix-patches@gnu.org; Thu, 21 Sep 2023 09:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 11/20] gnu: Add metis-suitesparse. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:30: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.169530295818921 (code B ref 66129); Thu, 21 Sep 2023 13:30:02 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:29:18 +0000 Received: from localhost ([127.0.0.1]:33080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJk6-0004v5-8o for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:29:18 -0400 Received: from mout02.posteo.de ([185.67.36.66]:56789) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjQ-0004q9-OB for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:37 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 19EB1240103 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302901; bh=TfbjnSX0F1e2MwLy800jRa4q04IUAadujWzVD5MtCfI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=N/MPONgFaITJo7v37v5WFR76fxRS8JpgdIVqlOBgwbPfLgIaEQX+AOLtjQ8QmNW2I A9aQ5b3uZ986yIk2ONAZ9bovqoLpq7zvPl15nY9fXKS9yOQQjp4ncVYAjyhzyBHBZd GUuRc+jpT8jaiqjy3u1MWn1BwcznH8VTft1eLqscINXkLQFTMFTe4qfeVPr8mThKai xyEUIozFn7Npyh1V2ARNUA+gQDSsG7fpTk7j2dd3fyqJj/EPMRjQjUsB2MGRpNELc9 5B0rJtg8sxZjR0KqPgGmVx3RSiwHcU9KIq32ORSAlIrirmHJG+1VGr1HR8XCcxJdWN wibWzWm+/XUUw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6r55fWz6tvq; Thu, 21 Sep 2023 15:28:20 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:46 +0000 Message-ID: <824829492ddfa1e049c6260a76d7763a3be1195f.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 (metis-suitesparse): New variable. --- gnu/packages/maths.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 3a86e90cb5..3f80029414 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5263,6 +5263,32 @@ (define-public gklib-suitesparse (modify-inputs (package-inputs gklib) (prepend suitesparse-config))))) +(define-public metis-suitesparse + (package/inherit metis-5.2 + (name "metis-suitesparse") + (arguments + (substitute-keyword-arguments (package-arguments metis-5.2) + ((#:phases phases) + #~(modify-phases #$phases + (add-before 'prepare-cmake 'set-idxwidth + (lambda _ + (substitute* "Makefile" + (("IDXWIDTH.*=.*") + "IDXWIDTH = \"\\#define IDXTYPEWIDTH 64\"\n")))) + (add-before 'prepare-cmake 'link-suitesparse-config + (lambda _ + (substitute* "programs/CMakeLists.txt" + (("include_directories.*" all) + (string-append + all "find_package(SuiteSparse_config REQUIRED)\n")) + (("(target_link_libraries.*)GKlib(.*)" _ start end) + (string-append + start "GKlib ${SUITESPARSE_CONFIG_LIBRARIES}" end))))))) + ((#:configure-flags _) + #~(list "-DSHARED=ON" + (string-append "-DGKLIB_PATH=" #$gklib-suitesparse))))) + (inputs (list suitesparse-config gklib-suitesparse)))) + (define-public suitesparse (package (name "suitesparse")