1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-23 01:25:57 +02:00

gnu: asli: Update to 0.1-1.4f4ba14.

* gnu/packages/graphics.scm (asli): Update to the commit
4f4ba142ea7db6eecfdb546538c88a38680a83c5 to allow build with CGAL v5.6.
* gnu/packages/patches/asli-use-system-libs.patch: Update.

Change-Id: I623099a34d96180fe6aa4c161cfa895597a45304
This commit is contained in:
Artyom V. Poptsov
2024-08-14 08:48:45 +03:00
committed by Ludovic Courtès
parent 7aecfa9462
commit 455da8f458
2 changed files with 102 additions and 91 deletions
+70 -68
View File
@@ -2852,78 +2852,80 @@ a game.")
(license license:zlib))))
(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"))
(patches (search-patches "asli-use-system-libs.patch"))
(modules '((guix build utils)))
(snippet
;; Remove bundled libraries except (the ones missing from Guix 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.
#~(begin
;;(delete-file-recursively "libs/AdaptTools") ; Missing from Guix
(delete-file-recursively "libs/CGAL")
;;(delete-file-recursively "libs/alglib") ; Missing from Guix
(delete-file-recursively "libs/eigen")
(delete-file-recursively "libs/mmg")
;;(delete-file-recursively "libs/tetgen") ; Missing from Guix
(delete-file-recursively "libs/yaml")))))
(build-system cmake-build-system)
(inputs
(list boost
cgal
eigen
gmp
`(,mmg "lib")
mpfr
tbb-2020
yaml-cpp))
(arguments
(list #:tests? #f ; No tests
#:configure-flags
#~(list "-DCGAL_ACTIVATE_CONCURRENT_MESH_3=ON"
(string-append "-DEIGEN3_INCLUDE_DIR="
#$(this-package-input "eigen")
"/include/eigen3")
(string-append "-DMMG_INCLUDE_DIR="
(ungexp (this-package-input "mmg") "lib")
"/include")
(string-append "-DMMG_LIBRARY_DIR="
(ungexp (this-package-input "mmg") "lib")
"/lib"))
#: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).
;; Besides, some of the LaTeX packages it uses are
;; missing from Guix, for example emptypage, fvextra and
;; menukeys.
(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
;; Use the newer version of ASLI that allows build with CGAL v5.6.
(let ((commit "4f4ba142ea7db6eecfdb546538c88a38680a83c5")
(revision "1"))
(package
(name "asli")
(version (git-version "0.1" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/tpms-lattice/ASLI")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "122xxnj3dckmg6mh07x490564b2z9gd38cd0wc5zz3p4nshcq7wy"))
(patches (search-patches "asli-use-system-libs.patch"))
(modules '((guix build utils)))
(snippet
;; Remove bundled libraries except (the ones missing from Guix 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.
#~(begin
;;(delete-file-recursively "libs/AdaptTools") ; Missing from Guix
(delete-file-recursively "libs/CGAL")
;;(delete-file-recursively "libs/alglib") ; Missing from Guix
(delete-file-recursively "libs/eigen")
(delete-file-recursively "libs/mmg")
(delete-file-recursively "libs/yaml")))))
(build-system cmake-build-system)
(inputs
(list boost
cgal
eigen
gmp
`(,mmg "lib")
mpfr
tbb-2020
yaml-cpp))
(arguments
(list #:tests? #f ; No tests
#:configure-flags
#~(list "-DCGAL_ACTIVATE_CONCURRENT_MESH_3=ON"
(string-append "-DEIGEN3_INCLUDE_DIR="
#$(this-package-input "eigen")
"/include/eigen3")
(string-append "-DMMG_INCLUDE_DIR="
(ungexp (this-package-input "mmg") "lib")
"/include")
(string-append "-DMMG_LIBRARY_DIR="
(ungexp (this-package-input "mmg") "lib")
"/lib"))
#: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).
;; Besides, some of the LaTeX packages it uses are
;; missing from Guix, for example emptypage, fvextra and
;; menukeys.
(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+)))
(license license:agpl3+))))
(define-public f3d
(package