From 9ed1ba8ae2ea788b96a80c0fb87252a789bb3fe0 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 13 Dec 2013 18:01:04 +0100 Subject: gnu: global: Install the elisp file under $out/share/emacs/site-lisp. * gnu/packages/global.scm (global)[arguments]: Add #:phases. --- gnu/packages/global.scm | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'gnu/packages/global.scm') diff --git a/gnu/packages/global.scm b/gnu/packages/global.scm index 2d4cd31bd9..6244e2461e 100644 --- a/gnu/packages/global.scm +++ b/gnu/packages/global.scm @@ -42,7 +42,21 @@ (define-public global ; a global variable (arguments `(#:configure-flags (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/") (synopsis "Cross-environment source code tag system") (description -- cgit v1.2.3