guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 7b1fdc56e03d4aef4ccec3e5bc2b3069c4a8584d
Author: Romain GARBAGE <[email protected]>
AuthorDate: Tue Nov 25 16:00:46 2025 +0100
gnu: gmsh: Switch to G-exps.
* gnu/packages/maths.scm (gmsh): Switch to G-exps.
Change-Id: I509129c49bcec3070eee748857a4bc3b9f9be59e
Signed-off-by: Andreas Enge <[email protected]>
---
gnu/packages/maths.scm | 55 +++++++++++++++++++++++++-------------------------
1 file changed, 28 insertions(+), 27 deletions(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 95d858598a..bfc62816a6 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -3792,33 +3792,34 @@ supports the propositional fragment of PDDL2.2.")
libxft
python))
(arguments
- `(#:configure-flags `("-DENABLE_SYSTEM_CONTRIB:BOOL=ON"
- "-DENABLE_BUILD_SHARED:BOOL=ON"
- "-DENABLE_BUILD_DYNAMIC:BOOL=ON")
- #:imported-modules (,@%cmake-build-system-modules
- (guix build python-build-system))
- #:modules (((guix build python-build-system) #:select (site-packages))
- (guix build cmake-build-system)
- (guix build utils))
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-paths
- (lambda* (#:key inputs outputs #:allow-other-keys)
- ;; Use the standard Guix site-package path for
- ;; installation of the Python API.
- (substitute* "CMakeLists.txt"
- (("include\\(GNUInstallDirs\\)\n")
- (string-append "include(GNUInstallDirs)\n"
- " set(GMSH_PY_LIB "
- (site-packages inputs outputs) ")\n"))
- (("\\$\\{GMSH\\_PY\\} DESTINATION \\$\\{GMSH\\_LIB\\}")
- "${GMSH_PY} DESTINATION ${GMSH_PY_LIB}"))
- ;; Find the shared library.
- (let ((libgmsh (string-append (assoc-ref outputs "out")
- "/lib/libgmsh.so")))
- (substitute* "api/gmsh.py"
- (("find_library\\(\"gmsh\"\\)")
- (simple-format #f "\"~a\"" libgmsh)))))))))
+ (list #:configure-flags
+ #~(list "-DENABLE_SYSTEM_CONTRIB:BOOL=ON"
+ "-DENABLE_BUILD_SHARED:BOOL=ON"
+ "-DENABLE_BUILD_DYNAMIC:BOOL=ON")
+ #:imported-modules `(,@%cmake-build-system-modules
+ (guix build python-build-system))
+ #:modules '(((guix build python-build-system) #:select
(site-packages))
+ (guix build cmake-build-system)
+ (guix build utils))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-paths
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ ;; Use the standard Guix site-package path for
+ ;; installation of the Python API.
+ (substitute* "CMakeLists.txt"
+ (("include\\(GNUInstallDirs\\)\n")
+ (string-append "include(GNUInstallDirs)\n"
+ " set(GMSH_PY_LIB "
+ (site-packages inputs outputs) ")\n"))
+ (("\\$\\{GMSH\\_PY\\} DESTINATION \\$\\{GMSH\\_LIB\\}")
+ "${GMSH_PY} DESTINATION ${GMSH_PY_LIB}"))
+ ;; Find the shared library.
+ (let ((libgmsh (string-append #$output
+ "/lib/libgmsh.so")))
+ (substitute* "api/gmsh.py"
+ (("find_library\\(\"gmsh\"\\)")
+ (simple-format #f "\"~a\"" libgmsh)))))))))
(home-page "https://gmsh.info/")
(synopsis "3D finite element grid generator")
(description "Gmsh is a 3D finite element grid generator with a built-in