gnu: cross-base: Use invoke in (gnu build cross-toolchain).
[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>
189be331 3;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
b9acdad7 4;;; Copyright © 2014, 2015, 2017 Mark H Weaver <mhw@netris.org>
b38e45d8 5;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
a6035fc1 6;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch>
136770c9 7;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
dfbce50c 8;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
3bc45449 9;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
c900f843 10;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
a20608a5 11;;; Coypright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
60bf8154 12;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
b7807bb2 13;;; Copyright © 2016 Fabian Harfert <fhmgufs@web.de>
3c8ba11a 14;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net>
9b381643 15;;; Copyright © 2016 Patrick Hetu <patrick.hetu@auf.org>
4a78fd46 16;;; Copyright © 2016 Nils Gillmann <ng0@n0.is>
82862153
TGR
17;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
18;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
19;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
4e028d7a 20;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
3a08a411
AE
21;;;
22;;; This file is part of GNU Guix.
23;;;
24;;; GNU Guix is free software; you can redistribute it and/or modify it
25;;; under the terms of the GNU General Public License as published by
26;;; the Free Software Foundation; either version 3 of the License, or (at
27;;; your option) any later version.
28;;;
29;;; GNU Guix is distributed in the hope that it will be useful, but
30;;; WITHOUT ANY WARRANTY; without even the implied warranty of
31;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32;;; GNU General Public License for more details.
33;;;
34;;; You should have received a copy of the GNU General Public License
35;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
36
37(define-module (gnu packages gtk)
b5b73a82 38 #:use-module ((guix licenses) #:prefix license:)
b38e45d8 39 #:use-module (guix utils)
3a08a411
AE
40 #:use-module (guix packages)
41 #:use-module (guix download)
a9276c12 42 #:use-module (guix git-download)
3a08a411 43 #:use-module (guix build-system gnu)
4e028d7a 44 #:use-module (guix build-system perl)
0b96fb2a 45 #:use-module (guix build-system python)
e926ba71 46 #:use-module (guix build-system waf)
b837e658 47 #:use-module (gnu packages)
3bc45449 48 #:use-module (gnu packages algebra)
1a51fe27 49 #:use-module (gnu packages autotools)
61af2675 50 #:use-module (gnu packages base)
1a51fe27 51 #:use-module (gnu packages texinfo)
136770c9 52 #:use-module (gnu packages check)
6131c43d 53 #:use-module (gnu packages compression)
3bc45449 54 #:use-module (gnu packages docbook)
9c0c77f8 55 #:use-module (gnu packages enchant)
6131c43d 56 #:use-module (gnu packages fontutils)
982b3574 57 #:use-module (gnu packages freedesktop)
13236d30 58 #:use-module (gnu packages fribidi)
3bc45449 59 #:use-module (gnu packages gettext)
6131c43d 60 #:use-module (gnu packages ghostscript)
31b254a3 61 #:use-module (gnu packages gl)
3a08a411 62 #:use-module (gnu packages glib)
95d439b2 63 #:use-module (gnu packages gnome)
a2609b41 64 #:use-module (gnu packages icu4c)
e55354b8 65 #:use-module (gnu packages image)
9b381643 66 #:use-module (gnu packages libffi)
6131c43d 67 #:use-module (gnu packages pdf)
8b79a547 68 #:use-module (gnu packages perl)
6131c43d 69 #:use-module (gnu packages pkg-config)
3bc45449 70 #:use-module (gnu packages pretty-print)
6131c43d 71 #:use-module (gnu packages python)
8e70e6d2 72 #:use-module (gnu packages guile)
37cb3a69 73 #:use-module (gnu packages cups)
8e70e6d2 74 #:use-module (gnu packages xml)
6c0e878e
LC
75 #:use-module (gnu packages xorg)
76 #:use-module (gnu packages xdisorg))
3a08a411
AE
77
78(define-public atk
79 (package
80 (name "atk")
8994128e 81 (version "2.26.1")
3a08a411
AE
82 (source (origin
83 (method url-fetch)
3b8e4347 84 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8
EB
85 (version-major+minor version) "/"
86 name "-" version ".tar.xz"))
3a08a411
AE
87 (sha256
88 (base32
8994128e 89 "1jwpx8az0iifw176dc2hl4mmg6gvxzxdkd1qvg4ds7c5hdmzy07g"))))
3a08a411 90 (build-system gnu-build-system)
cd0466eb
SB
91 (outputs '("out" "doc"))
92 (arguments
93 `(#:configure-flags
94 (list (string-append "--with-html-dir="
95 (assoc-ref %outputs "doc")
96 "/share/gtk-doc/html"))))
13a9e291 97 (propagated-inputs `(("glib" ,glib))) ; required by atk.pc
141aed80
LC
98 (native-inputs
99 `(("pkg-config" ,pkg-config)
426adbe8 100 ("glib" ,glib "bin") ; glib-mkenums, etc.
141aed80 101 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
c5cc5006 102 (synopsis "GNOME accessibility toolkit")
3a08a411
AE
103 (description
104 "ATK provides the set of accessibility interfaces that are implemented
35b9e423 105by other toolkits and applications. Using the ATK interfaces, accessibility
3a08a411
AE
106tools have full access to view and control running applications.")
107 (license license:lgpl2.0+)
108 (home-page "https://developer.gnome.org/atk/")))
6131c43d
AE
109
110(define-public cairo
111 (package
112 (name "cairo")
de02edbf 113 (version "1.14.10")
6131c43d
AE
114 (source (origin
115 (method url-fetch)
b3822954 116 (uri (string-append "https://cairographics.org/releases/cairo-"
6131c43d
AE
117 version ".tar.xz"))
118 (sha256
119 (base32
de02edbf 120 "02banr0wxckq62nbhc3mqidfdh2q956i2r7w2hd9bjgjb238g1vy"))
bc118f1a 121 (patches (search-patches "cairo-CVE-2016-9082.patch"))))
6131c43d
AE
122 (build-system gnu-build-system)
123 (propagated-inputs
124 `(("fontconfig" ,fontconfig)
125 ("freetype" ,freetype)
126 ("glib" ,glib)
127 ("libpng" ,libpng)
128 ("libx11" ,libx11)
129 ("libxext" ,libxext)
130 ("libxrender" ,libxrender)
131 ("pixman" ,pixman)))
132 (inputs
133 `(("ghostscript" ,ghostscript)
134 ("libspectre" ,libspectre)
6131c43d 135 ("poppler" ,poppler)
caf90259 136 ("xorgproto" ,xorgproto)
6131c43d 137 ("zlib" ,zlib)))
c4c4cc05
JD
138 (native-inputs
139 `(("pkg-config" ,pkg-config)
140 ("python" ,python-wrapper)))
6131c43d 141 (arguments
77888fae
MW
142 `(#:tests? #f ; see http://lists.gnu.org/archive/html/bug-guix/2013-06/msg00085.html
143 #:configure-flags '("--enable-tee"))) ; needed for GNU Icecat
6131c43d
AE
144 (synopsis "2D graphics library")
145 (description
146 "Cairo is a 2D graphics library with support for multiple output devices.
147Currently supported output targets include the X Window System (via both
148Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file
35b9e423 149output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.
6131c43d
AE
150
151Cairo is designed to produce consistent output on all output media while
152taking advantage of display hardware acceleration when available
153eg. through the X Render Extension).
154
155The cairo API provides operations similar to the drawing operators of
35b9e423 156PostScript and PDF. Operations in cairo including stroking and filling cubic
6131c43d 157Bézier splines, transforming and compositing translucent images, and
35b9e423 158antialiased text rendering. All drawing operations can be transformed by any
e881752c 159affine transformation (scale, rotation, shear, etc.).")
6131c43d 160 (license license:lgpl2.1) ; or Mozilla Public License 1.1
b3822954 161 (home-page "https://cairographics.org/")))
a2609b41 162
40b3f523
DC
163(define-public cairo-xcb
164 (package
165 (inherit cairo)
166 (name "cairo-xcb")
167 (inputs
168 `(("mesa" ,mesa)
169 ,@(package-inputs cairo)))
170 (arguments
171 `(#:tests? #f
172 #:configure-flags
173 '("--enable-xlib-xcb" "--enable-gl" "--enable-egl")))
174 (synopsis "2D graphics library (with X11 support)")))
175
a2609b41
AE
176(define-public harfbuzz
177 (package
178 (name "harfbuzz")
7005f8cb 179 (version "1.7.6")
a2609b41 180 (source (origin
fd9b3b43 181 (method url-fetch)
5cc3096c 182 (uri (string-append "https://www.freedesktop.org/software/"
fd9b3b43
SB
183 "harfbuzz/release/harfbuzz-"
184 version ".tar.bz2"))
185 (sha256
186 (base32
7005f8cb 187 "16rf7qwgy1gza74v2ws79zdwwb1lpvgz2abwwm8ws9j82cwysyys"))))
a2609b41 188 (build-system gnu-build-system)
0a129f39
SB
189 (outputs '("out"
190 "bin")) ; 160K, only hb-view depend on cairo
a2609b41 191 (inputs
fd9b3b43
SB
192 `(("cairo" ,cairo)))
193 (propagated-inputs
194 ;; There are all in the Requires or Requires.private field of '.pc'.
195 `(("glib" ,glib)
27383915 196 ("graphite2" ,graphite2)
c4c4cc05
JD
197 ("icu4c" ,icu4c)))
198 (native-inputs
a30a0455
SB
199 `(("gobject-introspection" ,gobject-introspection)
200 ("pkg-config" ,pkg-config)
7005f8cb
MB
201 ("python" ,python-wrapper)
202 ("which" ,which)))
27383915 203 (arguments
a30a0455 204 `(#:configure-flags `("--with-graphite2"
eb6afbcd
SB
205 "--with-gobject"
206 ,(string-append
207 "--bindir=" (assoc-ref %outputs "bin") "/bin"))))
35b9e423 208 (synopsis "OpenType text shaping engine")
a2609b41
AE
209 (description
210 "HarfBuzz is an OpenType text shaping engine.")
211 (license (license:x11-style "file://COPYING"
212 "See 'COPYING' in the distribution."))
61320932 213 (home-page "https://www.freedesktop.org/wiki/Software/HarfBuzz/")))
4b9adff9
AE
214
215(define-public pango
216 (package
217 (name "pango")
d9efe025 218 (version "1.42.0")
4b9adff9
AE
219 (source (origin
220 (method url-fetch)
dca1b58d
FB
221 (uri (string-append "mirror://gnome/sources/pango/"
222 (version-major+minor version) "/"
223 name "-" version ".tar.xz"))
4b9adff9
AE
224 (sha256
225 (base32
d9efe025 226 "0illn78nfwpa8y5knh9ir74wa1skc2hi8f3ny19zgpyf7n5dh94r"))))
4b9adff9 227 (build-system gnu-build-system)
cf2135ff 228 (propagated-inputs
60a32a2d 229 ;; These are all in Requires or Requires.private of the '.pc' files.
4b9adff9 230 `(("cairo" ,cairo)
60a32a2d
MB
231 ("fontconfig" ,fontconfig)
232 ("freetype" ,freetype)
233 ("glib" ,glib)
4169a4bc
AE
234 ("harfbuzz" ,harfbuzz)))
235 (inputs
13236d30
TGR
236 `(("fribidi" ,fribidi)
237 ("zlib" ,zlib)
9a5acb54
JL
238
239 ;; Some packages, such as Openbox, expect Pango to be built with the
240 ;; optional libxft support.
241 ("libxft" ,libxft)))
c4c4cc05 242 (native-inputs
141aed80 243 `(("pkg-config" ,pkg-config)
426adbe8 244 ("glib" ,glib "bin") ; glib-mkenums, etc.
141aed80 245 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
4b9adff9
AE
246 (synopsis "GNOME text and font handling library")
247 (description
248 "Pango is the core text and font handling library used in GNOME
35b9e423 249applications. It has extensive support for the different writing systems
4b9adff9
AE
250used throughout the world.")
251 (license license:lgpl2.0+)
252 (home-page "https://developer.gnome.org/pango/")))
527e7961 253
5698b8b8
JD
254(define-public pangox-compat
255 (package
256 (name "pangox-compat")
257 (version "0.0.2")
258 (source (origin
259 (method url-fetch)
b38e45d8
EB
260 (uri (string-append "mirror://gnome/sources/" name "/"
261 (version-major+minor version) "/"
262 name "-" version ".tar.xz"))
5698b8b8
JD
263 (sha256
264 (base32
265 "0ip0ziys6mrqqmz4n71ays0kf5cs1xflj1gfpvs4fgy2nsrr482m"))))
266 (build-system gnu-build-system)
267 (inputs
268 `(("glib" ,glib)
269 ("pango" ,pango)))
270 (native-inputs
271 `(("intltool" ,intltool)
272 ("pkg-config" ,pkg-config)))
273 (home-page "https://developer.gnome.org/pango")
35b9e423 274 (synopsis "Obsolete pango functions")
5698b8b8
JD
275 (description "Pangox was a X backend to pango. It is now obsolete and no
276longer provided by recent pango releases. pangox-compat provides the
277functions which were removed.")
278 (license license:lgpl2.0+)))
279
e926ba71
RW
280(define-public ganv
281 (package
282 (name "ganv")
283 (version "1.4.2")
284 (source (origin
285 (method url-fetch)
286 (uri (string-append "http://download.drobilla.net/ganv-"
ea7f3349 287 version ".tar.bz2"))
e926ba71
RW
288 (sha256
289 (base32
290 "0g7s5mp14qgbfjdql0k1s8464r21g47ssn5dws6jazsnw6njhl0l"))))
291 (build-system waf-build-system)
ea7f3349 292 (arguments
dc1d3cde
KK
293 `(#:phases
294 (modify-phases %standard-phases
295 (add-before 'configure 'set-flags
296 (lambda* (#:key outputs #:allow-other-keys)
297 ;; Compile with C++11, required by gtkmm.
298 (setenv "CXXFLAGS" "-std=c++11")
299 ;; Allow 'bin/ganv_bench' to find libganv-1.so.
300 (setenv "LDFLAGS"
301 (string-append "-Wl,-rpath="
302 (assoc-ref outputs "out") "/lib"))
303 #t)))
ea7f3349 304 #:tests? #f)) ; no check target
e926ba71
RW
305 (inputs
306 `(("gtk" ,gtk+-2)
307 ("gtkmm" ,gtkmm-2)))
308 (native-inputs
309 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
310 ("pkg-config" ,pkg-config)))
311 (home-page "http://drobilla.net/software/ganv/")
312 (synopsis "GTK+ widget for interactive graph-like environments")
313 (description
314 "Ganv is an interactive GTK+ widget for interactive “boxes and lines” or
315graph-like environments, e.g. modular synths or finite state machine
316diagrams.")
317 (license license:gpl3+)))
95d439b2 318
a9276c12 319(define-public ganv-devel
ab8f4a70 320 (let ((commit "12f7d6b0438c94dd87f773a92eee3453d971846e")
a9276c12
RW
321 (revision "1"))
322 (package
323 (inherit ganv)
324 (name "ganv")
ab8f4a70 325 (version (string-append "1.5.4-" revision "."
a9276c12
RW
326 (string-take commit 9)))
327 (source (origin
328 (method git-fetch)
329 (uri (git-reference
330 (url "http://git.drobilla.net/ganv.git")
331 (commit commit)))
4a885c65 332 (file-name (git-file-name name version))
a9276c12
RW
333 (sha256
334 (base32
ab8f4a70 335 "1cr8w02lr6bk9mkxa12j3imq721b2an2yn4bj5wnwmpm91ddn2gi")))))))
a9276c12 336
c900f843 337(define-public gtksourceview-2
95d439b2
JD
338 (package
339 (name "gtksourceview")
340 (version "2.10.5") ; This is the last version which builds against gtk+2
341 (source (origin
342 (method url-fetch)
b38e45d8
EB
343 (uri (string-append "mirror://gnome/sources/" name "/"
344 (version-major+minor version) "/"
345 name "-" version ".tar.bz2"))
95d439b2
JD
346 (sha256
347 (base32
348 "07hrabhpl6n8ajz10s0d960jdwndxs87szxyn428mpxi8cvpg1f5"))))
349 (build-system gnu-build-system)
c4c4cc05 350 (native-inputs
44add1ce 351 `(("intltool" ,intltool)
221ed17a 352 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
bd05ea41
SB
353 ("pkg-config" ,pkg-config)
354 ;; For testing.
355 ("xorg-server" ,xorg-server)
356 ("shared-mime-info" ,shared-mime-info)))
68d85de1
TUBK
357 (propagated-inputs
358 ;; As per the pkg-config file.
bd05ea41
SB
359 `(("gtk" ,gtk+-2)
360 ("libxml2" ,libxml2)))
95d439b2
JD
361 (arguments
362 `(#:phases
363 ;; Unfortunately, some of the tests in "make check" are highly dependent
364 ;; on the environment therefore, some black magic is required.
dc1d3cde
KK
365 (modify-phases %standard-phases
366 (add-before 'check 'start-xserver
367 (lambda* (#:key inputs #:allow-other-keys)
368 (let ((xorg-server (assoc-ref inputs "xorg-server"))
369 (mime (assoc-ref inputs "shared-mime-info")))
95d439b2 370
dc1d3cde
KK
371 ;; There must be a running X server and make check doesn't start one.
372 ;; Therefore we must do it.
373 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
374 (setenv "DISPLAY" ":1")
95d439b2 375
dc1d3cde
KK
376 ;; The .lang files must be found in $XDG_DATA_HOME/gtksourceview-2.0
377 (system "ln -s gtksourceview gtksourceview-2.0")
378 (setenv "XDG_DATA_HOME" (getcwd))
95d439b2 379
dc1d3cde
KK
380 ;; Finally, the mimetypes must be available.
381 (setenv "XDG_DATA_DIRS" (string-append mime "/share/")))
382 #t)))))
95d439b2
JD
383 (synopsis "Widget that extends the standard GTK+ 2.x 'GtkTextView' widget")
384 (description
385 "GtkSourceView is a portable C library that extends the standard GTK+
386framework for multiline text editing with support for configurable syntax
387highlighting, unlimited undo/redo, search and replace, a completion framework,
388printing and other features typical of a source code editor.")
389 (license license:lgpl2.0+)
390 (home-page "https://developer.gnome.org/gtksourceview/")))
391
c900f843
DH
392(define-public gtksourceview
393 (package
394 (name "gtksourceview")
7b8d3a5e 395 (version "3.24.7")
c900f843
DH
396 (source (origin
397 (method url-fetch)
398 (uri (string-append "mirror://gnome/sources/" name "/"
399 (version-major+minor version) "/"
400 name "-" version ".tar.xz"))
401 (sha256
402 (base32
7b8d3a5e 403 "1rp8zspwyw3mmdgccsas3pa6v7s0hqjaaglg6n4kcls7ccx0vhm5"))))
c900f843
DH
404 (build-system gnu-build-system)
405 (arguments
406 '(#:phases
407 (modify-phases %standard-phases
408 (add-before
409 'check 'pre-check
410 (lambda* (#:key inputs #:allow-other-keys)
411 (let ((xorg-server (assoc-ref inputs "xorg-server")))
412 ;; Tests require a running X server.
413 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
414 (setenv "DISPLAY" ":1")
415 ;; For the missing /etc/machine-id.
416 (setenv "DBUS_FATAL_WARNINGS" "0")
417 #t))))))
418 (native-inputs
419 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
420 ("intltool" ,intltool)
b3546174 421 ("itstool" ,itstool)
c900f843
DH
422 ("gobject-introspection" ,gobject-introspection)
423 ("pkg-config" ,pkg-config)
424 ("vala" ,vala)
425 ;; For testing.
426 ("xorg-server" ,xorg-server)
427 ("shared-mime-info" ,shared-mime-info)))
428 (propagated-inputs
429 ;; gtksourceview-3.0.pc refers to all these.
430 `(("glib" ,glib)
431 ("gtk+" ,gtk+)
432 ("libxml2" ,libxml2)))
433 (home-page "https://wiki.gnome.org/Projects/GtkSourceView")
434 (synopsis "GNOME source code widget")
435 (description "GtkSourceView is a text widget that extends the standard
436GTK+ text widget GtkTextView. It improves GtkTextView by implementing syntax
437highlighting and other features typical of a source code editor.")
438 (license license:lgpl2.1+)))
439
527e7961
AE
440(define-public gdk-pixbuf
441 (package
442 (name "gdk-pixbuf")
9f63a957 443 (version "2.36.11")
527e7961
AE
444 (source (origin
445 (method url-fetch)
b38e45d8
EB
446 (uri (string-append "mirror://gnome/sources/" name "/"
447 (version-major+minor version) "/"
448 name "-" version ".tar.xz"))
527e7961
AE
449 (sha256
450 (base32
9f63a957 451 "1wz2vpciwdpdv612s8kbww08q80hgcs5dxrfsxp1a4q44n3snqmf"))))
527e7961 452 (build-system gnu-build-system)
48f46dc3 453 (arguments
a63a73dc
SB
454 '(#:configure-flags '("--with-x11")
455 #:phases
456 (modify-phases %standard-phases
457 (add-after
458 'unpack 'disable-failing-tests
459 (lambda _
460 (substitute* "tests/Makefile.in"
fe08b6e1
EF
461 ;; XXX FIXME: This test fails on armhf machines with:
462 ;; SKIP Not enough memory to load bitmap image
463 ;; ERROR: cve-2015-4491 - too few tests run (expected 4, got 2)
a63a73dc
SB
464 (("cve-2015-4491\\$\\(EXEEXT\\) ") "")
465 ;; XXX FIXME: This test fails with:
466 ;; ERROR:pixbuf-jpeg.c:74:test_type9_rotation_exif_tag:
467 ;; assertion failed (error == NULL): Data differ
468 ;; (gdk-pixbuf-error-quark, 0)
469 (("pixbuf-jpeg\\$\\(EXEEXT\\) ") ""))
470 #t)))))
6983ba56
SB
471 (propagated-inputs
472 `(;; Required by gdk-pixbuf-2.0.pc
473 ("glib" ,glib)
474 ("libpng" ,libpng)
475 ;; Used for testing and required at runtime.
476 ("shared-mime-info" ,shared-mime-info)))
1b5758a6
SB
477 (inputs
478 `(("libjpeg" ,libjpeg)
48f46dc3 479 ("libtiff" ,libtiff)
224276ab 480 ("libx11" ,libx11)))
c4c4cc05 481 (native-inputs
141aed80 482 `(("pkg-config" ,pkg-config)
426adbe8 483 ("glib" ,glib "bin") ; glib-mkenums, etc.
b3546174 484 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
527e7961
AE
485 (synopsis "GNOME image loading and manipulation library")
486 (description
487 "GdkPixbuf is a library for image loading and manipulation developed
488in the GNOME project.")
489 (license license:lgpl2.0+)
490 (home-page "https://developer.gnome.org/gdk-pixbuf/")))
cf2135ff 491
34dc3907
SB
492;; To build gdk-pixbuf with SVG support, we need librsvg, and librsvg depends
493;; on gdk-pixbuf, so this new varibale. Also, librsvg adds 90MiB to the
494;; closure size.
495(define-public gdk-pixbuf+svg
e60d3a55 496 (package (inherit gdk-pixbuf)
34dc3907
SB
497 (name "gdk-pixbuf+svg")
498 (inputs
499 `(("librsvg" ,librsvg)
500 ,@(package-inputs gdk-pixbuf)))
501 (arguments
502 '(#:configure-flags '("--with-x11")
503 #:tests? #f ; tested by the gdk-pixbuf package already
504 #:phases
505 (modify-phases %standard-phases
506 (add-after 'install 'register-svg-loader
507 (lambda* (#:key inputs outputs #:allow-other-keys)
508 (let* ((out (assoc-ref outputs "out"))
509 (librsvg (assoc-ref inputs "librsvg"))
510 (loaders
511 (append
512 (find-files out "^libpixbufloader-.*\\.so$")
513 (find-files librsvg "^libpixbufloader-.*\\.so$")))
514 (gdk-pixbuf-query-loaders
515 (string-append out "/bin/gdk-pixbuf-query-loaders")))
516 (zero? (apply system* `(,gdk-pixbuf-query-loaders
517 "--update-cache" ,@loaders)))))))))
518 (synopsis
519 "GNOME image loading and manipulation library, with SVG support")))
520
f3fb92e5
AE
521(define-public at-spi2-core
522 (package
523 (name "at-spi2-core")
730f0a0f 524 (version "2.26.2")
f3fb92e5
AE
525 (source (origin
526 (method url-fetch)
527 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8
EB
528 (version-major+minor version) "/"
529 name "-" version ".tar.xz"))
f3fb92e5
AE
530 (sha256
531 (base32
730f0a0f 532 "0596ghkamkxgv08r4a1pdhm06qd5zzgcfqsv64038w9xbvghq3n8"))))
f3fb92e5 533 (build-system gnu-build-system)
068a53c3 534 (outputs '("out" "doc"))
f3fb92e5 535 (arguments
b19d6805 536 '(#:configure-flags
068a53c3
SB
537 (list (string-append "--with-html-dir="
538 (assoc-ref %outputs "doc")
539 "/share/gtk-doc/html"))
50cc7f41 540 #:phases
af108677 541 (modify-phases %standard-phases
3a4de6b2 542 (replace 'check
af108677
SB
543 ;; Run test-suite under a dbus session.
544 (lambda _
37fe56cf
SB
545 ;; Don't fail on missing '/etc/machine-id'.
546 (setenv "DBUS_FATAL_WARNINGS" "0")
af108677 547 (zero? (system* "dbus-launch" "make" "check")))))))
c6a552da
SB
548 (propagated-inputs
549 ;; atspi-2.pc refers to all these.
550 `(("dbus" ,dbus)
551 ("glib" ,glib)))
552 (inputs
553 `(("libxi" ,libxi)
554 ("libxtst" ,libxtst)))
c4c4cc05 555 (native-inputs
50cc7f41
SB
556 `(("gobject-introspection" ,gobject-introspection)
557 ("intltool" ,intltool)
558 ("pkg-config" ,pkg-config)))
f3fb92e5
AE
559 (synopsis "Assistive Technology Service Provider Interface, core components")
560 (description
561 "The Assistive Technology Service Provider Interface, core components,
562is part of the GNOME accessibility project.")
563 (license license:lgpl2.0+)
564 (home-page "https://projects.gnome.org/accessibility/")))
565
5fda4784
AE
566(define-public at-spi2-atk
567 (package
568 (name "at-spi2-atk")
1ccd060f 569 (version "2.26.1")
5fda4784
AE
570 (source (origin
571 (method url-fetch)
572 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8
EB
573 (version-major+minor version) "/"
574 name "-" version ".tar.xz"))
5fda4784
AE
575 (sha256
576 (base32
1ccd060f 577 "0x9vc99ni46fg5dzlx67vbw0zqffr24gz8jvbdxbmzyvc5xw5w5l"))))
5fda4784 578 (build-system gnu-build-system)
5fda4784 579 (arguments
57fcd224
SB
580 '(#:phases
581 (modify-phases %standard-phases
3a4de6b2 582 (replace 'check
57fcd224
SB
583 ;; Run test-suite under a dbus session.
584 (lambda _
5fba12ec 585 (setenv "DBUS_FATAL_WARNINGS" "0")
57fcd224 586 (zero? (system* "dbus-launch" "make" "check")))))))
6967cc3f
SB
587 (propagated-inputs
588 `(("at-spi2-core" ,at-spi2-core))) ; required by atk-bridge-2.0.pc
589 (inputs
590 `(("atk" ,atk)))
c4c4cc05 591 (native-inputs
6967cc3f
SB
592 `(("dbus" ,dbus) ; for testing
593 ("pkg-config" ,pkg-config)))
5fda4784
AE
594 (synopsis "Assistive Technology Service Provider Interface, ATK bindings")
595 (description
596 "The Assistive Technology Service Provider Interface
597is part of the GNOME accessibility project.")
598 (license license:lgpl2.0+)
599 (home-page "https://projects.gnome.org/accessibility/")))
600
8b79a547 601(define-public gtk+-2
cf2135ff
AE
602 (package
603 (name "gtk+")
f55ef78b 604 (version "2.24.32")
cf2135ff
AE
605 (source (origin
606 (method url-fetch)
1c8362a8 607 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8
EB
608 (version-major+minor version) "/"
609 name "-" version ".tar.xz"))
cf2135ff
AE
610 (sha256
611 (base32
f55ef78b 612 "0bjq7ja9gwcv6n5q4qkvdjjx40wsdiikksz1zqxvxsm5vlyskj5n"))
6983ba56 613 (patches (search-patches "gtk2-respect-GUIX_GTK2_PATH.patch"
711670c0 614 "gtk2-respect-GUIX_GTK2_IM_MODULE_FILE.patch"
f55ef78b 615 "gtk2-theme-paths.patch"))))
cf2135ff 616 (build-system gnu-build-system)
6b1f2388 617 (outputs '("out" "doc"))
4169a4bc 618 (propagated-inputs
cf2135ff 619 `(("atk" ,atk)
6983ba56 620 ("gdk-pixbuf" ,gdk-pixbuf+svg)
4169a4bc 621 ("pango" ,pango)))
dfbce50c
SB
622 (inputs
623 `(("cups" ,cups)
624 ("libxcomposite" ,libxcomposite)
625 ("libxcursor" ,libxcursor)
626 ("libxdamage" ,libxdamage)
627 ("libxi" ,libxi)
628 ("libxinerama" ,libxinerama)
629 ("libxrandr" ,libxrandr)))
c4c4cc05 630 (native-inputs
1c8362a8 631 `(("perl" ,perl)
b94a6ca0 632 ("gettext" ,gettext-minimal)
426adbe8 633 ("glib" ,glib "bin")
9d297fae 634 ("gobject-introspection" ,gobject-introspection)
1c8362a8
AE
635 ("pkg-config" ,pkg-config)
636 ("python-wrapper" ,python-wrapper)))
cf2135ff 637 (arguments
b19d6805 638 `(#:configure-flags
6b1f2388
SB
639 (list "--with-xinput=yes"
640 (string-append "--with-html-dir="
641 (assoc-ref %outputs "doc")
642 "/share/gtk-doc/html"))
9d297fae 643 #:phases
d4bf49b1
EB
644 (alist-cons-before
645 'configure 'disable-tests
646 (lambda _
647 ;; FIXME: re-enable tests requiring an X server
648 (substitute* "gtk/Makefile.in"
649 (("SUBDIRS = theme-bits . tests") "SUBDIRS = theme-bits .")))
2a6afac9
RW
650 %standard-phases)))
651 (native-search-paths
652 (list (search-path-specification
653 (variable "GUIX_GTK2_PATH")
654 (files '("lib/gtk-2.0")))))
0327ced2 655 (synopsis "Cross-platform toolkit for creating graphical user interfaces")
cf2135ff
AE
656 (description
657 "GTK+, or the GIMP Toolkit, is a multi-platform toolkit for creating
35b9e423 658graphical user interfaces. Offering a complete set of widgets, GTK+ is
cf2135ff
AE
659suitable for projects ranging from small one-off tools to complete
660application suites.")
661 (license license:lgpl2.0+)
662 (home-page "http://www.gtk.org/")))
8e70e6d2 663
8b79a547
AE
664(define-public gtk+
665 (package (inherit gtk+-2)
b38e45d8 666 (name "gtk+")
2d5785ad
MW
667 ;; NOTE: When updating the version of 'gtk+', the hash of 'mate-themes' in
668 ;; mate.scm will also need to be updated.
4a82722a 669 (version "3.22.28")
8b79a547
AE
670 (source (origin
671 (method url-fetch)
b38e45d8
EB
672 (uri (string-append "mirror://gnome/sources/" name "/"
673 (version-major+minor version) "/"
674 name "-" version ".tar.xz"))
8b79a547
AE
675 (sha256
676 (base32
4a82722a 677 "07syy63d2q12b7mkbhqpirq270365fsql5l9qsrdgzlc04mn36fj"))
234e7980
RW
678 (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch"
679 "gtk3-respect-GUIX_GTK3_IM_MODULE_FILE.patch"))))
7b808d76 680 (outputs '("out" "bin" "doc"))
0e112540 681 (propagated-inputs
8b79a547 682 `(("at-spi2-atk" ,at-spi2-atk)
0e112540 683 ("atk" ,atk)
6983ba56 684 ("gdk-pixbuf" ,gdk-pixbuf+svg)
31b254a3 685 ("libepoxy" ,libepoxy)
a572dca8 686 ("libxcursor" ,libxcursor)
8b79a547
AE
687 ("libxi" ,libxi)
688 ("libxinerama" ,libxinerama)
982b3574 689 ("libxkbcommon" ,libxkbcommon)
9e5c0927 690 ("libxdamage" ,libxdamage)
982b3574
KK
691 ("mesa" ,mesa)
692 ("pango" ,pango)
693 ("wayland" ,wayland)
694 ("wayland-protocols" ,wayland-protocols)))
0e112540 695 (inputs
6983ba56 696 `(("libxml2" ,libxml2)
1cb16f1e
SB
697 ;; XXX: colord depends on mozjs (through polkit), which fails on
698 ;; on non-intel systems now.
699 ;;("colord" ,colord)
a572dca8 700 ("cups" ,cups) ;for printing support
a2651b54
SB
701 ;; XXX: rest depends on p11-kit, which fails on mips64el now.
702 ;;("rest" ,rest)
a572dca8 703 ("json-glib" ,json-glib)))
c4c4cc05 704 (native-inputs
141aed80 705 `(("perl" ,perl)
426adbe8 706 ("glib" ,glib "bin")
b94a6ca0 707 ("gettext" ,gettext-minimal)
8b79a547 708 ("pkg-config" ,pkg-config)
141aed80 709 ("gobject-introspection" ,gobject-introspection)
8b79a547 710 ("python-wrapper" ,python-wrapper)
da79e82b
LF
711 ;; By using a special xorg-server for GTK+'s tests, we reduce the impact
712 ;; of updating xorg-server directly on the master branch.
3433413b 713 ("xorg-server" ,xorg-server-1.19.3)))
8b79a547 714 (arguments
3433413b 715 `(#:disallowed-references (,xorg-server-1.19.3)
da79e82b 716 ;; 47 MiB goes to "out" (24 of which is locale data!), and 26 MiB goes
260b07a7
LC
717 ;; to "doc".
718 #:configure-flags (list (string-append "--with-html-dir="
719 (assoc-ref %outputs "doc")
982b3574
KK
720 "/share/gtk-doc/html")
721 ;; The header file <gdk/gdkwayland.h> is required
722 ;; by gnome-control-center
723 "--enable-wayland-backend"
724 ;; This is necessary to build both backends.
150e2301
DM
725 "--enable-x11-backend"
726 ;; This enables the HTML5 websocket backend.
727 "--enable-broadway-backend")
e4360e16
JD
728 #:phases (modify-phases %standard-phases
729 (add-before 'configure 'pre-configure
730 (lambda _
731 ;; Disable most tests, failing in the chroot with the message:
732 ;; D-Bus library appears to be incorrectly set up; failed to read
733 ;; machine uuid: Failed to open "/etc/machine-id": No such file or
734 ;; directory.
735 ;; See the manual page for dbus-uuidgen to correct this issue.
736 (substitute* "testsuite/Makefile.in"
737 (("SUBDIRS = gdk gtk a11y css reftests")
738 "SUBDIRS = gdk"))
4c8c2b0f
SB
739 #t))
740 (add-after 'install 'move-desktop-files
741 ;; Move desktop files into 'bin' to avoid cycle references.
742 (lambda* (#:key outputs #:allow-other-keys)
743 (let ((out (assoc-ref outputs "out"))
744 (bin (assoc-ref outputs "bin")))
745 (mkdir-p (string-append bin "/share"))
746 (rename-file (string-append out "/share/applications")
747 (string-append bin "/share/applications"))
748 #t))))))
4828ff91
RW
749 (native-search-paths
750 (list (search-path-specification
751 (variable "GUIX_GTK3_PATH")
752 (files '("lib/gtk-3.0")))))))
5fda4784 753
8e70e6d2
LC
754;;;
755;;; Guile bindings.
756;;;
757
758(define-public guile-cairo
759 (package
760 (name "guile-cairo")
761 (version "1.4.1")
762 (source (origin
b9743865
LC
763 (method url-fetch)
764 (uri (string-append
765 "http://download.gna.org/guile-cairo/guile-cairo-"
766 version
767 ".tar.gz"))
768 (sha256
769 (base32
770 "1f5nd9n46n6cwfl1byjml02q3y2hgn7nkx98km1czgwarxl7ws3x"))))
8e70e6d2
LC
771 (build-system gnu-build-system)
772 (arguments
0f11f640
LC
773 '(#:modules ((guix build utils)
774 (guix build gnu-build-system)
775 (ice-9 popen)
776 (ice-9 rdelim))
777
778 #:phases (modify-phases %standard-phases
b9743865
LC
779 (add-before 'configure 'set-module-directory
780 (lambda* (#:key outputs #:allow-other-keys)
781 ;; Install modules under $out/share/guile/site/2.0.
0f11f640
LC
782 (let ((out (assoc-ref outputs "out"))
783 (effective
784 (read-line
785 (open-pipe* OPEN_READ "guile" "-c"
786 "(display (effective-version))"))))
b9743865
LC
787 (substitute* "Makefile.in"
788 (("scmdir = ([[:graph:]]+).*" _ value)
0f11f640 789 (string-append "scmdir = " value "/" effective "\n")))
b9743865
LC
790 (substitute* "cairo/Makefile.in"
791 (("moduledir = ([[:graph:]]+).*" _ value)
792 (string-append "moduledir = "
0f11f640
LC
793 "$(prefix)/share/guile/site/"
794 effective "/cairo\n'")))
795 #t)))
b9743865
LC
796 (add-after 'install 'install-missing-file
797 (lambda* (#:key outputs #:allow-other-keys)
798 ;; By default 'vector-types.scm' is not installed, so do
799 ;; it here.
0f11f640
LC
800 (let ((out (assoc-ref outputs "out"))
801 (effective
802 (read-line
803 (open-pipe* OPEN_READ "guile" "-c"
804 "(display (effective-version))"))))
805 (install-file "cairo/vector-types.scm"
806 (string-append out "/share/guile/site/"
807 effective "/cairo"))
808 #t))))))
8e70e6d2 809 (inputs
5ace0919 810 `(("guile-lib" ,guile-lib)
8e70e6d2 811 ("expat" ,expat)
1b0f266e 812 ("guile" ,guile-2.2)))
49710cea
LC
813 (propagated-inputs
814 ;; The .pc file refers to 'cairo'.
815 `(("cairo" ,cairo)))
c4c4cc05 816 (native-inputs
b9743865 817 `(("pkg-config" ,pkg-config)))
340978d7 818 (home-page "https://www.nongnu.org/guile-cairo/")
8e70e6d2
LC
819 (synopsis "Cairo bindings for GNU Guile")
820 (description
821 "Guile-Cairo wraps the Cairo graphics library for Guile Scheme.
822Guile-Cairo is complete, wrapping almost all of the Cairo API. It is API
823stable, providing a firm base on which to do graphics work. Finally, and
824importantly, it is pleasant to use. You get a powerful and well-maintained
825graphics library with all of the benefits of Scheme: memory management,
826exceptions, macros, and a dynamic programming environment.")
827 (license license:lgpl3+)))
66663503 828
1a51fe27 829(define-public guile-rsvg
1b0f266e
LC
830 ;; Use a recent snapshot that supports Guile 2.2 and beyond.
831 (let ((commit "05c6a2fd67e4fea1a7c3ff776729dc931bae6678")
832 (revision "0"))
833 (package
834 (name "guile-rsvg")
835 (version (string-append "2.18.1-" revision "."
836 (string-take commit 7)))
837 (source (origin
838 (method url-fetch)
839 (uri (string-append "https://gitlab.com/wingo/guile-rsvg/"
840 "repository/archive.tar.gz?ref="
841 commit))
842 (sha256
843 (base32
844 "0vdzjx8l5nc4y2xjqs0g1rqn1zrwfsm30brh5gz00r1x41a2pvv2"))
845 (patches (search-patches "guile-rsvg-pkgconfig.patch"))
846 (modules '((guix build utils)))
847 (snippet
6cbee49d
MW
848 '(begin
849 (substitute* (find-files "." "Makefile\\.am")
850 (("/share/guile/site")
851 "/share/guile/site/@GUILE_EFFECTIVE_VERSION@"))
852 #t))
1b0f266e
LC
853 (file-name (string-append name "-" version ".tar.gz"))))
854 (build-system gnu-build-system)
1b0f266e
LC
855 (native-inputs `(("pkg-config" ,pkg-config)
856 ("autoconf" ,autoconf)
857 ("automake" ,automake)
858 ("libtool" ,libtool)
859 ("texinfo" ,texinfo)))
860 (inputs `(("guile" ,guile-2.2)
861 ("librsvg" ,librsvg)
862 ("guile-lib" ,guile-lib))) ;for (unit-test)
863 (propagated-inputs `(("guile-cairo" ,guile-cairo)))
864 (synopsis "Render SVG images using Cairo from Guile")
865 (description
866 "Guile-RSVG wraps the RSVG library for Guile, allowing you to render SVG
1a51fe27 867images onto Cairo surfaces.")
1b0f266e
LC
868 (home-page "http://wingolog.org/projects/guile-rsvg/")
869 (license license:lgpl2.1+))))
7ca0dbc3 870
cdd383e9
LC
871(define-public guile-present
872 (package
873 (name "guile-present")
874 (version "0.3.0")
875 (source (origin
876 (method url-fetch)
877 (uri (string-append "http://wingolog.org/pub/guile-present/"
878 "guile-present-" version ".tar.gz"))
879 (sha256
880 (base32
881 "1qam447m05sxxv6x8dlzg7qnyfc4dh8apjw1idpfhpns671gfr6m"))
fc1adab1 882 (patches (search-patches "guile-present-coding.patch"))
cdd383e9
LC
883 (modules '((guix build utils)))
884 (snippet
6cbee49d
MW
885 '(begin
886 (substitute* "Makefile.in"
887 (("godir = .*$")
888 "godir = $(moddir)\n"))
889 #t))))
cdd383e9
LC
890 (build-system gnu-build-system)
891 (arguments
dc1d3cde
KK
892 '(#:phases
893 (modify-phases %standard-phases
894 (add-after 'install 'post-install
895 (lambda* (#:key inputs outputs #:allow-other-keys)
896 (let* ((out (assoc-ref outputs "out"))
897 (bin (string-append out "/bin"))
898 (guile (assoc-ref inputs "guile")))
899 (substitute* (find-files bin ".*")
900 (("guile")
901 (string-append guile "/bin/guile -L "
902 out "/share/guile/site/2.0 -C "
903 out "/share/guile/site/2.0 "))))
904 #t)))))
cdd383e9 905 (native-inputs `(("pkg-config" ,pkg-config)))
1b0f266e 906 (inputs `(("guile" ,guile-2.2)))
cdd383e9
LC
907 (propagated-inputs
908 ;; These are used by the (present …) modules.
5ace0919 909 `(("guile-lib" ,guile-lib)
cdd383e9
LC
910 ("guile-cairo" ,guile-cairo)
911 ("guile-rsvg" ,guile-rsvg)))
912 (home-page "http://wingolog.org/software/guile-present/")
913 (synopsis "Create SVG or PDF presentations in Guile")
914 (description
915 "Guile-Present defines a declarative vocabulary for presentations,
916together with tools to render presentation documents as SVG or PDF.
917Guile-Present can be used to make presentations programmatically, but also
918includes a tools to generate PDF presentations out of Org mode and Texinfo
919documents.")
920 (license license:lgpl3+)))
7ca0dbc3 921
9b381643
PH
922(define-public guile-gnome
923 (package
924 (name "guile-gnome")
1b0f266e 925 (version "2.16.5")
9b381643
PH
926 (source (origin
927 (method url-fetch)
928 (uri
929 (string-append "mirror://gnu/" name
930 "/guile-gnome-platform/guile-gnome-platform-"
931 version ".tar.gz"))
932 (sha256
933 (base32
1b0f266e 934 "1gnf3j96nip5kl99a268i0dy1hj7s1cfs66sps3zwysnkd7qr399"))))
9b381643
PH
935 (build-system gnu-build-system)
936 (native-inputs
937 `(("pkg-config" ,pkg-config)
938 ("atk" ,atk)
939 ;;("corba" ,corba) ; not packaged yet
940 ("gconf" ,gconf)
941 ("gobject-introspection" ,gobject-introspection)
942 ;;("gthread" ,gthread) ; not packaged yet
943 ("gnome-vfs" ,gnome-vfs)
944 ("gdk-pixbuf" ,gdk-pixbuf)
945 ("gtk+" ,gtk+-2)
946 ("libglade" ,libglade)
947 ("libgnome" ,libgnome)
948 ("libgnomecanvas" ,libgnomecanvas)
949 ("libgnomeui" ,libgnomeui)
950 ("pango" ,pango)
951 ("libffi" ,libffi)
952 ("glib" ,glib)))
1b0f266e 953 (inputs `(("guile" ,guile-2.2)))
9b381643
PH
954 (propagated-inputs
955 `(("guile-cairo" ,guile-cairo)
956 ("g-wrap" ,g-wrap)
5ace0919 957 ("guile-lib" ,guile-lib)))
9b381643
PH
958 (arguments
959 `(#:tests? #f ;FIXME
960 #:phases (modify-phases %standard-phases
961 (add-before 'configure 'pre-configure
962 (lambda* (#:key outputs #:allow-other-keys)
963 (let ((out (assoc-ref outputs "out")))
964 (substitute* (find-files "." "^Makefile.in$")
965 (("guilesite :=.*guile/site" all)
1b0f266e 966 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
9b381643
PH
967 #t))))))
968 (outputs '("out" "debug"))
969 (synopsis "Guile interface for GTK+ programming for GNOME")
970 (description
971 "Includes guile-clutter, guile-gnome-gstreamer,
972guile-gnome-platform (GNOME developer libraries), and guile-gtksourceview.")
6fd52309 973 (home-page "https://www.gnu.org/software/guile-gnome/")
1b0f266e
LC
974 (license license:gpl2+)
975 (properties '((upstream-name . "guile-gnome-platform")
976 (ftp-directory . "/gnu/guile-gnome/guile-gnome-platform")))))
9b381643 977
66663503
LC
978;;;
979;;; C++ bindings.
980;;;
981
982(define-public cairomm
983 (package
984 (name "cairomm")
5a52e86e 985 (version "1.12.2")
66663503 986 (source (origin
2079087c 987 (method url-fetch)
5a52e86e
EF
988 (uri (string-append "https://www.cairographics.org/releases/"
989 name "-" version ".tar.gz"))
2079087c
SB
990 (sha256
991 (base32
5a52e86e 992 "16fmigxsaz85c3lgcls7biwyz8zy8c8h3jndfm54cxxas3a7zi25"))))
66663503
LC
993 (build-system gnu-build-system)
994 (arguments
995 ;; The examples lack -lcairo.
996 '(#:make-flags '("LDFLAGS=-lcairo")))
c4c4cc05 997 (native-inputs `(("pkg-config" ,pkg-config)))
66663503
LC
998 (propagated-inputs
999 `(("libsigc++" ,libsigc++)
1000 ("freetype" ,freetype)
1001 ("fontconfig" ,fontconfig)
1002 ("cairo" ,cairo)))
5a52e86e 1003 (home-page "https://cairographics.org/")
66663503
LC
1004 (synopsis "C++ bindings to the Cairo 2D graphics library")
1005 (description
1006 "Cairomm provides a C++ programming interface to the Cairo 2D graphics
1007library.")
1008 (license license:lgpl2.0+)))
c5cc5006
LC
1009
1010(define-public pangomm
1011 (package
1012 (name "pangomm")
3086d9b9 1013 (version "2.40.1")
c5cc5006
LC
1014 (source (origin
1015 (method url-fetch)
b38e45d8
EB
1016 (uri (string-append "mirror://gnome/sources/" name "/"
1017 (version-major+minor version) "/"
1018 name "-" version ".tar.xz"))
c5cc5006
LC
1019 (sha256
1020 (base32
3086d9b9 1021 "1bz3gciff23bpw9bqc4v2l3lkq9w7394v3a4jxkvx0ap5lmfwqlp"))))
c5cc5006 1022 (build-system gnu-build-system)
c4c4cc05 1023 (native-inputs `(("pkg-config" ,pkg-config)))
c5cc5006
LC
1024 (propagated-inputs
1025 `(("cairo" ,cairo)
1026 ("cairomm" ,cairomm)
1027 ("glibmm" ,glibmm)
1028 ("pango" ,pango)))
1029 (home-page "http://www.pango.org/")
1030 (synopsis "C++ interface to the Pango text rendering library")
1031 (description
1032 "Pangomm provides a C++ programming interface to the Pango text rendering
1033library.")
1034 (license license:lgpl2.1+)))
1035
1036(define-public atkmm
1037 (package
1038 (name "atkmm")
5b003972 1039 (version "2.24.2")
c5cc5006
LC
1040 (source (origin
1041 (method url-fetch)
b38e45d8
EB
1042 (uri (string-append "mirror://gnome/sources/" name "/"
1043 (version-major+minor version) "/"
1044 name "-" version ".tar.xz"))
c5cc5006
LC
1045 (sha256
1046 (base32
5b003972 1047 "1gaqwhviadsmy0fsr47686yglv1p4mpkamj0in127bz2b5bki5gz"))))
c5cc5006 1048 (build-system gnu-build-system)
c4c4cc05 1049 (native-inputs `(("pkg-config" ,pkg-config)))
c5cc5006
LC
1050 (propagated-inputs
1051 `(("glibmm" ,glibmm) ("atk" ,atk)))
8e933cb3 1052 (home-page "https://www.gtkmm.org")
c5cc5006
LC
1053 (synopsis "C++ interface to the ATK accessibility library")
1054 (description
1055 "ATKmm provides a C++ programming interface to the ATK accessibility
1056toolkit.")
1057 (license license:lgpl2.1+)))
1058
1059(define-public gtkmm
1060 (package
1061 (name "gtkmm")
29c7b4d6 1062 (version "3.22.2")
c5cc5006
LC
1063 (source (origin
1064 (method url-fetch)
b38e45d8
EB
1065 (uri (string-append "mirror://gnome/sources/" name "/"
1066 (version-major+minor version) "/"
1067 name "-" version ".tar.xz"))
c5cc5006
LC
1068 (sha256
1069 (base32
29c7b4d6 1070 "1400535lhyya462pfx8bp11k3mg3jsbdghlpygskd5ai665dkbwi"))))
c5cc5006 1071 (build-system gnu-build-system)
ff5c33fe 1072 (native-inputs `(("pkg-config" ,pkg-config)
ba470833 1073 ("glib" ,glib "bin") ;for 'glib-compile-resources'
6a49ae78 1074 ("xorg-server" ,xorg-server-1.19.3)))
c5cc5006
LC
1075 (propagated-inputs
1076 `(("pangomm" ,pangomm)
1077 ("cairomm" ,cairomm)
1078 ("atkmm" ,atkmm)
1079 ("gtk+" ,gtk+)
1080 ("glibmm" ,glibmm)))
ba470833 1081 (arguments
6a49ae78 1082 `(;; XXX: Tests require C++14 or later. Remove this when the default
29c7b4d6
MB
1083 ;; compiler is >= GCC6.
1084 #:configure-flags '("CXXFLAGS=-std=gnu++14")
6a49ae78 1085 #:disallowed-references (,xorg-server-1.19.3)
29c7b4d6 1086 #:phases (modify-phases %standard-phases
ba470833
LC
1087 (add-before 'check 'run-xvfb
1088 (lambda* (#:key inputs #:allow-other-keys)
1089 (let ((xorg-server (assoc-ref inputs "xorg-server")))
1090 ;; Tests such as 'object_move/test' require a running
1091 ;; X server.
1092 (system (string-append xorg-server "/bin/Xvfb :1 &"))
1093 (setenv "DISPLAY" ":1")
1094 ;; Don't fail because of the missing /etc/machine-id.
1095 (setenv "DBUS_FATAL_WARNINGS" "0")
1096 #t))))))
8e933cb3 1097 (home-page "https://gtkmm.org/")
c5cc5006
LC
1098 (synopsis
1099 "C++ interface to the GTK+ graphical user interface library")
1100 (description
1101 "gtkmm is the official C++ interface for the popular GUI library GTK+.
1102Highlights include typesafe callbacks, and a comprehensive set of widgets that
1103are easily extensible via inheritance. You can create user interfaces either
1104in code or with the Glade User Interface designer, using libglademm. There's
1105extensive documentation, including API reference and a tutorial.")
1106 (license license:lgpl2.1+)))
9c086443
JD
1107
1108
1109(define-public gtkmm-2
1110 (package (inherit gtkmm)
b38e45d8 1111 (name "gtkmm")
124596f2 1112 (version "2.24.5")
9c086443
JD
1113 (source (origin
1114 (method url-fetch)
b38e45d8
EB
1115 (uri (string-append "mirror://gnome/sources/" name "/"
1116 (version-major+minor version) "/"
1117 name "-" version ".tar.xz"))
9c086443
JD
1118 (sha256
1119 (base32
124596f2 1120 "0wkbzvsx4kgw16f6xjdc1dz7f77ldngdila4yi5lw2zrgcxsb006"))))
3ad29c9e
SB
1121 (arguments
1122 '(#:configure-flags '("CPPFLAGS=-std=c++11"))) ; required by libsigc++
ff5c33fe 1123 (native-inputs `(("pkg-config" ,pkg-config)))
9c086443
JD
1124 (propagated-inputs
1125 `(("pangomm" ,pangomm)
1126 ("cairomm" ,cairomm)
1127 ("atkmm" ,atkmm)
1128 ("gtk+" ,gtk+-2)
1129 ("glibmm" ,glibmm)))))
fbcfa730 1130
e07a4489
MB
1131(define-public gtksourceviewmm
1132 (package
1133 (name "gtksourceviewmm")
1134 (version "3.18.0")
1135 (source (origin
1136 (method url-fetch)
1137 (uri (string-append "mirror://gnome/sources/" name "/"
1138 (version-major+minor version) "/"
1139 name "-" version ".tar.xz"))
1140 (sha256
1141 (base32 "0fgvmhm4h4qmxig87qvangs6ijw53mi40siz7pixlxbrsgiil22i"))))
1142 (build-system gnu-build-system)
1143 (native-inputs
1144 `(("pkg-config" ,pkg-config)))
1145 (propagated-inputs
1146 ;; In 'Requires' of gtksourceviewmm-3.0.pc.
1147 `(("glibmm" ,glibmm)
1148 ("gtkmm" ,gtkmm)
1149 ("gtksourceview" ,gtksourceview)))
1150 (synopsis "C++ interface to the GTK+ 'GtkTextView' widget")
1151 (description
1152 "gtksourceviewmm is a portable C++ library that extends the standard GTK+
1153framework for multiline text editing with support for configurable syntax
1154highlighting, unlimited undo/redo, search and replace, a completion framework,
1155printing and other features typical of a source code editor.")
1156 (license license:lgpl2.1+)
1157 (home-page "https://developer.gnome.org/gtksourceview/")))
1158
1159;;;
1160;;; Python bindings.
1161;;;
1162
fbcfa730
EB
1163(define-public python-pycairo
1164 (package
1165 (name "python-pycairo")
1166 (version "1.10.0")
1167 (source
1168 (origin
1169 (method url-fetch)
1170 (uri (string-append "http://cairographics.org/releases/pycairo-"
1171 version ".tar.bz2"))
1172 (sha256
1173 (base32
b837e658 1174 "1gjkf8x6hyx1skq3hhwcbvwifxvrf9qxis5vx8x5igmmgs70g94s"))
fc1adab1 1175 (patches (search-patches "pycairo-wscript.patch"))))
b837e658 1176 (build-system waf-build-system)
fbcfa730 1177 (native-inputs
b837e658
SB
1178 `(("pkg-config" ,pkg-config)
1179 ("python-waf" ,python-waf)))
fbcfa730
EB
1180 (propagated-inputs ;pycairo.pc references cairo
1181 `(("cairo" ,cairo)))
1182 (arguments
1183 `(#:tests? #f
b837e658
SB
1184 #:phases
1185 (modify-phases %standard-phases
1186 (add-before
1187 'configure 'patch-waf
1188 (lambda* (#:key inputs #:allow-other-keys)
1189 ;; The bundled `waf' doesn't work with python-3.4.x.
1190 (copy-file (assoc-ref %build-inputs "python-waf") "./waf"))))))
fbcfa730
EB
1191 (home-page "http://cairographics.org/pycairo/")
1192 (synopsis "Python bindings for cairo")
1193 (description
1194 "Pycairo is a set of Python bindings for the Cairo graphics library.")
7ec42f1d
LC
1195 (license license:lgpl3+)
1196 (properties `((python2-variant . ,(delay python2-pycairo))))))
fbcfa730 1197
7ca0dbc3 1198(define-public python2-pycairo
7ec42f1d 1199 (package (inherit (strip-python2-variant python-pycairo))
7ca0dbc3 1200 (name "python2-pycairo")
fbcfa730
EB
1201 (version "1.10.0")
1202 (source
1203 (origin
1204 (method url-fetch)
1205 (uri (string-append "http://cairographics.org/releases/py2cairo-"
1206 version ".tar.bz2"))
1207 (sha256
1208 (base32
1209 "0cblk919wh6w0pgb45zf48xwxykfif16qk264yga7h9fdkq3j16k"))))
1210 (arguments
1211 `(#:python ,python-2
b837e658
SB
1212 ,@(substitute-keyword-arguments (package-arguments python-pycairo)
1213 ((#:phases phases)
dc1d3cde 1214 `(modify-phases ,phases (delete 'patch-waf)))
b837e658
SB
1215 ((#:native-inputs native-inputs)
1216 `(alist-delete "python-waf" ,native-inputs)))))
fbcfa730 1217 ;; Dual-licensed under LGPL 2.1 or Mozilla Public License 1.1
0d6a8339 1218 (license (list license:lgpl2.1 license:mpl1.1))))
fbcfa730
EB
1219
1220(define-public python2-pygtk
1221 (package
1222 (name "python2-pygtk")
1223 (version "2.24.0")
1224 (source
1225 (origin
1226 (method url-fetch)
966a543b 1227 (uri (string-append "mirror://gnome/sources"
fbcfa730
EB
1228 "/pygtk/" (version-major+minor version)
1229 "/pygtk-" version ".tar.bz2"))
1230 (sha256
1231 (base32
1232 "04k942gn8vl95kwf0qskkv6npclfm31d78ljkrkgyqxxcni1w76d"))))
1233 (build-system gnu-build-system)
594e7b47
LC
1234 (outputs '("out"
1235 "doc")) ;13 MiB of gtk-doc HTML
fbcfa730
EB
1236 (native-inputs
1237 `(("pkg-config" ,pkg-config)))
1238 (inputs
1239 `(("python" ,python-2)
6ab4712d 1240 ("libglade" ,libglade)
fbcfa730
EB
1241 ("glib" ,glib)))
1242 (propagated-inputs
7ca0dbc3 1243 `(("python-pycairo" ,python2-pycairo) ;loaded at runtime
fbcfa730
EB
1244 ("python-pygobject" ,python2-pygobject-2) ;referenced in pc file
1245 ("gtk+" ,gtk+-2)))
1246 (arguments
1247 `(#:tests? #f
ae115bc7 1248 #:phases (modify-phases %standard-phases
594e7b47
LC
1249 (add-before 'configure 'set-gtk-doc-directory
1250 (lambda* (#:key outputs #:allow-other-keys)
1251 ;; Install documentation to "doc".
1252 (let ((doc (assoc-ref outputs "doc")))
1253 (substitute* "docs/Makefile.in"
1254 (("TARGET_DIR = \\$\\(datadir\\)")
1255 (string-append "TARGET_DIR = " doc))))))
ae115bc7
LC
1256 (add-after 'configure 'fix-codegen
1257 (lambda* (#:key inputs #:allow-other-keys)
1258 (substitute* "pygtk-codegen-2.0"
1259 (("^prefix=.*$")
1260 (string-append
1261 "prefix="
1262 (assoc-ref inputs "python-pygobject") "\n")))))
1263 (add-after 'install 'install-pth
1264 (lambda* (#:key inputs outputs #:allow-other-keys)
1265 ;; pygtk's modules are stored in a subdirectory of
1266 ;; python's site-packages directory. Add a .pth file so
1267 ;; that python will add that subdirectory to its module
1268 ;; search path.
1269 (let* ((out (assoc-ref outputs "out"))
1270 (site (string-append out "/lib/python"
1271 ,(version-major+minor
1272 (package-version python-2))
1273 "/site-packages")))
1274 (call-with-output-file (string-append site "/pygtk.pth")
1275 (lambda (port)
1276 (format port "gtk-2.0~%")))))))))
fbcfa730
EB
1277 (home-page "http://www.pygtk.org/")
1278 (synopsis "Python bindings for GTK+")
1279 (description
1280 "PyGTK allows you to write full featured GTK programs in Python. It is
d1e4ad1b 1281targeted at GTK 2.x, and can be used in conjunction with gnome-python to
fbcfa730
EB
1282write GNOME applications.")
1283 (license license:lgpl2.1+)))
136770c9 1284
4e028d7a
AV
1285(define-public perl-cairo
1286 (package
1287 (name "perl-cairo")
1288 (version "1.106")
1289 (source (origin
1290 (method url-fetch)
1291 (uri (string-append
1292 "mirror://cpan/authors/id/X/XA/XAOC/Cairo-"
1293 version ".tar.gz"))
1294 (sha256
1295 (base32
1296 "1i25kks408c54k2zxskvg54l5k3qadzm8n72ffga9jy7ic0h6j76"))))
1297 (build-system perl-build-system)
1298 (native-inputs
1299 `(("perl-extutils-depends" ,perl-extutils-depends)
1300 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1301 (inputs
1302 `(("cairo" ,cairo)))
1303 (home-page "http://search.cpan.org/dist/Cairo/")
1304 (synopsis "Perl interface to the cairo 2d vector graphics library")
1305 (description "Cairo provides Perl bindings for the vector graphics library
1306cairo. It supports multiple output targets, including PNG, PDF and SVG. Cairo
1307produces identical output on all those targets.")
1308 (license license:lgpl2.1+)))
1309
b5bbcda3
AV
1310(define-public perl-gtk2
1311 (package
1312 (name "perl-gtk2")
1313 (version "1.24992")
1314 (source (origin
1315 (method url-fetch)
1316 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Gtk2-"
1317 version ".tar.gz"))
1318 (sha256
1319 (base32
1320 "1044rj3wbfmgaif2jb0k28m2aczli6ai2n5yvn6pr7zjyw16kvd2"))))
1321 (build-system perl-build-system)
1322 (native-inputs
1323 `(("perl-extutils-depends" ,perl-extutils-depends)
1324 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1325 (inputs
1326 `(("gtk+" ,gtk+-2)))
1327 (propagated-inputs
1328 `(("perl-pango" ,perl-pango)))
1329 (home-page "http://search.cpan.org/dist/Gtk2/")
1330 (synopsis "Perl interface to the 2.x series of the Gimp Toolkit library")
1331 (description "Perl bindings to the 2.x series of the Gtk+ widget set.
1332This module allows you to write graphical user interfaces in a Perlish and
1333object-oriented way, freeing you from the casting and memory management in C,
1334yet remaining very close in spirit to original API.")
1335 (license license:lgpl2.1+)))
1336
ee6911c7
AV
1337(define-public perl-pango
1338 (package
1339 (name "perl-pango")
1340 (version "1.227")
1341 (source (origin
1342 (method url-fetch)
1343 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Pango-"
1344 version ".tar.gz"))
1345 (sha256
1346 (base32
1347 "0wdcidnfnb6nm79fzfs39ivawj3x8m98a147fmcxgv1zvwia9c1l"))))
1348 (build-system perl-build-system)
1349 (native-inputs
1350 `(("perl-extutils-depends" ,perl-extutils-depends)
1351 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1352 (inputs
1353 `(("pango" ,pango)))
1354 (propagated-inputs
1355 `(("perl-cairo" ,perl-cairo)
1356 ("perl-glib" ,perl-glib)))
1357 (home-page "http://search.cpan.org/dist/Pango/")
1358 (synopsis "Layout and render international text")
1359 (description "Pango is a library for laying out and rendering text, with an
1360emphasis on internationalization. Pango can be used anywhere that text layout
1361is needed, but using Pango in conjunction with Cairo and/or Gtk2 provides a
1362complete solution with high quality text handling and graphics rendering.
1363
1364Dynamically loaded modules handle text layout for particular combinations of
1365script and font backend. Pango provides a wide selection of modules, including
1366modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts.
1367Virtually all of the world's major scripts are supported.
1368
1369In addition to the low level layout rendering routines, Pango includes
1370@code{Pango::Layout}, a high level driver for laying out entire blocks of text,
1371and routines to assist in editing internationalized text.")
1372 (license license:lgpl2.1+)))
1373
136770c9
PW
1374(define-public girara
1375 (package
1376 (name "girara")
bf38d5be 1377 (version "0.2.8")
136770c9
PW
1378 (source (origin
1379 (method url-fetch)
1380 (uri
1381 (string-append "https://pwmt.org/projects/girara/download/girara-"
1382 version ".tar.gz"))
1383 (sha256
1384 (base32
bf38d5be 1385 "18wss3sak3djip090v2vdbvq1mvkwcspfswc87zbvv3magihan98"))))
136770c9 1386 (native-inputs `(("pkg-config" ,pkg-config)
b82d5b09 1387 ("check" ,check)
bf38d5be 1388 ("gettext" ,gettext-minimal)
7d24c26e 1389 ("glib:bin" ,glib "bin")
2416665e 1390 ("xorg-server" ,xorg-server-1.19.3)))
b82d5b09
MB
1391 ;; Listed in 'Requires.private' of 'girara.pc'.
1392 (propagated-inputs `(("gtk+" ,gtk+)))
136770c9
PW
1393 (arguments
1394 `(#:make-flags
1395 `(,(string-append "PREFIX=" (assoc-ref %outputs "out"))
1396 "COLOR=0" "CC=gcc")
1397 #:test-target "test"
2416665e 1398 #:disallowed-references (,xorg-server-1.19.3)
7d24c26e
MB
1399 #:phases (modify-phases %standard-phases
1400 (delete 'configure)
1401 (add-before 'check 'start-xserver
1402 ;; Tests require a running X server.
1403 (lambda* (#:key inputs #:allow-other-keys)
1404 (let ((xorg-server (assoc-ref inputs "xorg-server"))
1405 (display ":1"))
1406 (setenv "DISPLAY" display)
3e6b398a
MB
1407
1408 ;; On busy machines, tests may take longer than
1409 ;; the default of four seconds.
1410 (setenv "CK_DEFAULT_TIMEOUT" "20")
1411
7d24c26e
MB
1412 ;; Don't fail due to missing '/etc/machine-id'.
1413 (setenv "DBUS_FATAL_WARNINGS" "0")
1414 (zero? (system (string-append xorg-server "/bin/Xvfb "
1415 display " &")))))))))
136770c9
PW
1416 (build-system gnu-build-system)
1417 (home-page "https://pwmt.org/projects/girara/")
1418 (synopsis "Library for minimalistic gtk+3 user interfaces")
1419 (description "Girara is a library that implements a user interface that
1420focuses on simplicity and minimalism. Currently based on GTK+, a
1421cross-platform widget toolkit, it provides an interface that focuses on three
1422main components: a so-called view widget that represents the actual
1423application, an input bar that is used to execute commands of the
1424application and the status bar which provides the user with current
1425information.")
1426 (license license:zlib)))
3bc45449
AW
1427
1428(define-public gtk-doc
1429 (package
1430 (name "gtk-doc")
9d19e18d 1431 (version "1.25")
3bc45449
AW
1432 (source (origin
1433 (method url-fetch)
1434 (uri (string-append "mirror://gnome/sources/" name "/"
1435 (version-major+minor version) "/"
1436 name "-" version ".tar.xz"))
1437 (sha256
1438 (base32
9d19e18d 1439 "0hpxcij9xx9ny3gs9p0iz4r8zslw8wqymbyababiyl7603a6x90y"))))
3bc45449
AW
1440 (build-system gnu-build-system)
1441 (arguments
6ad08117
AE
1442 `(#:parallel-tests? #f
1443 #:phases
b4787e71 1444 (modify-phases %standard-phases
a20608a5
RW
1445 (add-before 'build 'set-HOME
1446 (lambda _
1447 ;; FIXME: dblatex with texlive-union does not find the built
1448 ;; metafonts, so it tries to generate them in HOME.
1449 (setenv "HOME" "/tmp")
1450 #t))
1451 (add-before 'configure 'fix-docbook
b4787e71
AW
1452 (lambda* (#:key inputs #:allow-other-keys)
1453 (substitute* "configure"
1454 ;; The configure check is overzealous about making sure that
1455 ;; things are in place -- it uses the xmlcatalog tool to make
1456 ;; sure that docbook-xsl is available, but this tool can only
1457 ;; look in one catalog file, unlike the $XML_CATALOG_FILES
1458 ;; variable that Guix defines. Fool the test by using the
1459 ;; docbook-xsl catalog explicitly and get on with life.
1460 (("\"\\$XML_CATALOG_FILE\" \
1461\"http://docbook.sourceforge.net/release/xsl/")
4ed737b2
MW
1462 (string-append (car (find-files (assoc-ref inputs "docbook-xsl")
1463 "^catalog.xml$"))
1464 " \"http://docbook.sourceforge.net/release/xsl/")))
1465 #t)))
b4787e71 1466 #:configure-flags
3bc45449
AW
1467 (list (string-append "--with-xml-catalog="
1468 (assoc-ref %build-inputs "docbook-xml")
1469 "/xml/dtd/docbook/catalog.xml"))))
1470 (native-inputs
1471 `(("pkg-config" ,pkg-config)
1472 ("itstool" ,itstool)
1473 ("libxml" ,libxml2)
b94a6ca0 1474 ("gettext" ,gettext-minimal)
3bc45449
AW
1475 ("bc" ,bc)))
1476 (inputs
1477 `(("perl" ,perl)
1478 ("python" ,python)
1479 ("xsltproc" ,libxslt)
1480 ("dblatex" ,dblatex)
1481 ("docbook-xml" ,docbook-xml-4.3)
1482 ("docbook-xsl" ,docbook-xsl)
1483 ("source-highlight" ,source-highlight)
1484 ("glib" ,glib)))
1485 (home-page "http://www.gtk.org/gtk-doc/")
1486 (synopsis "Documentation generator from C source code")
1487 (description
a124bbd2 1488 "GTK-Doc generates API documentation from comments added to C code. It is
3bc45449
AW
1489typically used to document the public API of GTK+ and GNOME libraries, but it
1490can also be used to document application code.")
1491 (license license:gpl2+)))
9ba5198c
FH
1492
1493(define-public gtk-engines
1494 (package
1495 (name "gtk-engines")
1496 (version "2.20.2")
1497 (source (origin
1498 (method url-fetch)
1499 (uri (string-append "mirror://gnome/sources/" name "/"
1500 (version-major+minor version) "/"
1501 name "-" version ".tar.bz2"))
1502 (sha256
1503 (base32
1504 "1db65pb0j0mijmswrvpgkdabilqd23x22d95hp5kwxvcramq1dhm"))))
1505 (build-system gnu-build-system)
1506 (arguments
1507 `(#:configure-flags
1508 `("--enable-animation")))
1509 (native-inputs
1510 `(("pkg-config" ,pkg-config)
1511 ("intltool" ,intltool)))
9fff9e64
SB
1512 (inputs
1513 ;; Don't propagate GTK+ to reduce "profile pollution".
9ba5198c 1514 `(("gtk+" ,gtk+-2))) ; required by gtk-engines-2.pc
f032d0be 1515 (home-page "https://live.gnome.org/GnomeArt")
9ba5198c
FH
1516 (synopsis "Theming engines for GTK+ 2.x")
1517 (description
1518 "This package contains the standard GTK+ 2.x theming engines including
1519Clearlooks, Crux, High Contrast, Industrial, LighthouseBlue, Metal, Mist,
1520Redmond95 and ThinIce.")
1521 (license (list license:gpl2+ license:lgpl2.1+))))
b7807bb2
FH
1522
1523(define-public murrine
1524 (package
1525 (name "murrine")
1526 (version "0.98.2")
1527 (source (origin
1528 (method url-fetch)
1529 (uri (string-append "mirror://gnome/sources/" name "/"
1530 (version-major+minor version) "/"
1531 name "-" version ".tar.xz"))
1532 (sha256
1533 (base32
1534 "129cs5bqw23i76h3nmc29c9mqkm9460iwc8vkl7hs4xr07h8mip9"))))
1535 (build-system gnu-build-system)
1536 (arguments
1537 `(#:configure-flags
1538 `("--enable-animation"
1539 "--enable-animationrtl")))
1540 (native-inputs
1541 `(("pkg-config" ,pkg-config)
1542 ("intltool" ,intltool)))
1543 (propagated-inputs
1544 `(("gtk+" ,gtk+-2)))
f032d0be 1545 (home-page "https://live.gnome.org/GnomeArt")
b7807bb2
FH
1546 (synopsis "Cairo-based theming engine for GTK+ 2.x")
1547 (description
1548 "Murrine is a cairo-based GTK+ theming engine. It is named after the
1549glass artworks done by Venicians glass blowers.")
1550 (license license:gpl2+)))
9c0c77f8
KY
1551
1552(define-public gtkspell3
1553 (package
1554 (name "gtkspell3")
3be65cde 1555 (version "3.0.9")
9c0c77f8
KY
1556 (source (origin
1557 (method url-fetch)
1558 (uri (string-append "mirror://sourceforge/gtkspell/"
3be65cde 1559 version "/" name "-" version ".tar.xz"))
9c0c77f8
KY
1560 (sha256
1561 (base32
3be65cde 1562 "09jdicmpipmj4v84gnkqwbmj4lh8v0i6pn967rb9jx4zg2ia9x54"))))
9c0c77f8
KY
1563 (build-system gnu-build-system)
1564 (native-inputs
1565 `(("intltool" ,intltool)
1566 ("pkg-config" ,pkg-config)))
1567 (inputs
1568 `(("enchant" ,enchant)
1569 ("gobject-introspection" ,gobject-introspection)
1570 ("gtk+" ,gtk+)
1571 ("pango" ,pango)))
1572 (home-page "http://gtkspell.sourceforge.net")
1573 (synopsis "Spell-checking addon for GTK's TextView widget")
1574 (description
1575 "GtkSpell provides word-processor-style highlighting and replacement of
1576misspelled words in a GtkTextView widget.")
1577 (license license:gpl2+)))
37355498 1578
1579(define-public clipit
1580 (package
1581 (name "clipit")
1582 (version "1.4.2")
1583 (source (origin
1584 (method url-fetch)
1585 (uri (string-append
1586 "https://github.com/downloads/ClipIt/clipit-"
1587 version ".tar.gz"))
1588 (sha256
1589 (base32
1590 "0jrwn8qfgb15rwspdp1p8hb1nc0ngmpvgr87d4k3lhlvqg2cfqva"))))
1591 (build-system gnu-build-system)
1592 (native-inputs
1593 `(("intltool" ,intltool)
1594 ("pkg-config" ,pkg-config)))
1595 (inputs
1596 `(("gtk+" ,gtk+-2)))
1597 (home-page "https://github.com/CristianHenzel/ClipIt")
1598 (synopsis "Lightweight GTK+ clipboard manager")
1599 (description
1600 "ClipIt is a clipboard manager with features such as a history, search
1601thereof, global hotkeys and clipboard item actions. It was forked from
1602Parcellite and adds bugfixes and features.")
1603 (license license:gpl2+)))
61af2675
RJ
1604
1605(define-public graphene
1606 (package
1607 (name "graphene")
1608 (version "1.6.0")
1609 (source (origin
1610 (method url-fetch)
1611 (uri (string-append
1612 "https://github.com/ebassi/graphene/archive/"
1613 version ".tar.gz"))
1614 (file-name (string-append name "-" version ".tar.gz"))
1615 (sha256
1616 (base32 "1zd2daj7y590wnzn4jw0niyc4fnzgxrcl9i7nwhy8b25ks2hz5wq"))))
1617 (build-system gnu-build-system)
1618 (arguments
1619 `(#:configure-flags '("--enable-introspection=yes")
1620 #:phases
1621 (modify-phases %standard-phases
1622 (add-before 'configure 'autogen
1623 (lambda _
1624 (zero? (system* "./autogen.sh")))))))
1625 (native-inputs
1626 `(("autoconf" ,autoconf)
1627 ("which" ,which)
1628 ("pkg-config" ,pkg-config)
1629 ("automake" ,automake)
1630 ("libtool" ,libtool)))
1631 (inputs
1632 `(("python" ,python)
1633 ("python-2" ,python-2)
1634 ("glib" ,glib)
1635 ("gobject-introspection" ,gobject-introspection)))
1636 (home-page "http://ebassi.github.io/graphene")
1637 (synopsis "Thin layer of graphic data types")
1638 (description "This library provides graphic types and their relative API;
1639it does not deal with windowing system surfaces, drawing, scene graphs, or
1640input.")
1641 (license license:expat)))