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