gnu: bigloo: Use 'modify-phases' syntax.

* gnu/packages/scheme.scm (bigloo)[arguments]: Use 'modify-phases' syntax.
This commit is contained in:
Efraim Flashner 2016-10-23 11:36:27 +03:00
parent 04014de6f5
commit fb685df8f8
No known key found for this signature in database
GPG key ID: F4C1D3917EACEE93

View file

@ -205,8 +205,9 @@ (define-public bigloo
(build-system gnu-build-system)
(arguments
`(#:test-target "test"
#:phases (alist-replace
'configure
#:phases
(modify-phases %standard-phases
(replace 'configure
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "configure"
@ -247,16 +248,14 @@ (define-public bigloo
(string-append "--rm=" (which "rm"))
(string-append "--ldflags=-Wl,-rpath="
(assoc-ref outputs "out")
"/lib/bigloo/" ,version)))))
(alist-cons-after
'install 'install-emacs-modes
"/lib/bigloo/" ,version))))))
(add-after 'install 'install-emacs-modes
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(dir (string-append out "/share/emacs/site-lisp")))
(zero? (system* "make" "-C" "bmacs" "all" "install"
(string-append "EMACSBRAND=emacs24")
(string-append "EMACSDIR=" dir)))))
%standard-phases))))
(string-append "EMACSDIR=" dir)))))))))
(inputs
`(("emacs" ,emacs) ;UDE needs the X version of Emacs