From: "Paul A. Patience" <paul@apatience.com>
To: 56638@debbugs.gnu.org
Cc: "Paul A. Patience" <paul@apatience.com>
Subject: [bug#56638] [PATCH] gnu: Add asli.
Date: Tue, 19 Jul 2022 07:59:45 +0000 [thread overview]
Message-ID: <20220719075934.67481-1-paul@apatience.com> (raw)
* 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 © 2022 John Kehayias <john.kehayias@protonmail.com>
;;; Copyright © 2022 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2022 Tobias Kortkamp <tobias.kortkamp@gmail.com>
+;;; Copyright © 2022 Paul A. Patience <paul@apatience.com>
;;;
;;; 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+)))
--
2.37.0
next reply other threads:[~2022-07-19 8:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-19 7:59 Paul A. Patience [this message]
2022-07-19 8:10 ` [bug#56638] [PATCH] gnu: Add asli Paul A. Patience
2022-07-19 14:21 ` Ludovic Courtès
2022-07-19 14:32 ` Maxime Devos
2022-07-19 14:34 ` Maxime Devos
2022-07-24 12:02 ` [bug#56638] [PATCH v2 0/2] " Paul A. Patience
2022-07-24 12:02 ` [bug#56638] [PATCH v2 1/2] gnu: Add mmg Paul A. Patience
2022-08-29 21:21 ` [bug#56638] [PATCH] gnu: Add asli Ludovic Courtès
2022-07-24 12:02 ` [bug#56638] [PATCH v2 2/2] " Paul A. Patience
2022-08-04 21:40 ` [bug#56638] [PATCH] " Ludovic Courtès
2022-08-29 21:21 ` Ludovic Courtès
2022-08-30 12:01 ` Paul A. Patience
2022-09-02 20:34 ` [bug#56638] [PATCH v3] " Paul A. Patience
2022-09-13 19:02 ` Paul A. Patience
2022-09-14 21:13 ` [bug#56638] [PATCH] " Ludovic Courtès
2022-09-15 13:37 ` Paul A. Patience
2023-06-20 0:39 ` Paul A. Patience
2023-09-08 17:16 ` bug#56638: " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220719075934.67481-1-paul@apatience.com \
--to=paul@apatience.com \
--cc=56638@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).