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.
This commit is contained in:
Guillaume Le Vaillant 2023-04-17 11:16:58 +02:00
parent 424ee72ffb
commit a2ed9816c9
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -12182,10 +12182,9 @@ them as PNG files.")
(uri (git-reference (uri (git-reference
(url "https://github.com/hdfgroup/hdf5-cffi") (url "https://github.com/hdfgroup/hdf5-cffi")
(commit commit))) (commit commit)))
(file-name (git-file-name name version)) (file-name (git-file-name "cl-hdf5-cffi" version))
(sha256 (sha256
(base32 (base32 "0vda3075423xz83qky998lpac5b04dwfv7bwgh9jq8cs5v0zrxjf"))))
"0vda3075423xz83qky998lpac5b04dwfv7bwgh9jq8cs5v0zrxjf"))))
(build-system asdf-build-system/sbcl) (build-system asdf-build-system/sbcl)
(synopsis "Common Lisp bindings for the HDF5 library") (synopsis "Common Lisp bindings for the HDF5 library")
(description (description
@ -12196,20 +12195,35 @@ them as PNG files.")
commit commit
"/LICENSE"))) "/LICENSE")))
(inputs (inputs
`(("cffi" ,sbcl-cffi) (list hdf5-1.10 sbcl-cffi))
("hdf5" ,hdf5-1.10)))
(native-inputs (native-inputs
(list sbcl-fiveam)) (list sbcl-fiveam))
(arguments (arguments
`(#:phases (list #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'fix-paths (add-after 'unpack 'fix-paths
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(substitute* "src/library.lisp" (substitute* "src/library.lisp"
(("libhdf5.so") (("libhdf5.so")
(string-append (search-input-file inputs "/lib/libhdf5.so")))))
(assoc-ref inputs "hdf5") (add-after 'fix-paths 'fix-newer-hdf5-compatibility
"/lib/libhdf5.so"))))) (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 (add-after 'unpack 'fix-dependencies
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(substitute* "hdf5-cffi.asd" (substitute* "hdf5-cffi.asd"