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 python-xyz)
76 #:use-module (gnu packages guile)
77 #:use-module (gnu packages cups)
78 #:use-module (gnu packages xml)
79 #:use-module (gnu packages xorg)
80 #:use-module (gnu packages xdisorg)
81 #:use-module (srfi srfi-1)
82 #:use-module (srfi srfi-26))
90 (uri (string-append "mirror://gnome/sources/" name "/"
91 (version-major+minor version) "/"
92 name "-" version ".tar.xz"))
95 "1z7laf6qwv5zsqcnj222dm5f43c6f3liil0cgx4s4s62xjk1wfnd"))))
96 (build-system gnu-build-system)
97 (outputs '("out" "doc"))
100 (list (string-append "--with-html-dir="
101 (assoc-ref %outputs "doc")
102 "/share/gtk-doc/html"))))
103 (propagated-inputs `(("glib" ,glib))) ; required by atk.pc
105 `(("pkg-config" ,pkg-config)
106 ("glib" ,glib "bin") ; glib-mkenums, etc.
107 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
108 (synopsis "GNOME accessibility toolkit")
110 "ATK provides the set of accessibility interfaces that are implemented
111 by other toolkits and applications. Using the ATK interfaces, accessibility
112 tools have full access to view and control running applications.")
113 (license license:lgpl2.0+)
114 (home-page "https://developer.gnome.org/atk/")))
122 (uri (string-append "https://cairographics.org/releases/cairo-"
126 "0c930mk5xr2bshbdljv005j3j8zr47gqmkry3q6qgvqky6rjjysy"))))
127 (build-system gnu-build-system)
129 `(("fontconfig" ,fontconfig)
130 ("freetype" ,freetype)
135 ("libxrender" ,libxrender)
138 `(("ghostscript" ,ghostscript)
139 ("libspectre" ,libspectre)
141 ("xorgproto" ,xorgproto)
144 `(("pkg-config" ,pkg-config)
145 ("python" ,python-wrapper)))
147 `(#:tests? #f ; see http://lists.gnu.org/archive/html/bug-guix/2013-06/msg00085.html
148 #:configure-flags '("--enable-tee"))) ; needed for GNU Icecat
149 (synopsis "2D graphics library")
151 "Cairo is a 2D graphics library with support for multiple output devices.
152 Currently supported output targets include the X Window System (via both
153 Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file
154 output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.
156 Cairo is designed to produce consistent output on all output media while
157 taking advantage of display hardware acceleration when available
158 eg. through the X Render Extension).
160 The cairo API provides operations similar to the drawing operators of
161 PostScript and PDF. Operations in cairo including stroking and filling cubic
162 Bézier splines, transforming and compositing translucent images, and
163 antialiased text rendering. All drawing operations can be transformed by any
164 affine transformation (scale, rotation, shear, etc.).")
165 (license license:lgpl2.1) ; or Mozilla Public License 1.1
166 (home-page "https://cairographics.org/")))
168 (define-public cairo-xcb
174 ,@(package-inputs cairo)))
178 '("--enable-xlib-xcb" "--enable-gl" "--enable-egl")))
179 (synopsis "2D graphics library (with X11 support)")))
181 (define-public harfbuzz
187 (uri (string-append "https://www.freedesktop.org/software/"
188 "harfbuzz/release/harfbuzz-"
192 "047q63jr513azf3g1y7f5xn60b4jdjs9zsmrx04sfw5rasyzrk5p"))))
193 (build-system gnu-build-system)
195 "bin")) ; 160K, only hb-view depend on cairo
199 ;; There are all in the Requires or Requires.private field of '.pc'.
201 ("graphite2" ,graphite2)
204 `(("gobject-introspection" ,gobject-introspection)
205 ("pkg-config" ,pkg-config)
206 ("python" ,python-wrapper)
209 `(#:configure-flags `("--with-graphite2"
212 "--bindir=" (assoc-ref %outputs "bin") "/bin"))))
213 (synopsis "OpenType text shaping engine")
215 "HarfBuzz is an OpenType text shaping engine.")
216 (license (license:x11-style "file://COPYING"
217 "See 'COPYING' in the distribution."))
218 (home-page "https://www.freedesktop.org/wiki/Software/HarfBuzz/")))
226 (uri (string-append "mirror://gnome/sources/pango/"
227 (version-major+minor version) "/"
228 name "-" version ".tar.xz"))
231 "17bwb7dgbncrfsmchlib03k9n3xaalirb39g3yb43gg8cg6p8aqx"))))
232 (build-system gnu-build-system)
234 ;; These are all in Requires or Requires.private of the '.pc' files.
237 ("fontconfig" ,fontconfig)
238 ("freetype" ,freetype)
240 ("harfbuzz" ,harfbuzz)))
244 ;; Some packages, such as Openbox, expect Pango to be built with the
245 ;; optional libxft support.
248 `(("pkg-config" ,pkg-config)
249 ("glib" ,glib "bin") ; glib-mkenums, etc.
250 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
251 (synopsis "GNOME text and font handling library")
253 "Pango is the core text and font handling library used in GNOME
254 applications. It has extensive support for the different writing systems
255 used throughout the world.")
256 (license license:lgpl2.0+)
257 (home-page "https://developer.gnome.org/pango/")))
259 (define-public pangox-compat
261 (name "pangox-compat")
265 (uri (string-append "mirror://gnome/sources/" name "/"
266 (version-major+minor version) "/"
267 name "-" version ".tar.xz"))
270 "0ip0ziys6mrqqmz4n71ays0kf5cs1xflj1gfpvs4fgy2nsrr482m"))))
271 (build-system gnu-build-system)
276 `(("intltool" ,intltool)
277 ("pkg-config" ,pkg-config)))
278 (home-page "https://developer.gnome.org/pango")
279 (synopsis "Obsolete pango functions")
280 (description "Pangox was a X backend to pango. It is now obsolete and no
281 longer provided by recent pango releases. pangox-compat provides the
282 functions which were removed.")
283 (license license:lgpl2.0+)))
291 (uri (string-append "https://download.drobilla.net/ganv-"
295 "0g7s5mp14qgbfjdql0k1s8464r21g47ssn5dws6jazsnw6njhl0l"))))
296 (build-system waf-build-system)
299 (modify-phases %standard-phases
300 (add-before 'configure 'set-flags
301 (lambda* (#:key outputs #:allow-other-keys)
302 ;; Compile with C++11, required by gtkmm.
303 (setenv "CXXFLAGS" "-std=c++11")
304 ;; Allow 'bin/ganv_bench' to find libganv-1.so.
306 (string-append "-Wl,-rpath="
307 (assoc-ref outputs "out") "/lib"))
309 #:python ,python-2 ;XXX: The bundled waf fails with Python 3.7.0.
310 #:tests? #f)) ; no check target
315 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
316 ("pkg-config" ,pkg-config)))
317 (home-page "https://drobilla.net/software/ganv/")
318 (synopsis "GTK+ widget for interactive graph-like environments")
320 "Ganv is an interactive GTK+ widget for interactive “boxes and lines” or
321 graph-like environments, e.g. modular synths or finite state machine
323 (license license:gpl3+)))
325 (define-public ganv-devel
326 (let ((commit "12f7d6b0438c94dd87f773a92eee3453d971846e")
331 (version (string-append "1.5.4-" revision "."
332 (string-take commit 9)))
336 (url "https://git.drobilla.net/ganv.git")
338 (file-name (git-file-name name version))
341 "1cr8w02lr6bk9mkxa12j3imq721b2an2yn4bj5wnwmpm91ddn2gi")))))))
343 (define-public gtksourceview-2
345 (name "gtksourceview")
346 (version "2.10.5") ; This is the last version which builds against gtk+2
349 (uri (string-append "mirror://gnome/sources/" name "/"
350 (version-major+minor version) "/"
351 name "-" version ".tar.bz2"))
354 "07hrabhpl6n8ajz10s0d960jdwndxs87szxyn428mpxi8cvpg1f5"))))
355 (build-system gnu-build-system)
357 `(("intltool" ,intltool)
358 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
359 ("pkg-config" ,pkg-config)
361 ("xorg-server" ,xorg-server)
362 ("shared-mime-info" ,shared-mime-info)))
364 ;; As per the pkg-config file.
366 ("libxml2" ,libxml2)))
369 ;; Unfortunately, some of the tests in "make check" are highly dependent
370 ;; on the environment therefore, some black magic is required.
371 (modify-phases %standard-phases
372 (add-before 'check 'start-xserver
373 (lambda* (#:key inputs #:allow-other-keys)
374 (let ((xorg-server (assoc-ref inputs "xorg-server"))
375 (mime (assoc-ref inputs "shared-mime-info")))
377 ;; There must be a running X server and make check doesn't start one.
378 ;; Therefore we must do it.
379 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
380 (setenv "DISPLAY" ":1")
382 ;; The .lang files must be found in $XDG_DATA_HOME/gtksourceview-2.0
383 (system "ln -s gtksourceview gtksourceview-2.0")
384 (setenv "XDG_DATA_HOME" (getcwd))
386 ;; Finally, the mimetypes must be available.
387 (setenv "XDG_DATA_DIRS" (string-append mime "/share/")))
389 (synopsis "Widget that extends the standard GTK+ 2.x 'GtkTextView' widget")
391 "GtkSourceView is a portable C library that extends the standard GTK+
392 framework for multiline text editing with support for configurable syntax
393 highlighting, unlimited undo/redo, search and replace, a completion framework,
394 printing and other features typical of a source code editor.")
395 (license license:lgpl2.0+)
396 (home-page "https://developer.gnome.org/gtksourceview/")))
398 (define-public gtksourceview
400 (name "gtksourceview")
404 (uri (string-append "mirror://gnome/sources/" name "/"
405 (version-major+minor version) "/"
406 name "-" version ".tar.xz"))
409 "1zinqid62zjcsq7vy1y4mq1qh3hzd3zj7p8np7g0bdqd37zvi6qy"))))
410 (build-system gnu-build-system)
413 (modify-phases %standard-phases
416 (lambda* (#:key inputs #:allow-other-keys)
417 (let ((xorg-server (assoc-ref inputs "xorg-server")))
418 ;; Tests require a running X server.
419 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
420 (setenv "DISPLAY" ":1")
421 ;; For the missing /etc/machine-id.
422 (setenv "DBUS_FATAL_WARNINGS" "0")
425 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
426 ("intltool" ,intltool)
428 ("gobject-introspection" ,gobject-introspection)
429 ("pkg-config" ,pkg-config)
432 ("xorg-server" ,xorg-server)
433 ("shared-mime-info" ,shared-mime-info)))
435 ;; gtksourceview-3.0.pc refers to all these.
438 ("libxml2" ,libxml2)))
439 (home-page "https://wiki.gnome.org/Projects/GtkSourceView")
440 (synopsis "GNOME source code widget")
441 (description "GtkSourceView is a text widget that extends the standard
442 GTK+ text widget GtkTextView. It improves GtkTextView by implementing syntax
443 highlighting and other features typical of a source code editor.")
444 (license license:lgpl2.1+)))
446 (define-public gdk-pixbuf
452 (uri (string-append "mirror://gnome/sources/" name "/"
453 (version-major+minor version) "/"
454 name "-" version ".tar.xz"))
457 "0ixfmnxjylx06mjaw116apymwi1a8rnkmkbbvqaxxg2pfwy9fl6x"))))
458 (build-system meson-build-system)
460 `(#:configure-flags '("-Dinstalled_tests=false")
462 (modify-phases %standard-phases
464 'unpack 'disable-failing-tests
466 (substitute* "tests/meson.build"
467 ;; XXX FIXME: This test fails on armhf machines with:
468 ;; SKIP Not enough memory to load bitmap image
469 ;; ERROR: cve-2015-4491 - too few tests run (expected 4, got 2)
470 ((".*'cve-2015-4491'.*") "")
471 ;; XXX FIXME: This test fails with:
472 ;; ERROR:pixbuf-jpeg.c:74:test_type9_rotation_exif_tag:
473 ;; assertion failed (error == NULL): Data differ
474 ;; (gdk-pixbuf-error-quark, 0)
475 ((".*'pixbuf-jpeg'.*") ""))
477 ;; The slow tests take longer than the specified timeout.
478 ,@(if (any (cute string=? <> (%current-system))
479 '("armhf-linux" "aarch64-linux"))
482 (invoke "meson" "test" "--timeout-multiplier" "5"))))
484 (add-before 'configure 'aid-install-script
485 (lambda* (#:key outputs #:allow-other-keys)
486 ;; "build-aux/post-install.sh" invokes `gdk-pixbuf-query-loaders`
487 ;; for updating loader.cache, but it's not on PATH. Make it use
488 ;; the one we're installing. XXX: Won't work when cross-compiling.
489 (substitute* "build-aux/post-install.sh"
490 (("gdk-pixbuf-query-loaders" match)
491 (string-append (assoc-ref outputs "out") "/bin/" match)))
494 `(;; Required by gdk-pixbuf-2.0.pc
497 ;; Used for testing and required at runtime.
498 ("shared-mime-info" ,shared-mime-info)))
500 `(("libjpeg" ,libjpeg)
504 `(("pkg-config" ,pkg-config)
505 ("gettext" ,gettext-minimal)
506 ("glib" ,glib "bin") ; glib-mkenums, etc.
507 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
508 (synopsis "GNOME image loading and manipulation library")
510 "GdkPixbuf is a library for image loading and manipulation developed
511 in the GNOME project.")
512 (license license:lgpl2.0+)
513 (home-page "https://developer.gnome.org/gdk-pixbuf/")))
515 ;; To build gdk-pixbuf with SVG support, we need librsvg, and librsvg depends
516 ;; on gdk-pixbuf, so this new varibale. Also, librsvg adds 90MiB to the
518 (define-public gdk-pixbuf+svg
519 (package (inherit gdk-pixbuf)
520 (name "gdk-pixbuf+svg")
522 `(("librsvg" ,librsvg)
523 ,@(package-inputs gdk-pixbuf)))
525 '(#:configure-flags '("-Dinstalled-tests=false")
526 #:tests? #f ; tested by the gdk-pixbuf package already
528 (modify-phases %standard-phases
529 (add-after 'install 'register-svg-loader
530 (lambda* (#:key inputs outputs #:allow-other-keys)
531 (let* ((out (assoc-ref outputs "out"))
532 (librsvg (assoc-ref inputs "librsvg"))
535 (find-files out "^libpixbufloader-.*\\.so$")
536 (find-files librsvg "^libpixbufloader-.*\\.so$")))
537 (gdk-pixbuf-query-loaders
538 (string-append out "/bin/gdk-pixbuf-query-loaders")))
540 gdk-pixbuf-query-loaders
544 "GNOME image loading and manipulation library, with SVG support")))
546 (define-public at-spi2-core
548 (name "at-spi2-core")
552 (uri (string-append "mirror://gnome/sources/" name "/"
553 (version-major+minor version) "/"
554 name "-" version ".tar.xz"))
557 "0596ghkamkxgv08r4a1pdhm06qd5zzgcfqsv64038w9xbvghq3n8"))))
558 (build-system gnu-build-system)
559 (outputs '("out" "doc"))
562 (list (string-append "--with-html-dir="
563 (assoc-ref %outputs "doc")
564 "/share/gtk-doc/html"))
566 (modify-phases %standard-phases
568 ;; Run test-suite under a dbus session.
570 ;; Don't fail on missing '/etc/machine-id'.
571 (setenv "DBUS_FATAL_WARNINGS" "0")
572 (invoke "dbus-launch" "make" "check"))))))
574 ;; atspi-2.pc refers to all these.
579 ("libxtst" ,libxtst)))
581 `(("gobject-introspection" ,gobject-introspection)
582 ("intltool" ,intltool)
583 ("pkg-config" ,pkg-config)))
584 (synopsis "Assistive Technology Service Provider Interface, core components")
586 "The Assistive Technology Service Provider Interface, core components,
587 is part of the GNOME accessibility project.")
588 (license license:lgpl2.0+)
589 (home-page "https://projects.gnome.org/accessibility/")))
591 (define-public at-spi2-atk
597 (uri (string-append "mirror://gnome/sources/" name "/"
598 (version-major+minor version) "/"
599 name "-" version ".tar.xz"))
602 "0vkan52ab9vrkknnv8y4f1cspk8x7xd10qx92xk9ys71p851z2b1"))))
603 (build-system gnu-build-system)
606 (modify-phases %standard-phases
608 ;; Run test-suite under a dbus session.
610 (setenv "DBUS_FATAL_WARNINGS" "0")
611 (invoke "dbus-launch" "make" "check"))))))
613 `(("at-spi2-core" ,at-spi2-core))) ; required by atk-bridge-2.0.pc
617 `(("dbus" ,dbus) ; for testing
618 ("pkg-config" ,pkg-config)))
619 (synopsis "Assistive Technology Service Provider Interface, ATK bindings")
621 "The Assistive Technology Service Provider Interface
622 is part of the GNOME accessibility project.")
623 (license license:lgpl2.0+)
624 (home-page "https://projects.gnome.org/accessibility/")))
626 (define-public gtk+-2
632 (uri (string-append "mirror://gnome/sources/" name "/"
633 (version-major+minor version) "/"
634 name "-" version ".tar.xz"))
637 "0bjq7ja9gwcv6n5q4qkvdjjx40wsdiikksz1zqxvxsm5vlyskj5n"))
638 (patches (search-patches "gtk2-respect-GUIX_GTK2_PATH.patch"
639 "gtk2-respect-GUIX_GTK2_IM_MODULE_FILE.patch"
640 "gtk2-theme-paths.patch"))))
641 (build-system gnu-build-system)
642 (outputs '("out" "doc"))
645 ("gdk-pixbuf" ,gdk-pixbuf+svg)
649 ("libxcomposite" ,libxcomposite)
650 ("libxcursor" ,libxcursor)
651 ("libxdamage" ,libxdamage)
653 ("libxinerama" ,libxinerama)
654 ("libxrandr" ,libxrandr)))
657 ("gettext" ,gettext-minimal)
659 ("gobject-introspection" ,gobject-introspection)
660 ("pkg-config" ,pkg-config)
661 ("python-wrapper" ,python-wrapper)))
664 (list "--with-xinput=yes"
665 (string-append "--with-html-dir="
666 (assoc-ref %outputs "doc")
667 "/share/gtk-doc/html"))
670 'configure 'disable-tests
672 ;; FIXME: re-enable tests requiring an X server
673 (substitute* "gtk/Makefile.in"
674 (("SUBDIRS = theme-bits . tests") "SUBDIRS = theme-bits ."))
678 (list (search-path-specification
679 (variable "GUIX_GTK2_PATH")
680 (files '("lib/gtk-2.0")))))
681 (synopsis "Cross-platform toolkit for creating graphical user interfaces")
683 "GTK+, or the GIMP Toolkit, is a multi-platform toolkit for creating
684 graphical user interfaces. Offering a complete set of widgets, GTK+ is
685 suitable for projects ranging from small one-off tools to complete
686 application suites.")
687 (license license:lgpl2.0+)
688 (home-page "https://www.gtk.org/")))
691 (package (inherit gtk+-2)
693 ;; NOTE: When updating the version of 'gtk+', the hash of 'mate-themes' in
694 ;; mate.scm will also need to be updated.
698 (uri (string-append "mirror://gnome/sources/" name "/"
699 (version-major+minor version) "/"
700 name "-" version ".tar.xz"))
703 "14l8mimdm44r3h5pn5hzigl1z25jna8jxvb16l88v4nc4zj0afsv"))
704 (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch"
705 "gtk3-respect-GUIX_GTK3_IM_MODULE_FILE.patch"))
706 (modules '((guix build utils)))
709 ;; Version 3.24.2 was released with a typo that broke the build.
710 ;; See upstream commit 2905fc861acda3d134a198e56ef2f6c962ad3061
711 ;; at <https://gitlab.gnome.org/GNOME/gtk/tree/gtk-3-24>
712 (substitute* "docs/tools/shooter.c"
713 (("gdk_screen_get_dfeault") "gdk_screen_get_default"))
715 (outputs '("out" "bin" "doc"))
717 `(("at-spi2-atk" ,at-spi2-atk)
719 ("gdk-pixbuf" ,gdk-pixbuf+svg)
720 ("libepoxy" ,libepoxy)
721 ("libxcursor" ,libxcursor)
723 ("libxinerama" ,libxinerama)
724 ("libxkbcommon" ,libxkbcommon)
725 ("libxdamage" ,libxdamage)
729 ("wayland-protocols" ,wayland-protocols)))
731 `(("libxml2" ,libxml2)
732 ;; XXX: colord depends on mozjs (through polkit), which fails on
733 ;; on non-intel systems now.
735 ("cups" ,cups) ;for printing support
736 ;; XXX: rest depends on p11-kit, which fails on mips64el now.
738 ("json-glib" ,json-glib)))
742 ("gettext" ,gettext-minimal)
743 ("pkg-config" ,pkg-config)
744 ("gobject-introspection" ,gobject-introspection)
745 ("python-wrapper" ,python-wrapper)
746 ;; By using a special xorg-server for GTK+'s tests, we reduce the impact
747 ;; of updating xorg-server directly on the master branch.
748 ("xorg-server" ,xorg-server-for-tests)))
750 `(#:disallowed-references (,xorg-server-for-tests)
751 ;; 47 MiB goes to "out" (24 of which is locale data!), and 26 MiB goes
753 #:configure-flags (list (string-append "--with-html-dir="
754 (assoc-ref %outputs "doc")
755 "/share/gtk-doc/html")
756 ;; The header file <gdk/gdkwayland.h> is required
757 ;; by gnome-control-center
758 "--enable-wayland-backend"
759 ;; This is necessary to build both backends.
760 "--enable-x11-backend"
761 ;; This enables the HTML5 websocket backend.
762 "--enable-broadway-backend")
763 #:phases (modify-phases %standard-phases
764 (add-before 'configure 'pre-configure
766 ;; Disable most tests, failing in the chroot with the message:
767 ;; D-Bus library appears to be incorrectly set up; failed to read
768 ;; machine uuid: Failed to open "/etc/machine-id": No such file or
770 ;; See the manual page for dbus-uuidgen to correct this issue.
771 (substitute* "testsuite/Makefile.in"
772 (("SUBDIRS = gdk gtk a11y css reftests")
775 (add-after 'install 'move-desktop-files
776 ;; Move desktop files into 'bin' to avoid cycle references.
777 (lambda* (#:key outputs #:allow-other-keys)
778 (let ((out (assoc-ref outputs "out"))
779 (bin (assoc-ref outputs "bin")))
780 (mkdir-p (string-append bin "/share"))
781 (rename-file (string-append out "/share/applications")
782 (string-append bin "/share/applications"))
785 (list (search-path-specification
786 (variable "GUIX_GTK3_PATH")
787 (files '("lib/gtk-3.0")))))))
793 (define-public guile-cairo
799 (uri (string-append "mirror://savannah/guile-cairo/guile-cairo-"
803 "0p6xrhf2k6n5dybn88050za7h90gnd7534n62l53vsca187pwgdf"))
804 (modules '((guix build utils)))
808 ;; Install Scheme files in …/guile/site/X.Y.
809 (substitute* (find-files "." "^Makefile\\.in$")
810 (("^(.*)dir = (.*)/guile/site(.*)" _ name prefix suffix)
811 (string-append name "dir = " prefix
812 "/guile/site/@GUILE_EFFECTIVE_VERSION@"
815 (build-system gnu-build-system)
817 `(("guile-lib" ,guile-lib)
819 ("guile" ,guile-2.2)))
821 ;; The .pc file refers to 'cairo'.
824 `(("pkg-config" ,pkg-config)))
825 (home-page "https://www.nongnu.org/guile-cairo/")
826 (synopsis "Cairo bindings for GNU Guile")
828 "Guile-Cairo wraps the Cairo graphics library for Guile Scheme.
829 Guile-Cairo is complete, wrapping almost all of the Cairo API. It is API
830 stable, providing a firm base on which to do graphics work. Finally, and
831 importantly, it is pleasant to use. You get a powerful and well-maintained
832 graphics library with all of the benefits of Scheme: memory management,
833 exceptions, macros, and a dynamic programming environment.")
834 (license license:lgpl3+)))
836 (define-public guile-rsvg
837 ;; Use a recent snapshot that supports Guile 2.2 and beyond.
838 (let ((commit "05c6a2fd67e4fea1a7c3ff776729dc931bae6678")
842 (version (string-append "2.18.1-" revision "."
843 (string-take commit 7)))
846 (uri (string-append "https://gitlab.com/wingo/guile-rsvg/"
847 "repository/archive.tar.gz?ref="
851 "0vdzjx8l5nc4y2xjqs0g1rqn1zrwfsm30brh5gz00r1x41a2pvv2"))
852 (patches (search-patches "guile-rsvg-pkgconfig.patch"))
853 (modules '((guix build utils)))
856 (substitute* (find-files "." "Makefile\\.am")
857 (("/share/guile/site")
858 "/share/guile/site/@GUILE_EFFECTIVE_VERSION@"))
860 (file-name (string-append name "-" version ".tar.gz"))))
861 (build-system gnu-build-system)
863 `(#:phases (modify-phases %standard-phases
866 (invoke "autoreconf" "-vfi"))))))
867 (native-inputs `(("pkg-config" ,pkg-config)
868 ("autoconf" ,autoconf)
869 ("automake" ,automake)
871 ("texinfo" ,texinfo)))
872 (inputs `(("guile" ,guile-2.2)
874 ("guile-lib" ,guile-lib))) ;for (unit-test)
875 (propagated-inputs `(("guile-cairo" ,guile-cairo)))
876 (synopsis "Render SVG images using Cairo from Guile")
878 "Guile-RSVG wraps the RSVG library for Guile, allowing you to render SVG
879 images onto Cairo surfaces.")
880 (home-page "http://wingolog.org/projects/guile-rsvg/")
881 (license license:lgpl2.1+))))
883 (define-public guile-present
885 (name "guile-present")
889 (uri (string-append "http://wingolog.org/pub/guile-present/"
890 "guile-present-" version ".tar.gz"))
893 "1qam447m05sxxv6x8dlzg7qnyfc4dh8apjw1idpfhpns671gfr6m"))
894 (patches (search-patches "guile-present-coding.patch"))))
895 (build-system gnu-build-system)
898 (modify-phases %standard-phases
899 (add-after 'install 'post-install
900 (lambda* (#:key inputs outputs #:allow-other-keys)
901 (let* ((out (assoc-ref outputs "out"))
902 (bin (string-append out "/bin"))
903 (guile (assoc-ref inputs "guile")))
904 (substitute* (find-files bin ".*")
906 (string-append guile "/bin/guile -L "
907 out "/share/guile/site/2.0 -C "
908 out "/share/guile/site/2.0 "))))
910 (native-inputs `(("pkg-config" ,pkg-config)))
911 (inputs `(("guile" ,guile-2.2)))
913 ;; These are used by the (present …) modules.
914 `(("guile-lib" ,guile-lib)
915 ("guile-cairo" ,guile-cairo)
916 ("guile-rsvg" ,guile-rsvg)))
917 (home-page "http://wingolog.org/software/guile-present/")
918 (synopsis "Create SVG or PDF presentations in Guile")
920 "Guile-Present defines a declarative vocabulary for presentations,
921 together with tools to render presentation documents as SVG or PDF.
922 Guile-Present can be used to make presentations programmatically, but also
923 includes a tools to generate PDF presentations out of Org mode and Texinfo
925 (license license:lgpl3+)))
927 (define-public guile-gnome
934 (string-append "mirror://gnu/" name
935 "/guile-gnome-platform/guile-gnome-platform-"
939 "1gnf3j96nip5kl99a268i0dy1hj7s1cfs66sps3zwysnkd7qr399"))))
940 (build-system gnu-build-system)
942 `(("pkg-config" ,pkg-config)
944 ;;("corba" ,corba) ; not packaged yet
946 ("gobject-introspection" ,gobject-introspection)
947 ;;("gthread" ,gthread) ; not packaged yet
948 ("gnome-vfs" ,gnome-vfs)
949 ("gdk-pixbuf" ,gdk-pixbuf)
951 ("libglade" ,libglade)
952 ("libgnome" ,libgnome)
953 ("libgnomecanvas" ,libgnomecanvas)
954 ("libgnomeui" ,libgnomeui)
958 (inputs `(("guile" ,guile-2.2)))
960 `(("guile-cairo" ,guile-cairo)
962 ("guile-lib" ,guile-lib)))
965 #:phases (modify-phases %standard-phases
966 (add-before 'configure 'pre-configure
967 (lambda* (#:key outputs #:allow-other-keys)
968 (let ((out (assoc-ref outputs "out")))
969 (substitute* (find-files "." "^Makefile.in$")
970 (("guilesite :=.*guile/site" all)
971 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
973 (outputs '("out" "debug"))
974 (synopsis "Guile interface for GTK+ programming for GNOME")
976 "Includes guile-clutter, guile-gnome-gstreamer,
977 guile-gnome-platform (GNOME developer libraries), and guile-gtksourceview.")
978 (home-page "https://www.gnu.org/software/guile-gnome/")
979 (license license:gpl2+)
980 (properties '((upstream-name . "guile-gnome-platform")
981 (ftp-directory . "/gnu/guile-gnome/guile-gnome-platform")))))
987 (define-public cairomm
993 (uri (string-append "https://www.cairographics.org/releases/"
994 name "-" version ".tar.gz"))
997 "16fmigxsaz85c3lgcls7biwyz8zy8c8h3jndfm54cxxas3a7zi25"))))
998 (build-system gnu-build-system)
1000 ;; The examples lack -lcairo.
1001 '(#:make-flags '("LDFLAGS=-lcairo")))
1002 (native-inputs `(("pkg-config" ,pkg-config)))
1004 `(("libsigc++" ,libsigc++)
1005 ("freetype" ,freetype)
1006 ("fontconfig" ,fontconfig)
1008 (home-page "https://cairographics.org/")
1009 (synopsis "C++ bindings to the Cairo 2D graphics library")
1011 "Cairomm provides a C++ programming interface to the Cairo 2D graphics
1013 (license license:lgpl2.0+)))
1015 (define-public pangomm
1021 (uri (string-append "mirror://gnome/sources/" name "/"
1022 (version-major+minor version) "/"
1023 name "-" version ".tar.xz"))
1026 "1bz3gciff23bpw9bqc4v2l3lkq9w7394v3a4jxkvx0ap5lmfwqlp"))))
1027 (build-system gnu-build-system)
1028 (native-inputs `(("pkg-config" ,pkg-config)))
1031 ("cairomm" ,cairomm)
1034 (home-page "http://www.pango.org/")
1035 (synopsis "C++ interface to the Pango text rendering library")
1037 "Pangomm provides a C++ programming interface to the Pango text rendering
1039 (license license:lgpl2.1+)))
1041 (define-public atkmm
1047 (uri (string-append "mirror://gnome/sources/" name "/"
1048 (version-major+minor version) "/"
1049 name "-" version ".tar.xz"))
1052 "1gaqwhviadsmy0fsr47686yglv1p4mpkamj0in127bz2b5bki5gz"))))
1053 (build-system gnu-build-system)
1054 (native-inputs `(("pkg-config" ,pkg-config)))
1056 `(("glibmm" ,glibmm) ("atk" ,atk)))
1057 (home-page "https://www.gtkmm.org")
1058 (synopsis "C++ interface to the ATK accessibility library")
1060 "ATKmm provides a C++ programming interface to the ATK accessibility
1062 (license license:lgpl2.1+)))
1064 (define-public gtkmm
1070 (uri (string-append "mirror://gnome/sources/" name "/"
1071 (version-major+minor version) "/"
1072 name "-" version ".tar.xz"))
1075 "1400535lhyya462pfx8bp11k3mg3jsbdghlpygskd5ai665dkbwi"))))
1076 (build-system gnu-build-system)
1077 (native-inputs `(("pkg-config" ,pkg-config)
1078 ("glib" ,glib "bin") ;for 'glib-compile-resources'
1079 ("xorg-server" ,xorg-server-for-tests)))
1081 `(("pangomm" ,pangomm)
1082 ("cairomm" ,cairomm)
1085 ("glibmm" ,glibmm)))
1087 `(;; XXX: Tests require C++14 or later. Remove this when the default
1088 ;; compiler is >= GCC6.
1089 #:configure-flags '("CXXFLAGS=-std=gnu++14")
1090 #:disallowed-references (,xorg-server-for-tests)
1091 #:phases (modify-phases %standard-phases
1092 (add-before 'check 'run-xvfb
1093 (lambda* (#:key inputs #:allow-other-keys)
1094 (let ((xorg-server (assoc-ref inputs "xorg-server")))
1095 ;; Tests such as 'object_move/test' require a running
1097 (system (string-append xorg-server "/bin/Xvfb :1 &"))
1098 (setenv "DISPLAY" ":1")
1099 ;; Don't fail because of the missing /etc/machine-id.
1100 (setenv "DBUS_FATAL_WARNINGS" "0")
1102 (home-page "https://gtkmm.org/")
1104 "C++ interface to the GTK+ graphical user interface library")
1106 "gtkmm is the official C++ interface for the popular GUI library GTK+.
1107 Highlights include typesafe callbacks, and a comprehensive set of widgets that
1108 are easily extensible via inheritance. You can create user interfaces either
1109 in code or with the Glade User Interface designer, using libglademm. There's
1110 extensive documentation, including API reference and a tutorial.")
1111 (license license:lgpl2.1+)))
1114 (define-public gtkmm-2
1115 (package (inherit gtkmm)
1120 (uri (string-append "mirror://gnome/sources/" name "/"
1121 (version-major+minor version) "/"
1122 name "-" version ".tar.xz"))
1125 "0wkbzvsx4kgw16f6xjdc1dz7f77ldngdila4yi5lw2zrgcxsb006"))))
1127 '(#:configure-flags '("CPPFLAGS=-std=c++11"))) ; required by libsigc++
1128 (native-inputs `(("pkg-config" ,pkg-config)))
1130 `(("pangomm" ,pangomm)
1131 ("cairomm" ,cairomm)
1134 ("glibmm" ,glibmm)))))
1136 (define-public gtksourceviewmm
1138 (name "gtksourceviewmm")
1142 (uri (string-append "mirror://gnome/sources/" name "/"
1143 (version-major+minor version) "/"
1144 name "-" version ".tar.xz"))
1146 (base32 "0fgvmhm4h4qmxig87qvangs6ijw53mi40siz7pixlxbrsgiil22i"))))
1147 (build-system gnu-build-system)
1149 `(("pkg-config" ,pkg-config)))
1151 ;; In 'Requires' of gtksourceviewmm-3.0.pc.
1152 `(("glibmm" ,glibmm)
1154 ("gtksourceview" ,gtksourceview)))
1155 (synopsis "C++ interface to the GTK+ 'GtkTextView' widget")
1157 "gtksourceviewmm is a portable C++ library that extends the standard GTK+
1158 framework for multiline text editing with support for configurable syntax
1159 highlighting, unlimited undo/redo, search and replace, a completion framework,
1160 printing and other features typical of a source code editor.")
1161 (license license:lgpl2.1+)
1162 (home-page "https://developer.gnome.org/gtksourceview/")))
1165 ;;; Python bindings.
1168 (define-public python-pycairo
1170 (name "python-pycairo")
1175 (uri (string-append "https://github.com/pygobject/pycairo/releases/download/v"
1176 version "/pycairo-" version ".tar.gz"))
1179 "165n0g7gp2a0qi8558snvfans17x83jv2lv7bx4vr1rxjbn3a2hg"))))
1180 (build-system python-build-system)
1182 `(("pkg-config" ,pkg-config)
1183 ("python-pytest" ,python-pytest)))
1184 (propagated-inputs ;pycairo.pc references cairo
1185 `(("cairo" ,cairo)))
1186 (home-page "https://cairographics.org/pycairo/")
1187 (synopsis "Python bindings for cairo")
1189 "Pycairo is a set of Python bindings for the Cairo graphics library.")
1190 (license license:lgpl3+)
1191 (properties `((python2-variant . ,(delay python2-pycairo))))))
1193 (define-public python2-pycairo
1194 (let ((pycairo (package-with-python2
1195 (strip-python2-variant python-pycairo))))
1199 `(("python2-funcsigs" ,python2-funcsigs)
1200 ,@(package-propagated-inputs pycairo)))
1201 ;; Dual-licensed under LGPL 2.1 or Mozilla Public License 1.1
1202 (license (list license:lgpl2.1 license:mpl1.1)))))
1204 (define-public python2-pygtk
1206 (name "python2-pygtk")
1211 (uri (string-append "mirror://gnome/sources"
1212 "/pygtk/" (version-major+minor version)
1213 "/pygtk-" version ".tar.bz2"))
1216 "04k942gn8vl95kwf0qskkv6npclfm31d78ljkrkgyqxxcni1w76d"))))
1217 (build-system gnu-build-system)
1219 "doc")) ;13 MiB of gtk-doc HTML
1221 `(("pkg-config" ,pkg-config)))
1223 `(("python" ,python-2)
1224 ("libglade" ,libglade)
1227 `(("python-pycairo" ,python2-pycairo) ;loaded at runtime
1228 ("python-pygobject" ,python2-pygobject-2) ;referenced in pc file
1232 #:phases (modify-phases %standard-phases
1233 (add-before 'configure 'set-gtk-doc-directory
1234 (lambda* (#:key outputs #:allow-other-keys)
1235 ;; Install documentation to "doc".
1236 (let ((doc (assoc-ref outputs "doc")))
1237 (substitute* "docs/Makefile.in"
1238 (("TARGET_DIR = \\$\\(datadir\\)")
1239 (string-append "TARGET_DIR = " doc))))))
1240 (add-after 'configure 'fix-codegen
1241 (lambda* (#:key inputs #:allow-other-keys)
1242 (substitute* "pygtk-codegen-2.0"
1246 (assoc-ref inputs "python-pygobject") "\n")))))
1247 (add-after 'install 'install-pth
1248 (lambda* (#:key inputs outputs #:allow-other-keys)
1249 ;; pygtk's modules are stored in a subdirectory of
1250 ;; python's site-packages directory. Add a .pth file so
1251 ;; that python will add that subdirectory to its module
1253 (let* ((out (assoc-ref outputs "out"))
1254 (site (string-append out "/lib/python"
1255 ,(version-major+minor
1256 (package-version python-2))
1258 (call-with-output-file (string-append site "/pygtk.pth")
1260 (format port "gtk-2.0~%")))))))))
1261 (home-page "http://www.pygtk.org/")
1262 (synopsis "Python bindings for GTK+")
1264 "PyGTK allows you to write full featured GTK programs in Python. It is
1265 targeted at GTK 2.x, and can be used in conjunction with gnome-python to
1266 write GNOME applications.")
1267 (license license:lgpl2.1+)))
1269 (define-public perl-cairo
1276 "mirror://cpan/authors/id/X/XA/XAOC/Cairo-"
1280 "1i25kks408c54k2zxskvg54l5k3qadzm8n72ffga9jy7ic0h6j76"))))
1281 (build-system perl-build-system)
1283 `(("perl-extutils-depends" ,perl-extutils-depends)
1284 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1286 `(("cairo" ,cairo)))
1287 (home-page "https://metacpan.org/release/Cairo")
1288 (synopsis "Perl interface to the cairo 2d vector graphics library")
1289 (description "Cairo provides Perl bindings for the vector graphics library
1290 cairo. It supports multiple output targets, including PNG, PDF and SVG. Cairo
1291 produces identical output on all those targets.")
1292 (license license:lgpl2.1+)))
1294 (define-public perl-gtk2
1300 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Gtk2-"
1304 "1044rj3wbfmgaif2jb0k28m2aczli6ai2n5yvn6pr7zjyw16kvd2"))))
1305 (build-system perl-build-system)
1307 `(("perl-extutils-depends" ,perl-extutils-depends)
1308 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1310 `(("gtk+" ,gtk+-2)))
1312 `(("perl-pango" ,perl-pango)))
1313 (home-page "https://metacpan.org/release/Gtk2")
1314 (synopsis "Perl interface to the 2.x series of the Gimp Toolkit library")
1315 (description "Perl bindings to the 2.x series of the Gtk+ widget set.
1316 This module allows you to write graphical user interfaces in a Perlish and
1317 object-oriented way, freeing you from the casting and memory management in C,
1318 yet remaining very close in spirit to original API.")
1319 (license license:lgpl2.1+)))
1321 (define-public perl-pango
1327 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Pango-"
1331 "0wdcidnfnb6nm79fzfs39ivawj3x8m98a147fmcxgv1zvwia9c1l"))))
1332 (build-system perl-build-system)
1334 `(("perl-extutils-depends" ,perl-extutils-depends)
1335 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1337 `(("pango" ,pango)))
1339 `(("perl-cairo" ,perl-cairo)
1340 ("perl-glib" ,perl-glib)))
1341 (home-page "https://metacpan.org/release/Pango")
1342 (synopsis "Layout and render international text")
1343 (description "Pango is a library for laying out and rendering text, with an
1344 emphasis on internationalization. Pango can be used anywhere that text layout
1345 is needed, but using Pango in conjunction with Cairo and/or Gtk2 provides a
1346 complete solution with high quality text handling and graphics rendering.
1348 Dynamically loaded modules handle text layout for particular combinations of
1349 script and font backend. Pango provides a wide selection of modules, including
1350 modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts.
1351 Virtually all of the world's major scripts are supported.
1353 In addition to the low level layout rendering routines, Pango includes
1354 @code{Pango::Layout}, a high level driver for laying out entire blocks of text,
1355 and routines to assist in editing internationalized text.")
1356 (license license:lgpl2.1+)))
1358 (define-public girara
1365 (string-append "https://pwmt.org/projects/girara/download/girara-"
1369 "1kc6n1mxjxa7wvwnqy94qfg8l9jvx9qrvrr2kc7m4g0z20x3a00p"))))
1370 (native-inputs `(("pkg-config" ,pkg-config)
1372 ("gettext" ,gettext-minimal)
1373 ("glib:bin" ,glib "bin")
1374 ("xorg-server" ,xorg-server-for-tests)))
1375 ;; Listed in 'Requires.private' of 'girara.pc'.
1376 (propagated-inputs `(("gtk+" ,gtk+)))
1378 `(#:phases (modify-phases %standard-phases
1379 (add-before 'check 'start-xserver
1380 ;; Tests require a running X server.
1381 (lambda* (#:key inputs #:allow-other-keys)
1382 (let ((xorg-server (assoc-ref inputs "xorg-server"))
1384 (setenv "DISPLAY" display)
1386 ;; On busy machines, tests may take longer than
1387 ;; the default of four seconds.
1388 (setenv "CK_DEFAULT_TIMEOUT" "20")
1390 ;; Don't fail due to missing '/etc/machine-id'.
1391 (setenv "DBUS_FATAL_WARNINGS" "0")
1392 (zero? (system (string-append xorg-server "/bin/Xvfb "
1393 display " &")))))))))
1394 (build-system meson-build-system)
1395 (home-page "https://pwmt.org/projects/girara/")
1396 (synopsis "Library for minimalistic gtk+3 user interfaces")
1397 (description "Girara is a library that implements a user interface that
1398 focuses on simplicity and minimalism. Currently based on GTK+, a
1399 cross-platform widget toolkit, it provides an interface that focuses on three
1400 main components: a so-called view widget that represents the actual
1401 application, an input bar that is used to execute commands of the
1402 application and the status bar which provides the user with current
1404 (license license:zlib)))
1406 (define-public gtk-doc
1412 (uri (string-append "mirror://gnome/sources/" name "/"
1413 (version-major+minor version) "/"
1414 name "-" version ".tar.xz"))
1417 "0vwsdl61nvnmqswlz5j9m4hg7qirhazwcikcnqf9nx0c13vx6sz2"))))
1418 (build-system gnu-build-system)
1420 `(#:parallel-tests? #f
1422 (modify-phases %standard-phases
1423 (add-after 'unpack 'patch-gtk-doc-scan
1424 (lambda* (#:key inputs #:allow-other-keys)
1425 (substitute* "gtk-doc.xsl"
1426 (("http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl")
1427 (string-append (assoc-ref inputs "docbook-xsl")
1428 "/xml/xsl/docbook-xsl-"
1429 ,(package-version docbook-xsl)
1431 (("http://docbook.sourceforge.net/release/xsl/current/common/en.xml")
1432 (string-append (assoc-ref inputs "docbook-xsl")
1433 "/xml/xsl/docbook-xsl-"
1434 ,(package-version docbook-xsl)
1437 (add-after 'patch-gtk-doc-scan 'patch-test-out
1439 ;; sanity.sh counts the number of status lines. Since our
1440 ;; texlive regenerates the fonts every time and the font
1441 ;; generator metafont outputs a lot of extra lines, this
1442 ;; test would always fail. Disable it for now.
1443 (substitute* "tests/Makefile.in"
1444 (("empty.sh sanity.sh") "empty.sh"))
1446 (add-before 'build 'set-HOME
1448 ;; FIXME: dblatex with texlive-union does not find the built
1449 ;; metafonts, so it tries to generate them in HOME.
1450 (setenv "HOME" "/tmp")
1452 (add-before 'configure 'fix-docbook
1453 (lambda* (#:key inputs #:allow-other-keys)
1454 (substitute* "configure"
1455 ;; The configure check is overzealous about making sure that
1456 ;; things are in place -- it uses the xmlcatalog tool to make
1457 ;; sure that docbook-xsl is available, but this tool can only
1458 ;; look in one catalog file, unlike the $XML_CATALOG_FILES
1459 ;; variable that Guix defines. Fool the test by using the
1460 ;; docbook-xsl catalog explicitly and get on with life.
1461 (("\"\\$XML_CATALOG_FILE\" \
1462 \"http://docbook.sourceforge.net/release/xsl/")
1463 (string-append (car (find-files (assoc-ref inputs "docbook-xsl")
1465 " \"http://docbook.sourceforge.net/release/xsl/")))
1467 (add-after 'install 'wrap-executables
1468 (lambda* (#:key outputs #:allow-other-keys)
1469 (let ((out (assoc-ref outputs "out")))
1470 (for-each (lambda (prog)
1472 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))))
1473 (find-files (string-append out "/bin")))
1476 (list (string-append "--with-xml-catalog="
1477 (assoc-ref %build-inputs "docbook-xml")
1478 "/xml/dtd/docbook/catalog.xml"))))
1480 `(("pkg-config" ,pkg-config)
1481 ("itstool" ,itstool)
1483 ("gettext" ,gettext-minimal)
1488 ("xsltproc" ,libxslt)
1489 ("dblatex" ,dblatex)
1490 ("docbook-xml" ,docbook-xml-4.3)
1491 ("docbook-xsl" ,docbook-xsl)
1492 ("source-highlight" ,source-highlight)
1494 ("python-six" ,python-six)))
1495 (home-page "https://www.gtk.org/gtk-doc/")
1496 (synopsis "Documentation generator from C source code")
1498 "GTK-Doc generates API documentation from comments added to C code. It is
1499 typically used to document the public API of GTK+ and GNOME libraries, but it
1500 can also be used to document application code.")
1501 (license license:gpl2+)))
1503 (define-public gtk-engines
1505 (name "gtk-engines")
1509 (uri (string-append "mirror://gnome/sources/" name "/"
1510 (version-major+minor version) "/"
1511 name "-" version ".tar.bz2"))
1514 "1db65pb0j0mijmswrvpgkdabilqd23x22d95hp5kwxvcramq1dhm"))))
1515 (build-system gnu-build-system)
1518 `("--enable-animation")))
1520 `(("pkg-config" ,pkg-config)
1521 ("intltool" ,intltool)))
1523 ;; Don't propagate GTK+ to reduce "profile pollution".
1524 `(("gtk+" ,gtk+-2))) ; required by gtk-engines-2.pc
1525 (home-page "https://live.gnome.org/GnomeArt")
1526 (synopsis "Theming engines for GTK+ 2.x")
1528 "This package contains the standard GTK+ 2.x theming engines including
1529 Clearlooks, Crux, High Contrast, Industrial, LighthouseBlue, Metal, Mist,
1530 Redmond95 and ThinIce.")
1531 (license (list license:gpl2+ license:lgpl2.1+))))
1533 (define-public murrine
1539 (uri (string-append "mirror://gnome/sources/" name "/"
1540 (version-major+minor version) "/"
1541 name "-" version ".tar.xz"))
1544 "129cs5bqw23i76h3nmc29c9mqkm9460iwc8vkl7hs4xr07h8mip9"))))
1545 (build-system gnu-build-system)
1548 `("--enable-animation"
1549 "--enable-animationrtl")))
1551 `(("pkg-config" ,pkg-config)
1552 ("intltool" ,intltool)))
1554 `(("gtk+" ,gtk+-2)))
1555 (home-page "https://live.gnome.org/GnomeArt")
1556 (synopsis "Cairo-based theming engine for GTK+ 2.x")
1558 "Murrine is a cairo-based GTK+ theming engine. It is named after the
1559 glass artworks done by Venicians glass blowers.")
1560 (license license:gpl2+)))
1562 (define-public gtkspell3
1568 (uri (string-append "mirror://sourceforge/gtkspell/"
1569 version "/" name "-" version ".tar.xz"))
1572 "09jdicmpipmj4v84gnkqwbmj4lh8v0i6pn967rb9jx4zg2ia9x54"))))
1573 (build-system gnu-build-system)
1575 `(("intltool" ,intltool)
1576 ("pkg-config" ,pkg-config)))
1578 `(("gobject-introspection" ,gobject-introspection)
1582 `(("enchant" ,enchant-1.6))) ;gtkspell3-3.0.pc refers to it
1583 (home-page "http://gtkspell.sourceforge.net")
1584 (synopsis "Spell-checking addon for GTK's TextView widget")
1586 "GtkSpell provides word-processor-style highlighting and replacement of
1587 misspelled words in a GtkTextView widget.")
1588 (license license:gpl2+)))
1590 (define-public clipit
1597 "https://github.com/downloads/ClipIt/clipit-"
1601 "0jrwn8qfgb15rwspdp1p8hb1nc0ngmpvgr87d4k3lhlvqg2cfqva"))))
1602 (build-system gnu-build-system)
1604 `(("intltool" ,intltool)
1605 ("pkg-config" ,pkg-config)))
1607 `(("gtk+" ,gtk+-2)))
1608 (home-page "https://github.com/CristianHenzel/ClipIt")
1609 (synopsis "Lightweight GTK+ clipboard manager")
1611 "ClipIt is a clipboard manager with features such as a history, search
1612 thereof, global hotkeys and clipboard item actions. It was forked from
1613 Parcellite and adds bugfixes and features.")
1614 (license license:gpl2+)))
1616 (define-public graphene
1623 "https://github.com/ebassi/graphene/archive/"
1625 (file-name (string-append name "-" version ".tar.gz"))
1627 (base32 "1zd2daj7y590wnzn4jw0niyc4fnzgxrcl9i7nwhy8b25ks2hz5wq"))))
1628 (build-system gnu-build-system)
1630 `(#:configure-flags '("--enable-introspection=yes")))
1632 `(("autoconf" ,autoconf)
1634 ("pkg-config" ,pkg-config)
1635 ("automake" ,automake)
1636 ("libtool" ,libtool)))
1638 `(("python" ,python)
1639 ("python-2" ,python-2)
1641 ("gobject-introspection" ,gobject-introspection)))
1642 (home-page "http://ebassi.github.io/graphene")
1643 (synopsis "Thin layer of graphic data types")
1644 (description "This library provides graphic types and their relative API;
1645 it does not deal with windowing system surfaces, drawing, scene graphs, or
1647 (license license:expat)))
1649 (define-public spread-sheet-widget
1651 (name "spread-sheet-widget")
1656 (uri (string-append "https://alpha.gnu.org/gnu/ssw/"
1657 name "-" version ".tar.gz"))
1659 (base32 "1h93yyh2by6yrmkwqg38nd5knids05k5nqzcihc1hdwgzg3c4b8y"))))
1660 (build-system gnu-build-system)
1662 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
1663 ("pkg-config" ,pkg-config)))
1664 ;; In 'Requires' of spread-sheet-widget.pc.
1668 (home-page "https://www.gnu.org/software/ssw/")
1669 (synopsis "Gtk+ widget for dealing with 2-D tabular data")
1671 "GNU Spread Sheet Widget is a library for Gtk+ which provides a widget for
1672 viewing and manipulating 2 dimensional tabular data in a manner similar to many
1673 popular spread sheet programs.")
1674 (license license:gpl3+)))
1684 (url "https://github.com/v1cont/yad.git")
1685 (commit (string-append "v" version))))
1686 (file-name (git-file-name name version))
1688 (base32 "1vpgbjbkkbk5plicyklzpf65j1vlig4n4bi3qpvrz5bb09ic5alw"))))
1689 (build-system gnu-build-system)
1696 "--enable-icon-browser")
1698 (modify-phases %standard-phases
1701 (invoke "autoreconf" "-vif")
1702 (invoke "intltoolize" "--force" "--automake")
1707 `(("autoconf" ,autoconf)
1708 ("automake" ,automake)
1709 ("intltool" ,intltool)
1710 ("pkg-config" ,pkg-config)))
1711 (home-page "https://sourceforge.net/projects/yad-dialog/")
1712 (synopsis "GTK+ dialog boxes for shell scripts")
1714 "This program allows you to display GTK+ dialog boxes from command line or
1715 shell scripts. Example of how to use @code{yad} can be consulted at
1716 @url{https://sourceforge.net/p/yad-dialog/wiki/browse_pages/}.")
1717 (license license:gpl3+)))