| 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 | |
| 19 | (define-module (gnu packages global) |
| 20 | #:use-module (guix packages) |
| 21 | #:use-module (guix download) |
| 22 | #:use-module (guix build-system gnu) |
| 23 | #:use-module (guix licenses) |
| 24 | #:use-module (gnu packages ncurses) |
| 25 | #:use-module (gnu packages autotools) |
| 26 | #:use-module (gnu packages)) |
| 27 | |
| 28 | (define-public global ; a global variable |
| 29 | (package |
| 30 | (name "global") |
| 31 | (version "6.3") |
| 32 | (source (origin |
| 33 | (method url-fetch) |
| 34 | (uri (string-append "mirror://gnu/global/global-" |
| 35 | version ".tar.gz")) |
| 36 | (sha256 |
| 37 | (base32 |
| 38 | "1nzqqcry3mfha53n8j1grdg2dflp9gpg54qwlsrzq9sspwg78769")))) |
| 39 | (build-system gnu-build-system) |
| 40 | (inputs `(("ncurses" ,ncurses) |
| 41 | ("libtool" ,libtool))) |
| 42 | (arguments |
| 43 | `(#:configure-flags |
| 44 | (list (string-append "--with-ncurses=" |
| 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))) |
| 60 | (home-page "http://www.gnu.org/software/global/") |
| 61 | (synopsis "Cross-environment source code tag system") |
| 62 | (description |
| 63 | "GLOBAL is a source code tagging system that functions in the same way |
| 64 | across a wide array of environments, such as different text editors, shells |
| 65 | and web browsers. The resulting tags are useful for quickly moving around in |
| 66 | a large, deeply nested project.") |
| 67 | (license gpl3+))) |