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