gnu: sudo: Apply workaround to build system for MIPS.
[jackhill/guix/guix.git] / gnu / packages / global.scm
CommitLineData
27160c85
LC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
1ffa7090 19(define-module (gnu packages global)
27160c85
LC
20 #:use-module (guix packages)
21 #:use-module (guix download)
22 #:use-module (guix build-system gnu)
23 #:use-module (guix licenses)
1ffa7090
LC
24 #:use-module (gnu packages ncurses)
25 #:use-module (gnu packages autotools)
59a43334 26 #:use-module (gnu packages))
27160c85
LC
27
28(define-public global ; a global variable
29 (package
30 (name "global")
ea971101 31 (version "6.3")
431a3551
LC
32 (source (origin
33 (method url-fetch)
34 (uri (string-append "mirror://gnu/global/global-"
35 version ".tar.gz"))
36 (sha256
37 (base32
ea971101 38 "1nzqqcry3mfha53n8j1grdg2dflp9gpg54qwlsrzq9sspwg78769"))))
27160c85
LC
39 (build-system gnu-build-system)
40 (inputs `(("ncurses" ,ncurses)
41 ("libtool" ,libtool)))
42 (arguments
43 `(#:configure-flags
44 (list (string-append "--with-ncurses="
9ed1ba8a
LC
45 (assoc-ref %build-inputs "ncurses")))
46
47 #:phases (alist-cons-after
48 'install 'post-install
49 (lambda* (#:key outputs #:allow-other-keys)
50 ;; Install the Emacs Lisp file in the right place.
51 (let* ((out (assoc-ref outputs "out"))
52 (data (string-append out "/share/gtags"))
53 (lisp (string-append out "/share/emacs/site-lisp")))
54 (mkdir-p lisp)
55 (copy-file (string-append data "/gtags.el")
56 (string-append lisp "/gtags.el"))
57 (delete-file (string-append data "/gtags.el"))
58 #t))
59 %standard-phases)))
27160c85 60 (home-page "http://www.gnu.org/software/global/")
f50d2669 61 (synopsis "Cross-environment source code tag system")
27160c85 62 (description
a22dc0c4
LC
63 "GLOBAL is a source code tagging system that functions in the same way
64across a wide array of environments, such as different text editors, shells
65and web browsers. The resulting tags are useful for quickly moving around in
66a large, deeply nested project.")
38bbd61d 67 (license gpl3+)))