gnu: global: Use modify-phases syntax.

* gnu/packages/code.scm (global)[arguments]: Use modify-phases syntax.
This commit is contained in:
Efraim Flashner 2016-01-12 14:47:10 +02:00
parent 94c3a6f1a6
commit 9d9951d6a6

View file

@ -111,18 +111,17 @@ (define-public global ; a global variable
(string-append "--with-sqlite3=" (string-append "--with-sqlite3="
(assoc-ref %build-inputs "sqlite"))) (assoc-ref %build-inputs "sqlite")))
#:phases (alist-cons-after #:phases
'install 'post-install (modify-phases %standard-phases
(lambda* (#:key outputs #:allow-other-keys) (add-after 'install 'post-install
;; Install the Emacs Lisp file in the right place. (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) ;; Install the Emacs Lisp file in the right place.
(data (string-append out "/share/gtags")) (let* ((out (assoc-ref outputs "out"))
(lisp (string-append out "/share/emacs/site-lisp"))) (data (string-append out "/share/gtags"))
(install-file (string-append data "/gtags.el") (lisp (string-append out "/share/emacs/site-lisp")))
lisp) (install-file (string-append data "/gtags.el") lisp)
(delete-file (string-append data "/gtags.el")) (delete-file (string-append data "/gtags.el"))
#t)) #t))))))
%standard-phases)))
(home-page "http://www.gnu.org/software/global/") (home-page "http://www.gnu.org/software/global/")
(synopsis "Cross-environment source code tag system") (synopsis "Cross-environment source code tag system")
(description (description