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>
23 ;;; This file is part of GNU Guix.
25 ;;; GNU Guix is free software; you can redistribute it and/or modify it
26 ;;; under the terms of the GNU General Public License as published by
27 ;;; the Free Software Foundation; either version 3 of the License, or (at
28 ;;; your option) any later version.
30 ;;; GNU Guix is distributed in the hope that it will be useful, but
31 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
32 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 ;;; GNU General Public License for more details.
35 ;;; You should have received a copy of the GNU General Public License
36 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
38 (define-module (gnu packages gtk)
39 #:use-module ((guix licenses) #:prefix license:)
40 #:use-module (guix utils)
41 #:use-module (guix packages)
42 #:use-module (guix download)
43 #:use-module (guix git-download)
44 #:use-module (guix build-system gnu)
45 #:use-module (guix build-system meson)
46 #:use-module (guix build-system perl)
47 #:use-module (guix build-system python)
48 #:use-module (guix build-system waf)
49 #:use-module (gnu packages)
50 #:use-module (gnu packages algebra)
51 #:use-module (gnu packages autotools)
52 #:use-module (gnu packages base)
53 #:use-module (gnu packages texinfo)
54 #:use-module (gnu packages check)
55 #:use-module (gnu packages compression)
56 #:use-module (gnu packages docbook)
57 #:use-module (gnu packages enchant)
58 #:use-module (gnu packages fontutils)
59 #:use-module (gnu packages freedesktop)
60 #:use-module (gnu packages fribidi)
61 #:use-module (gnu packages gettext)
62 #:use-module (gnu packages ghostscript)
63 #:use-module (gnu packages gl)
64 #:use-module (gnu packages glib)
65 #:use-module (gnu packages gnome)
66 #:use-module (gnu packages icu4c)
67 #:use-module (gnu packages image)
68 #:use-module (gnu packages libffi)
69 #:use-module (gnu packages pdf)
70 #:use-module (gnu packages perl)
71 #:use-module (gnu packages pkg-config)
72 #:use-module (gnu packages pretty-print)
73 #:use-module (gnu packages python)
74 #:use-module (gnu packages guile)
75 #:use-module (gnu packages cups)
76 #:use-module (gnu packages xml)
77 #:use-module (gnu packages xorg)
78 #:use-module (gnu packages xdisorg))
86 (uri (string-append "mirror://gnome/sources/" name "/"
87 (version-major+minor version) "/"
88 name "-" version ".tar.xz"))
91 "1z7laf6qwv5zsqcnj222dm5f43c6f3liil0cgx4s4s62xjk1wfnd"))))
92 (build-system gnu-build-system)
93 (outputs '("out" "doc"))
96 (list (string-append "--with-html-dir="
97 (assoc-ref %outputs "doc")
98 "/share/gtk-doc/html"))))
99 (propagated-inputs `(("glib" ,glib))) ; required by atk.pc
101 `(("pkg-config" ,pkg-config)
102 ("glib" ,glib "bin") ; glib-mkenums, etc.
103 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
104 (synopsis "GNOME accessibility toolkit")
106 "ATK provides the set of accessibility interfaces that are implemented
107 by other toolkits and applications. Using the ATK interfaces, accessibility
108 tools have full access to view and control running applications.")
109 (license license:lgpl2.0+)
110 (home-page "https://developer.gnome.org/atk/")))
118 (uri (string-append "https://cairographics.org/releases/cairo-"
122 "05mzyxkvsfc1annjw2dja8vka01ampp9pp93lg09j8hba06g144c"))
123 (patches (search-patches "cairo-CVE-2016-9082.patch"
124 "cairo-setjmp-wrapper.patch"))))
125 (build-system gnu-build-system)
127 `(("fontconfig" ,fontconfig)
128 ("freetype" ,freetype)
133 ("libxrender" ,libxrender)
136 `(("ghostscript" ,ghostscript)
137 ("libspectre" ,libspectre)
139 ("xorgproto" ,xorgproto)
142 `(("pkg-config" ,pkg-config)
143 ("python" ,python-wrapper)))
145 `(#:tests? #f ; see http://lists.gnu.org/archive/html/bug-guix/2013-06/msg00085.html
146 #:configure-flags '("--enable-tee"))) ; needed for GNU Icecat
147 (synopsis "2D graphics library")
149 "Cairo is a 2D graphics library with support for multiple output devices.
150 Currently supported output targets include the X Window System (via both
151 Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file
152 output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.
154 Cairo is designed to produce consistent output on all output media while
155 taking advantage of display hardware acceleration when available
156 eg. through the X Render Extension).
158 The cairo API provides operations similar to the drawing operators of
159 PostScript and PDF. Operations in cairo including stroking and filling cubic
160 Bézier splines, transforming and compositing translucent images, and
161 antialiased text rendering. All drawing operations can be transformed by any
162 affine transformation (scale, rotation, shear, etc.).")
163 (license license:lgpl2.1) ; or Mozilla Public License 1.1
164 (home-page "https://cairographics.org/")))
166 (define-public cairo-xcb
172 ,@(package-inputs cairo)))
176 '("--enable-xlib-xcb" "--enable-gl" "--enable-egl")))
177 (synopsis "2D graphics library (with X11 support)")))
179 (define-public harfbuzz
185 (uri (string-append "https://www.freedesktop.org/software/"
186 "harfbuzz/release/harfbuzz-"
190 "1ag3scnm1fcviqgx2p4858y433mr0ndqw6zccnccrqcr9mpcird8"))))
191 (build-system gnu-build-system)
193 "bin")) ; 160K, only hb-view depend on cairo
197 ;; There are all in the Requires or Requires.private field of '.pc'.
199 ("graphite2" ,graphite2)
202 `(("gobject-introspection" ,gobject-introspection)
203 ("pkg-config" ,pkg-config)
204 ("python" ,python-wrapper)
207 `(#:configure-flags `("--with-graphite2"
210 "--bindir=" (assoc-ref %outputs "bin") "/bin"))))
211 (synopsis "OpenType text shaping engine")
213 "HarfBuzz is an OpenType text shaping engine.")
214 (license (license:x11-style "file://COPYING"
215 "See 'COPYING' in the distribution."))
216 (home-page "https://www.freedesktop.org/wiki/Software/HarfBuzz/")))
224 (uri (string-append "mirror://gnome/sources/pango/"
225 (version-major+minor version) "/"
226 name "-" version ".tar.xz"))
229 "17bwb7dgbncrfsmchlib03k9n3xaalirb39g3yb43gg8cg6p8aqx"))))
230 (build-system gnu-build-system)
232 ;; These are all in Requires or Requires.private of the '.pc' files.
235 ("fontconfig" ,fontconfig)
236 ("freetype" ,freetype)
238 ("harfbuzz" ,harfbuzz)))
242 ;; Some packages, such as Openbox, expect Pango to be built with the
243 ;; optional libxft support.
246 `(("pkg-config" ,pkg-config)
247 ("glib" ,glib "bin") ; glib-mkenums, etc.
248 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
249 (synopsis "GNOME text and font handling library")
251 "Pango is the core text and font handling library used in GNOME
252 applications. It has extensive support for the different writing systems
253 used throughout the world.")
254 (license license:lgpl2.0+)
255 (home-page "https://developer.gnome.org/pango/")))
257 (define-public pangox-compat
259 (name "pangox-compat")
263 (uri (string-append "mirror://gnome/sources/" name "/"
264 (version-major+minor version) "/"
265 name "-" version ".tar.xz"))
268 "0ip0ziys6mrqqmz4n71ays0kf5cs1xflj1gfpvs4fgy2nsrr482m"))))
269 (build-system gnu-build-system)
274 `(("intltool" ,intltool)
275 ("pkg-config" ,pkg-config)))
276 (home-page "https://developer.gnome.org/pango")
277 (synopsis "Obsolete pango functions")
278 (description "Pangox was a X backend to pango. It is now obsolete and no
279 longer provided by recent pango releases. pangox-compat provides the
280 functions which were removed.")
281 (license license:lgpl2.0+)))
289 (uri (string-append "https://download.drobilla.net/ganv-"
293 "0g7s5mp14qgbfjdql0k1s8464r21g47ssn5dws6jazsnw6njhl0l"))))
294 (build-system waf-build-system)
297 (modify-phases %standard-phases
298 (add-before 'configure 'set-flags
299 (lambda* (#:key outputs #:allow-other-keys)
300 ;; Compile with C++11, required by gtkmm.
301 (setenv "CXXFLAGS" "-std=c++11")
302 ;; Allow 'bin/ganv_bench' to find libganv-1.so.
304 (string-append "-Wl,-rpath="
305 (assoc-ref outputs "out") "/lib"))
307 #:python ,python-2 ;XXX: The bundled waf fails with Python 3.7.0.
308 #:tests? #f)) ; no check target
313 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
314 ("pkg-config" ,pkg-config)))
315 (home-page "https://drobilla.net/software/ganv/")
316 (synopsis "GTK+ widget for interactive graph-like environments")
318 "Ganv is an interactive GTK+ widget for interactive “boxes and lines” or
319 graph-like environments, e.g. modular synths or finite state machine
321 (license license:gpl3+)))
323 (define-public ganv-devel
324 (let ((commit "12f7d6b0438c94dd87f773a92eee3453d971846e")
329 (version (string-append "1.5.4-" revision "."
330 (string-take commit 9)))
334 (url "https://git.drobilla.net/ganv.git")
336 (file-name (git-file-name name version))
339 "1cr8w02lr6bk9mkxa12j3imq721b2an2yn4bj5wnwmpm91ddn2gi")))))))
341 (define-public gtksourceview-2
343 (name "gtksourceview")
344 (version "2.10.5") ; This is the last version which builds against gtk+2
347 (uri (string-append "mirror://gnome/sources/" name "/"
348 (version-major+minor version) "/"
349 name "-" version ".tar.bz2"))
352 "07hrabhpl6n8ajz10s0d960jdwndxs87szxyn428mpxi8cvpg1f5"))))
353 (build-system gnu-build-system)
355 `(("intltool" ,intltool)
356 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
357 ("pkg-config" ,pkg-config)
359 ("xorg-server" ,xorg-server)
360 ("shared-mime-info" ,shared-mime-info)))
362 ;; As per the pkg-config file.
364 ("libxml2" ,libxml2)))
367 ;; Unfortunately, some of the tests in "make check" are highly dependent
368 ;; on the environment therefore, some black magic is required.
369 (modify-phases %standard-phases
370 (add-before 'check 'start-xserver
371 (lambda* (#:key inputs #:allow-other-keys)
372 (let ((xorg-server (assoc-ref inputs "xorg-server"))
373 (mime (assoc-ref inputs "shared-mime-info")))
375 ;; There must be a running X server and make check doesn't start one.
376 ;; Therefore we must do it.
377 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
378 (setenv "DISPLAY" ":1")
380 ;; The .lang files must be found in $XDG_DATA_HOME/gtksourceview-2.0
381 (system "ln -s gtksourceview gtksourceview-2.0")
382 (setenv "XDG_DATA_HOME" (getcwd))
384 ;; Finally, the mimetypes must be available.
385 (setenv "XDG_DATA_DIRS" (string-append mime "/share/")))
387 (synopsis "Widget that extends the standard GTK+ 2.x 'GtkTextView' widget")
389 "GtkSourceView is a portable C library that extends the standard GTK+
390 framework for multiline text editing with support for configurable syntax
391 highlighting, unlimited undo/redo, search and replace, a completion framework,
392 printing and other features typical of a source code editor.")
393 (license license:lgpl2.0+)
394 (home-page "https://developer.gnome.org/gtksourceview/")))
396 (define-public gtksourceview
398 (name "gtksourceview")
402 (uri (string-append "mirror://gnome/sources/" name "/"
403 (version-major+minor version) "/"
404 name "-" version ".tar.xz"))
407 "1zinqid62zjcsq7vy1y4mq1qh3hzd3zj7p8np7g0bdqd37zvi6qy"))))
408 (build-system gnu-build-system)
411 (modify-phases %standard-phases
414 (lambda* (#:key inputs #:allow-other-keys)
415 (let ((xorg-server (assoc-ref inputs "xorg-server")))
416 ;; Tests require a running X server.
417 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
418 (setenv "DISPLAY" ":1")
419 ;; For the missing /etc/machine-id.
420 (setenv "DBUS_FATAL_WARNINGS" "0")
423 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
424 ("intltool" ,intltool)
426 ("gobject-introspection" ,gobject-introspection)
427 ("pkg-config" ,pkg-config)
430 ("xorg-server" ,xorg-server)
431 ("shared-mime-info" ,shared-mime-info)))
433 ;; gtksourceview-3.0.pc refers to all these.
436 ("libxml2" ,libxml2)))
437 (home-page "https://wiki.gnome.org/Projects/GtkSourceView")
438 (synopsis "GNOME source code widget")
439 (description "GtkSourceView is a text widget that extends the standard
440 GTK+ text widget GtkTextView. It improves GtkTextView by implementing syntax
441 highlighting and other features typical of a source code editor.")
442 (license license:lgpl2.1+)))
444 (define-public gdk-pixbuf
450 (uri (string-append "mirror://gnome/sources/" name "/"
451 (version-major+minor version) "/"
452 name "-" version ".tar.xz"))
455 "0ixfmnxjylx06mjaw116apymwi1a8rnkmkbbvqaxxg2pfwy9fl6x"))))
456 (build-system meson-build-system)
458 '(#:configure-flags '("-Dinstalled-tests=false")
460 (modify-phases %standard-phases
462 'unpack 'disable-failing-tests
464 (substitute* "tests/meson.build"
465 ;; XXX FIXME: This test fails on armhf machines with:
466 ;; SKIP Not enough memory to load bitmap image
467 ;; ERROR: cve-2015-4491 - too few tests run (expected 4, got 2)
468 ((".*'cve-2015-4491'.*") "")
469 ;; XXX FIXME: This test fails with:
470 ;; ERROR:pixbuf-jpeg.c:74:test_type9_rotation_exif_tag:
471 ;; assertion failed (error == NULL): Data differ
472 ;; (gdk-pixbuf-error-quark, 0)
473 ((".*'pixbuf-jpeg'.*") "")
474 ;; Extend the timeout of the test suite.
475 ;; TODO: Check upstreaming effort:
476 ;; https://gitlab.gnome.org/GNOME/gdk-pixbuf/merge_requests/21
479 (add-before 'configure 'aid-install-script
480 (lambda* (#:key outputs #:allow-other-keys)
481 ;; "build-aux/post-install.sh" invokes `gdk-pixbuf-query-loaders`
482 ;; for updating loader.cache, but it's not on PATH. Make it use
483 ;; the one we're installing. XXX: Won't work when cross-compiling.
484 (substitute* "build-aux/post-install.sh"
485 (("gdk-pixbuf-query-loaders" match)
486 (string-append (assoc-ref outputs "out") "/bin/" match)))
489 `(;; Required by gdk-pixbuf-2.0.pc
492 ;; Used for testing and required at runtime.
493 ("shared-mime-info" ,shared-mime-info)))
495 `(("libjpeg" ,libjpeg)
499 `(("pkg-config" ,pkg-config)
500 ("gettext" ,gettext-minimal)
501 ("glib" ,glib "bin") ; glib-mkenums, etc.
502 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
503 (synopsis "GNOME image loading and manipulation library")
505 "GdkPixbuf is a library for image loading and manipulation developed
506 in the GNOME project.")
507 (license license:lgpl2.0+)
508 (home-page "https://developer.gnome.org/gdk-pixbuf/")))
510 ;; To build gdk-pixbuf with SVG support, we need librsvg, and librsvg depends
511 ;; on gdk-pixbuf, so this new varibale. Also, librsvg adds 90MiB to the
513 (define-public gdk-pixbuf+svg
514 (package (inherit gdk-pixbuf)
515 (name "gdk-pixbuf+svg")
517 `(("librsvg" ,librsvg)
518 ,@(package-inputs gdk-pixbuf)))
520 '(#:configure-flags '("-Dinstalled-tests=false")
521 #:tests? #f ; tested by the gdk-pixbuf package already
523 (modify-phases %standard-phases
524 (add-after 'install 'register-svg-loader
525 (lambda* (#:key inputs outputs #:allow-other-keys)
526 (let* ((out (assoc-ref outputs "out"))
527 (librsvg (assoc-ref inputs "librsvg"))
530 (find-files out "^libpixbufloader-.*\\.so$")
531 (find-files librsvg "^libpixbufloader-.*\\.so$")))
532 (gdk-pixbuf-query-loaders
533 (string-append out "/bin/gdk-pixbuf-query-loaders")))
535 gdk-pixbuf-query-loaders
539 "GNOME image loading and manipulation library, with SVG support")))
541 (define-public at-spi2-core
543 (name "at-spi2-core")
547 (uri (string-append "mirror://gnome/sources/" name "/"
548 (version-major+minor version) "/"
549 name "-" version ".tar.xz"))
552 "0596ghkamkxgv08r4a1pdhm06qd5zzgcfqsv64038w9xbvghq3n8"))))
553 (build-system gnu-build-system)
554 (outputs '("out" "doc"))
557 (list (string-append "--with-html-dir="
558 (assoc-ref %outputs "doc")
559 "/share/gtk-doc/html"))
561 (modify-phases %standard-phases
563 ;; Run test-suite under a dbus session.
565 ;; Don't fail on missing '/etc/machine-id'.
566 (setenv "DBUS_FATAL_WARNINGS" "0")
567 (invoke "dbus-launch" "make" "check"))))))
569 ;; atspi-2.pc refers to all these.
574 ("libxtst" ,libxtst)))
576 `(("gobject-introspection" ,gobject-introspection)
577 ("intltool" ,intltool)
578 ("pkg-config" ,pkg-config)))
579 (synopsis "Assistive Technology Service Provider Interface, core components")
581 "The Assistive Technology Service Provider Interface, core components,
582 is part of the GNOME accessibility project.")
583 (license license:lgpl2.0+)
584 (home-page "https://projects.gnome.org/accessibility/")))
586 (define-public at-spi2-atk
592 (uri (string-append "mirror://gnome/sources/" name "/"
593 (version-major+minor version) "/"
594 name "-" version ".tar.xz"))
597 "0vkan52ab9vrkknnv8y4f1cspk8x7xd10qx92xk9ys71p851z2b1"))))
598 (build-system gnu-build-system)
601 (modify-phases %standard-phases
603 ;; Run test-suite under a dbus session.
605 (setenv "DBUS_FATAL_WARNINGS" "0")
606 (invoke "dbus-launch" "make" "check"))))))
608 `(("at-spi2-core" ,at-spi2-core))) ; required by atk-bridge-2.0.pc
612 `(("dbus" ,dbus) ; for testing
613 ("pkg-config" ,pkg-config)))
614 (synopsis "Assistive Technology Service Provider Interface, ATK bindings")
616 "The Assistive Technology Service Provider Interface
617 is part of the GNOME accessibility project.")
618 (license license:lgpl2.0+)
619 (home-page "https://projects.gnome.org/accessibility/")))
621 (define-public gtk+-2
627 (uri (string-append "mirror://gnome/sources/" name "/"
628 (version-major+minor version) "/"
629 name "-" version ".tar.xz"))
632 "0bjq7ja9gwcv6n5q4qkvdjjx40wsdiikksz1zqxvxsm5vlyskj5n"))
633 (patches (search-patches "gtk2-respect-GUIX_GTK2_PATH.patch"
634 "gtk2-respect-GUIX_GTK2_IM_MODULE_FILE.patch"
635 "gtk2-theme-paths.patch"))))
636 (build-system gnu-build-system)
637 (outputs '("out" "doc"))
640 ("gdk-pixbuf" ,gdk-pixbuf+svg)
644 ("libxcomposite" ,libxcomposite)
645 ("libxcursor" ,libxcursor)
646 ("libxdamage" ,libxdamage)
648 ("libxinerama" ,libxinerama)
649 ("libxrandr" ,libxrandr)))
652 ("gettext" ,gettext-minimal)
654 ("gobject-introspection" ,gobject-introspection)
655 ("pkg-config" ,pkg-config)
656 ("python-wrapper" ,python-wrapper)))
659 (list "--with-xinput=yes"
660 (string-append "--with-html-dir="
661 (assoc-ref %outputs "doc")
662 "/share/gtk-doc/html"))
665 'configure 'disable-tests
667 ;; FIXME: re-enable tests requiring an X server
668 (substitute* "gtk/Makefile.in"
669 (("SUBDIRS = theme-bits . tests") "SUBDIRS = theme-bits ."))
673 (list (search-path-specification
674 (variable "GUIX_GTK2_PATH")
675 (files '("lib/gtk-2.0")))))
676 (synopsis "Cross-platform toolkit for creating graphical user interfaces")
678 "GTK+, or the GIMP Toolkit, is a multi-platform toolkit for creating
679 graphical user interfaces. Offering a complete set of widgets, GTK+ is
680 suitable for projects ranging from small one-off tools to complete
681 application suites.")
682 (license license:lgpl2.0+)
683 (home-page "https://www.gtk.org/")))
686 (package (inherit gtk+-2)
688 ;; NOTE: When updating the version of 'gtk+', the hash of 'mate-themes' in
689 ;; mate.scm will also need to be updated.
693 (uri (string-append "mirror://gnome/sources/" name "/"
694 (version-major+minor version) "/"
695 name "-" version ".tar.xz"))
698 "1a1jbsh9fg5ykmwrcl3svy7xfvx0b87d314qsx9n483pj8w93s82"))
699 (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch"
700 "gtk3-respect-GUIX_GTK3_IM_MODULE_FILE.patch"))))
701 (outputs '("out" "bin" "doc"))
703 `(("at-spi2-atk" ,at-spi2-atk)
705 ("gdk-pixbuf" ,gdk-pixbuf+svg)
706 ("libepoxy" ,libepoxy)
707 ("libxcursor" ,libxcursor)
709 ("libxinerama" ,libxinerama)
710 ("libxkbcommon" ,libxkbcommon)
711 ("libxdamage" ,libxdamage)
715 ("wayland-protocols" ,wayland-protocols)))
717 `(("libxml2" ,libxml2)
718 ;; XXX: colord depends on mozjs (through polkit), which fails on
719 ;; on non-intel systems now.
721 ("cups" ,cups) ;for printing support
722 ;; XXX: rest depends on p11-kit, which fails on mips64el now.
724 ("json-glib" ,json-glib)))
728 ("gettext" ,gettext-minimal)
729 ("pkg-config" ,pkg-config)
730 ("gobject-introspection" ,gobject-introspection)
731 ("python-wrapper" ,python-wrapper)
732 ;; By using a special xorg-server for GTK+'s tests, we reduce the impact
733 ;; of updating xorg-server directly on the master branch.
734 ("xorg-server" ,xorg-server-for-tests)))
736 `(#:disallowed-references (,xorg-server-for-tests)
737 ;; 47 MiB goes to "out" (24 of which is locale data!), and 26 MiB goes
739 #:configure-flags (list (string-append "--with-html-dir="
740 (assoc-ref %outputs "doc")
741 "/share/gtk-doc/html")
742 ;; The header file <gdk/gdkwayland.h> is required
743 ;; by gnome-control-center
744 "--enable-wayland-backend"
745 ;; This is necessary to build both backends.
746 "--enable-x11-backend"
747 ;; This enables the HTML5 websocket backend.
748 "--enable-broadway-backend")
749 #:phases (modify-phases %standard-phases
750 (add-before 'configure 'pre-configure
752 ;; Disable most tests, failing in the chroot with the message:
753 ;; D-Bus library appears to be incorrectly set up; failed to read
754 ;; machine uuid: Failed to open "/etc/machine-id": No such file or
756 ;; See the manual page for dbus-uuidgen to correct this issue.
757 (substitute* "testsuite/Makefile.in"
758 (("SUBDIRS = gdk gtk a11y css reftests")
761 (add-after 'install 'move-desktop-files
762 ;; Move desktop files into 'bin' to avoid cycle references.
763 (lambda* (#:key outputs #:allow-other-keys)
764 (let ((out (assoc-ref outputs "out"))
765 (bin (assoc-ref outputs "bin")))
766 (mkdir-p (string-append bin "/share"))
767 (rename-file (string-append out "/share/applications")
768 (string-append bin "/share/applications"))
771 (list (search-path-specification
772 (variable "GUIX_GTK3_PATH")
773 (files '("lib/gtk-3.0")))))))
779 (define-public guile-cairo
785 (uri (string-append "mirror://savannah/guile-cairo/guile-cairo-"
789 "0p6xrhf2k6n5dybn88050za7h90gnd7534n62l53vsca187pwgdf"))
790 (modules '((guix build utils)))
794 ;; Install Scheme files in …/guile/site/X.Y.
795 (substitute* (find-files "." "^Makefile\\.in$")
796 (("^(.*)dir = (.*)/guile/site(.*)" _ name prefix suffix)
797 (string-append name "dir = " prefix
798 "/guile/site/@GUILE_EFFECTIVE_VERSION@"
801 (build-system gnu-build-system)
803 `(("guile-lib" ,guile-lib)
805 ("guile" ,guile-2.2)))
807 ;; The .pc file refers to 'cairo'.
810 `(("pkg-config" ,pkg-config)))
811 (home-page "https://www.nongnu.org/guile-cairo/")
812 (synopsis "Cairo bindings for GNU Guile")
814 "Guile-Cairo wraps the Cairo graphics library for Guile Scheme.
815 Guile-Cairo is complete, wrapping almost all of the Cairo API. It is API
816 stable, providing a firm base on which to do graphics work. Finally, and
817 importantly, it is pleasant to use. You get a powerful and well-maintained
818 graphics library with all of the benefits of Scheme: memory management,
819 exceptions, macros, and a dynamic programming environment.")
820 (license license:lgpl3+)))
822 (define-public guile-rsvg
823 ;; Use a recent snapshot that supports Guile 2.2 and beyond.
824 (let ((commit "05c6a2fd67e4fea1a7c3ff776729dc931bae6678")
828 (version (string-append "2.18.1-" revision "."
829 (string-take commit 7)))
832 (uri (string-append "https://gitlab.com/wingo/guile-rsvg/"
833 "repository/archive.tar.gz?ref="
837 "0vdzjx8l5nc4y2xjqs0g1rqn1zrwfsm30brh5gz00r1x41a2pvv2"))
838 (patches (search-patches "guile-rsvg-pkgconfig.patch"))
839 (modules '((guix build utils)))
842 (substitute* (find-files "." "Makefile\\.am")
843 (("/share/guile/site")
844 "/share/guile/site/@GUILE_EFFECTIVE_VERSION@"))
846 (file-name (string-append name "-" version ".tar.gz"))))
847 (build-system gnu-build-system)
849 `(#:phases (modify-phases %standard-phases
852 (invoke "autoreconf" "-vfi"))))))
853 (native-inputs `(("pkg-config" ,pkg-config)
854 ("autoconf" ,autoconf)
855 ("automake" ,automake)
857 ("texinfo" ,texinfo)))
858 (inputs `(("guile" ,guile-2.2)
860 ("guile-lib" ,guile-lib))) ;for (unit-test)
861 (propagated-inputs `(("guile-cairo" ,guile-cairo)))
862 (synopsis "Render SVG images using Cairo from Guile")
864 "Guile-RSVG wraps the RSVG library for Guile, allowing you to render SVG
865 images onto Cairo surfaces.")
866 (home-page "http://wingolog.org/projects/guile-rsvg/")
867 (license license:lgpl2.1+))))
869 (define-public guile-present
871 (name "guile-present")
875 (uri (string-append "http://wingolog.org/pub/guile-present/"
876 "guile-present-" version ".tar.gz"))
879 "1qam447m05sxxv6x8dlzg7qnyfc4dh8apjw1idpfhpns671gfr6m"))
880 (patches (search-patches "guile-present-coding.patch"))))
881 (build-system gnu-build-system)
884 (modify-phases %standard-phases
885 (add-after 'install 'post-install
886 (lambda* (#:key inputs outputs #:allow-other-keys)
887 (let* ((out (assoc-ref outputs "out"))
888 (bin (string-append out "/bin"))
889 (guile (assoc-ref inputs "guile")))
890 (substitute* (find-files bin ".*")
892 (string-append guile "/bin/guile -L "
893 out "/share/guile/site/2.0 -C "
894 out "/share/guile/site/2.0 "))))
896 (native-inputs `(("pkg-config" ,pkg-config)))
897 (inputs `(("guile" ,guile-2.2)))
899 ;; These are used by the (present …) modules.
900 `(("guile-lib" ,guile-lib)
901 ("guile-cairo" ,guile-cairo)
902 ("guile-rsvg" ,guile-rsvg)))
903 (home-page "http://wingolog.org/software/guile-present/")
904 (synopsis "Create SVG or PDF presentations in Guile")
906 "Guile-Present defines a declarative vocabulary for presentations,
907 together with tools to render presentation documents as SVG or PDF.
908 Guile-Present can be used to make presentations programmatically, but also
909 includes a tools to generate PDF presentations out of Org mode and Texinfo
911 (license license:lgpl3+)))
913 (define-public guile-gnome
920 (string-append "mirror://gnu/" name
921 "/guile-gnome-platform/guile-gnome-platform-"
925 "1gnf3j96nip5kl99a268i0dy1hj7s1cfs66sps3zwysnkd7qr399"))))
926 (build-system gnu-build-system)
928 `(("pkg-config" ,pkg-config)
930 ;;("corba" ,corba) ; not packaged yet
932 ("gobject-introspection" ,gobject-introspection)
933 ;;("gthread" ,gthread) ; not packaged yet
934 ("gnome-vfs" ,gnome-vfs)
935 ("gdk-pixbuf" ,gdk-pixbuf)
937 ("libglade" ,libglade)
938 ("libgnome" ,libgnome)
939 ("libgnomecanvas" ,libgnomecanvas)
940 ("libgnomeui" ,libgnomeui)
944 (inputs `(("guile" ,guile-2.2)))
946 `(("guile-cairo" ,guile-cairo)
948 ("guile-lib" ,guile-lib)))
951 #:phases (modify-phases %standard-phases
952 (add-before 'configure 'pre-configure
953 (lambda* (#:key outputs #:allow-other-keys)
954 (let ((out (assoc-ref outputs "out")))
955 (substitute* (find-files "." "^Makefile.in$")
956 (("guilesite :=.*guile/site" all)
957 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
959 (outputs '("out" "debug"))
960 (synopsis "Guile interface for GTK+ programming for GNOME")
962 "Includes guile-clutter, guile-gnome-gstreamer,
963 guile-gnome-platform (GNOME developer libraries), and guile-gtksourceview.")
964 (home-page "https://www.gnu.org/software/guile-gnome/")
965 (license license:gpl2+)
966 (properties '((upstream-name . "guile-gnome-platform")
967 (ftp-directory . "/gnu/guile-gnome/guile-gnome-platform")))))
973 (define-public cairomm
979 (uri (string-append "https://www.cairographics.org/releases/"
980 name "-" version ".tar.gz"))
983 "16fmigxsaz85c3lgcls7biwyz8zy8c8h3jndfm54cxxas3a7zi25"))))
984 (build-system gnu-build-system)
986 ;; The examples lack -lcairo.
987 '(#:make-flags '("LDFLAGS=-lcairo")))
988 (native-inputs `(("pkg-config" ,pkg-config)))
990 `(("libsigc++" ,libsigc++)
991 ("freetype" ,freetype)
992 ("fontconfig" ,fontconfig)
994 (home-page "https://cairographics.org/")
995 (synopsis "C++ bindings to the Cairo 2D graphics library")
997 "Cairomm provides a C++ programming interface to the Cairo 2D graphics
999 (license license:lgpl2.0+)))
1001 (define-public pangomm
1007 (uri (string-append "mirror://gnome/sources/" name "/"
1008 (version-major+minor version) "/"
1009 name "-" version ".tar.xz"))
1012 "1bz3gciff23bpw9bqc4v2l3lkq9w7394v3a4jxkvx0ap5lmfwqlp"))))
1013 (build-system gnu-build-system)
1014 (native-inputs `(("pkg-config" ,pkg-config)))
1017 ("cairomm" ,cairomm)
1020 (home-page "http://www.pango.org/")
1021 (synopsis "C++ interface to the Pango text rendering library")
1023 "Pangomm provides a C++ programming interface to the Pango text rendering
1025 (license license:lgpl2.1+)))
1027 (define-public atkmm
1033 (uri (string-append "mirror://gnome/sources/" name "/"
1034 (version-major+minor version) "/"
1035 name "-" version ".tar.xz"))
1038 "1gaqwhviadsmy0fsr47686yglv1p4mpkamj0in127bz2b5bki5gz"))))
1039 (build-system gnu-build-system)
1040 (native-inputs `(("pkg-config" ,pkg-config)))
1042 `(("glibmm" ,glibmm) ("atk" ,atk)))
1043 (home-page "https://www.gtkmm.org")
1044 (synopsis "C++ interface to the ATK accessibility library")
1046 "ATKmm provides a C++ programming interface to the ATK accessibility
1048 (license license:lgpl2.1+)))
1050 (define-public gtkmm
1056 (uri (string-append "mirror://gnome/sources/" name "/"
1057 (version-major+minor version) "/"
1058 name "-" version ".tar.xz"))
1061 "1400535lhyya462pfx8bp11k3mg3jsbdghlpygskd5ai665dkbwi"))))
1062 (build-system gnu-build-system)
1063 (native-inputs `(("pkg-config" ,pkg-config)
1064 ("glib" ,glib "bin") ;for 'glib-compile-resources'
1065 ("xorg-server" ,xorg-server-for-tests)))
1067 `(("pangomm" ,pangomm)
1068 ("cairomm" ,cairomm)
1071 ("glibmm" ,glibmm)))
1073 `(;; XXX: Tests require C++14 or later. Remove this when the default
1074 ;; compiler is >= GCC6.
1075 #:configure-flags '("CXXFLAGS=-std=gnu++14")
1076 #:disallowed-references (,xorg-server-for-tests)
1077 #:phases (modify-phases %standard-phases
1078 (add-before 'check 'run-xvfb
1079 (lambda* (#:key inputs #:allow-other-keys)
1080 (let ((xorg-server (assoc-ref inputs "xorg-server")))
1081 ;; Tests such as 'object_move/test' require a running
1083 (system (string-append xorg-server "/bin/Xvfb :1 &"))
1084 (setenv "DISPLAY" ":1")
1085 ;; Don't fail because of the missing /etc/machine-id.
1086 (setenv "DBUS_FATAL_WARNINGS" "0")
1088 (home-page "https://gtkmm.org/")
1090 "C++ interface to the GTK+ graphical user interface library")
1092 "gtkmm is the official C++ interface for the popular GUI library GTK+.
1093 Highlights include typesafe callbacks, and a comprehensive set of widgets that
1094 are easily extensible via inheritance. You can create user interfaces either
1095 in code or with the Glade User Interface designer, using libglademm. There's
1096 extensive documentation, including API reference and a tutorial.")
1097 (license license:lgpl2.1+)))
1100 (define-public gtkmm-2
1101 (package (inherit gtkmm)
1106 (uri (string-append "mirror://gnome/sources/" name "/"
1107 (version-major+minor version) "/"
1108 name "-" version ".tar.xz"))
1111 "0wkbzvsx4kgw16f6xjdc1dz7f77ldngdila4yi5lw2zrgcxsb006"))))
1113 '(#:configure-flags '("CPPFLAGS=-std=c++11"))) ; required by libsigc++
1114 (native-inputs `(("pkg-config" ,pkg-config)))
1116 `(("pangomm" ,pangomm)
1117 ("cairomm" ,cairomm)
1120 ("glibmm" ,glibmm)))))
1122 (define-public gtksourceviewmm
1124 (name "gtksourceviewmm")
1128 (uri (string-append "mirror://gnome/sources/" name "/"
1129 (version-major+minor version) "/"
1130 name "-" version ".tar.xz"))
1132 (base32 "0fgvmhm4h4qmxig87qvangs6ijw53mi40siz7pixlxbrsgiil22i"))))
1133 (build-system gnu-build-system)
1135 `(("pkg-config" ,pkg-config)))
1137 ;; In 'Requires' of gtksourceviewmm-3.0.pc.
1138 `(("glibmm" ,glibmm)
1140 ("gtksourceview" ,gtksourceview)))
1141 (synopsis "C++ interface to the GTK+ 'GtkTextView' widget")
1143 "gtksourceviewmm is a portable C++ library that extends the standard GTK+
1144 framework for multiline text editing with support for configurable syntax
1145 highlighting, unlimited undo/redo, search and replace, a completion framework,
1146 printing and other features typical of a source code editor.")
1147 (license license:lgpl2.1+)
1148 (home-page "https://developer.gnome.org/gtksourceview/")))
1151 ;;; Python bindings.
1154 (define-public python-pycairo
1156 (name "python-pycairo")
1161 (uri (string-append "https://github.com/pygobject/pycairo/releases/download/v"
1162 version "/pycairo-" version ".tar.gz"))
1165 "165n0g7gp2a0qi8558snvfans17x83jv2lv7bx4vr1rxjbn3a2hg"))))
1166 (build-system python-build-system)
1168 `(("pkg-config" ,pkg-config)
1169 ("python-pytest" ,python-pytest)))
1170 (propagated-inputs ;pycairo.pc references cairo
1171 `(("cairo" ,cairo)))
1172 (home-page "https://cairographics.org/pycairo/")
1173 (synopsis "Python bindings for cairo")
1175 "Pycairo is a set of Python bindings for the Cairo graphics library.")
1176 (license license:lgpl3+)
1177 (properties `((python2-variant . ,(delay python2-pycairo))))))
1179 (define-public python2-pycairo
1180 (let ((pycairo (package-with-python2
1181 (strip-python2-variant python-pycairo))))
1185 `(("python2-funcsigs" ,python2-funcsigs)
1186 ,@(package-propagated-inputs pycairo)))
1187 ;; Dual-licensed under LGPL 2.1 or Mozilla Public License 1.1
1188 (license (list license:lgpl2.1 license:mpl1.1)))))
1190 (define-public python2-pygtk
1192 (name "python2-pygtk")
1197 (uri (string-append "mirror://gnome/sources"
1198 "/pygtk/" (version-major+minor version)
1199 "/pygtk-" version ".tar.bz2"))
1202 "04k942gn8vl95kwf0qskkv6npclfm31d78ljkrkgyqxxcni1w76d"))))
1203 (build-system gnu-build-system)
1205 "doc")) ;13 MiB of gtk-doc HTML
1207 `(("pkg-config" ,pkg-config)))
1209 `(("python" ,python-2)
1210 ("libglade" ,libglade)
1213 `(("python-pycairo" ,python2-pycairo) ;loaded at runtime
1214 ("python-pygobject" ,python2-pygobject-2) ;referenced in pc file
1218 #:phases (modify-phases %standard-phases
1219 (add-before 'configure 'set-gtk-doc-directory
1220 (lambda* (#:key outputs #:allow-other-keys)
1221 ;; Install documentation to "doc".
1222 (let ((doc (assoc-ref outputs "doc")))
1223 (substitute* "docs/Makefile.in"
1224 (("TARGET_DIR = \\$\\(datadir\\)")
1225 (string-append "TARGET_DIR = " doc))))))
1226 (add-after 'configure 'fix-codegen
1227 (lambda* (#:key inputs #:allow-other-keys)
1228 (substitute* "pygtk-codegen-2.0"
1232 (assoc-ref inputs "python-pygobject") "\n")))))
1233 (add-after 'install 'install-pth
1234 (lambda* (#:key inputs outputs #:allow-other-keys)
1235 ;; pygtk's modules are stored in a subdirectory of
1236 ;; python's site-packages directory. Add a .pth file so
1237 ;; that python will add that subdirectory to its module
1239 (let* ((out (assoc-ref outputs "out"))
1240 (site (string-append out "/lib/python"
1241 ,(version-major+minor
1242 (package-version python-2))
1244 (call-with-output-file (string-append site "/pygtk.pth")
1246 (format port "gtk-2.0~%")))))))))
1247 (home-page "http://www.pygtk.org/")
1248 (synopsis "Python bindings for GTK+")
1250 "PyGTK allows you to write full featured GTK programs in Python. It is
1251 targeted at GTK 2.x, and can be used in conjunction with gnome-python to
1252 write GNOME applications.")
1253 (license license:lgpl2.1+)))
1255 (define-public perl-cairo
1262 "mirror://cpan/authors/id/X/XA/XAOC/Cairo-"
1266 "1i25kks408c54k2zxskvg54l5k3qadzm8n72ffga9jy7ic0h6j76"))))
1267 (build-system perl-build-system)
1269 `(("perl-extutils-depends" ,perl-extutils-depends)
1270 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1272 `(("cairo" ,cairo)))
1273 (home-page "https://metacpan.org/release/Cairo")
1274 (synopsis "Perl interface to the cairo 2d vector graphics library")
1275 (description "Cairo provides Perl bindings for the vector graphics library
1276 cairo. It supports multiple output targets, including PNG, PDF and SVG. Cairo
1277 produces identical output on all those targets.")
1278 (license license:lgpl2.1+)))
1280 (define-public perl-gtk2
1286 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Gtk2-"
1290 "1044rj3wbfmgaif2jb0k28m2aczli6ai2n5yvn6pr7zjyw16kvd2"))))
1291 (build-system perl-build-system)
1293 `(("perl-extutils-depends" ,perl-extutils-depends)
1294 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1296 `(("gtk+" ,gtk+-2)))
1298 `(("perl-pango" ,perl-pango)))
1299 (home-page "https://metacpan.org/release/Gtk2")
1300 (synopsis "Perl interface to the 2.x series of the Gimp Toolkit library")
1301 (description "Perl bindings to the 2.x series of the Gtk+ widget set.
1302 This module allows you to write graphical user interfaces in a Perlish and
1303 object-oriented way, freeing you from the casting and memory management in C,
1304 yet remaining very close in spirit to original API.")
1305 (license license:lgpl2.1+)))
1307 (define-public perl-pango
1313 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Pango-"
1317 "0wdcidnfnb6nm79fzfs39ivawj3x8m98a147fmcxgv1zvwia9c1l"))))
1318 (build-system perl-build-system)
1320 `(("perl-extutils-depends" ,perl-extutils-depends)
1321 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1323 `(("pango" ,pango)))
1325 `(("perl-cairo" ,perl-cairo)
1326 ("perl-glib" ,perl-glib)))
1327 (home-page "https://metacpan.org/release/Pango")
1328 (synopsis "Layout and render international text")
1329 (description "Pango is a library for laying out and rendering text, with an
1330 emphasis on internationalization. Pango can be used anywhere that text layout
1331 is needed, but using Pango in conjunction with Cairo and/or Gtk2 provides a
1332 complete solution with high quality text handling and graphics rendering.
1334 Dynamically loaded modules handle text layout for particular combinations of
1335 script and font backend. Pango provides a wide selection of modules, including
1336 modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts.
1337 Virtually all of the world's major scripts are supported.
1339 In addition to the low level layout rendering routines, Pango includes
1340 @code{Pango::Layout}, a high level driver for laying out entire blocks of text,
1341 and routines to assist in editing internationalized text.")
1342 (license license:lgpl2.1+)))
1344 (define-public girara
1351 (string-append "https://pwmt.org/projects/girara/download/girara-"
1355 "0lkxrfna818wkkr2f6mdzf15y5z8xl1b9592ylmzjbqsqya3w7x8"))))
1356 (native-inputs `(("pkg-config" ,pkg-config)
1358 ("gettext" ,gettext-minimal)
1359 ("glib:bin" ,glib "bin")
1360 ("xorg-server" ,xorg-server-for-tests)))
1361 ;; Listed in 'Requires.private' of 'girara.pc'.
1362 (propagated-inputs `(("gtk+" ,gtk+)))
1364 `(#:phases (modify-phases %standard-phases
1365 (add-before 'check 'start-xserver
1366 ;; Tests require a running X server.
1367 (lambda* (#:key inputs #:allow-other-keys)
1368 (let ((xorg-server (assoc-ref inputs "xorg-server"))
1370 (setenv "DISPLAY" display)
1372 ;; On busy machines, tests may take longer than
1373 ;; the default of four seconds.
1374 (setenv "CK_DEFAULT_TIMEOUT" "20")
1376 ;; Don't fail due to missing '/etc/machine-id'.
1377 (setenv "DBUS_FATAL_WARNINGS" "0")
1378 (zero? (system (string-append xorg-server "/bin/Xvfb "
1379 display " &")))))))))
1380 (build-system meson-build-system)
1381 (home-page "https://pwmt.org/projects/girara/")
1382 (synopsis "Library for minimalistic gtk+3 user interfaces")
1383 (description "Girara is a library that implements a user interface that
1384 focuses on simplicity and minimalism. Currently based on GTK+, a
1385 cross-platform widget toolkit, it provides an interface that focuses on three
1386 main components: a so-called view widget that represents the actual
1387 application, an input bar that is used to execute commands of the
1388 application and the status bar which provides the user with current
1390 (license license:zlib)))
1392 (define-public gtk-doc
1398 (uri (string-append "mirror://gnome/sources/" name "/"
1399 (version-major+minor version) "/"
1400 name "-" version ".tar.xz"))
1403 "0vwsdl61nvnmqswlz5j9m4hg7qirhazwcikcnqf9nx0c13vx6sz2"))))
1404 (build-system gnu-build-system)
1406 `(#:parallel-tests? #f
1408 (modify-phases %standard-phases
1409 (add-after 'unpack 'patch-gtk-doc-scan
1410 (lambda* (#:key inputs #:allow-other-keys)
1411 (substitute* "gtk-doc.xsl"
1412 (("http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl")
1413 (string-append (assoc-ref inputs "docbook-xsl")
1414 "/xml/xsl/docbook-xsl-"
1415 ,(package-version docbook-xsl)
1416 "/html/chunk.xsl")))
1418 (add-after 'patch-gtk-doc-scan 'patch-test-out
1420 ;; sanity.sh counts the number of status lines. Since our
1421 ;; texlive regenerates the fonts every time and the font
1422 ;; generator metafont outputs a lot of extra lines, this
1423 ;; test would always fail. Disable it for now.
1424 (substitute* "tests/Makefile.in"
1425 (("empty.sh sanity.sh") "empty.sh"))
1427 (add-before 'build 'set-HOME
1429 ;; FIXME: dblatex with texlive-union does not find the built
1430 ;; metafonts, so it tries to generate them in HOME.
1431 (setenv "HOME" "/tmp")
1433 (add-before 'configure 'fix-docbook
1434 (lambda* (#:key inputs #:allow-other-keys)
1435 (substitute* "configure"
1436 ;; The configure check is overzealous about making sure that
1437 ;; things are in place -- it uses the xmlcatalog tool to make
1438 ;; sure that docbook-xsl is available, but this tool can only
1439 ;; look in one catalog file, unlike the $XML_CATALOG_FILES
1440 ;; variable that Guix defines. Fool the test by using the
1441 ;; docbook-xsl catalog explicitly and get on with life.
1442 (("\"\\$XML_CATALOG_FILE\" \
1443 \"http://docbook.sourceforge.net/release/xsl/")
1444 (string-append (car (find-files (assoc-ref inputs "docbook-xsl")
1446 " \"http://docbook.sourceforge.net/release/xsl/")))
1448 (add-after 'install 'wrap-executables
1449 (lambda* (#:key outputs #:allow-other-keys)
1450 (let ((out (assoc-ref outputs "out")))
1451 (for-each (lambda (prog)
1453 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))))
1454 (find-files (string-append out "/bin")))
1457 (list (string-append "--with-xml-catalog="
1458 (assoc-ref %build-inputs "docbook-xml")
1459 "/xml/dtd/docbook/catalog.xml"))))
1461 `(("pkg-config" ,pkg-config)
1462 ("itstool" ,itstool)
1464 ("gettext" ,gettext-minimal)
1469 ("xsltproc" ,libxslt)
1470 ("dblatex" ,dblatex)
1471 ("docbook-xml" ,docbook-xml-4.3)
1472 ("docbook-xsl" ,docbook-xsl)
1473 ("source-highlight" ,source-highlight)
1475 ("python-six" ,python-six)))
1476 (home-page "https://www.gtk.org/gtk-doc/")
1477 (synopsis "Documentation generator from C source code")
1479 "GTK-Doc generates API documentation from comments added to C code. It is
1480 typically used to document the public API of GTK+ and GNOME libraries, but it
1481 can also be used to document application code.")
1482 (license license:gpl2+)))
1484 (define-public gtk-engines
1486 (name "gtk-engines")
1490 (uri (string-append "mirror://gnome/sources/" name "/"
1491 (version-major+minor version) "/"
1492 name "-" version ".tar.bz2"))
1495 "1db65pb0j0mijmswrvpgkdabilqd23x22d95hp5kwxvcramq1dhm"))))
1496 (build-system gnu-build-system)
1499 `("--enable-animation")))
1501 `(("pkg-config" ,pkg-config)
1502 ("intltool" ,intltool)))
1504 ;; Don't propagate GTK+ to reduce "profile pollution".
1505 `(("gtk+" ,gtk+-2))) ; required by gtk-engines-2.pc
1506 (home-page "https://live.gnome.org/GnomeArt")
1507 (synopsis "Theming engines for GTK+ 2.x")
1509 "This package contains the standard GTK+ 2.x theming engines including
1510 Clearlooks, Crux, High Contrast, Industrial, LighthouseBlue, Metal, Mist,
1511 Redmond95 and ThinIce.")
1512 (license (list license:gpl2+ license:lgpl2.1+))))
1514 (define-public murrine
1520 (uri (string-append "mirror://gnome/sources/" name "/"
1521 (version-major+minor version) "/"
1522 name "-" version ".tar.xz"))
1525 "129cs5bqw23i76h3nmc29c9mqkm9460iwc8vkl7hs4xr07h8mip9"))))
1526 (build-system gnu-build-system)
1529 `("--enable-animation"
1530 "--enable-animationrtl")))
1532 `(("pkg-config" ,pkg-config)
1533 ("intltool" ,intltool)))
1535 `(("gtk+" ,gtk+-2)))
1536 (home-page "https://live.gnome.org/GnomeArt")
1537 (synopsis "Cairo-based theming engine for GTK+ 2.x")
1539 "Murrine is a cairo-based GTK+ theming engine. It is named after the
1540 glass artworks done by Venicians glass blowers.")
1541 (license license:gpl2+)))
1543 (define-public gtkspell3
1549 (uri (string-append "mirror://sourceforge/gtkspell/"
1550 version "/" name "-" version ".tar.xz"))
1553 "09jdicmpipmj4v84gnkqwbmj4lh8v0i6pn967rb9jx4zg2ia9x54"))))
1554 (build-system gnu-build-system)
1556 `(("intltool" ,intltool)
1557 ("pkg-config" ,pkg-config)))
1559 `(("gobject-introspection" ,gobject-introspection)
1563 `(("enchant" ,enchant-1.6))) ;gtkspell3-3.0.pc refers to it
1564 (home-page "http://gtkspell.sourceforge.net")
1565 (synopsis "Spell-checking addon for GTK's TextView widget")
1567 "GtkSpell provides word-processor-style highlighting and replacement of
1568 misspelled words in a GtkTextView widget.")
1569 (license license:gpl2+)))
1571 (define-public clipit
1578 "https://github.com/downloads/ClipIt/clipit-"
1582 "0jrwn8qfgb15rwspdp1p8hb1nc0ngmpvgr87d4k3lhlvqg2cfqva"))))
1583 (build-system gnu-build-system)
1585 `(("intltool" ,intltool)
1586 ("pkg-config" ,pkg-config)))
1588 `(("gtk+" ,gtk+-2)))
1589 (home-page "https://github.com/CristianHenzel/ClipIt")
1590 (synopsis "Lightweight GTK+ clipboard manager")
1592 "ClipIt is a clipboard manager with features such as a history, search
1593 thereof, global hotkeys and clipboard item actions. It was forked from
1594 Parcellite and adds bugfixes and features.")
1595 (license license:gpl2+)))
1597 (define-public graphene
1604 "https://github.com/ebassi/graphene/archive/"
1606 (file-name (string-append name "-" version ".tar.gz"))
1608 (base32 "1zd2daj7y590wnzn4jw0niyc4fnzgxrcl9i7nwhy8b25ks2hz5wq"))))
1609 (build-system gnu-build-system)
1611 `(#:configure-flags '("--enable-introspection=yes")
1613 (modify-phases %standard-phases
1614 (add-before 'configure 'autogen
1616 (zero? (system* "./autogen.sh")))))))
1618 `(("autoconf" ,autoconf)
1620 ("pkg-config" ,pkg-config)
1621 ("automake" ,automake)
1622 ("libtool" ,libtool)))
1624 `(("python" ,python)
1625 ("python-2" ,python-2)
1627 ("gobject-introspection" ,gobject-introspection)))
1628 (home-page "http://ebassi.github.io/graphene")
1629 (synopsis "Thin layer of graphic data types")
1630 (description "This library provides graphic types and their relative API;
1631 it does not deal with windowing system surfaces, drawing, scene graphs, or
1633 (license license:expat)))
1643 (url "https://github.com/v1cont/yad.git")
1644 (commit (string-append "v" version))))
1645 (file-name (git-file-name name version))
1647 (base32 "1vpgbjbkkbk5plicyklzpf65j1vlig4n4bi3qpvrz5bb09ic5alw"))))
1648 (build-system gnu-build-system)
1655 "--enable-icon-browser")
1657 (modify-phases %standard-phases
1660 (invoke "autoreconf" "-vif")
1661 (invoke "intltoolize" "--force" "--automake")
1666 `(("autoconf" ,autoconf)
1667 ("automake" ,automake)
1668 ("intltool" ,intltool)
1669 ("pkg-config" ,pkg-config)))
1670 (home-page "https://sourceforge.net/projects/yad-dialog/")
1671 (synopsis "GTK+ dialog boxes for shell scripts")
1673 "This program allows you to display GTK+ dialog boxes from command line or
1674 shell scripts. Example of how to use @code{yad} can be consulted at
1675 @url{https://sourceforge.net/p/yad-dialog/wiki/browse_pages/}.")
1676 (license license:gpl3+)))