gnu: r-haven: Unvendor readstat.
* gnu/packages/cran.scm (r-haven) [snippet]: Remove bundled readstat. [arguments]: Patch Makevars to use system readstat. [inputs]: Replace zlib with readstat. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
5ca1c7d1ce
commit
2075b83b2d
1 changed files with 17 additions and 2 deletions
|
@ -2309,10 +2309,25 @@ including functions for geolocation and routing.")
|
||||||
(uri (cran-uri "haven" version))
|
(uri (cran-uri "haven" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"03cypgqhdkrfbfpl1yx2wb7flczrbak1w654wkicmd5ajwr9zvkf"))))
|
"03cypgqhdkrfbfpl1yx2wb7flczrbak1w654wkicmd5ajwr9zvkf"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
'(begin
|
||||||
|
;; unvendor readstat
|
||||||
|
(delete-file-recursively "src/readstat")
|
||||||
|
#t))))
|
||||||
(build-system r-build-system)
|
(build-system r-build-system)
|
||||||
|
(arguments
|
||||||
|
'(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'unbundle-readstat
|
||||||
|
(lambda _
|
||||||
|
;; Not required, since we’re not building readstat.
|
||||||
|
(substitute* "src/Makevars"
|
||||||
|
(("-lz") "-lreadstat"))
|
||||||
|
#t)))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("zlib" ,zlib)))
|
`(("readstat" ,readstat)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("r-knitr" ,r-knitr)))
|
`(("r-knitr" ,r-knitr)))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
|
|
Reference in a new issue