gnu: Move numerous "inputs" which should be "native-inputs".
[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)
b1b07d72
LC
74 ("libXaw" ,libxaw)
75 ("expat" ,expat)
76 ("libjpeg" ,libjpeg)
c4c4cc05
JD
77 ("libpng" ,libpng)))
78 (native-inputs
79 `(("bison" ,bison)
b1b07d72
LC
80 ("pkg-config" ,pkg-config)))
81 (home-page "http://www.graphviz.org/")
82 (synopsis "Graph visualization software")
83 (description
30ac136d 84 "Graphviz is a graph visualization tool suite. Graph visualization is a
b1b07d72
LC
85way of representing structural information as diagrams of abstract graphs and
86networks. It has important applications in networking, bioinformatics,
87software engineering, database and web design, machine learning, and in visual
88interfaces for other technical domains.")
89 (license epl1.0)))
90
91(define-public gts
92 (package
93 (name "gts")
94 (version "0.7.6")
95 (source (origin
96 (method url-fetch)
97 (uri (string-append "mirror://sourceforge/gts/gts-"
98 version ".tar.gz"))
99 (sha256
100 (base32
101 "07mqx09jxh8cv9753y2d2jsv7wp8vjmrd7zcfpbrddz3wc9kx705"))))
102 (build-system gnu-build-system)
103 (arguments
104 '(#:phases (alist-cons-before
105 'check 'pre-check
106 (lambda _
107 (chmod "test/boolean/test.sh" #o777))
108 %standard-phases)
109
110 ;; Some data files used by the test suite are missing.
111 ;; See <http://sourceforge.net/p/gts/bugs/41/>.
112 #:tests? #f))
c4c4cc05 113 (native-inputs
b1b07d72
LC
114 `(("pkg-config" ,pkg-config)))
115 (propagated-inputs
116 ;; The gts.pc file has glib-2.0 as required.
117 `(("glib" ,glib)))
118 (home-page "http://gts.sourceforge.net/")
119
120 ;; Note: Despite the name, this is not official GNU software.
121 (synopsis "Triangulated Surface Library")
122 (description
123 "Library intended to provide a set of useful functions to deal with
1243D surfaces meshed with interconnected triangles.")
125 (license lgpl2.0+)))