guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: gnu: cl-hdf5-cffi: Fix build.


From: guix-commits
Subject: 01/03: gnu: cl-hdf5-cffi: Fix build.
Date: Mon, 17 Apr 2023 05:47:06 -0400 (EDT)

glv pushed a commit to branch core-updates
in repository guix.

commit a2ed9816c9f2e1243ab65e19c432175843b5542a
Author: Guillaume Le Vaillant <glv@posteo.net>
AuthorDate: Mon Apr 17 11:16:58 2023 +0200

    gnu: cl-hdf5-cffi: Fix build.
    
    * gnu/packages/lisp-xyz.scm (sbcl-hdf5-cffi)[inputs]: Remove labels.
      [arguments]: Use gexp, add 'fix-newer-hdf5-compatibility' phase.
---
 gnu/packages/lisp-xyz.scm | 58 +++++++++++++++++++++++++++++------------------
 1 file changed, 36 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 1d13356b2d..b02892d5f6 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -12182,10 +12182,9 @@ them as PNG files.")
          (uri (git-reference
                (url "https://github.com/hdfgroup/hdf5-cffi";)
                (commit commit)))
-         (file-name (git-file-name name version))
+         (file-name (git-file-name "cl-hdf5-cffi" version))
          (sha256
-          (base32
-           "0vda3075423xz83qky998lpac5b04dwfv7bwgh9jq8cs5v0zrxjf"))))
+          (base32 "0vda3075423xz83qky998lpac5b04dwfv7bwgh9jq8cs5v0zrxjf"))))
       (build-system asdf-build-system/sbcl)
       (synopsis "Common Lisp bindings for the HDF5 library")
       (description
@@ -12196,28 +12195,43 @@ them as PNG files.")
                                commit
                                "/LICENSE")))
       (inputs
-       `(("cffi" ,sbcl-cffi)
-         ("hdf5" ,hdf5-1.10)))
+       (list hdf5-1.10 sbcl-cffi))
       (native-inputs
        (list sbcl-fiveam))
       (arguments
-       `(#:phases
-         (modify-phases %standard-phases
-           (add-after 'unpack 'fix-paths
-             (lambda* (#:key inputs #:allow-other-keys)
-               (substitute* "src/library.lisp"
-                 (("libhdf5.so")
-                  (string-append
-                   (assoc-ref inputs "hdf5")
-                   "/lib/libhdf5.so")))))
-           (add-after 'unpack 'fix-dependencies
-             (lambda* (#:key inputs #:allow-other-keys)
-               (substitute* "hdf5-cffi.asd"
-                 ((":depends-on \\(:cffi\\)")
-                  ":depends-on (:cffi :cffi-grovel)"))
-               (substitute* "hdf5-cffi.test.asd"
-                 ((":depends-on \\(:cffi :hdf5-cffi")
-                  ":depends-on (:cffi :cffi-grovel :hdf5-cffi"))))))))))
+       (list #:phases
+             #~(modify-phases %standard-phases
+                 (add-after 'unpack 'fix-paths
+                   (lambda* (#:key inputs #:allow-other-keys)
+                     (substitute* "src/library.lisp"
+                       (("libhdf5.so")
+                        (search-input-file inputs "/lib/libhdf5.so")))))
+                 (add-after 'fix-paths 'fix-newer-hdf5-compatibility
+                   (lambda _
+                     (substitute* (list "src/h5-grovel.lisp"
+                                        "src/h5a-grovel.lisp"
+                                        "src/h5d-grovel.lisp"
+                                        "src/h5f-grovel.lisp"
+                                        "src/h5g-grovel.lisp"
+                                        "src/h5i-grovel.lisp"
+                                        "src/h5l-grovel.lisp"
+                                        "src/h5o-grovel.lisp"
+                                        "src/h5p-grovel.lisp"
+                                        "src/h5pl-grovel.lisp"
+                                        "src/h5r-grovel.lisp"
+                                        "src/h5s-grovel.lisp"
+                                        "src/h5t-grovel.lisp"
+                                        "src/h5z-grovel.lisp")
+                       (("_H5private_H")
+                        "H5private_H"))))
+                 (add-after 'unpack 'fix-dependencies
+                   (lambda* (#:key inputs #:allow-other-keys)
+                     (substitute* "hdf5-cffi.asd"
+                       ((":depends-on \\(:cffi\\)")
+                        ":depends-on (:cffi :cffi-grovel)"))
+                     (substitute* "hdf5-cffi.test.asd"
+                       ((":depends-on \\(:cffi :hdf5-cffi")
+                        ":depends-on (:cffi :cffi-grovel :hdf5-cffi"))))))))))
 
 (define-public cl-hdf5-cffi
   (sbcl-package->cl-source-package sbcl-hdf5-cffi))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]