From patchwork Tue Jul 19 07:59:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 40726 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 013C727BBEA; Tue, 19 Jul 2022 09:02:46 +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 6D3A027BBE9 for ; Tue, 19 Jul 2022 09:02:46 +0100 (BST) Received: from localhost ([::1]:35206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDiBp-0003P8-Jn for patchwork@mira.cbaines.net; Tue, 19 Jul 2022 04:02:45 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/graphics.scm (asli): New variable. --- gnu/packages/graphics.scm | 67 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) -- 2.37.0 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 © 2022 John Kehayias ;;; Copyright © 2022 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2022 Tobias Kortkamp +;;; Copyright © 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, which + ;; are statically linked, and KU Leuven's mTT, which is an obscure + ;; (i.e., unfindable by searching online for “mTT KU Leuven”), 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=OFF). + #~(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=ON" + "-DMMG_MESH=OFF" ; Build fails when enabled (the default) + (string-append "-DEIGEN3_INCLUDE_DIR=" + #$(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=ON, 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 and 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 the +desired local properties.") + (license license:agpl3+)))