gnu: Fix load-extension path in packaging of guile-ncurses.
* gnu/packages/guile.scm (guile-ncurses) [arguments]: Install shared object before attempting to build the package. Patch load-extension path before building instead of after.
This commit is contained in:
parent
1feeb2e035
commit
8c4e99cca3
|
@ -431,16 +431,20 @@ many readers as needed).")
|
||||||
"--with-gnu-filesystem-hierarchy")
|
"--with-gnu-filesystem-hierarchy")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'install 'post-install
|
(add-before 'build 'fix-libguile-ncurses-file-name
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(and (zero? (system* "make" "install"
|
||||||
|
"-C" "src/ncurses"
|
||||||
|
"-j" (number->string
|
||||||
|
(parallel-job-count))))
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(dir (string-append out "/share/guile/site/"))
|
(dir "src/ncurses")
|
||||||
(files (find-files dir ".scm")))
|
(files (find-files dir ".scm")))
|
||||||
(substitute* files
|
(substitute* files
|
||||||
(("\"libguile-ncurses\"")
|
(("\"libguile-ncurses\"")
|
||||||
(format #f "\"~a/lib/guile/2.0/libguile-ncurses\""
|
(format #f "\"~a/lib/guile/2.0/libguile-ncurses\""
|
||||||
out)))
|
out)))
|
||||||
#t))))))
|
#t)))))))
|
||||||
(home-page "https://www.gnu.org/software/guile-ncurses/")
|
(home-page "https://www.gnu.org/software/guile-ncurses/")
|
||||||
(synopsis "Guile bindings to ncurses")
|
(synopsis "Guile bindings to ncurses")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in New Issue