gnu: global: Install the elisp file under $out/share/emacs/site-lisp.

* gnu/packages/global.scm (global)[arguments]: Add #:phases.
This commit is contained in:
Ludovic Courtès 2013-12-13 18:01:04 +01:00
parent 31f9322e6f
commit 9ed1ba8ae2
1 changed files with 15 additions and 1 deletions

View File

@ -42,7 +42,21 @@
(arguments (arguments
`(#:configure-flags `(#:configure-flags
(list (string-append "--with-ncurses=" (list (string-append "--with-ncurses="
(assoc-ref %build-inputs "ncurses"))))) (assoc-ref %build-inputs "ncurses")))
#:phases (alist-cons-after
'install 'post-install
(lambda* (#:key outputs #:allow-other-keys)
;; Install the Emacs Lisp file in the right place.
(let* ((out (assoc-ref outputs "out"))
(data (string-append out "/share/gtags"))
(lisp (string-append out "/share/emacs/site-lisp")))
(mkdir-p lisp)
(copy-file (string-append data "/gtags.el")
(string-append lisp "/gtags.el"))
(delete-file (string-append data "/gtags.el"))
#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