From patchwork Wed Feb 5 14:08:31 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andreas Enge X-Patchwork-Id: 38242 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 C48AD27BBEA; Wed, 5 Feb 2025 14:09:26 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,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 7FB6927BBE2 for ; Wed, 5 Feb 2025 14:09:25 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tfg5T-0008Tp-SU; Wed, 05 Feb 2025 09:09:07 -0500 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 1tfg5O-0008SU-FL for guix-patches@gnu.org; Wed, 05 Feb 2025 09:09:02 -0500 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 1tfg5O-0000Xt-6e for guix-patches@gnu.org; Wed, 05 Feb 2025 09:09:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:MIME-Version:References:From:Date:To:Subject; bh=IM7blnIQT07/lJ9EHOP1fV3AOQVSaeQm3pn1aStWIYs=; b=jfL6/rLKAawAHhYkH3rY1CX6A5YwIu8a896XuCZK1ux8kxkzD3MBWKao5RcuH30I6W3P6e//NFFHnmZ8knf6inOZA229aFuL6lqxrStKeso1XIY90A2Jan9wFR691gG2pOmpPWg/i7d0iEbORNrfLz/Gp7nAGlokCj5jnSaSJYqFjO4qkH5pmRODitVa+g93r/nHiM7yh5qXyuEO0e+9YtNg7o5b+M3iHfuxPyoHAiu/LGKK4jM0Qo9h6dF/yGpU74Gm1rikHIsmal0xNUBcuyfhaIoGvc545TrBN66YsPhDwFOj8GP5iSLaED2NH8TLvVZW+svNURAbaqmXoC7pBg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tfg5N-0004C3-NJ for guix-patches@gnu.org; Wed, 05 Feb 2025 09:09:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75286] [PATCH v3] gnu: Add tetgen. Resent-From: Andreas Enge Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 05 Feb 2025 14:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75286 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Lars Bilke Cc: ludovic.courtes@inria.fr, 75286@debbugs.gnu.org, Sharlatan Hellseher , ludo@gnu.org, Eric Bavier Received: via spool by 75286-submit@debbugs.gnu.org id=B75286.173876452716093 (code B ref 75286); Wed, 05 Feb 2025 14:09:01 +0000 Received: (at 75286) by debbugs.gnu.org; 5 Feb 2025 14:08:47 +0000 Received: from localhost ([127.0.0.1]:49158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tfg58-0004BV-Dy for submit@debbugs.gnu.org; Wed, 05 Feb 2025 09:08:46 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:54536) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tfg55-0004BE-Qs for 75286@debbugs.gnu.org; Wed, 05 Feb 2025 09:08:44 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 3B104131; Wed, 5 Feb 2025 15:08:36 +0100 (CET) Authentication-Results: hera.aquilenet.fr; none X-Virus-Scanned: Debian amavis at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavis, port 10024) with ESMTP id 9Y9-qIOQKLLl; Wed, 5 Feb 2025 15:08:35 +0100 (CET) Received: from jurong (176-179-191-150.abo.bbox.fr [176.179.191.150]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 70DED157; Wed, 5 Feb 2025 15:08:33 +0100 (CET) Date: Wed, 5 Feb 2025 15:08:31 +0100 From: Andreas Enge Message-ID: References: <7622e8ab9d2ed49d00210d4c4c3586e3e92a41f4.1738056004.git.lars.bilke@ufz.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <7622e8ab9d2ed49d00210d4c4c3586e3e92a41f4.1738056004.git.lars.bilke@ufz.de> X-Rspamd-Action: no action X-Rspamd-Server: hera X-Rspamd-Queue-Id: 3B104131 X-Spamd-Bar: ----- X-Spamd-Result: default: False [-5.60 / 15.00]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM(-3.00)[-0.999]; MID_RHS_NOT_FQDN(0.50)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; RCPT_COUNT_FIVE(0.00)[6]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_ATTACHMENT(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; FREEMAIL_CC(0.00)[debbugs.gnu.org,inria.fr,posteo.net,gmail.com,gnu.org] 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 Hello Lars, when looking at the tetgen homepage, I see that they do not have a version 1.5.1, but that there is a version 1.6.0. They hide the source behind a form that asks for a name and an email address, but the real place of the source code is easily reverse engineered. I am attaching a corresponding patch; unfortunately there is no install target, so I copy the binary "by hand" to bin/. And there is an installed file etc/ld.so.cache, of which I do not know where it comes from and which phase puts it into the output; it is surely superfluous? What do you think? I see that your email address is @ufz.de and that the github origin you provide belongs to ufz, so maybe you maintain a fork? But if you need one, maybe this should be mentioned somewhere and/or reflected in the package name? Andreas From 1c926212be095477afe06e4ff664060dacfd723f Mon Sep 17 00:00:00 2001 Message-ID: <1c926212be095477afe06e4ff664060dacfd723f.1738764179.git.andreas@enge.fr> From: Lars Bilke Date: Tue, 28 Jan 2025 10:20:04 +0100 Subject: [PATCH] gnu: Add tetgen. * gnu/packages/geo.scm (tetgen): New variable. Change-Id: Iba2de71cf0a10ca5c7b65f9851d05fe63c944b30 Co-authored-by: Andreas Enge Signed-off-by: Andreas Enge --- gnu/packages/geo.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) base-commit: a53bd6f27b0a49491dc87c2476555682fef6c47e diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index 3317271802f..9acb9c4cb80 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -24,6 +24,7 @@ ;;; Copyright © 2022 Denis 'GNUtoo' Carikli ;;; Copyright © 2024 Wilko Meyer ;;; Copyright © 2024 Jonathan Brielmaier +;;; Copyright © 2025 Andreas Enge ;;; ;;; This file is part of GNU Guix. ;;; @@ -3684,3 +3685,35 @@ (define-public laszip @code{LAZ} files. The @code{LAS} format is a file format designed for the interchange and archiving of lidar point cloud data.") (license license:asl2.0))) + +(define-public tetgen + (package + (name "tetgen") + (version "1.6.0") + (source + (origin + (method url-fetch) + (uri + "https://wias-berlin.de/software/tetgen/1.5/src/tetgen1.6.0.tar.gz") + (sha256 + (base32 "0fff0l6i3xfjlm0zkcgyyhwndp8i5d615mydyb21yirsplgfddc7")))) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f ;; No test suite. + #:configure-flags #~(list "-DCMAKE_POSITION_INDEPENDENT_CODE=ON") + #:phases + #~(modify-phases %standard-phases + (replace 'install ;; no install target + (lambda _ + (install-file "tetgen" + (string-append #$output "/bin"))))))) + (home-page "https://wias-berlin.de/software/tetgen/") + (synopsis + "Quality Tetrahedral Mesh Generator and 3D Delaunay Triangulator") + (description + "TetGen is a program to generate tetrahedral meshes of any 3D +polyhedral domains. TetGen generates exact constrained Delaunay +tetrahedralizations, boundary conforming Delaunay meshes, and Voronoi +partitions.") + (license license:agpl3+)))