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.master
parent
424ee72ffb
commit
a2ed9816c9
|
@ -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,28 +12195,43 @@ 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 _
|
||||||
(add-after 'unpack 'fix-dependencies
|
(substitute* (list "src/h5-grovel.lisp"
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
"src/h5a-grovel.lisp"
|
||||||
(substitute* "hdf5-cffi.asd"
|
"src/h5d-grovel.lisp"
|
||||||
((":depends-on \\(:cffi\\)")
|
"src/h5f-grovel.lisp"
|
||||||
":depends-on (:cffi :cffi-grovel)"))
|
"src/h5g-grovel.lisp"
|
||||||
(substitute* "hdf5-cffi.test.asd"
|
"src/h5i-grovel.lisp"
|
||||||
((":depends-on \\(:cffi :hdf5-cffi")
|
"src/h5l-grovel.lisp"
|
||||||
":depends-on (:cffi :cffi-grovel :hdf5-cffi"))))))))))
|
"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
|
(define-public cl-hdf5-cffi
|
||||||
(sbcl-package->cl-source-package sbcl-hdf5-cffi))
|
(sbcl-package->cl-source-package sbcl-hdf5-cffi))
|
||||||
|
|
Reference in New Issue