Commit | Line | Data |
---|---|---|
bb3fe7fc 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 | ||
19 | (define-module (gnu packages plotutils) | |
20 | #:use-module (guix licenses) | |
21 | #:use-module (guix packages) | |
22 | #:use-module (guix download) | |
23 | #:use-module (guix build-system gnu) | |
fa6141ec | 24 | #:use-module (gnu packages xorg) |
8e5e7299 LC |
25 | #:use-module (gnu packages libpng) |
26 | #:use-module (gnu packages)) | |
bb3fe7fc LC |
27 | |
28 | (define-public plotutils | |
29 | (package | |
30 | (name "plotutils") | |
31 | (version "2.6") | |
32 | (source (origin | |
33 | (method url-fetch) | |
34 | (uri (string-append "mirror://gnu/plotutils/plotutils-" | |
35 | version ".tar.gz")) | |
36 | (sha256 | |
37 | (base32 | |
38 | "1arkyizn5wbgvbh53aziv3s6lmd3wm9lqzkhxb3hijlp1y124hjg")))) | |
39 | (build-system gnu-build-system) | |
8e5e7299 | 40 | (arguments '(#:patches (list (assoc-ref %build-inputs "patch/jmpbuf")))) |
fa6141ec LC |
41 | (inputs `(("libpng" ,libpng) |
42 | ("libx11" ,libx11) | |
43 | ("libxt" ,libxt) | |
8e5e7299 LC |
44 | ("libxaw" ,libxaw) |
45 | ("patch/jmpbuf" | |
46 | ,(search-patch "plotutils-libpng-jmpbuf.patch")))) | |
bb3fe7fc LC |
47 | (home-page |
48 | "http://www.gnu.org/software/plotutils/") | |
49 | (synopsis "Plotting utilities and library") | |
50 | (description | |
51 | "The GNU plotutils package contains software for both programmers and | |
52 | technical users. Its centerpiece is libplot, a powerful C/C++ function | |
53 | library for exporting 2-D vector graphics in many file formats, both vector | |
54 | and raster. It can also do vector graphics animations. | |
55 | ||
56 | libplot is device-independent in the sense that its API (application | |
57 | programming interface) does not depend on the type of graphics file to be | |
58 | exported. | |
59 | ||
60 | Besides libplot, the package contains command-line programs for plotting | |
61 | scientific data. Many of them use libplot to export graphics.") | |
62 | (license gpl2+))) |