gnu: gnupg: Fix cross-compile issues.
[jackhill/guix/guix.git] / gnu / packages / graphviz.scm
CommitLineData
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)
28 #:use-module (gnu packages libpng)
29 #:use-module (gnu packages libjpeg)
30 #:use-module (gnu packages autotools)
31 #:use-module (gnu packages pkg-config)
32 #:use-module (gnu packages fontutils)
33 #:use-module (gnu packages compression)
34 #:use-module (gnu packages gd)
35 #:use-module ((guix licenses) #:select (lgpl2.0+ epl1.0)))
36
37(define-public graphviz
38 (package
39 (name "graphviz")
40 (version "2.28.0")
41 (source (origin
42 (method url-fetch)
43 (uri (string-append
44 "http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-"
45 version
46 ".tar.gz"))
47 (sha256
48 (base32
49 "0xpwg99cd8sp0c6r8klsmc66h1pday64kmnr4v6f9jkqqmrpkank"))))
50 (build-system gnu-build-system)
51 (arguments
52 ;; FIXME: rtest/rtest.sh is a ksh script (!). Add ksh as an input.
53 '(#:tests? #f
54
55 #:phases (alist-cons-before
56 'build 'pre-build
57 (lambda _
58 ;; Work around bogus makefile when using an external
59 ;; libltdl. Failing to do so, one hits this error:
60 ;; "No rule to make target `-lltdl', needed by `libgvc.la'."
61 (substitute* "lib/gvc/Makefile"
62 (("am__append_5 *=.*")
63 "am_append_5 =\n")))
64 %standard-phases)))
65 (inputs
66 `(("libXrender" ,libxrender)
67 ("libX11" ,libx11)
68 ("gts" ,gts)
69 ("gd" ,gd) ; FIXME: Our GD is too old
70 ("pango" ,pango)
71 ("fontconfig" ,fontconfig)
72 ("freetype" ,freetype)
73 ("libltdl" ,libtool)
74 ("bison" ,bison)
75 ("libXaw" ,libxaw)
76 ("expat" ,expat)
77 ("libjpeg" ,libjpeg)
78 ("libpng" ,libpng)
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
84way of representing structural information as diagrams of abstract graphs and
85networks. It has important applications in networking, bioinformatics,
86software engineering, database and web design, machine learning, and in visual
87interfaces 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))
112 (inputs
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
1233D surfaces meshed with interconnected triangles.")
124 (license lgpl2.0+)))