Commit | Line | Data |
---|---|---|
6d267f0a LC |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> | |
3 | ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org> | |
4 | ;;; | |
5 | ;;; This file is part of GNU Guix. | |
6 | ;;; | |
7 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
8 | ;;; under the terms of the GNU General Public License as published by | |
9 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
10 | ;;; your option) any later version. | |
11 | ;;; | |
12 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
13 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | ;;; GNU General Public License for more details. | |
16 | ;;; | |
17 | ;;; You should have received a copy of the GNU General Public License | |
18 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
19 | ||
20 | (define-module (gnu packages gv) | |
21 | #:use-module (gnu packages) | |
22 | #:use-module (gnu packages ghostscript) | |
23 | #:use-module (gnu packages compression) | |
24 | #:use-module (gnu packages pkg-config) | |
25 | #:use-module (gnu packages xorg) | |
26 | #:use-module ((guix licenses) #:renamer (symbol-prefix-proc 'license:)) | |
27 | #:use-module (guix packages) | |
28 | #:use-module (guix download) | |
29 | #:use-module (guix build-system gnu)) | |
30 | ||
31 | (define-public ghostscript/x | |
32 | (package (inherit ghostscript) | |
33 | (name (string-append (package-name ghostscript) "-with-x")) | |
34 | (inputs `(("libxext" ,libxext) | |
35 | ("libxt" ,libxt) | |
36 | ,@(package-inputs ghostscript))))) | |
37 | ||
38 | (define-public gv | |
39 | (package | |
40 | (name "gv") | |
41 | (version "3.7.4") | |
42 | (source (origin | |
43 | (method url-fetch) | |
44 | (uri (string-append "mirror://gnu/gv/gv-" | |
45 | version ".tar.gz")) | |
46 | (sha256 (base32 | |
47 | "0q8s43z14vxm41pfa8s5h9kyyzk1fkwjhkiwbf2x70alm6rv6qi1")))) | |
48 | (build-system gnu-build-system) | |
49 | (propagated-inputs `(("ghostscript" ,ghostscript/x))) | |
50 | (inputs `(("libx11" ,libx11) | |
51 | ("libxaw3d" ,libxaw3d) | |
52 | ("libxinerama" ,libxinerama) | |
53 | ("libxpm" ,libxpm) | |
6d267f0a | 54 | ("zlib" ,zlib))) |
c4c4cc05 JD |
55 | (native-inputs |
56 | `(("pkg-config" ,pkg-config))) | |
2c71cf66 | 57 | (synopsis "PostScript and PDF viewer using Ghostscript as a back-end") |
6d267f0a | 58 | (description |
79c311b8 LC |
59 | "GNU GV is a graphical user interface to the Ghostscript interpreter. |
60 | With it, one can view and navigate through PostScript and PDF documents in X | |
a22dc0c4 | 61 | Windows.") |
6d267f0a LC |
62 | (license license:gpl3+) |
63 | (home-page "http://www.gnu.org/software/gv/"))) |