Commit | Line | Data |
---|---|---|
b1b07d72 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 graphviz) | |
20 | #:use-module (guix packages) | |
21 | #:use-module (guix build-system gnu) | |
22 | #:use-module (guix download) | |
23 | #:use-module (gnu packages xorg) | |
24 | #:use-module (gnu packages gtk) | |
25 | #:use-module (gnu packages xml) | |
26 | #:use-module (gnu packages glib) | |
27 | #:use-module (gnu packages bison) | |
e55354b8 | 28 | #:use-module (gnu packages image) |
b1b07d72 LC |
29 | #:use-module (gnu packages autotools) |
30 | #:use-module (gnu packages pkg-config) | |
31 | #:use-module (gnu packages fontutils) | |
32 | #:use-module (gnu packages compression) | |
33 | #:use-module (gnu packages gd) | |
34 | #:use-module ((guix licenses) #:select (lgpl2.0+ epl1.0))) | |
35 | ||
36 | (define-public graphviz | |
37 | (package | |
38 | (name "graphviz") | |
39 | (version "2.28.0") | |
40 | (source (origin | |
41 | (method url-fetch) | |
42 | (uri (string-append | |
43 | "http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-" | |
44 | version | |
45 | ".tar.gz")) | |
46 | (sha256 | |
47 | (base32 | |
48 | "0xpwg99cd8sp0c6r8klsmc66h1pday64kmnr4v6f9jkqqmrpkank")))) | |
49 | (build-system gnu-build-system) | |
50 | (arguments | |
51 | ;; FIXME: rtest/rtest.sh is a ksh script (!). Add ksh as an input. | |
52 | '(#:tests? #f | |
53 | ||
54 | #:phases (alist-cons-before | |
55 | 'build 'pre-build | |
56 | (lambda _ | |
57 | ;; Work around bogus makefile when using an external | |
58 | ;; libltdl. Failing to do so, one hits this error: | |
59 | ;; "No rule to make target `-lltdl', needed by `libgvc.la'." | |
60 | (substitute* "lib/gvc/Makefile" | |
61 | (("am__append_5 *=.*") | |
62 | "am_append_5 =\n"))) | |
63 | %standard-phases))) | |
64 | (inputs | |
65 | `(("libXrender" ,libxrender) | |
66 | ("libX11" ,libx11) | |
67 | ("gts" ,gts) | |
68 | ("gd" ,gd) ; FIXME: Our GD is too old | |
69 | ("pango" ,pango) | |
70 | ("fontconfig" ,fontconfig) | |
71 | ("freetype" ,freetype) | |
72 | ("libltdl" ,libtool) | |
b1b07d72 LC |
73 | ("libXaw" ,libxaw) |
74 | ("expat" ,expat) | |
75 | ("libjpeg" ,libjpeg) | |
c4c4cc05 JD |
76 | ("libpng" ,libpng))) |
77 | (native-inputs | |
78 | `(("bison" ,bison) | |
b1b07d72 LC |
79 | ("pkg-config" ,pkg-config))) |
80 | (home-page "http://www.graphviz.org/") | |
81 | (synopsis "Graph visualization software") | |
82 | (description | |
30ac136d | 83 | "Graphviz is a graph visualization tool suite. Graph visualization is a |
b1b07d72 LC |
84 | way of representing structural information as diagrams of abstract graphs and |
85 | networks. It has important applications in networking, bioinformatics, | |
86 | software engineering, database and web design, machine learning, and in visual | |
87 | interfaces for other technical domains.") | |
88 | (license epl1.0))) | |
89 | ||
90 | (define-public gts | |
91 | (package | |
92 | (name "gts") | |
93 | (version "0.7.6") | |
94 | (source (origin | |
95 | (method url-fetch) | |
96 | (uri (string-append "mirror://sourceforge/gts/gts-" | |
97 | version ".tar.gz")) | |
98 | (sha256 | |
99 | (base32 | |
100 | "07mqx09jxh8cv9753y2d2jsv7wp8vjmrd7zcfpbrddz3wc9kx705")))) | |
101 | (build-system gnu-build-system) | |
102 | (arguments | |
103 | '(#:phases (alist-cons-before | |
104 | 'check 'pre-check | |
105 | (lambda _ | |
106 | (chmod "test/boolean/test.sh" #o777)) | |
107 | %standard-phases) | |
108 | ||
109 | ;; Some data files used by the test suite are missing. | |
110 | ;; See <http://sourceforge.net/p/gts/bugs/41/>. | |
111 | #:tests? #f)) | |
c4c4cc05 | 112 | (native-inputs |
b1b07d72 LC |
113 | `(("pkg-config" ,pkg-config))) |
114 | (propagated-inputs | |
115 | ;; The gts.pc file has glib-2.0 as required. | |
116 | `(("glib" ,glib))) | |
117 | (home-page "http://gts.sourceforge.net/") | |
118 | ||
119 | ;; Note: Despite the name, this is not official GNU software. | |
120 | (synopsis "Triangulated Surface Library") | |
121 | (description | |
122 | "Library intended to provide a set of useful functions to deal with | |
123 | 3D surfaces meshed with interconnected triangles.") | |
124 | (license lgpl2.0+))) |