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.
This commit is contained in:
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

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