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>
24 ;;; This file is part of GNU Guix.
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.
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.
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/>.
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))
89 (uri (string-append "mirror://gnome/sources/" name "/"
90 (version-major+minor version) "/"
91 name "-" version ".tar.xz"))
94 "1z7laf6qwv5zsqcnj222dm5f43c6f3liil0cgx4s4s62xjk1wfnd"))))
95 (build-system gnu-build-system)
96 (outputs '("out" "doc"))
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
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")
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/")))
121 (uri (string-append "https://cairographics.org/releases/cairo-"
125 "0c930mk5xr2bshbdljv005j3j8zr47gqmkry3q6qgvqky6rjjysy"))))
126 (build-system gnu-build-system)
128 `(("fontconfig" ,fontconfig)
129 ("freetype" ,freetype)
134 ("libxrender" ,libxrender)
137 `(("ghostscript" ,ghostscript)
138 ("libspectre" ,libspectre)
140 ("xorgproto" ,xorgproto)
143 `(("pkg-config" ,pkg-config)
144 ("python" ,python-wrapper)))
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")
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.
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).
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/")))
167 (define-public cairo-xcb
173 ,@(package-inputs cairo)))
177 '("--enable-xlib-xcb" "--enable-gl" "--enable-egl")))
178 (synopsis "2D graphics library (with X11 support)")))
180 (define-public harfbuzz
186 (uri (string-append "https://www.freedesktop.org/software/"
187 "harfbuzz/release/harfbuzz-"
191 "047q63jr513azf3g1y7f5xn60b4jdjs9zsmrx04sfw5rasyzrk5p"))))
192 (build-system gnu-build-system)
194 "bin")) ; 160K, only hb-view depend on cairo
198 ;; There are all in the Requires or Requires.private field of '.pc'.
200 ("graphite2" ,graphite2)
203 `(("gobject-introspection" ,gobject-introspection)
204 ("pkg-config" ,pkg-config)
205 ("python" ,python-wrapper)
208 `(#:configure-flags `("--with-graphite2"
211 "--bindir=" (assoc-ref %outputs "bin") "/bin"))))
212 (synopsis "OpenType text shaping engine")
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/")))
225 (uri (string-append "mirror://gnome/sources/pango/"
226 (version-major+minor version) "/"
227 name "-" version ".tar.xz"))
230 "17bwb7dgbncrfsmchlib03k9n3xaalirb39g3yb43gg8cg6p8aqx"))))
231 (build-system gnu-build-system)
233 ;; These are all in Requires or Requires.private of the '.pc' files.
236 ("fontconfig" ,fontconfig)
237 ("freetype" ,freetype)
239 ("harfbuzz" ,harfbuzz)))
243 ;; Some packages, such as Openbox, expect Pango to be built with the
244 ;; optional libxft support.
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")
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/")))
258 (define-public pangox-compat
260 (name "pangox-compat")
264 (uri (string-append "mirror://gnome/sources/" name "/"
265 (version-major+minor version) "/"
266 name "-" version ".tar.xz"))
269 "0ip0ziys6mrqqmz4n71ays0kf5cs1xflj1gfpvs4fgy2nsrr482m"))))
270 (build-system gnu-build-system)
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+)))
290 (uri (string-append "https://download.drobilla.net/ganv-"
294 "0g7s5mp14qgbfjdql0k1s8464r21g47ssn5dws6jazsnw6njhl0l"))))
295 (build-system waf-build-system)
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.
305 (string-append "-Wl,-rpath="
306 (assoc-ref outputs "out") "/lib"))
308 #:python ,python-2 ;XXX: The bundled waf fails with Python 3.7.0.
309 #:tests? #f)) ; no check target
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")
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
322 (license license:gpl3+)))
324 (define-public ganv-devel
325 (let ((commit "12f7d6b0438c94dd87f773a92eee3453d971846e")
330 (version (string-append "1.5.4-" revision "."
331 (string-take commit 9)))
335 (url "https://git.drobilla.net/ganv.git")
337 (file-name (git-file-name name version))
340 "1cr8w02lr6bk9mkxa12j3imq721b2an2yn4bj5wnwmpm91ddn2gi")))))))
342 (define-public gtksourceview-2
344 (name "gtksourceview")
345 (version "2.10.5") ; This is the last version which builds against gtk+2
348 (uri (string-append "mirror://gnome/sources/" name "/"
349 (version-major+minor version) "/"
350 name "-" version ".tar.bz2"))
353 "07hrabhpl6n8ajz10s0d960jdwndxs87szxyn428mpxi8cvpg1f5"))))
354 (build-system gnu-build-system)
356 `(("intltool" ,intltool)
357 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
358 ("pkg-config" ,pkg-config)
360 ("xorg-server" ,xorg-server)
361 ("shared-mime-info" ,shared-mime-info)))
363 ;; As per the pkg-config file.
365 ("libxml2" ,libxml2)))
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")))
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")
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))
385 ;; Finally, the mimetypes must be available.
386 (setenv "XDG_DATA_DIRS" (string-append mime "/share/")))
388 (synopsis "Widget that extends the standard GTK+ 2.x 'GtkTextView' widget")
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/")))
397 (define-public gtksourceview
399 (name "gtksourceview")
403 (uri (string-append "mirror://gnome/sources/" name "/"
404 (version-major+minor version) "/"
405 name "-" version ".tar.xz"))
408 "1zinqid62zjcsq7vy1y4mq1qh3hzd3zj7p8np7g0bdqd37zvi6qy"))))
409 (build-system gnu-build-system)
412 (modify-phases %standard-phases
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")
424 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
425 ("intltool" ,intltool)
427 ("gobject-introspection" ,gobject-introspection)
428 ("pkg-config" ,pkg-config)
431 ("xorg-server" ,xorg-server)
432 ("shared-mime-info" ,shared-mime-info)))
434 ;; gtksourceview-3.0.pc refers to all these.
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+)))
445 (define-public gdk-pixbuf
451 (uri (string-append "mirror://gnome/sources/" name "/"
452 (version-major+minor version) "/"
453 name "-" version ".tar.xz"))
456 "0ixfmnxjylx06mjaw116apymwi1a8rnkmkbbvqaxxg2pfwy9fl6x"))))
457 (build-system meson-build-system)
459 `(#:configure-flags '("-Dinstalled_tests=false")
461 (modify-phases %standard-phases
463 'unpack 'disable-failing-tests
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'.*") ""))
476 ;; The slow tests take longer than the specified timeout.
477 ,@(if (any (cute string=? <> (%current-system))
478 '("armhf-linux" "aarch64-linux"))
481 (invoke "meson" "test" "--timeout-multiplier" "5"))))
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)))
493 `(;; Required by gdk-pixbuf-2.0.pc
496 ;; Used for testing and required at runtime.
497 ("shared-mime-info" ,shared-mime-info)))
499 `(("libjpeg" ,libjpeg)
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")
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/")))
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
517 (define-public gdk-pixbuf+svg
518 (package (inherit gdk-pixbuf)
519 (name "gdk-pixbuf+svg")
521 `(("librsvg" ,librsvg)
522 ,@(package-inputs gdk-pixbuf)))
524 '(#:configure-flags '("-Dinstalled-tests=false")
525 #:tests? #f ; tested by the gdk-pixbuf package already
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"))
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")))
539 gdk-pixbuf-query-loaders
543 "GNOME image loading and manipulation library, with SVG support")))
545 (define-public at-spi2-core
547 (name "at-spi2-core")
551 (uri (string-append "mirror://gnome/sources/" name "/"
552 (version-major+minor version) "/"
553 name "-" version ".tar.xz"))
556 "0596ghkamkxgv08r4a1pdhm06qd5zzgcfqsv64038w9xbvghq3n8"))))
557 (build-system gnu-build-system)
558 (outputs '("out" "doc"))
561 (list (string-append "--with-html-dir="
562 (assoc-ref %outputs "doc")
563 "/share/gtk-doc/html"))
565 (modify-phases %standard-phases
567 ;; Run test-suite under a dbus session.
569 ;; Don't fail on missing '/etc/machine-id'.
570 (setenv "DBUS_FATAL_WARNINGS" "0")
571 (invoke "dbus-launch" "make" "check"))))))
573 ;; atspi-2.pc refers to all these.
578 ("libxtst" ,libxtst)))
580 `(("gobject-introspection" ,gobject-introspection)
581 ("intltool" ,intltool)
582 ("pkg-config" ,pkg-config)))
583 (synopsis "Assistive Technology Service Provider Interface, core components")
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/")))
590 (define-public at-spi2-atk
596 (uri (string-append "mirror://gnome/sources/" name "/"
597 (version-major+minor version) "/"
598 name "-" version ".tar.xz"))
601 "0vkan52ab9vrkknnv8y4f1cspk8x7xd10qx92xk9ys71p851z2b1"))))
602 (build-system gnu-build-system)
605 (modify-phases %standard-phases
607 ;; Run test-suite under a dbus session.
609 (setenv "DBUS_FATAL_WARNINGS" "0")
610 (invoke "dbus-launch" "make" "check"))))))
612 `(("at-spi2-core" ,at-spi2-core))) ; required by atk-bridge-2.0.pc
616 `(("dbus" ,dbus) ; for testing
617 ("pkg-config" ,pkg-config)))
618 (synopsis "Assistive Technology Service Provider Interface, ATK bindings")
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/")))
625 (define-public gtk+-2
631 (uri (string-append "mirror://gnome/sources/" name "/"
632 (version-major+minor version) "/"
633 name "-" version ".tar.xz"))
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"))
644 ("gdk-pixbuf" ,gdk-pixbuf+svg)
648 ("libxcomposite" ,libxcomposite)
649 ("libxcursor" ,libxcursor)
650 ("libxdamage" ,libxdamage)
652 ("libxinerama" ,libxinerama)
653 ("libxrandr" ,libxrandr)))
656 ("gettext" ,gettext-minimal)
658 ("gobject-introspection" ,gobject-introspection)
659 ("pkg-config" ,pkg-config)
660 ("python-wrapper" ,python-wrapper)))
663 (list "--with-xinput=yes"
664 (string-append "--with-html-dir="
665 (assoc-ref %outputs "doc")
666 "/share/gtk-doc/html"))
669 'configure 'disable-tests
671 ;; FIXME: re-enable tests requiring an X server
672 (substitute* "gtk/Makefile.in"
673 (("SUBDIRS = theme-bits . tests") "SUBDIRS = theme-bits ."))
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")
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/")))
690 (package (inherit gtk+-2)
692 ;; NOTE: When updating the version of 'gtk+', the hash of 'mate-themes' in
693 ;; mate.scm will also need to be updated.
697 (uri (string-append "mirror://gnome/sources/" name "/"
698 (version-major+minor version) "/"
699 name "-" version ".tar.xz"))
702 "0bxhsp7cjph7szg1iyv16nwi60bz59x1smjkqv6sv6mr0zipnf38"))
703 (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch"
704 "gtk3-respect-GUIX_GTK3_IM_MODULE_FILE.patch"))))
705 (outputs '("out" "bin" "doc"))
707 `(("at-spi2-atk" ,at-spi2-atk)
709 ("gdk-pixbuf" ,gdk-pixbuf+svg)
710 ("libepoxy" ,libepoxy)
711 ("libxcursor" ,libxcursor)
713 ("libxinerama" ,libxinerama)
714 ("libxkbcommon" ,libxkbcommon)
715 ("libxdamage" ,libxdamage)
719 ("wayland-protocols" ,wayland-protocols)))
721 `(("libxml2" ,libxml2)
722 ;; XXX: colord depends on mozjs (through polkit), which fails on
723 ;; on non-intel systems now.
725 ("cups" ,cups) ;for printing support
726 ;; XXX: rest depends on p11-kit, which fails on mips64el now.
728 ("json-glib" ,json-glib)))
732 ("gettext" ,gettext-minimal)
733 ("pkg-config" ,pkg-config)
734 ("gobject-introspection" ,gobject-introspection)
735 ("python-wrapper" ,python-wrapper)
736 ;; By using a special xorg-server for GTK+'s tests, we reduce the impact
737 ;; of updating xorg-server directly on the master branch.
738 ("xorg-server" ,xorg-server-for-tests)))
740 `(#:disallowed-references (,xorg-server-for-tests)
741 ;; 47 MiB goes to "out" (24 of which is locale data!), and 26 MiB goes
743 #:configure-flags (list (string-append "--with-html-dir="
744 (assoc-ref %outputs "doc")
745 "/share/gtk-doc/html")
746 ;; The header file <gdk/gdkwayland.h> is required
747 ;; by gnome-control-center
748 "--enable-wayland-backend"
749 ;; This is necessary to build both backends.
750 "--enable-x11-backend"
751 ;; This enables the HTML5 websocket backend.
752 "--enable-broadway-backend")
753 #:phases (modify-phases %standard-phases
754 (add-before 'configure 'pre-configure
756 ;; Disable most tests, failing in the chroot with the message:
757 ;; D-Bus library appears to be incorrectly set up; failed to read
758 ;; machine uuid: Failed to open "/etc/machine-id": No such file or
760 ;; See the manual page for dbus-uuidgen to correct this issue.
761 (substitute* "testsuite/Makefile.in"
762 (("SUBDIRS = gdk gtk a11y css reftests")
765 (add-after 'install 'move-desktop-files
766 ;; Move desktop files into 'bin' to avoid cycle references.
767 (lambda* (#:key outputs #:allow-other-keys)
768 (let ((out (assoc-ref outputs "out"))
769 (bin (assoc-ref outputs "bin")))
770 (mkdir-p (string-append bin "/share"))
771 (rename-file (string-append out "/share/applications")
772 (string-append bin "/share/applications"))
775 (list (search-path-specification
776 (variable "GUIX_GTK3_PATH")
777 (files '("lib/gtk-3.0")))))))
783 (define-public guile-cairo
789 (uri (string-append "mirror://savannah/guile-cairo/guile-cairo-"
793 "0p6xrhf2k6n5dybn88050za7h90gnd7534n62l53vsca187pwgdf"))
794 (modules '((guix build utils)))
798 ;; Install Scheme files in …/guile/site/X.Y.
799 (substitute* (find-files "." "^Makefile\\.in$")
800 (("^(.*)dir = (.*)/guile/site(.*)" _ name prefix suffix)
801 (string-append name "dir = " prefix
802 "/guile/site/@GUILE_EFFECTIVE_VERSION@"
805 (build-system gnu-build-system)
807 `(("guile-lib" ,guile-lib)
809 ("guile" ,guile-2.2)))
811 ;; The .pc file refers to 'cairo'.
814 `(("pkg-config" ,pkg-config)))
815 (home-page "https://www.nongnu.org/guile-cairo/")
816 (synopsis "Cairo bindings for GNU Guile")
818 "Guile-Cairo wraps the Cairo graphics library for Guile Scheme.
819 Guile-Cairo is complete, wrapping almost all of the Cairo API. It is API
820 stable, providing a firm base on which to do graphics work. Finally, and
821 importantly, it is pleasant to use. You get a powerful and well-maintained
822 graphics library with all of the benefits of Scheme: memory management,
823 exceptions, macros, and a dynamic programming environment.")
824 (license license:lgpl3+)))
826 (define-public guile-rsvg
827 ;; Use a recent snapshot that supports Guile 2.2 and beyond.
828 (let ((commit "05c6a2fd67e4fea1a7c3ff776729dc931bae6678")
832 (version (string-append "2.18.1-" revision "."
833 (string-take commit 7)))
836 (uri (string-append "https://gitlab.com/wingo/guile-rsvg/"
837 "repository/archive.tar.gz?ref="
841 "0vdzjx8l5nc4y2xjqs0g1rqn1zrwfsm30brh5gz00r1x41a2pvv2"))
842 (patches (search-patches "guile-rsvg-pkgconfig.patch"))
843 (modules '((guix build utils)))
846 (substitute* (find-files "." "Makefile\\.am")
847 (("/share/guile/site")
848 "/share/guile/site/@GUILE_EFFECTIVE_VERSION@"))
850 (file-name (string-append name "-" version ".tar.gz"))))
851 (build-system gnu-build-system)
853 `(#:phases (modify-phases %standard-phases
856 (invoke "autoreconf" "-vfi"))))))
857 (native-inputs `(("pkg-config" ,pkg-config)
858 ("autoconf" ,autoconf)
859 ("automake" ,automake)
861 ("texinfo" ,texinfo)))
862 (inputs `(("guile" ,guile-2.2)
864 ("guile-lib" ,guile-lib))) ;for (unit-test)
865 (propagated-inputs `(("guile-cairo" ,guile-cairo)))
866 (synopsis "Render SVG images using Cairo from Guile")
868 "Guile-RSVG wraps the RSVG library for Guile, allowing you to render SVG
869 images onto Cairo surfaces.")
870 (home-page "http://wingolog.org/projects/guile-rsvg/")
871 (license license:lgpl2.1+))))
873 (define-public guile-present
875 (name "guile-present")
879 (uri (string-append "http://wingolog.org/pub/guile-present/"
880 "guile-present-" version ".tar.gz"))
883 "1qam447m05sxxv6x8dlzg7qnyfc4dh8apjw1idpfhpns671gfr6m"))
884 (patches (search-patches "guile-present-coding.patch"))))
885 (build-system gnu-build-system)
888 (modify-phases %standard-phases
889 (add-after 'install 'post-install
890 (lambda* (#:key inputs outputs #:allow-other-keys)
891 (let* ((out (assoc-ref outputs "out"))
892 (bin (string-append out "/bin"))
893 (guile (assoc-ref inputs "guile")))
894 (substitute* (find-files bin ".*")
896 (string-append guile "/bin/guile -L "
897 out "/share/guile/site/2.0 -C "
898 out "/share/guile/site/2.0 "))))
900 (native-inputs `(("pkg-config" ,pkg-config)))
901 (inputs `(("guile" ,guile-2.2)))
903 ;; These are used by the (present …) modules.
904 `(("guile-lib" ,guile-lib)
905 ("guile-cairo" ,guile-cairo)
906 ("guile-rsvg" ,guile-rsvg)))
907 (home-page "http://wingolog.org/software/guile-present/")
908 (synopsis "Create SVG or PDF presentations in Guile")
910 "Guile-Present defines a declarative vocabulary for presentations,
911 together with tools to render presentation documents as SVG or PDF.
912 Guile-Present can be used to make presentations programmatically, but also
913 includes a tools to generate PDF presentations out of Org mode and Texinfo
915 (license license:lgpl3+)))
917 (define-public guile-gnome
924 (string-append "mirror://gnu/" name
925 "/guile-gnome-platform/guile-gnome-platform-"
929 "1gnf3j96nip5kl99a268i0dy1hj7s1cfs66sps3zwysnkd7qr399"))))
930 (build-system gnu-build-system)
932 `(("pkg-config" ,pkg-config)
934 ;;("corba" ,corba) ; not packaged yet
936 ("gobject-introspection" ,gobject-introspection)
937 ;;("gthread" ,gthread) ; not packaged yet
938 ("gnome-vfs" ,gnome-vfs)
939 ("gdk-pixbuf" ,gdk-pixbuf)
941 ("libglade" ,libglade)
942 ("libgnome" ,libgnome)
943 ("libgnomecanvas" ,libgnomecanvas)
944 ("libgnomeui" ,libgnomeui)
948 (inputs `(("guile" ,guile-2.2)))
950 `(("guile-cairo" ,guile-cairo)
952 ("guile-lib" ,guile-lib)))
955 #:phases (modify-phases %standard-phases
956 (add-before 'configure 'pre-configure
957 (lambda* (#:key outputs #:allow-other-keys)
958 (let ((out (assoc-ref outputs "out")))
959 (substitute* (find-files "." "^Makefile.in$")
960 (("guilesite :=.*guile/site" all)
961 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
963 (outputs '("out" "debug"))
964 (synopsis "Guile interface for GTK+ programming for GNOME")
966 "Includes guile-clutter, guile-gnome-gstreamer,
967 guile-gnome-platform (GNOME developer libraries), and guile-gtksourceview.")
968 (home-page "https://www.gnu.org/software/guile-gnome/")
969 (license license:gpl2+)
970 (properties '((upstream-name . "guile-gnome-platform")
971 (ftp-directory . "/gnu/guile-gnome/guile-gnome-platform")))))
977 (define-public cairomm
983 (uri (string-append "https://www.cairographics.org/releases/"
984 name "-" version ".tar.gz"))
987 "16fmigxsaz85c3lgcls7biwyz8zy8c8h3jndfm54cxxas3a7zi25"))))
988 (build-system gnu-build-system)
990 ;; The examples lack -lcairo.
991 '(#:make-flags '("LDFLAGS=-lcairo")))
992 (native-inputs `(("pkg-config" ,pkg-config)))
994 `(("libsigc++" ,libsigc++)
995 ("freetype" ,freetype)
996 ("fontconfig" ,fontconfig)
998 (home-page "https://cairographics.org/")
999 (synopsis "C++ bindings to the Cairo 2D graphics library")
1001 "Cairomm provides a C++ programming interface to the Cairo 2D graphics
1003 (license license:lgpl2.0+)))
1005 (define-public pangomm
1011 (uri (string-append "mirror://gnome/sources/" name "/"
1012 (version-major+minor version) "/"
1013 name "-" version ".tar.xz"))
1016 "1bz3gciff23bpw9bqc4v2l3lkq9w7394v3a4jxkvx0ap5lmfwqlp"))))
1017 (build-system gnu-build-system)
1018 (native-inputs `(("pkg-config" ,pkg-config)))
1021 ("cairomm" ,cairomm)
1024 (home-page "http://www.pango.org/")
1025 (synopsis "C++ interface to the Pango text rendering library")
1027 "Pangomm provides a C++ programming interface to the Pango text rendering
1029 (license license:lgpl2.1+)))
1031 (define-public atkmm
1037 (uri (string-append "mirror://gnome/sources/" name "/"
1038 (version-major+minor version) "/"
1039 name "-" version ".tar.xz"))
1042 "1gaqwhviadsmy0fsr47686yglv1p4mpkamj0in127bz2b5bki5gz"))))
1043 (build-system gnu-build-system)
1044 (native-inputs `(("pkg-config" ,pkg-config)))
1046 `(("glibmm" ,glibmm) ("atk" ,atk)))
1047 (home-page "https://www.gtkmm.org")
1048 (synopsis "C++ interface to the ATK accessibility library")
1050 "ATKmm provides a C++ programming interface to the ATK accessibility
1052 (license license:lgpl2.1+)))
1054 (define-public gtkmm
1060 (uri (string-append "mirror://gnome/sources/" name "/"
1061 (version-major+minor version) "/"
1062 name "-" version ".tar.xz"))
1065 "1400535lhyya462pfx8bp11k3mg3jsbdghlpygskd5ai665dkbwi"))))
1066 (build-system gnu-build-system)
1067 (native-inputs `(("pkg-config" ,pkg-config)
1068 ("glib" ,glib "bin") ;for 'glib-compile-resources'
1069 ("xorg-server" ,xorg-server-for-tests)))
1071 `(("pangomm" ,pangomm)
1072 ("cairomm" ,cairomm)
1075 ("glibmm" ,glibmm)))
1077 `(;; XXX: Tests require C++14 or later. Remove this when the default
1078 ;; compiler is >= GCC6.
1079 #:configure-flags '("CXXFLAGS=-std=gnu++14")
1080 #:disallowed-references (,xorg-server-for-tests)
1081 #:phases (modify-phases %standard-phases
1082 (add-before 'check 'run-xvfb
1083 (lambda* (#:key inputs #:allow-other-keys)
1084 (let ((xorg-server (assoc-ref inputs "xorg-server")))
1085 ;; Tests such as 'object_move/test' require a running
1087 (system (string-append xorg-server "/bin/Xvfb :1 &"))
1088 (setenv "DISPLAY" ":1")
1089 ;; Don't fail because of the missing /etc/machine-id.
1090 (setenv "DBUS_FATAL_WARNINGS" "0")
1092 (home-page "https://gtkmm.org/")
1094 "C++ interface to the GTK+ graphical user interface library")
1096 "gtkmm is the official C++ interface for the popular GUI library GTK+.
1097 Highlights include typesafe callbacks, and a comprehensive set of widgets that
1098 are easily extensible via inheritance. You can create user interfaces either
1099 in code or with the Glade User Interface designer, using libglademm. There's
1100 extensive documentation, including API reference and a tutorial.")
1101 (license license:lgpl2.1+)))
1104 (define-public gtkmm-2
1105 (package (inherit gtkmm)
1110 (uri (string-append "mirror://gnome/sources/" name "/"
1111 (version-major+minor version) "/"
1112 name "-" version ".tar.xz"))
1115 "0wkbzvsx4kgw16f6xjdc1dz7f77ldngdila4yi5lw2zrgcxsb006"))))
1117 '(#:configure-flags '("CPPFLAGS=-std=c++11"))) ; required by libsigc++
1118 (native-inputs `(("pkg-config" ,pkg-config)))
1120 `(("pangomm" ,pangomm)
1121 ("cairomm" ,cairomm)
1124 ("glibmm" ,glibmm)))))
1126 (define-public gtksourceviewmm
1128 (name "gtksourceviewmm")
1132 (uri (string-append "mirror://gnome/sources/" name "/"
1133 (version-major+minor version) "/"
1134 name "-" version ".tar.xz"))
1136 (base32 "0fgvmhm4h4qmxig87qvangs6ijw53mi40siz7pixlxbrsgiil22i"))))
1137 (build-system gnu-build-system)
1139 `(("pkg-config" ,pkg-config)))
1141 ;; In 'Requires' of gtksourceviewmm-3.0.pc.
1142 `(("glibmm" ,glibmm)
1144 ("gtksourceview" ,gtksourceview)))
1145 (synopsis "C++ interface to the GTK+ 'GtkTextView' widget")
1147 "gtksourceviewmm is a portable C++ library that extends the standard GTK+
1148 framework for multiline text editing with support for configurable syntax
1149 highlighting, unlimited undo/redo, search and replace, a completion framework,
1150 printing and other features typical of a source code editor.")
1151 (license license:lgpl2.1+)
1152 (home-page "https://developer.gnome.org/gtksourceview/")))
1155 ;;; Python bindings.
1158 (define-public python-pycairo
1160 (name "python-pycairo")
1165 (uri (string-append "https://github.com/pygobject/pycairo/releases/download/v"
1166 version "/pycairo-" version ".tar.gz"))
1169 "165n0g7gp2a0qi8558snvfans17x83jv2lv7bx4vr1rxjbn3a2hg"))))
1170 (build-system python-build-system)
1172 `(("pkg-config" ,pkg-config)
1173 ("python-pytest" ,python-pytest)))
1174 (propagated-inputs ;pycairo.pc references cairo
1175 `(("cairo" ,cairo)))
1176 (home-page "https://cairographics.org/pycairo/")
1177 (synopsis "Python bindings for cairo")
1179 "Pycairo is a set of Python bindings for the Cairo graphics library.")
1180 (license license:lgpl3+)
1181 (properties `((python2-variant . ,(delay python2-pycairo))))))
1183 (define-public python2-pycairo
1184 (let ((pycairo (package-with-python2
1185 (strip-python2-variant python-pycairo))))
1189 `(("python2-funcsigs" ,python2-funcsigs)
1190 ,@(package-propagated-inputs pycairo)))
1191 ;; Dual-licensed under LGPL 2.1 or Mozilla Public License 1.1
1192 (license (list license:lgpl2.1 license:mpl1.1)))))
1194 (define-public python2-pygtk
1196 (name "python2-pygtk")
1201 (uri (string-append "mirror://gnome/sources"
1202 "/pygtk/" (version-major+minor version)
1203 "/pygtk-" version ".tar.bz2"))
1206 "04k942gn8vl95kwf0qskkv6npclfm31d78ljkrkgyqxxcni1w76d"))))
1207 (build-system gnu-build-system)
1209 "doc")) ;13 MiB of gtk-doc HTML
1211 `(("pkg-config" ,pkg-config)))
1213 `(("python" ,python-2)
1214 ("libglade" ,libglade)
1217 `(("python-pycairo" ,python2-pycairo) ;loaded at runtime
1218 ("python-pygobject" ,python2-pygobject-2) ;referenced in pc file
1222 #:phases (modify-phases %standard-phases
1223 (add-before 'configure 'set-gtk-doc-directory
1224 (lambda* (#:key outputs #:allow-other-keys)
1225 ;; Install documentation to "doc".
1226 (let ((doc (assoc-ref outputs "doc")))
1227 (substitute* "docs/Makefile.in"
1228 (("TARGET_DIR = \\$\\(datadir\\)")
1229 (string-append "TARGET_DIR = " doc))))))
1230 (add-after 'configure 'fix-codegen
1231 (lambda* (#:key inputs #:allow-other-keys)
1232 (substitute* "pygtk-codegen-2.0"
1236 (assoc-ref inputs "python-pygobject") "\n")))))
1237 (add-after 'install 'install-pth
1238 (lambda* (#:key inputs outputs #:allow-other-keys)
1239 ;; pygtk's modules are stored in a subdirectory of
1240 ;; python's site-packages directory. Add a .pth file so
1241 ;; that python will add that subdirectory to its module
1243 (let* ((out (assoc-ref outputs "out"))
1244 (site (string-append out "/lib/python"
1245 ,(version-major+minor
1246 (package-version python-2))
1248 (call-with-output-file (string-append site "/pygtk.pth")
1250 (format port "gtk-2.0~%")))))))))
1251 (home-page "http://www.pygtk.org/")
1252 (synopsis "Python bindings for GTK+")
1254 "PyGTK allows you to write full featured GTK programs in Python. It is
1255 targeted at GTK 2.x, and can be used in conjunction with gnome-python to
1256 write GNOME applications.")
1257 (license license:lgpl2.1+)))
1259 (define-public perl-cairo
1266 "mirror://cpan/authors/id/X/XA/XAOC/Cairo-"
1270 "1i25kks408c54k2zxskvg54l5k3qadzm8n72ffga9jy7ic0h6j76"))))
1271 (build-system perl-build-system)
1273 `(("perl-extutils-depends" ,perl-extutils-depends)
1274 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1276 `(("cairo" ,cairo)))
1277 (home-page "https://metacpan.org/release/Cairo")
1278 (synopsis "Perl interface to the cairo 2d vector graphics library")
1279 (description "Cairo provides Perl bindings for the vector graphics library
1280 cairo. It supports multiple output targets, including PNG, PDF and SVG. Cairo
1281 produces identical output on all those targets.")
1282 (license license:lgpl2.1+)))
1284 (define-public perl-gtk2
1290 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Gtk2-"
1294 "1044rj3wbfmgaif2jb0k28m2aczli6ai2n5yvn6pr7zjyw16kvd2"))))
1295 (build-system perl-build-system)
1297 `(("perl-extutils-depends" ,perl-extutils-depends)
1298 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1300 `(("gtk+" ,gtk+-2)))
1302 `(("perl-pango" ,perl-pango)))
1303 (home-page "https://metacpan.org/release/Gtk2")
1304 (synopsis "Perl interface to the 2.x series of the Gimp Toolkit library")
1305 (description "Perl bindings to the 2.x series of the Gtk+ widget set.
1306 This module allows you to write graphical user interfaces in a Perlish and
1307 object-oriented way, freeing you from the casting and memory management in C,
1308 yet remaining very close in spirit to original API.")
1309 (license license:lgpl2.1+)))
1311 (define-public perl-pango
1317 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Pango-"
1321 "0wdcidnfnb6nm79fzfs39ivawj3x8m98a147fmcxgv1zvwia9c1l"))))
1322 (build-system perl-build-system)
1324 `(("perl-extutils-depends" ,perl-extutils-depends)
1325 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1327 `(("pango" ,pango)))
1329 `(("perl-cairo" ,perl-cairo)
1330 ("perl-glib" ,perl-glib)))
1331 (home-page "https://metacpan.org/release/Pango")
1332 (synopsis "Layout and render international text")
1333 (description "Pango is a library for laying out and rendering text, with an
1334 emphasis on internationalization. Pango can be used anywhere that text layout
1335 is needed, but using Pango in conjunction with Cairo and/or Gtk2 provides a
1336 complete solution with high quality text handling and graphics rendering.
1338 Dynamically loaded modules handle text layout for particular combinations of
1339 script and font backend. Pango provides a wide selection of modules, including
1340 modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts.
1341 Virtually all of the world's major scripts are supported.
1343 In addition to the low level layout rendering routines, Pango includes
1344 @code{Pango::Layout}, a high level driver for laying out entire blocks of text,
1345 and routines to assist in editing internationalized text.")
1346 (license license:lgpl2.1+)))
1348 (define-public girara
1355 (string-append "https://pwmt.org/projects/girara/download/girara-"
1359 "0lkxrfna818wkkr2f6mdzf15y5z8xl1b9592ylmzjbqsqya3w7x8"))))
1360 (native-inputs `(("pkg-config" ,pkg-config)
1362 ("gettext" ,gettext-minimal)
1363 ("glib:bin" ,glib "bin")
1364 ("xorg-server" ,xorg-server-for-tests)))
1365 ;; Listed in 'Requires.private' of 'girara.pc'.
1366 (propagated-inputs `(("gtk+" ,gtk+)))
1368 `(#:phases (modify-phases %standard-phases
1369 (add-before 'check 'start-xserver
1370 ;; Tests require a running X server.
1371 (lambda* (#:key inputs #:allow-other-keys)
1372 (let ((xorg-server (assoc-ref inputs "xorg-server"))
1374 (setenv "DISPLAY" display)
1376 ;; On busy machines, tests may take longer than
1377 ;; the default of four seconds.
1378 (setenv "CK_DEFAULT_TIMEOUT" "20")
1380 ;; Don't fail due to missing '/etc/machine-id'.
1381 (setenv "DBUS_FATAL_WARNINGS" "0")
1382 (zero? (system (string-append xorg-server "/bin/Xvfb "
1383 display " &")))))))))
1384 (build-system meson-build-system)
1385 (home-page "https://pwmt.org/projects/girara/")
1386 (synopsis "Library for minimalistic gtk+3 user interfaces")
1387 (description "Girara is a library that implements a user interface that
1388 focuses on simplicity and minimalism. Currently based on GTK+, a
1389 cross-platform widget toolkit, it provides an interface that focuses on three
1390 main components: a so-called view widget that represents the actual
1391 application, an input bar that is used to execute commands of the
1392 application and the status bar which provides the user with current
1394 (license license:zlib)))
1396 (define-public gtk-doc
1402 (uri (string-append "mirror://gnome/sources/" name "/"
1403 (version-major+minor version) "/"
1404 name "-" version ".tar.xz"))
1407 "0vwsdl61nvnmqswlz5j9m4hg7qirhazwcikcnqf9nx0c13vx6sz2"))))
1408 (build-system gnu-build-system)
1410 `(#:parallel-tests? #f
1412 (modify-phases %standard-phases
1413 (add-after 'unpack 'patch-gtk-doc-scan
1414 (lambda* (#:key inputs #:allow-other-keys)
1415 (substitute* "gtk-doc.xsl"
1416 (("http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl")
1417 (string-append (assoc-ref inputs "docbook-xsl")
1418 "/xml/xsl/docbook-xsl-"
1419 ,(package-version docbook-xsl)
1421 (("http://docbook.sourceforge.net/release/xsl/current/common/en.xml")
1422 (string-append (assoc-ref inputs "docbook-xsl")
1423 "/xml/xsl/docbook-xsl-"
1424 ,(package-version docbook-xsl)
1427 (add-after 'patch-gtk-doc-scan 'patch-test-out
1429 ;; sanity.sh counts the number of status lines. Since our
1430 ;; texlive regenerates the fonts every time and the font
1431 ;; generator metafont outputs a lot of extra lines, this
1432 ;; test would always fail. Disable it for now.
1433 (substitute* "tests/Makefile.in"
1434 (("empty.sh sanity.sh") "empty.sh"))
1436 (add-before 'build 'set-HOME
1438 ;; FIXME: dblatex with texlive-union does not find the built
1439 ;; metafonts, so it tries to generate them in HOME.
1440 (setenv "HOME" "/tmp")
1442 (add-before 'configure 'fix-docbook
1443 (lambda* (#:key inputs #:allow-other-keys)
1444 (substitute* "configure"
1445 ;; The configure check is overzealous about making sure that
1446 ;; things are in place -- it uses the xmlcatalog tool to make
1447 ;; sure that docbook-xsl is available, but this tool can only
1448 ;; look in one catalog file, unlike the $XML_CATALOG_FILES
1449 ;; variable that Guix defines. Fool the test by using the
1450 ;; docbook-xsl catalog explicitly and get on with life.
1451 (("\"\\$XML_CATALOG_FILE\" \
1452 \"http://docbook.sourceforge.net/release/xsl/")
1453 (string-append (car (find-files (assoc-ref inputs "docbook-xsl")
1455 " \"http://docbook.sourceforge.net/release/xsl/")))
1457 (add-after 'install 'wrap-executables
1458 (lambda* (#:key outputs #:allow-other-keys)
1459 (let ((out (assoc-ref outputs "out")))
1460 (for-each (lambda (prog)
1462 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))))
1463 (find-files (string-append out "/bin")))
1466 (list (string-append "--with-xml-catalog="
1467 (assoc-ref %build-inputs "docbook-xml")
1468 "/xml/dtd/docbook/catalog.xml"))))
1470 `(("pkg-config" ,pkg-config)
1471 ("itstool" ,itstool)
1473 ("gettext" ,gettext-minimal)
1478 ("xsltproc" ,libxslt)
1479 ("dblatex" ,dblatex)
1480 ("docbook-xml" ,docbook-xml-4.3)
1481 ("docbook-xsl" ,docbook-xsl)
1482 ("source-highlight" ,source-highlight)
1484 ("python-six" ,python-six)))
1485 (home-page "https://www.gtk.org/gtk-doc/")
1486 (synopsis "Documentation generator from C source code")
1488 "GTK-Doc generates API documentation from comments added to C code. It is
1489 typically used to document the public API of GTK+ and GNOME libraries, but it
1490 can also be used to document application code.")
1491 (license license:gpl2+)))
1493 (define-public gtk-engines
1495 (name "gtk-engines")
1499 (uri (string-append "mirror://gnome/sources/" name "/"
1500 (version-major+minor version) "/"
1501 name "-" version ".tar.bz2"))
1504 "1db65pb0j0mijmswrvpgkdabilqd23x22d95hp5kwxvcramq1dhm"))))
1505 (build-system gnu-build-system)
1508 `("--enable-animation")))
1510 `(("pkg-config" ,pkg-config)
1511 ("intltool" ,intltool)))
1513 ;; Don't propagate GTK+ to reduce "profile pollution".
1514 `(("gtk+" ,gtk+-2))) ; required by gtk-engines-2.pc
1515 (home-page "https://live.gnome.org/GnomeArt")
1516 (synopsis "Theming engines for GTK+ 2.x")
1518 "This package contains the standard GTK+ 2.x theming engines including
1519 Clearlooks, Crux, High Contrast, Industrial, LighthouseBlue, Metal, Mist,
1520 Redmond95 and ThinIce.")
1521 (license (list license:gpl2+ license:lgpl2.1+))))
1523 (define-public murrine
1529 (uri (string-append "mirror://gnome/sources/" name "/"
1530 (version-major+minor version) "/"
1531 name "-" version ".tar.xz"))
1534 "129cs5bqw23i76h3nmc29c9mqkm9460iwc8vkl7hs4xr07h8mip9"))))
1535 (build-system gnu-build-system)
1538 `("--enable-animation"
1539 "--enable-animationrtl")))
1541 `(("pkg-config" ,pkg-config)
1542 ("intltool" ,intltool)))
1544 `(("gtk+" ,gtk+-2)))
1545 (home-page "https://live.gnome.org/GnomeArt")
1546 (synopsis "Cairo-based theming engine for GTK+ 2.x")
1548 "Murrine is a cairo-based GTK+ theming engine. It is named after the
1549 glass artworks done by Venicians glass blowers.")
1550 (license license:gpl2+)))
1552 (define-public gtkspell3
1558 (uri (string-append "mirror://sourceforge/gtkspell/"
1559 version "/" name "-" version ".tar.xz"))
1562 "09jdicmpipmj4v84gnkqwbmj4lh8v0i6pn967rb9jx4zg2ia9x54"))))
1563 (build-system gnu-build-system)
1565 `(("intltool" ,intltool)
1566 ("pkg-config" ,pkg-config)))
1568 `(("gobject-introspection" ,gobject-introspection)
1572 `(("enchant" ,enchant-1.6))) ;gtkspell3-3.0.pc refers to it
1573 (home-page "http://gtkspell.sourceforge.net")
1574 (synopsis "Spell-checking addon for GTK's TextView widget")
1576 "GtkSpell provides word-processor-style highlighting and replacement of
1577 misspelled words in a GtkTextView widget.")
1578 (license license:gpl2+)))
1580 (define-public clipit
1587 "https://github.com/downloads/ClipIt/clipit-"
1591 "0jrwn8qfgb15rwspdp1p8hb1nc0ngmpvgr87d4k3lhlvqg2cfqva"))))
1592 (build-system gnu-build-system)
1594 `(("intltool" ,intltool)
1595 ("pkg-config" ,pkg-config)))
1597 `(("gtk+" ,gtk+-2)))
1598 (home-page "https://github.com/CristianHenzel/ClipIt")
1599 (synopsis "Lightweight GTK+ clipboard manager")
1601 "ClipIt is a clipboard manager with features such as a history, search
1602 thereof, global hotkeys and clipboard item actions. It was forked from
1603 Parcellite and adds bugfixes and features.")
1604 (license license:gpl2+)))
1606 (define-public graphene
1613 "https://github.com/ebassi/graphene/archive/"
1615 (file-name (string-append name "-" version ".tar.gz"))
1617 (base32 "1zd2daj7y590wnzn4jw0niyc4fnzgxrcl9i7nwhy8b25ks2hz5wq"))))
1618 (build-system gnu-build-system)
1620 `(#:configure-flags '("--enable-introspection=yes")
1622 (modify-phases %standard-phases
1623 (add-before 'configure 'autogen
1625 (zero? (system* "./autogen.sh")))))))
1627 `(("autoconf" ,autoconf)
1629 ("pkg-config" ,pkg-config)
1630 ("automake" ,automake)
1631 ("libtool" ,libtool)))
1633 `(("python" ,python)
1634 ("python-2" ,python-2)
1636 ("gobject-introspection" ,gobject-introspection)))
1637 (home-page "http://ebassi.github.io/graphene")
1638 (synopsis "Thin layer of graphic data types")
1639 (description "This library provides graphic types and their relative API;
1640 it does not deal with windowing system surfaces, drawing, scene graphs, or
1642 (license license:expat)))
1644 (define-public spread-sheet-widget
1646 (name "spread-sheet-widget")
1651 (uri (string-append "https://alpha.gnu.org/gnu/ssw/"
1652 name "-" version ".tar.gz"))
1654 (base32 "1h93yyh2by6yrmkwqg38nd5knids05k5nqzcihc1hdwgzg3c4b8y"))))
1655 (build-system gnu-build-system)
1657 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
1658 ("pkg-config" ,pkg-config)))
1659 ;; In 'Requires' of spread-sheet-widget.pc.
1663 (home-page "https://www.gnu.org/software/ssw/")
1664 (synopsis "Gtk+ widget for dealing with 2-D tabular data")
1666 "GNU Spread Sheet Widget is a library for Gtk+ which provides a widget for
1667 viewing and manipulating 2 dimensional tabular data in a manner similar to many
1668 popular spread sheet programs.")
1669 (license license:gpl3+)))
1679 (url "https://github.com/v1cont/yad.git")
1680 (commit (string-append "v" version))))
1681 (file-name (git-file-name name version))
1683 (base32 "1vpgbjbkkbk5plicyklzpf65j1vlig4n4bi3qpvrz5bb09ic5alw"))))
1684 (build-system gnu-build-system)
1691 "--enable-icon-browser")
1693 (modify-phases %standard-phases
1696 (invoke "autoreconf" "-vif")
1697 (invoke "intltoolize" "--force" "--automake")
1702 `(("autoconf" ,autoconf)
1703 ("automake" ,automake)
1704 ("intltool" ,intltool)
1705 ("pkg-config" ,pkg-config)))
1706 (home-page "https://sourceforge.net/projects/yad-dialog/")
1707 (synopsis "GTK+ dialog boxes for shell scripts")
1709 "This program allows you to display GTK+ dialog boxes from command line or
1710 shell scripts. Example of how to use @code{yad} can be consulted at
1711 @url{https://sourceforge.net/p/yad-dialog/wiki/browse_pages/}.")
1712 (license license:gpl3+)))