From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yLOBGypl1mJlIQEAbAwnHQ (envelope-from ) for ; Tue, 19 Jul 2022 10:02:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sO14Gypl1mI5bQEA9RJhRA (envelope-from ) for ; Tue, 19 Jul 2022 10:02:50 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8522FE628 for ; Tue, 19 Jul 2022 10:02:49 +0200 (CEST) Received: from localhost ([::1]:35206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDiBr-0003P8-H0 for larch@yhetil.org; Tue, 19 Jul 2022 04:02:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDiAB-0001Rb-MM for guix-patches@gnu.org; Tue, 19 Jul 2022 04:01:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54952) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oDiAB-0003Qw-Bw for guix-patches@gnu.org; Tue, 19 Jul 2022 04:01:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oDiAA-00088j-7R for guix-patches@gnu.org; Tue, 19 Jul 2022 04:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56638] [PATCH] gnu: Add asli. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Jul 2022 08:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56638 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56638@debbugs.gnu.org Cc: "Paul A. Patience" X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165821760631117 (code B ref -1); Tue, 19 Jul 2022 08:01:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Jul 2022 08:00:06 +0000 Received: from localhost ([127.0.0.1]:52708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDi9F-00085k-GM for submit@debbugs.gnu.org; Tue, 19 Jul 2022 04:00:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:46856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDi9A-00084k-RM for submit@debbugs.gnu.org; Tue, 19 Jul 2022 04:00:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDi9A-0000dF-Lc for guix-patches@gnu.org; Tue, 19 Jul 2022 04:00:00 -0400 Received: from mail-4022.proton.ch ([185.70.40.22]:53883) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDi95-00032W-AJ for guix-patches@gnu.org; Tue, 19 Jul 2022 04:00:00 -0400 Date: Tue, 19 Jul 2022 07:59:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1658217590; x=1658476790; bh=aeUm9qK9MZOX84mVCNC3XX0f0q0TT+l5VnV8jNXuLyE=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:Feedback-ID:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID; b=HzJUVR3g7IxqguU0nT90dwazZWFR5VCfyVsuTlReS6MlLpjcS5qvfYSKIzEb2Hho/ 221p8l737IQW+V9NyQtb60/dU3uAwTafUyQUkVAodIndz90y1C1OtttF9Blb3KKPZp w7GCCvMug98H4BUmvxz9D7dJ7CAsm1gWonl6DcC6vBMOvqINFSTDq0BJy4tOGeKdPl WplJ9DqUwdXnmcwym43cl9TpWNmIylZX9m01zxJBU/s3oM8j00CYIckxj9D1iPkBXp Vxpj/nMHklBV/lLd1DxkP3LCQ5wHpEJsxShpOn+piHqagb8aCTPsH8sBZky5ZqsyJo YzjHh5xmgCi4w== From: "Paul A. Patience" Message-ID: <20220719075934.67481-1-paul@apatience.com> Feedback-ID: 19227857:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.22; envelope-from=paul@apatience.com; helo=mail-4022.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Reply-To: "Paul A. Patience" Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658217770; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=aeUm9qK9MZOX84mVCNC3XX0f0q0TT+l5VnV8jNXuLyE=; b=P2chex84N5lOx792CLd3/d7O3U4NaGcxl5aqk+sgzBUSXkGP38IAsYE2oIumHqo6T1kAXt Z0ZtrMfDyhOf0Tqc5kQA23uC0uY86dDE6Co7sfollymSqW+XgQlczx3xWLhFltyIkjI/si 9d/SiNOAdzLhci9xWaEVw6DJFujdrUJ+F5IG5RZ1uKX8wijBiQ3tMS0u7FRCbIuwqlM2xK 64cR1tM/YDx76rf4Kmeh3K/i5WDsrHtJBCiBBPaJ9FFFKF73NFsM14EnqLkkseyiaAvkN7 A5XXFv/jZZXtSDOMz5p61Yu/clOMNpbgKu0D9VrxVewy4tSIZ9S8ArE9JrSxqw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658217770; a=rsa-sha256; cv=none; b=N2gzJDrutobR4eEnkqMyaSyhYE9I6lggsjIypZO9WvV24BE/WASruj+WLF5QAdBTKwScpf irZFf+Z07Li5vAHHe8l2G7O64Qv4FuD+kk/BDVPAW6+qCvQ2iChVBVxy8MXIUDjXtW19+r Fxh0EOQLmLcQL9Fnem+EAgFNvucKCRDenrmVPnKEr9xHqUFsx7M2Yjk/fhLHV+sHXe08ST nZ8TbhXiQVkKte9AhXWa2kNshTzdFEZg/tU15FzSEO50O8ex/I/hb3g6ofl4skYjf05bCF dy6sir8HC07o4/AZVrL6bEk3CezAaqNcVwLWHaZ12TiK6j0syQ9QJ3lYPOd0Uw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail2 header.b=HzJUVR3g; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.37 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail2 header.b=HzJUVR3g; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8522FE628 X-Spam-Score: 3.37 X-Migadu-Scanner: scn1.migadu.com X-TUID: udQklfda0QdJ * gnu/packages/graphics.scm (asli): New variable. --- gnu/packages/graphics.scm | 67 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index c193be1efb..bae1ba1f99 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -31,6 +31,7 @@ ;;; Copyright =C2=A9 2022 John Kehayias ;;; Copyright =C2=A9 2022 Zheng Junjie <873216071@qq.com> ;;; Copyright =C2=A9 2022 Tobias Kortkamp +;;; Copyright =C2=A9 2022 Paul A. Patience ;;; ;;; This file is part of GNU Guix. ;;; @@ -2120,3 +2121,69 @@ (define-public azpainter @end itemize ") (license license:gpl3+))) + +(define-public asli + (package + (name "asli") + (version "0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tpms-lattice/ASLI") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "02hwdavpsy3vmivd6prp03jn004ykrl11lbkvksy5i2zm38zbknr")) + (modules '((guix build utils))) + (snippet + ;; Remove bundled libraries except ALGLIB, TetGen and yaml-cpp, wh= ich + ;; are statically linked, and KU Leuven's mTT, which is an obscure + ;; (i.e., unfindable by searching online for =E2=80=9CmTT KU Leuve= n=E2=80=9D), BSD-3 + ;; licensed, header-only library. + ;; + ;; AdaptTools and mmg are missing from Guix, but anyway they are + ;; unused because mmg support is disabled (-DMMG_MESH=3DOFF). + #~(begin + (delete-file-recursively "libs/AdaptTools") + (delete-file-recursively "libs/CGAL") + (delete-file-recursively "libs/eigen") + (delete-file-recursively "libs/mmg"))))) + (build-system cmake-build-system) + (native-inputs + ;; Header-only library + (list cgal)) + (inputs + (list boost + eigen + gmp + mpfr + tbb-2020)) + (arguments + (list #:tests? #f ; No tests + #:configure-flags + #~(list "-DCGAL_ACTIVATE_CONCURRENT_MESH_3=3DON" + "-DMMG_MESH=3DOFF" ; Build fails when enabled (the = default) + (string-append "-DEIGEN3_INCLUDE_DIR=3D" + #$(this-package-input "eigen") + "/include/eigen3")) + #:phases + #~(modify-phases %standard-phases + (replace 'install ; No install phase + (lambda _ + (with-directory-excursion "../source/bin" + (install-file "ASLI" (string-append #$output "/bin")) + ;; The manual is included in the repository. + ;; Building it requires -DASLI_DOC=3DON, but this is = marked + ;; as unsupported (presumably for users). + (install-file "docs/ASLI [User Manual].pdf" + (string-append #$output "/share/doc/" + #$name "-" #$version))))= )))) + (home-page "http://www.biomech.ulg.ac.be/ASLI/") + (synopsis "Create lattice infills with varying unit cell type, size an= d feature") + (description "ASLI (A Simple Lattice Infiller) is a command-line tool = that +allows users to fill any 3D geometry with a functionally graded lattice. = The +lattice infill is constructed out of unit cells, described by implicit +functions, whose type, size and feature can be varied locally to obtain th= e +desired local properties.") + (license license:agpl3+))) -- 2.37.0