me
/
guix
Archived
1
0
Fork 0

gnu: r-haven: Fix build.

* gnu/packages/cran.scm (r-haven)[arguments]: Adjust 'unbundle-readstat phase.

Reported-by: Jonas Freimuth.
Ricardo Wurmus 2022-05-31 15:15:34 +02:00
parent 098d0012f5
commit 3d5144db5a
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 6 additions and 3 deletions

View File

@ -3493,9 +3493,12 @@ including functions for geolocation and routing.")
(modify-phases %standard-phases
(add-after 'unpack 'unbundle-readstat
(lambda _
;; Not required, since were not building readstat.
(substitute* "src/Makevars"
(("-lz") "-lreadstat")))))))
;; Were not building readstat.
(substitute* "configure"
(("exit 1") "")) ;don't be so dramatic!
(substitute* '("src/Makevars.in"
"configure")
(("^PKG_LIBS=.*") "PKG_LIBS=\"-lreadstat\"\n")))))))
(inputs
(list readstat))
(native-inputs