gnu: Add cairo.
[jackhill/guix/guix.git] / gnu / packages / gtk.scm
CommitLineData
3a08a411
AE
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
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 gtk)
20 #:use-module ((guix licenses)
21 #:renamer (symbol-prefix-proc 'license:))
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix build-system gnu)
6131c43d
AE
25 #:use-module (gnu packages compression)
26 #:use-module (gnu packages fontutils)
27 #:use-module (gnu packages ghostscript)
3a08a411 28 #:use-module (gnu packages glib)
6131c43d
AE
29 #:use-module (gnu packages libpng)
30 #:use-module (gnu packages pdf)
31 #:use-module (gnu packages pkg-config)
32 #:use-module (gnu packages python)
33 #:use-module (gnu packages xorg))
3a08a411
AE
34
35(define-public atk
36 (package
37 (name "atk")
38 (version "2.8.0")
39 (source (origin
40 (method url-fetch)
41 (uri (string-append "mirror://gnome/sources/atk/2.8/atk-"
42 version ".tar.xz"))
43 (sha256
44 (base32
45 "1x3dd3hg9l1j9dq70xwph13vxdp6a9wbfcnryryf1wr6c8bij9dj"))))
46 (build-system gnu-build-system)
47 (inputs `(("glib" ,glib)
48 ("pkg-config" ,pkg-config)))
49 (synopsis "GNOME accessability toolkit")
50 (description
51 "ATK provides the set of accessibility interfaces that are implemented
52by other toolkits and applications. Using the ATK interfaces, accessibility
53tools have full access to view and control running applications.")
54 (license license:lgpl2.0+)
55 (home-page "https://developer.gnome.org/atk/")))
6131c43d
AE
56
57(define-public cairo
58 (package
59 (name "cairo")
60 (version "1.12.14")
61 (source (origin
62 (method url-fetch)
63 (uri (string-append "http://cairographics.org/releases/cairo-"
64 version ".tar.xz"))
65 (sha256
66 (base32
67 "04xcykglff58ygs0dkrmmnqljmpjwp2qgwcz8sijqkdpz7ix3l4n"))))
68 (build-system gnu-build-system)
69 (propagated-inputs
70 `(("fontconfig" ,fontconfig)
71 ("freetype" ,freetype)
72 ("glib" ,glib)
73 ("libpng" ,libpng)
74 ("libx11" ,libx11)
75 ("libxext" ,libxext)
76 ("libxrender" ,libxrender)
77 ("pixman" ,pixman)))
78 (inputs
79 `(("ghostscript" ,ghostscript)
80 ("libspectre" ,libspectre)
81 ("pkg-config" ,pkg-config)
82 ("poppler" ,poppler)
83 ("python" ,python)
84 ("xextproto" ,xextproto)
85 ("zlib" ,zlib)))
86 (arguments
87 `(#:tests? #f)) ; see http://lists.gnu.org/archive/html/bug-guix/2013-06/msg00085.html
88 (synopsis "2D graphics library")
89 (description
90 "Cairo is a 2D graphics library with support for multiple output devices.
91Currently supported output targets include the X Window System (via both
92Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file
93output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.
94
95Cairo is designed to produce consistent output on all output media while
96taking advantage of display hardware acceleration when available
97eg. through the X Render Extension).
98
99The cairo API provides operations similar to the drawing operators of
100PostScript and PDF. Operations in cairo including stroking and filling cubic
101Bézier splines, transforming and compositing translucent images, and
102antialiased text rendering. All drawing operations can be transformed by any
103affine transformation (scale, rotation, shear, etc.)")
104 (license license:lgpl2.1) ; or Mozilla Public License 1.1
105 (home-page "http://cairographics.org/")))