From patchwork Thu Sep 21 13:27:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Elsing X-Patchwork-Id: 54123 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 4312227BBEB; Thu, 21 Sep 2023 14:29: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 9599627BBEC for ; Thu, 21 Sep 2023 14:29:26 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJjo-0004Fl-EX; Thu, 21 Sep 2023 09:29:00 -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 1qjJjl-0004Bq-8U for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28: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 1qjJjl-0006ca-0N for guix-patches@gnu.org; Thu, 21 Sep 2023 09:28:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJju-0004uZ-Ny for guix-patches@gnu.org; Thu, 21 Sep 2023 09:29:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66129] [PATCH v2 09/20] gnu: Add metis-5.2. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Sep 2023 13:29:06 +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.169530292518782 (code B ref 66129); Thu, 21 Sep 2023 13:29:06 +0000 Received: (at 66129) by debbugs.gnu.org; 21 Sep 2023 13:28:45 +0000 Received: from localhost ([127.0.0.1]:33063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjY-0004sm-D6 for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:44 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJjP-0004pt-3o for 66129@debbugs.gnu.org; Thu, 21 Sep 2023 09:28:35 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 7346A240104 for <66129@debbugs.gnu.org>; Thu, 21 Sep 2023 15:28:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695302899; bh=5wxZDPQuPnnBuq5f1EeowMWF/FqCk7shN8Mrl+vjZW0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=UBCkO8K2Q4WuxI2LPx1b+VXi4iFkA9zms8VNB2jdB5/JJ7dtAx4vrk60TfJkqs8v/ CTSdo6dOY/lJWJsmnHvVAcC81jSWAUza2Y1Q06oKon4Xh7mkwUAe+Gk62wHmRrIlMj mf1K6NRjVcMq2MxFY1RSwn5EKfCajnY4Kzf77OcACXjlNPGBlZQePlA+ymNvH3bAsb 3ZDOmIuED/zqDqIsX4tn+7hxKjeia1qw3HnY4rZ5/wUtyqNkksbiUb9lhGe7pvH0tf fv9pYJLzexoca+c+vbHsKmJWOWMSnrIYPNKjvmuHR0+y7K1aAHq9lHFcRBXTO1Yg9g /MAeflCen6hJA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rrx6q0dzQz6tvq; Thu, 21 Sep 2023 15:28:19 +0200 (CEST) From: David Elsing Date: Thu, 21 Sep 2023 13:27:44 +0000 Message-ID: <60843d24159cd95c85a4af44813f370f94d11eb3.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-5.2): New variable. --- gnu/packages/maths.scm | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index a2650b3101..2a9040ad39 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4230,6 +4230,7 @@ (define-public gklib software from KarypisLab, such as METIS.") (license license:asl2.0)))) +;; XXX: Remove once the full SuiteSparse package is replaced. (define-public metis (package (name "metis") @@ -4263,6 +4264,53 @@ (define-public metis schemes.") (license license:asl2.0))) ;As of version 5.0.3 +(define-public metis-5.2 + (package + (name "metis") + (version "5.2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/KarypisLab/METIS") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "19vi1wsi2gp2m5vb715yfnzd2g7brm4r40qxg65ysrzgl13lpmvr")) + (snippet + #~(delete-file "manual/manual.pdf")))) + (build-system cmake-build-system) + (inputs (list gklib openblas)) + (arguments + (list + #:tests? #f ; Tests are not automatic + #:configure-flags + #~(list "-DSHARED=ON" + (string-append "-DGKLIB_PATH=" #$gklib)) + #:phases + #~(modify-phases %standard-phases + ;; The original Makefile copies some files and invokes CMake. + (add-before 'configure 'prepare-cmake + (lambda _ + (substitute* "Makefile" + (("config: distclean") "config:") + (("BUILDDIR =.*") + "BUILDDIR = .\n") + ((".*cmake.*") "")) + (substitute* "CMakeLists.txt" + (("build/") "../source/")) + (invoke "make" "config")))))) + (home-page "http://glaros.dtc.umn.edu/gkhome/metis/metis/overview") + (synopsis "Graph partitioning and fill-reducing matrix ordering library") + (description + "METIS is a set of serial programs for partitioning graphs, partitioning +finite element meshes, and producing fill-reducing orderings for sparse +matrices. The algorithms implemented in METIS are based on the multilevel +recursive-bisection, multilevel k-way, and multi-constraint partitioning +schemes.") + (license license:asl2.0))) + (define-public p4est (package (name "p4est")