2013-05-05 00:06:32 +02:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
|
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages gtk)
|
|
|
|
#:use-module ((guix licenses)
|
|
|
|
#:renamer (symbol-prefix-proc 'license:))
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix build-system gnu)
|
2013-06-14 20:57:43 +02:00
|
|
|
#:use-module (gnu packages compression)
|
|
|
|
#:use-module (gnu packages fontutils)
|
|
|
|
#:use-module (gnu packages ghostscript)
|
2013-05-05 00:06:32 +02:00
|
|
|
#:use-module (gnu packages glib)
|
2013-06-14 23:28:58 +02:00
|
|
|
#:use-module (gnu packages icu4c)
|
2013-06-15 09:26:07 +02:00
|
|
|
#:use-module (gnu packages libjpeg)
|
2013-06-14 20:57:43 +02:00
|
|
|
#:use-module (gnu packages libpng)
|
2013-06-15 09:26:07 +02:00
|
|
|
#:use-module (gnu packages libtiff)
|
2013-06-14 20:57:43 +02:00
|
|
|
#:use-module (gnu packages pdf)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
#:use-module (gnu packages python)
|
|
|
|
#:use-module (gnu packages xorg))
|
2013-05-05 00:06:32 +02:00
|
|
|
|
|
|
|
(define-public atk
|
|
|
|
(package
|
|
|
|
(name "atk")
|
|
|
|
(version "2.8.0")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://gnome/sources/atk/2.8/atk-"
|
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1x3dd3hg9l1j9dq70xwph13vxdp6a9wbfcnryryf1wr6c8bij9dj"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs `(("glib" ,glib)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(synopsis "GNOME accessability toolkit")
|
|
|
|
(description
|
|
|
|
"ATK provides the set of accessibility interfaces that are implemented
|
|
|
|
by other toolkits and applications. Using the ATK interfaces, accessibility
|
|
|
|
tools have full access to view and control running applications.")
|
|
|
|
(license license:lgpl2.0+)
|
|
|
|
(home-page "https://developer.gnome.org/atk/")))
|
2013-06-14 20:57:43 +02:00
|
|
|
|
|
|
|
(define-public cairo
|
|
|
|
(package
|
|
|
|
(name "cairo")
|
2013-09-01 18:21:08 +02:00
|
|
|
(version "1.12.16")
|
2013-06-14 20:57:43 +02:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://cairographics.org/releases/cairo-"
|
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2013-09-01 18:21:08 +02:00
|
|
|
"0inqwsylqkrzcjivdirkjx5nhdgxbdc62fq284c3xppinfg9a195"))))
|
2013-06-14 20:57:43 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(propagated-inputs
|
|
|
|
`(("fontconfig" ,fontconfig)
|
|
|
|
("freetype" ,freetype)
|
|
|
|
("glib" ,glib)
|
|
|
|
("libpng" ,libpng)
|
|
|
|
("libx11" ,libx11)
|
|
|
|
("libxext" ,libxext)
|
|
|
|
("libxrender" ,libxrender)
|
|
|
|
("pixman" ,pixman)))
|
|
|
|
(inputs
|
|
|
|
`(("ghostscript" ,ghostscript)
|
|
|
|
("libspectre" ,libspectre)
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("poppler" ,poppler)
|
|
|
|
("python" ,python)
|
|
|
|
("xextproto" ,xextproto)
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f)) ; see http://lists.gnu.org/archive/html/bug-guix/2013-06/msg00085.html
|
|
|
|
(synopsis "2D graphics library")
|
|
|
|
(description
|
|
|
|
"Cairo is a 2D graphics library with support for multiple output devices.
|
|
|
|
Currently supported output targets include the X Window System (via both
|
|
|
|
Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file
|
|
|
|
output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.
|
|
|
|
|
|
|
|
Cairo is designed to produce consistent output on all output media while
|
|
|
|
taking advantage of display hardware acceleration when available
|
|
|
|
eg. through the X Render Extension).
|
|
|
|
|
|
|
|
The cairo API provides operations similar to the drawing operators of
|
|
|
|
PostScript and PDF. Operations in cairo including stroking and filling cubic
|
|
|
|
Bézier splines, transforming and compositing translucent images, and
|
|
|
|
antialiased text rendering. All drawing operations can be transformed by any
|
|
|
|
affine transformation (scale, rotation, shear, etc.)")
|
|
|
|
(license license:lgpl2.1) ; or Mozilla Public License 1.1
|
|
|
|
(home-page "http://cairographics.org/")))
|
2013-06-14 23:28:58 +02:00
|
|
|
|
|
|
|
(define-public harfbuzz
|
|
|
|
(package
|
|
|
|
(name "harfbuzz")
|
2013-09-01 18:13:48 +02:00
|
|
|
(version "0.9.20")
|
2013-06-14 23:28:58 +02:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-"
|
|
|
|
version ".tar.bz2"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2013-09-01 18:13:48 +02:00
|
|
|
"0rxwvd8j4vcadlhx4a7la33clzggxziblx1k43ccbw5w7yh4yf43"))))
|
2013-06-14 23:28:58 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("cairo" ,cairo)
|
|
|
|
("icu4c" ,icu4c)
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("python" ,python)))
|
|
|
|
(synopsis "opentype text shaping engine")
|
|
|
|
(description
|
|
|
|
"HarfBuzz is an OpenType text shaping engine.")
|
|
|
|
(license (license:x11-style "file://COPYING"
|
|
|
|
"See 'COPYING' in the distribution."))
|
|
|
|
(home-page "http://www.freedesktop.org/wiki/Software/HarfBuzz/")))
|
2013-06-14 23:33:17 +02:00
|
|
|
|
|
|
|
(define-public pango
|
|
|
|
(package
|
|
|
|
(name "pango")
|
|
|
|
(version "1.34.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://gnome/sources/pango/1.34/pango-"
|
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0k7662qix7zzh7mf6ikdj594n8jpbfm25z8swz64zbm86kgk1shs"))))
|
|
|
|
(build-system gnu-build-system)
|
2013-07-15 22:41:19 +02:00
|
|
|
(propagated-inputs
|
2013-06-14 23:33:17 +02:00
|
|
|
`(("cairo" ,cairo)
|
2013-07-15 23:15:45 +02:00
|
|
|
("harfbuzz" ,harfbuzz)))
|
|
|
|
(inputs
|
|
|
|
`(("pkg-config" ,pkg-config)
|
2013-06-14 23:33:17 +02:00
|
|
|
("zlib" ,zlib)))
|
|
|
|
(synopsis "GNOME text and font handling library")
|
|
|
|
(description
|
|
|
|
"Pango is the core text and font handling library used in GNOME
|
|
|
|
applications. It has extensive support for the different writing systems
|
|
|
|
used throughout the world.")
|
|
|
|
(license license:lgpl2.0+)
|
|
|
|
(home-page "https://developer.gnome.org/pango/")))
|
2013-06-15 09:26:07 +02:00
|
|
|
|
|
|
|
(define-public gdk-pixbuf
|
|
|
|
(package
|
|
|
|
(name "gdk-pixbuf")
|
|
|
|
(version "2.28.2")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://gnome/sources/gdk-pixbuf/2.28/gdk-pixbuf-"
|
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"05s6ksvy1yan6h6zny9n3bmvygcnzma6ljl6i0z9cci2xg116c8q"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("glib" ,glib)
|
|
|
|
("libjpeg" ,libjpeg)
|
|
|
|
("libpng" ,libpng)
|
|
|
|
("libtiff" ,libtiff)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(synopsis "GNOME image loading and manipulation library")
|
|
|
|
(description
|
|
|
|
"GdkPixbuf is a library for image loading and manipulation developed
|
|
|
|
in the GNOME project.")
|
|
|
|
(license license:lgpl2.0+)
|
|
|
|
(home-page "https://developer.gnome.org/gdk-pixbuf/")))
|
2013-07-15 22:41:19 +02:00
|
|
|
|
|
|
|
(define-public gtk+
|
|
|
|
(package
|
|
|
|
(name "gtk+")
|
|
|
|
(version "2.24.20")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://gnome/sources/gtk+/2.24/gtk+-"
|
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"18qdvb7nxi25hfnpmcy01p3majw9jnx83ikm263dk9rrjazvqrnc"))))
|
|
|
|
(build-system gnu-build-system)
|
2013-07-15 23:15:45 +02:00
|
|
|
(propagated-inputs
|
2013-07-15 22:41:19 +02:00
|
|
|
`(("atk" ,atk)
|
|
|
|
("gdk-pixbuf" ,gdk-pixbuf)
|
2013-07-15 23:15:45 +02:00
|
|
|
("pango" ,pango)))
|
|
|
|
(inputs
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
2013-07-15 22:41:19 +02:00
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(alist-replace
|
|
|
|
'configure
|
|
|
|
(lambda* (#:key #:allow-other-keys #:rest args)
|
|
|
|
(let ((configure (assoc-ref %standard-phases 'configure)))
|
|
|
|
;; FIXME: re-enable tests requiring an X server
|
|
|
|
(substitute* "gtk/Makefile.in"
|
|
|
|
(("SUBDIRS = theme-bits . tests") "SUBDIRS = theme-bits ."))
|
|
|
|
(apply configure args)))
|
|
|
|
%standard-phases)))
|
2013-08-05 19:55:01 +02:00
|
|
|
(synopsis "Cross-platform toolkit for creating graphical user interfaces")
|
2013-07-15 22:41:19 +02:00
|
|
|
(description
|
|
|
|
"GTK+, or the GIMP Toolkit, is a multi-platform toolkit for creating
|
|
|
|
graphical user interfaces. Offering a complete set of widgets, GTK+ is
|
|
|
|
suitable for projects ranging from small one-off tools to complete
|
|
|
|
application suites.")
|
|
|
|
(license license:lgpl2.0+)
|
|
|
|
(home-page "http://www.gtk.org/")))
|