1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014, 2015, 2017, 2018, 2019 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 ng0 <ng0@n0.is>
17 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
18 ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
19 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
20 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
21 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
22 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
23 ;;; Copyright © 2019 Meiyo Peng <meiyo@riseup.net>
24 ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
26 ;;; This file is part of GNU Guix.
28 ;;; GNU Guix is free software; you can redistribute it and/or modify it
29 ;;; under the terms of the GNU General Public License as published by
30 ;;; the Free Software Foundation; either version 3 of the License, or (at
31 ;;; your option) any later version.
33 ;;; GNU Guix is distributed in the hope that it will be useful, but
34 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
35 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 ;;; GNU General Public License for more details.
38 ;;; You should have received a copy of the GNU General Public License
39 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
41 (define-module (gnu packages gtk)
42 #:use-module ((guix licenses) #:prefix license:)
43 #:use-module (guix utils)
44 #:use-module (guix packages)
45 #:use-module (guix download)
46 #:use-module (guix git-download)
47 #:use-module (guix build-system glib-or-gtk)
48 #:use-module (guix build-system gnu)
49 #:use-module (guix build-system meson)
50 #:use-module (guix build-system perl)
51 #:use-module (guix build-system python)
52 #:use-module (guix build-system waf)
53 #:use-module (gnu packages)
54 #:use-module (gnu packages algebra)
55 #:use-module (gnu packages autotools)
56 #:use-module (gnu packages base)
57 #:use-module (gnu packages texinfo)
58 #:use-module (gnu packages check)
59 #:use-module (gnu packages compression)
60 #:use-module (gnu packages docbook)
61 #:use-module (gnu packages enchant)
62 #:use-module (gnu packages fontutils)
63 #:use-module (gnu packages freedesktop)
64 #:use-module (gnu packages fribidi)
65 #:use-module (gnu packages gettext)
66 #:use-module (gnu packages ghostscript)
67 #:use-module (gnu packages gl)
68 #:use-module (gnu packages glib)
69 #:use-module (gnu packages gnome)
70 #:use-module (gnu packages icu4c)
71 #:use-module (gnu packages image)
72 #:use-module (gnu packages libffi)
73 #:use-module (gnu packages linux)
74 #:use-module (gnu packages pdf)
75 #:use-module (gnu packages perl)
76 #:use-module (gnu packages pkg-config)
77 #:use-module (gnu packages pretty-print)
78 #:use-module (gnu packages python)
79 #:use-module (gnu packages python-xyz)
80 #:use-module (gnu packages guile)
81 #:use-module (gnu packages guile-xyz)
82 #:use-module (gnu packages cups)
83 #:use-module (gnu packages xml)
84 #:use-module (gnu packages xorg)
85 #:use-module (gnu packages xdisorg)
86 #:use-module (srfi srfi-1)
87 #:use-module (srfi srfi-26))
95 (uri (string-append "mirror://gnome/sources/" name "/"
96 (version-major+minor version) "/"
97 name "-" version ".tar.xz"))
100 "1k4i817bd2w5b9z394f2yyx95591l2746wa40am0vvz4gzdgwhfb"))))
101 (build-system meson-build-system)
102 (propagated-inputs `(("glib" ,glib))) ; required by atk.pc
104 `(("pkg-config" ,pkg-config)
105 ("gettext" ,gettext-minimal)
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 "--disable-static")))
150 (synopsis "2D graphics library")
152 "Cairo is a 2D graphics library with support for multiple output devices.
153 Currently supported output targets include the X Window System (via both
154 Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file
155 output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.
157 Cairo is designed to produce consistent output on all output media while
158 taking advantage of display hardware acceleration when available
159 eg. through the X Render Extension).
161 The cairo API provides operations similar to the drawing operators of
162 PostScript and PDF. Operations in cairo including stroking and filling cubic
163 Bézier splines, transforming and compositing translucent images, and
164 antialiased text rendering. All drawing operations can be transformed by any
165 affine transformation (scale, rotation, shear, etc.).")
166 (license license:lgpl2.1) ; or Mozilla Public License 1.1
167 (home-page "https://cairographics.org/")))
169 (define-public cairo-xcb
175 ,@(package-inputs cairo)))
179 '("--enable-xlib-xcb" "--enable-gl" "--enable-egl")))
180 (synopsis "2D graphics library (with X11 support)")))
182 (define-public harfbuzz
188 (uri (string-append "https://www.freedesktop.org/software/"
189 "harfbuzz/release/harfbuzz-"
193 "04iwq13w6zkdhljmsxrzgg4fyh04qnwfn57rgrl9kmijc7cvh4wl"))))
194 (build-system gnu-build-system)
196 "bin")) ; 160K, only hb-view depend on cairo
200 ;; There are all in the Requires or Requires.private field of '.pc'.
202 ("graphite2" ,graphite2)
205 `(("glib:bin" ,glib "bin") ;for glib-mkenums
206 ("gobject-introspection" ,gobject-introspection)
207 ("pkg-config" ,pkg-config)
208 ("python" ,python-wrapper)
211 `(#:configure-flags `("--with-graphite2"
214 "--bindir=" (assoc-ref %outputs "bin") "/bin"))))
215 (synopsis "OpenType text shaping engine")
217 "HarfBuzz is an OpenType text shaping engine.")
218 (license (license:x11-style "file://COPYING"
219 "See 'COPYING' in the distribution."))
220 (home-page "https://www.freedesktop.org/wiki/Software/HarfBuzz/")))
228 (uri (string-append "mirror://gnome/sources/pango/"
229 (version-major+minor version) "/"
230 name "-" version ".tar.xz"))
233 "17bwb7dgbncrfsmchlib03k9n3xaalirb39g3yb43gg8cg6p8aqx"))))
234 (build-system gnu-build-system)
236 ;; These are all in Requires or Requires.private of the '.pc' files.
239 ("fontconfig" ,fontconfig)
240 ("freetype" ,freetype)
242 ("harfbuzz" ,harfbuzz)))
246 ;; Some packages, such as Openbox, expect Pango to be built with the
247 ;; optional libxft support.
250 `(("pkg-config" ,pkg-config)
251 ("glib" ,glib "bin") ; glib-mkenums, etc.
252 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
253 (synopsis "GNOME text and font handling library")
255 "Pango is the core text and font handling library used in GNOME
256 applications. It has extensive support for the different writing systems
257 used throughout the world.")
258 (license license:lgpl2.0+)
259 (home-page "https://developer.gnome.org/pango/")))
261 (define-public pangox-compat
263 (name "pangox-compat")
267 (uri (string-append "mirror://gnome/sources/" name "/"
268 (version-major+minor version) "/"
269 name "-" version ".tar.xz"))
272 "0ip0ziys6mrqqmz4n71ays0kf5cs1xflj1gfpvs4fgy2nsrr482m"))))
273 (build-system gnu-build-system)
278 `(("intltool" ,intltool)
279 ("pkg-config" ,pkg-config)))
280 (home-page "https://developer.gnome.org/pango")
281 (synopsis "Obsolete pango functions")
282 (description "Pangox was a X backend to pango. It is now obsolete and no
283 longer provided by recent pango releases. pangox-compat provides the
284 functions which were removed.")
285 (license license:lgpl2.0+)))
293 (uri (string-append "https://download.drobilla.net/ganv-"
297 "0g7s5mp14qgbfjdql0k1s8464r21g47ssn5dws6jazsnw6njhl0l"))))
298 (build-system waf-build-system)
301 (modify-phases %standard-phases
302 (add-before 'configure 'set-flags
303 (lambda* (#:key outputs #:allow-other-keys)
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"))
357 "gtksourceview-2-add-default-directory.patch"))))
358 (build-system gnu-build-system)
360 `(("intltool" ,intltool)
361 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
362 ("pkg-config" ,pkg-config)
364 ("xorg-server" ,xorg-server-for-tests)
365 ("shared-mime-info" ,shared-mime-info)))
367 ;; As per the pkg-config file.
369 ("libxml2" ,libxml2)))
372 ;; Unfortunately, some of the tests in "make check" are highly dependent
373 ;; on the environment therefore, some black magic is required.
374 (modify-phases %standard-phases
375 (add-before 'check 'start-xserver
376 (lambda* (#:key inputs #:allow-other-keys)
377 (let ((xorg-server (assoc-ref inputs "xorg-server"))
378 (mime (assoc-ref inputs "shared-mime-info")))
380 ;; There must be a running X server and make check doesn't start one.
381 ;; Therefore we must do it.
382 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
383 (setenv "DISPLAY" ":1")
385 ;; The .lang files must be found in $XDG_DATA_HOME/gtksourceview-2.0
386 (system "ln -s gtksourceview gtksourceview-2.0")
387 (setenv "XDG_DATA_HOME" (getcwd))
389 ;; Finally, the mimetypes must be available.
390 (setenv "XDG_DATA_DIRS" (string-append mime "/share/")))
392 (synopsis "Widget that extends the standard GTK+ 2.x 'GtkTextView' widget")
394 "GtkSourceView is a portable C library that extends the standard GTK+
395 framework for multiline text editing with support for configurable syntax
396 highlighting, unlimited undo/redo, search and replace, a completion framework,
397 printing and other features typical of a source code editor.")
398 (license license:lgpl2.0+)
399 (home-page "https://developer.gnome.org/gtksourceview/")))
401 (define-public gtksourceview
403 (name "gtksourceview")
407 (uri (string-append "mirror://gnome/sources/gtksourceview/"
408 (version-major+minor version) "/"
409 "gtksourceview-" version ".tar.xz"))
412 "0xgnjj7jd56wbl99s76sa1vjq9bkz4mdsxwgwlcphg689liyncf4"))))
413 (build-system gnu-build-system)
416 (modify-phases %standard-phases
419 (lambda* (#:key inputs #:allow-other-keys)
420 (let ((xorg-server (assoc-ref inputs "xorg-server")))
421 ;; Tests require a running X server.
422 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
423 (setenv "DISPLAY" ":1")
424 ;; For the missing /etc/machine-id.
425 (setenv "DBUS_FATAL_WARNINGS" "0")
428 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
429 ("intltool" ,intltool)
431 ("gobject-introspection" ,gobject-introspection)
432 ("pkg-config" ,pkg-config)
435 ("xorg-server" ,xorg-server-for-tests)
436 ("shared-mime-info" ,shared-mime-info)))
438 ;; gtksourceview-3.0.pc refers to all these.
441 ("libxml2" ,libxml2)))
442 (home-page "https://wiki.gnome.org/Projects/GtkSourceView")
443 (synopsis "GNOME source code widget")
444 (description "GtkSourceView is a text widget that extends the standard
445 GTK+ text widget GtkTextView. It improves GtkTextView by implementing syntax
446 highlighting and other features typical of a source code editor.")
447 (license license:lgpl2.1+)))
449 (define-public gtksourceview-3
450 (package (inherit gtksourceview)
451 (name "gtksourceview")
455 (uri (string-append "mirror://gnome/sources/" name "/"
456 (version-major+minor version) "/"
457 name "-" version ".tar.xz"))
460 "16ym7jwiki4s1pilwr4incx0yg7ll94f1cajrnpndkxxs36hcm5b"))))))
462 (define-public gdk-pixbuf
468 (uri (string-append "mirror://gnome/sources/" name "/"
469 (version-major+minor version) "/"
470 name "-" version ".tar.xz"))
473 "1rnlx9yfw970maxi2x6niaxmih5la11q1ilr7gzshz2kk585k0hm"))))
474 (build-system meson-build-system)
476 `(#:configure-flags '("-Dinstalled_tests=false")
478 (modify-phases %standard-phases
480 'unpack 'disable-failing-tests
482 (substitute* "tests/meson.build"
483 ;; XXX FIXME: This test fails on armhf machines with:
484 ;; SKIP Not enough memory to load bitmap image
485 ;; ERROR: cve-2015-4491 - too few tests run (expected 4, got 2)
486 ((".*'cve-2015-4491'.*") "")
487 ;; XXX FIXME: This test fails with:
488 ;; ERROR:pixbuf-jpeg.c:74:test_type9_rotation_exif_tag:
489 ;; assertion failed (error == NULL): Data differ
490 ;; (gdk-pixbuf-error-quark, 0)
491 ((".*'pixbuf-jpeg'.*") ""))
493 ;; The slow tests take longer than the specified timeout.
494 ,@(if (any (cute string=? <> (%current-system))
495 '("armhf-linux" "aarch64-linux"))
498 (invoke "meson" "test" "--timeout-multiplier" "5"))))
501 `(;; Required by gdk-pixbuf-2.0.pc
504 ;; Used for testing and required at runtime.
505 ("shared-mime-info" ,shared-mime-info)))
507 `(("libjpeg" ,libjpeg)
511 `(("pkg-config" ,pkg-config)
512 ("gettext" ,gettext-minimal)
513 ("glib" ,glib "bin") ; glib-mkenums, etc.
514 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
515 (synopsis "GNOME image loading and manipulation library")
517 "GdkPixbuf is a library for image loading and manipulation developed
518 in the GNOME project.")
519 (license license:lgpl2.0+)
520 (home-page "https://developer.gnome.org/gdk-pixbuf/")))
522 ;; To build gdk-pixbuf with SVG support, we need librsvg, and librsvg depends
523 ;; on gdk-pixbuf, so this new varibale. Also, librsvg adds 90MiB to the
525 (define-public gdk-pixbuf+svg
526 (package (inherit gdk-pixbuf)
527 (name "gdk-pixbuf+svg")
529 `(("librsvg" ,librsvg)
530 ,@(package-inputs gdk-pixbuf)))
532 '(#:configure-flags '("-Dinstalled-tests=false")
533 #:tests? #f ; tested by the gdk-pixbuf package already
535 (modify-phases %standard-phases
536 (add-after 'install 'register-svg-loader
537 (lambda* (#:key inputs outputs #:allow-other-keys)
538 (let* ((out (assoc-ref outputs "out"))
539 (librsvg (assoc-ref inputs "librsvg"))
542 (find-files out "^libpixbufloader-.*\\.so$")
543 (find-files librsvg "^libpixbufloader-.*\\.so$")))
544 (gdk-pixbuf-query-loaders
545 (string-append out "/bin/gdk-pixbuf-query-loaders")))
547 gdk-pixbuf-query-loaders
551 "GNOME image loading and manipulation library, with SVG support")))
553 (define-public at-spi2-core
555 (name "at-spi2-core")
559 (uri (string-append "mirror://gnome/sources/" name "/"
560 (version-major+minor version) "/"
561 name "-" version ".tar.xz"))
564 "0lqd7gsl471v6538iighkvb21gjglcb9pklvas32rjpsxcvsjaiw"))))
565 (build-system meson-build-system)
566 (outputs '("out" "doc"))
571 (modify-phases %standard-phases
572 (add-after 'unpack 'set-documentation-path
573 (lambda* (#:key outputs #:allow-other-keys)
574 ;; Ensure that the cross-references point to the "doc" output.
575 (substitute* "doc/libatspi/meson.build"
577 (string-append "docpath = '" (assoc-ref outputs "doc") "/share/gtk-doc/html'\n")))
579 (add-before 'install 'prepare-doc-directory
580 (lambda* (#:key outputs #:allow-other-keys)
581 (mkdir-p (string-append (assoc-ref outputs "doc") "/share"))
583 (add-after 'install 'move-documentation
584 (lambda* (#:key outputs #:allow-other-keys)
585 (let ((out (assoc-ref outputs "out"))
586 (doc (assoc-ref outputs "doc")))
588 (string-append out "/share/gtk-doc")
589 (string-append doc "/share/gtk-doc"))
590 (delete-file-recursively
591 (string-append out "/share/gtk-doc")))
593 (add-after 'install 'check
595 (setenv "HOME" (getenv "TMPDIR")) ; xfconfd requires a writable HOME
596 ;; Run test-suite under a dbus session.
597 (setenv "XDG_DATA_DIRS" ; for finding org.xfce.Xfconf.service
598 (string-append %output "/share"))
599 ;; Don't fail on missing '/etc/machine-id'.
600 (setenv "DBUS_FATAL_WARNINGS" "0") ;
601 (invoke "dbus-launch" "ninja" "test")))
604 ;; atspi-2.pc refers to all these.
608 ("libxtst" ,libxtst)))
610 `(("gobject-introspection" ,gobject-introspection)
613 ("intltool" ,intltool)
614 ("pkg-config" ,pkg-config)))
615 (synopsis "Assistive Technology Service Provider Interface, core components")
617 "The Assistive Technology Service Provider Interface, core components,
618 is part of the GNOME accessibility project.")
619 (license license:lgpl2.0+)
620 (home-page "https://projects.gnome.org/accessibility/")))
622 (define-public at-spi2-atk
628 (uri (string-append "mirror://gnome/sources/" name "/"
629 (version-major+minor version) "/"
630 name "-" version ".tar.xz"))
633 "0p54wx6f6q7s8w0b1j0sgw87pikllp79q5g3lfiwqazs779ycl8b"))))
634 (build-system meson-build-system)
637 (modify-phases %standard-phases
639 ;; Run test-suite under a dbus session.
641 (setenv "DBUS_FATAL_WARNINGS" "0")
642 (invoke "dbus-launch" "meson" "test"))))))
644 `(("at-spi2-core" ,at-spi2-core))) ; required by atk-bridge-2.0.pc
648 `(("pkg-config" ,pkg-config)
651 ("libxml2" ,libxml2)))
652 (synopsis "Assistive Technology Service Provider Interface, ATK bindings")
654 "The Assistive Technology Service Provider Interface
655 is part of the GNOME accessibility project.")
656 (license license:lgpl2.0+)
657 (home-page "https://projects.gnome.org/accessibility/")))
659 (define-public gtk+-2
665 (uri (string-append "mirror://gnome/sources/" name "/"
666 (version-major+minor version) "/"
667 name "-" version ".tar.xz"))
670 "0bjq7ja9gwcv6n5q4qkvdjjx40wsdiikksz1zqxvxsm5vlyskj5n"))
671 (patches (search-patches "gtk2-respect-GUIX_GTK2_PATH.patch"
672 "gtk2-respect-GUIX_GTK2_IM_MODULE_FILE.patch"
673 "gtk2-theme-paths.patch"))))
674 (build-system gnu-build-system)
675 (outputs '("out" "bin" "doc"))
678 ("gdk-pixbuf" ,gdk-pixbuf+svg)
682 ("libxcomposite" ,libxcomposite)
683 ("libxcursor" ,libxcursor)
684 ("libxdamage" ,libxdamage)
686 ("libxinerama" ,libxinerama)
687 ("libxrandr" ,libxrandr)))
690 ("gettext" ,gettext-minimal)
692 ("gobject-introspection" ,gobject-introspection)
693 ("pkg-config" ,pkg-config)
694 ("python-wrapper" ,python-wrapper)))
697 (list "--with-xinput=yes"
698 (string-append "--with-html-dir="
699 (assoc-ref %outputs "doc")
700 "/share/gtk-doc/html"))
702 (modify-phases %standard-phases
703 (add-before 'configure 'disable-tests
705 ;; FIXME: re-enable tests requiring an X server
706 (substitute* "gtk/Makefile.in"
707 (("SUBDIRS = theme-bits . tests") "SUBDIRS = theme-bits ."))
709 (add-after 'install 'remove-cache
710 (lambda* (#:key outputs #:allow-other-keys)
713 (find-files (assoc-ref outputs "out") "immodules.cache"))
716 (list (search-path-specification
717 (variable "GUIX_GTK2_PATH")
718 (files '("lib/gtk-2.0")))))
719 (synopsis "Cross-platform toolkit for creating graphical user interfaces")
721 "GTK+, or the GIMP Toolkit, is a multi-platform toolkit for creating
722 graphical user interfaces. Offering a complete set of widgets, GTK+ is
723 suitable for projects ranging from small one-off tools to complete
724 application suites.")
725 (license license:lgpl2.0+)
726 (home-page "https://www.gtk.org/")))
729 (package (inherit gtk+-2)
734 (uri (string-append "mirror://gnome/sources/" name "/"
735 (version-major+minor version) "/"
736 name "-" version ".tar.xz"))
739 "10xyyhlfb0yk4hglngxh2zsv9xrxkqv343df8h01dvagc6jyp10k"))
740 (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch"
741 "gtk3-respect-GUIX_GTK3_IM_MODULE_FILE.patch"))))
743 `(("at-spi2-atk" ,at-spi2-atk)
745 ("gdk-pixbuf" ,gdk-pixbuf+svg)
746 ("libepoxy" ,libepoxy)
747 ("libxcursor" ,libxcursor)
749 ("libxinerama" ,libxinerama)
750 ("libxkbcommon" ,libxkbcommon)
751 ("libxdamage" ,libxdamage)
752 ("libxrandr" ,libxrandr)
756 ("wayland-protocols" ,wayland-protocols)))
758 `(("libxml2" ,libxml2)
759 ;; XXX: colord depends on mozjs (through polkit), which fails on
760 ;; on non-intel systems now.
762 ("cups" ,cups) ;for printing support
763 ;; XXX: rest depends on p11-kit, which fails on mips64el now.
765 ("json-glib" ,json-glib)))
769 ("gettext" ,gettext-minimal)
770 ("pkg-config" ,pkg-config)
771 ("gobject-introspection" ,gobject-introspection)
772 ("python-wrapper" ,python-wrapper)
773 ;; By using a special xorg-server for GTK+'s tests, we reduce the impact
774 ;; of updating xorg-server directly on the master branch.
775 ("xorg-server" ,xorg-server-for-tests)))
777 `(#:disallowed-references (,xorg-server-for-tests)
778 ;; 47 MiB goes to "out" (24 of which is locale data!), and 26 MiB goes
780 #:configure-flags (list (string-append "--with-html-dir="
781 (assoc-ref %outputs "doc")
782 "/share/gtk-doc/html")
783 ;; The header file <gdk/gdkwayland.h> is required
784 ;; by gnome-control-center
785 "--enable-wayland-backend"
786 ;; This is necessary to build both backends.
787 "--enable-x11-backend"
788 ;; This enables the HTML5 websocket backend.
789 "--enable-broadway-backend")
790 #:phases (modify-phases %standard-phases
791 (add-before 'configure 'pre-configure
793 ;; Disable most tests, failing in the chroot with the message:
794 ;; D-Bus library appears to be incorrectly set up; failed to read
795 ;; machine uuid: Failed to open "/etc/machine-id": No such file or
797 ;; See the manual page for dbus-uuidgen to correct this issue.
798 (substitute* "testsuite/Makefile.in"
799 (("SUBDIRS = gdk gtk a11y css reftests")
802 (add-after 'install 'move-desktop-files
803 ;; Move desktop files into 'bin' to avoid cycle references.
804 (lambda* (#:key outputs #:allow-other-keys)
805 (let ((out (assoc-ref outputs "out"))
806 (bin (assoc-ref outputs "bin")))
807 (mkdir-p (string-append bin "/share"))
808 (rename-file (string-append out "/share/applications")
809 (string-append bin "/share/applications"))
812 (list (search-path-specification
813 (variable "GUIX_GTK3_PATH")
814 (files '("lib/gtk-3.0")))))))
820 (define-public guile-cairo
826 (uri (string-append "mirror://savannah/guile-cairo/guile-cairo-"
830 "0p6xrhf2k6n5dybn88050za7h90gnd7534n62l53vsca187pwgdf"))
831 (modules '((guix build utils)))
835 ;; Install Scheme files in …/guile/site/X.Y.
836 (substitute* (find-files "." "^Makefile\\.in$")
837 (("^(.*)dir = (.*)/guile/site(.*)" _ name prefix suffix)
838 (string-append name "dir = " prefix
839 "/guile/site/@GUILE_EFFECTIVE_VERSION@"
842 (build-system gnu-build-system)
844 `(("guile-lib" ,guile-lib)
846 ("guile" ,guile-2.2)))
848 ;; The .pc file refers to 'cairo'.
851 `(("pkg-config" ,pkg-config)))
852 (home-page "https://www.nongnu.org/guile-cairo/")
853 (synopsis "Cairo bindings for GNU Guile")
855 "Guile-Cairo wraps the Cairo graphics library for Guile Scheme.
856 Guile-Cairo is complete, wrapping almost all of the Cairo API. It is API
857 stable, providing a firm base on which to do graphics work. Finally, and
858 importantly, it is pleasant to use. You get a powerful and well-maintained
859 graphics library with all of the benefits of Scheme: memory management,
860 exceptions, macros, and a dynamic programming environment.")
861 (license license:lgpl3+)))
863 (define-public guile-rsvg
864 ;; Use a recent snapshot that supports Guile 2.2 and beyond.
865 (let ((commit "05c6a2fd67e4fea1a7c3ff776729dc931bae6678")
869 (version (string-append "2.18.1-" revision "."
870 (string-take commit 7)))
873 (uri (string-append "https://gitlab.com/wingo/guile-rsvg/"
874 "repository/archive.tar.gz?ref="
878 "0vdzjx8l5nc4y2xjqs0g1rqn1zrwfsm30brh5gz00r1x41a2pvv2"))
879 (patches (search-patches "guile-rsvg-pkgconfig.patch"))
880 (modules '((guix build utils)))
883 (substitute* (find-files "." "Makefile\\.am")
884 (("/share/guile/site")
885 "/share/guile/site/@GUILE_EFFECTIVE_VERSION@"))
887 (file-name (string-append name "-" version ".tar.gz"))))
888 (build-system gnu-build-system)
890 `(#:phases (modify-phases %standard-phases
893 (invoke "autoreconf" "-vfi"))))))
894 (native-inputs `(("pkg-config" ,pkg-config)
895 ("autoconf" ,autoconf)
896 ("automake" ,automake)
898 ("texinfo" ,texinfo)))
899 (inputs `(("guile" ,guile-2.2)
901 ("guile-lib" ,guile-lib))) ;for (unit-test)
902 (propagated-inputs `(("guile-cairo" ,guile-cairo)))
903 (synopsis "Render SVG images using Cairo from Guile")
905 "Guile-RSVG wraps the RSVG library for Guile, allowing you to render SVG
906 images onto Cairo surfaces.")
907 (home-page "http://wingolog.org/projects/guile-rsvg/")
908 (license license:lgpl2.1+))))
910 (define-public guile-present
912 (name "guile-present")
916 (uri (string-append "http://wingolog.org/pub/guile-present/"
917 "guile-present-" version ".tar.gz"))
920 "1qam447m05sxxv6x8dlzg7qnyfc4dh8apjw1idpfhpns671gfr6m"))
921 (patches (search-patches "guile-present-coding.patch"))))
922 (build-system gnu-build-system)
925 (modify-phases %standard-phases
926 (add-after 'install 'post-install
927 (lambda* (#:key inputs outputs #:allow-other-keys)
928 (let* ((out (assoc-ref outputs "out"))
929 (bin (string-append out "/bin"))
930 (guile (assoc-ref inputs "guile")))
931 (substitute* (find-files bin ".*")
933 (string-append guile "/bin/guile -L "
934 out "/share/guile/site/2.0 -C "
935 out "/share/guile/site/2.0 "))))
937 (native-inputs `(("pkg-config" ,pkg-config)))
938 (inputs `(("guile" ,guile-2.2)))
940 ;; These are used by the (present …) modules.
941 `(("guile-lib" ,guile-lib)
942 ("guile-cairo" ,guile-cairo)
943 ("guile-rsvg" ,guile-rsvg)))
944 (home-page "http://wingolog.org/software/guile-present/")
945 (synopsis "Create SVG or PDF presentations in Guile")
947 "Guile-Present defines a declarative vocabulary for presentations,
948 together with tools to render presentation documents as SVG or PDF.
949 Guile-Present can be used to make presentations programmatically, but also
950 includes a tools to generate PDF presentations out of Org mode and Texinfo
952 (license license:lgpl3+)))
954 (define-public guile-gnome
961 (string-append "mirror://gnu/" name
962 "/guile-gnome-platform/guile-gnome-platform-"
966 "1gnf3j96nip5kl99a268i0dy1hj7s1cfs66sps3zwysnkd7qr399"))))
967 (build-system gnu-build-system)
969 `(("pkg-config" ,pkg-config)
971 ;;("corba" ,corba) ; not packaged yet
973 ("gobject-introspection" ,gobject-introspection)
974 ;;("gthread" ,gthread) ; not packaged yet
975 ("gnome-vfs" ,gnome-vfs)
976 ("gdk-pixbuf" ,gdk-pixbuf)
978 ("libglade" ,libglade)
979 ("libgnome" ,libgnome)
980 ("libgnomecanvas" ,libgnomecanvas)
981 ("libgnomeui" ,libgnomeui)
985 (inputs `(("guile" ,guile-2.2)))
987 `(("guile-cairo" ,guile-cairo)
989 ("guile-lib" ,guile-lib)))
992 #:phases (modify-phases %standard-phases
993 (add-before 'configure 'pre-configure
994 (lambda* (#:key outputs #:allow-other-keys)
995 (let ((out (assoc-ref outputs "out")))
996 (substitute* (find-files "." "^Makefile.in$")
997 (("guilesite :=.*guile/site" all)
998 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
1000 (outputs '("out" "debug"))
1001 (synopsis "Guile interface for GTK+ programming for GNOME")
1003 "Includes guile-clutter, guile-gnome-gstreamer,
1004 guile-gnome-platform (GNOME developer libraries), and guile-gtksourceview.")
1005 (home-page "https://www.gnu.org/software/guile-gnome/")
1006 (license license:gpl2+)
1007 (properties '((upstream-name . "guile-gnome-platform")
1008 (ftp-directory . "/gnu/guile-gnome/guile-gnome-platform")))))
1014 (define-public cairomm
1020 (uri (string-append "https://www.cairographics.org/releases/"
1021 name "-" version ".tar.gz"))
1024 "16fmigxsaz85c3lgcls7biwyz8zy8c8h3jndfm54cxxas3a7zi25"))))
1025 (build-system gnu-build-system)
1027 ;; The examples lack -lcairo.
1028 '(#:make-flags '("LDFLAGS=-lcairo")))
1029 (native-inputs `(("pkg-config" ,pkg-config)))
1031 `(("libsigc++" ,libsigc++)
1032 ("freetype" ,freetype)
1033 ("fontconfig" ,fontconfig)
1035 (home-page "https://cairographics.org/")
1036 (synopsis "C++ bindings to the Cairo 2D graphics library")
1038 "Cairomm provides a C++ programming interface to the Cairo 2D graphics
1040 (license license:lgpl2.0+)))
1042 (define-public pangomm
1048 (uri (string-append "mirror://gnome/sources/" name "/"
1049 (version-major+minor version) "/"
1050 name "-" version ".tar.xz"))
1053 "0mmzxp3wniaafkxr30sb22mq9x44xckb5d60h1bl99lkzxks0vfa"))))
1054 (build-system gnu-build-system)
1055 (native-inputs `(("pkg-config" ,pkg-config)))
1058 ("cairomm" ,cairomm)
1061 (home-page "http://www.pango.org/")
1062 (synopsis "C++ interface to the Pango text rendering library")
1064 "Pangomm provides a C++ programming interface to the Pango text rendering
1066 (license license:lgpl2.1+)))
1068 (define-public atkmm
1074 (uri (string-append "mirror://gnome/sources/" name "/"
1075 (version-major+minor version) "/"
1076 name "-" version ".tar.xz"))
1079 "0fnxrspxkhhbrjphqrpvl3zjm66n50s4cywrrrwkhbflgy8zqk2c"))))
1080 (build-system gnu-build-system)
1081 (native-inputs `(("pkg-config" ,pkg-config)))
1083 `(("glibmm" ,glibmm) ("atk" ,atk)))
1084 (home-page "https://www.gtkmm.org")
1085 (synopsis "C++ interface to the ATK accessibility library")
1087 "ATKmm provides a C++ programming interface to the ATK accessibility
1089 (license license:lgpl2.1+)))
1091 (define-public gtkmm
1097 (uri (string-append "mirror://gnome/sources/" name "/"
1098 (version-major+minor version) "/"
1099 name "-" version ".tar.xz"))
1102 "1hxdnhavjyvbcpxhd5z17l9fj4182028s66lc0s16qqqrldhjwbd"))))
1103 (build-system gnu-build-system)
1104 (native-inputs `(("pkg-config" ,pkg-config)
1105 ("glib" ,glib "bin") ;for 'glib-compile-resources'
1106 ("xorg-server" ,xorg-server-for-tests)))
1108 `(("pangomm" ,pangomm)
1109 ("cairomm" ,cairomm)
1112 ("glibmm" ,glibmm)))
1114 `(#:disallowed-references (,xorg-server-for-tests)
1115 #:phases (modify-phases %standard-phases
1116 (add-before 'check 'run-xvfb
1117 (lambda* (#:key inputs #:allow-other-keys)
1118 (let ((xorg-server (assoc-ref inputs "xorg-server")))
1119 ;; Tests such as 'object_move/test' require a running
1121 (system (string-append xorg-server "/bin/Xvfb :1 &"))
1122 (setenv "DISPLAY" ":1")
1123 ;; Don't fail because of the missing /etc/machine-id.
1124 (setenv "DBUS_FATAL_WARNINGS" "0")
1126 (home-page "https://gtkmm.org/")
1128 "C++ interface to the GTK+ graphical user interface library")
1130 "gtkmm is the official C++ interface for the popular GUI library GTK+.
1131 Highlights include typesafe callbacks, and a comprehensive set of widgets that
1132 are easily extensible via inheritance. You can create user interfaces either
1133 in code or with the Glade User Interface designer, using libglademm. There's
1134 extensive documentation, including API reference and a tutorial.")
1135 (license license:lgpl2.1+)))
1138 (define-public gtkmm-2
1139 (package (inherit gtkmm)
1144 (uri (string-append "mirror://gnome/sources/" name "/"
1145 (version-major+minor version) "/"
1146 name "-" version ".tar.xz"))
1149 "0wkbzvsx4kgw16f6xjdc1dz7f77ldngdila4yi5lw2zrgcxsb006"))))
1151 (native-inputs `(("pkg-config" ,pkg-config)))
1153 `(("pangomm" ,pangomm)
1154 ("cairomm" ,cairomm)
1157 ("glibmm" ,glibmm)))))
1159 (define-public gtksourceviewmm
1161 (name "gtksourceviewmm")
1165 (uri (string-append "mirror://gnome/sources/" name "/"
1166 (version-major+minor version) "/"
1167 name "-" version ".tar.xz"))
1169 (base32 "0fgvmhm4h4qmxig87qvangs6ijw53mi40siz7pixlxbrsgiil22i"))))
1170 (build-system gnu-build-system)
1172 `(("pkg-config" ,pkg-config)))
1174 ;; In 'Requires' of gtksourceviewmm-3.0.pc.
1175 `(("glibmm" ,glibmm)
1177 ("gtksourceview" ,gtksourceview-3)))
1178 (synopsis "C++ interface to the GTK+ 'GtkTextView' widget")
1180 "gtksourceviewmm is a portable C++ library that extends the standard GTK+
1181 framework for multiline text editing with support for configurable syntax
1182 highlighting, unlimited undo/redo, search and replace, a completion framework,
1183 printing and other features typical of a source code editor.")
1184 (license license:lgpl2.1+)
1185 (home-page "https://developer.gnome.org/gtksourceview/")))
1188 ;;; Python bindings.
1191 (define-public python-pycairo
1193 (name "python-pycairo")
1198 (uri (string-append "https://github.com/pygobject/pycairo/releases/download/v"
1199 version "/pycairo-" version ".tar.gz"))
1202 "165n0g7gp2a0qi8558snvfans17x83jv2lv7bx4vr1rxjbn3a2hg"))))
1203 (build-system python-build-system)
1205 `(("pkg-config" ,pkg-config)
1206 ("python-pytest" ,python-pytest)))
1207 (propagated-inputs ;pycairo.pc references cairo
1208 `(("cairo" ,cairo)))
1209 (home-page "https://cairographics.org/pycairo/")
1210 (synopsis "Python bindings for cairo")
1212 "Pycairo is a set of Python bindings for the Cairo graphics library.")
1213 (license license:lgpl3+)
1214 (properties `((python2-variant . ,(delay python2-pycairo))))))
1216 (define-public python2-pycairo
1217 (let ((pycairo (package-with-python2
1218 (strip-python2-variant python-pycairo))))
1222 `(("python2-funcsigs" ,python2-funcsigs)
1223 ,@(package-propagated-inputs pycairo)))
1224 ;; Dual-licensed under LGPL 2.1 or Mozilla Public License 1.1
1225 (license (list license:lgpl2.1 license:mpl1.1)))))
1227 (define-public python2-pygtk
1229 (name "python2-pygtk")
1234 (uri (string-append "mirror://gnome/sources"
1235 "/pygtk/" (version-major+minor version)
1236 "/pygtk-" version ".tar.bz2"))
1239 "04k942gn8vl95kwf0qskkv6npclfm31d78ljkrkgyqxxcni1w76d"))))
1240 (build-system gnu-build-system)
1242 "doc")) ;13 MiB of gtk-doc HTML
1244 `(("pkg-config" ,pkg-config)))
1246 `(("python" ,python-2)
1247 ("libglade" ,libglade)
1250 `(("python-pycairo" ,python2-pycairo) ;loaded at runtime
1251 ("python-pygobject" ,python2-pygobject-2) ;referenced in pc file
1255 #:phases (modify-phases %standard-phases
1256 (add-before 'configure 'set-gtk-doc-directory
1257 (lambda* (#:key outputs #:allow-other-keys)
1258 ;; Install documentation to "doc".
1259 (let ((doc (assoc-ref outputs "doc")))
1260 (substitute* "docs/Makefile.in"
1261 (("TARGET_DIR = \\$\\(datadir\\)")
1262 (string-append "TARGET_DIR = " doc))))))
1263 (add-after 'configure 'fix-codegen
1264 (lambda* (#:key inputs #:allow-other-keys)
1265 (substitute* "pygtk-codegen-2.0"
1269 (assoc-ref inputs "python-pygobject") "\n")))))
1270 (add-after 'install 'install-pth
1271 (lambda* (#:key inputs outputs #:allow-other-keys)
1272 ;; pygtk's modules are stored in a subdirectory of
1273 ;; python's site-packages directory. Add a .pth file so
1274 ;; that python will add that subdirectory to its module
1276 (let* ((out (assoc-ref outputs "out"))
1277 (site (string-append out "/lib/python"
1278 ,(version-major+minor
1279 (package-version python-2))
1281 (call-with-output-file (string-append site "/pygtk.pth")
1283 (format port "gtk-2.0~%")))))))))
1284 (home-page "http://www.pygtk.org/")
1285 (synopsis "Python bindings for GTK+")
1287 "PyGTK allows you to write full featured GTK programs in Python. It is
1288 targeted at GTK 2.x, and can be used in conjunction with gnome-python to
1289 write GNOME applications.")
1290 (license license:lgpl2.1+)))
1292 (define-public perl-cairo
1299 "mirror://cpan/authors/id/X/XA/XAOC/Cairo-"
1303 "0sg1gf1f2pjq7pji0zsv4rbi3bzpsx82z98k7yqxafzrvlkf27ay"))))
1304 (build-system perl-build-system)
1306 `(("perl-extutils-depends" ,perl-extutils-depends)
1307 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1309 `(("cairo" ,cairo)))
1310 (home-page "https://metacpan.org/release/Cairo")
1311 (synopsis "Perl interface to the cairo 2d vector graphics library")
1312 (description "Cairo provides Perl bindings for the vector graphics library
1313 cairo. It supports multiple output targets, including PNG, PDF and SVG. Cairo
1314 produces identical output on all those targets.")
1315 (license license:lgpl2.1+)))
1317 (define-public perl-gtk2
1323 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Gtk2-"
1327 "0ry9jfvfgdwzalxcvwsgr7plhk3agx7p40l0fqdf3vrf7ds47i29"))))
1328 (build-system perl-build-system)
1330 `(("perl-extutils-depends" ,perl-extutils-depends)
1331 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1333 `(("gtk+" ,gtk+-2)))
1335 `(("perl-pango" ,perl-pango)))
1336 (home-page "https://metacpan.org/release/Gtk2")
1337 (synopsis "Perl interface to the 2.x series of the Gimp Toolkit library")
1338 (description "Perl bindings to the 2.x series of the Gtk+ widget set.
1339 This module allows you to write graphical user interfaces in a Perlish and
1340 object-oriented way, freeing you from the casting and memory management in C,
1341 yet remaining very close in spirit to original API.")
1342 (license license:lgpl2.1+)))
1344 (define-public perl-pango
1350 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Pango-"
1354 "0wdcidnfnb6nm79fzfs39ivawj3x8m98a147fmcxgv1zvwia9c1l"))))
1355 (build-system perl-build-system)
1357 `(("perl-extutils-depends" ,perl-extutils-depends)
1358 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1360 `(("pango" ,pango)))
1362 `(("perl-cairo" ,perl-cairo)
1363 ("perl-glib" ,perl-glib)))
1364 (home-page "https://metacpan.org/release/Pango")
1365 (synopsis "Layout and render international text")
1366 (description "Pango is a library for laying out and rendering text, with an
1367 emphasis on internationalization. Pango can be used anywhere that text layout
1368 is needed, but using Pango in conjunction with Cairo and/or Gtk2 provides a
1369 complete solution with high quality text handling and graphics rendering.
1371 Dynamically loaded modules handle text layout for particular combinations of
1372 script and font backend. Pango provides a wide selection of modules, including
1373 modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts.
1374 Virtually all of the world's major scripts are supported.
1376 In addition to the low level layout rendering routines, Pango includes
1377 @code{Pango::Layout}, a high level driver for laying out entire blocks of text,
1378 and routines to assist in editing internationalized text.")
1379 (license license:lgpl2.1+)))
1381 (define-public girara
1389 (url "https://git.pwmt.org/pwmt/girara")
1391 (file-name (git-file-name name version))
1393 (base32 "0q0yfv2777s72p473lw0ll435n7vz4v204cmp9naq8am7a6i6avn"))))
1394 (native-inputs `(("pkg-config" ,pkg-config)
1396 ("gettext" ,gettext-minimal)
1397 ("glib:bin" ,glib "bin")
1398 ("xorg-server" ,xorg-server-for-tests)))
1399 ;; Listed in 'Requires.private' of 'girara.pc'.
1400 (propagated-inputs `(("gtk+" ,gtk+)))
1402 `(#:phases (modify-phases %standard-phases
1403 (add-before 'check 'start-xserver
1404 ;; Tests require a running X server.
1405 (lambda* (#:key inputs #:allow-other-keys)
1406 (let ((xorg-server (assoc-ref inputs "xorg-server"))
1408 (setenv "DISPLAY" display)
1410 ;; On busy machines, tests may take longer than
1411 ;; the default of four seconds.
1412 (setenv "CK_DEFAULT_TIMEOUT" "20")
1414 ;; Don't fail due to missing '/etc/machine-id'.
1415 (setenv "DBUS_FATAL_WARNINGS" "0")
1416 (zero? (system (string-append xorg-server "/bin/Xvfb "
1417 display " &")))))))))
1418 (build-system meson-build-system)
1419 (home-page "https://pwmt.org/projects/girara/")
1420 (synopsis "Library for minimalistic gtk+3 user interfaces")
1421 (description "Girara is a library that implements a user interface that
1422 focuses on simplicity and minimalism. Currently based on GTK+, a
1423 cross-platform widget toolkit, it provides an interface that focuses on three
1424 main components: a so-called view widget that represents the actual
1425 application, an input bar that is used to execute commands of the
1426 application and the status bar which provides the user with current
1428 (license license:zlib)))
1430 (define-public gtk-doc
1436 (uri (string-append "mirror://gnome/sources/" name "/"
1437 (version-major+minor version) "/"
1438 name "-" version ".tar.xz"))
1441 "05apmwibkmn1icx05l8aw241lhymcx01zvk5i499cb150bijj7li"))))
1442 (build-system gnu-build-system)
1444 `(#:parallel-tests? #f
1446 (modify-phases %standard-phases
1447 (add-after 'unpack 'patch-gtk-doc-scan
1448 (lambda* (#:key inputs #:allow-other-keys)
1449 (substitute* "gtk-doc.xsl"
1450 (("http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl")
1451 (string-append (assoc-ref inputs "docbook-xsl")
1452 "/xml/xsl/docbook-xsl-"
1453 ,(package-version docbook-xsl)
1455 (("http://docbook.sourceforge.net/release/xsl/current/common/en.xml")
1456 (string-append (assoc-ref inputs "docbook-xsl")
1457 "/xml/xsl/docbook-xsl-"
1458 ,(package-version docbook-xsl)
1461 (add-after 'patch-gtk-doc-scan 'patch-test-out
1463 ;; sanity.sh counts the number of status lines. Since our
1464 ;; texlive regenerates the fonts every time and the font
1465 ;; generator metafont outputs a lot of extra lines, this
1466 ;; test would always fail. Disable it for now.
1467 (substitute* "tests/Makefile.in"
1468 (("empty.sh sanity.sh") "empty.sh"))
1470 (add-before 'build 'set-HOME
1472 ;; FIXME: dblatex with texlive-union does not find the built
1473 ;; metafonts, so it tries to generate them in HOME.
1474 (setenv "HOME" "/tmp")
1476 (add-before 'configure 'fix-docbook
1477 (lambda* (#:key inputs #:allow-other-keys)
1478 (substitute* "configure"
1479 ;; The configure check is overzealous about making sure that
1480 ;; things are in place -- it uses the xmlcatalog tool to make
1481 ;; sure that docbook-xsl is available, but this tool can only
1482 ;; look in one catalog file, unlike the $XML_CATALOG_FILES
1483 ;; variable that Guix defines. Fool the test by using the
1484 ;; docbook-xsl catalog explicitly and get on with life.
1485 (("\"\\$XML_CATALOG_FILE\" \
1486 \"http://docbook.sourceforge.net/release/xsl/")
1487 (string-append (car (find-files (assoc-ref inputs "docbook-xsl")
1489 " \"http://docbook.sourceforge.net/release/xsl/")))
1491 (add-after 'install 'wrap-executables
1492 (lambda* (#:key outputs #:allow-other-keys)
1493 (let ((out (assoc-ref outputs "out")))
1494 (for-each (lambda (prog)
1496 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))))
1497 (find-files (string-append out "/bin")))
1500 (list (string-append "--with-xml-catalog="
1501 (assoc-ref %build-inputs "docbook-xml")
1502 "/xml/dtd/docbook/catalog.xml"))))
1504 `(("pkg-config" ,pkg-config)
1505 ("itstool" ,itstool)
1507 ("gettext" ,gettext-minimal)
1512 ("xsltproc" ,libxslt)
1513 ("dblatex" ,dblatex)
1514 ("docbook-xml" ,docbook-xml-4.3)
1515 ("docbook-xsl" ,docbook-xsl)
1516 ("source-highlight" ,source-highlight)
1518 ("python-six" ,python-six)))
1519 (home-page "https://www.gtk.org/gtk-doc/")
1520 (synopsis "Documentation generator from C source code")
1522 "GTK-Doc generates API documentation from comments added to C code. It is
1523 typically used to document the public API of GTK+ and GNOME libraries, but it
1524 can also be used to document application code.")
1525 (license license:gpl2+)))
1527 (define-public gtk-engines
1529 (name "gtk-engines")
1533 (uri (string-append "mirror://gnome/sources/" name "/"
1534 (version-major+minor version) "/"
1535 name "-" version ".tar.bz2"))
1538 "1db65pb0j0mijmswrvpgkdabilqd23x22d95hp5kwxvcramq1dhm"))))
1539 (build-system gnu-build-system)
1542 `("--enable-animation")))
1544 `(("pkg-config" ,pkg-config)
1545 ("intltool" ,intltool)))
1547 ;; Don't propagate GTK+ to reduce "profile pollution".
1548 `(("gtk+" ,gtk+-2))) ; required by gtk-engines-2.pc
1549 (home-page "https://live.gnome.org/GnomeArt")
1550 (synopsis "Theming engines for GTK+ 2.x")
1552 "This package contains the standard GTK+ 2.x theming engines including
1553 Clearlooks, Crux, High Contrast, Industrial, LighthouseBlue, Metal, Mist,
1554 Redmond95 and ThinIce.")
1555 (license (list license:gpl2+ license:lgpl2.1+))))
1557 (define-public murrine
1563 (uri (string-append "mirror://gnome/sources/" name "/"
1564 (version-major+minor version) "/"
1565 name "-" version ".tar.xz"))
1568 "129cs5bqw23i76h3nmc29c9mqkm9460iwc8vkl7hs4xr07h8mip9"))))
1569 (build-system gnu-build-system)
1572 `("--enable-animation"
1573 "--enable-animationrtl")))
1575 `(("pkg-config" ,pkg-config)
1576 ("intltool" ,intltool)))
1578 `(("gtk+" ,gtk+-2)))
1579 (home-page "https://live.gnome.org/GnomeArt")
1580 (synopsis "Cairo-based theming engine for GTK+ 2.x")
1582 "Murrine is a cairo-based GTK+ theming engine. It is named after the
1583 glass artworks done by Venicians glass blowers.")
1584 (license license:gpl2+)))
1586 (define-public gtkspell3
1592 (uri (string-append "mirror://sourceforge/gtkspell/"
1593 version "/" name "-" version ".tar.xz"))
1596 "09jdicmpipmj4v84gnkqwbmj4lh8v0i6pn967rb9jx4zg2ia9x54"))))
1597 (build-system gnu-build-system)
1599 `(("intltool" ,intltool)
1600 ("pkg-config" ,pkg-config)
1603 `(("gobject-introspection" ,gobject-introspection)
1607 `(("enchant" ,enchant-1.6))) ;gtkspell3-3.0.pc refers to it
1608 (home-page "http://gtkspell.sourceforge.net")
1609 (synopsis "Spell-checking addon for GTK's TextView widget")
1611 "GtkSpell provides word-processor-style highlighting and replacement of
1612 misspelled words in a GtkTextView widget.")
1613 (license license:gpl2+)))
1615 (define-public clipit
1623 (url "https://github.com/CristianHenzel/ClipIt.git")
1624 (commit (string-append "v" version))))
1625 (file-name (git-file-name name version))
1627 (base32 "05xi29v2y0rvb33fmvrz7r9j4l858qj7ngwd7dp4pzpkkaybjln0"))))
1628 (build-system gnu-build-system)
1630 `(("autoconf" ,autoconf)
1631 ("automake" ,automake)
1632 ("intltool" ,intltool)
1633 ("pkg-config" ,pkg-config)))
1635 `(("gtk+" ,gtk+-2)))
1636 (home-page "https://github.com/CristianHenzel/ClipIt")
1637 (synopsis "Lightweight GTK+ clipboard manager")
1639 "ClipIt is a clipboard manager with features such as a history, search
1640 thereof, global hotkeys and clipboard item actions. It was forked from
1641 Parcellite and adds bugfixes and features.")
1642 (license license:gpl2+)))
1644 (define-public graphene
1651 "https://github.com/ebassi/graphene/archive/"
1653 (file-name (string-append name "-" version ".tar.gz"))
1655 (base32 "1zd2daj7y590wnzn4jw0niyc4fnzgxrcl9i7nwhy8b25ks2hz5wq"))))
1656 (build-system gnu-build-system)
1658 `(#:configure-flags '("--enable-introspection=yes")))
1660 `(("autoconf" ,autoconf)
1662 ("pkg-config" ,pkg-config)
1663 ("automake" ,automake)
1664 ("libtool" ,libtool)))
1666 `(("python" ,python)
1667 ("python-2" ,python-2)
1669 ("gobject-introspection" ,gobject-introspection)))
1670 (home-page "http://ebassi.github.io/graphene")
1671 (synopsis "Thin layer of graphic data types")
1672 (description "This library provides graphic types and their relative API;
1673 it does not deal with windowing system surfaces, drawing, scene graphs, or
1675 (license license:expat)))
1677 (define-public spread-sheet-widget
1679 (name "spread-sheet-widget")
1684 (uri (string-append "https://alpha.gnu.org/gnu/ssw/"
1685 "spread-sheet-widget-" version ".tar.gz"))
1687 (base32 "1h93yyh2by6yrmkwqg38nd5knids05k5nqzcihc1hdwgzg3c4b8y"))))
1688 (build-system gnu-build-system)
1690 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
1691 ("pkg-config" ,pkg-config)))
1692 ;; In 'Requires' of spread-sheet-widget.pc.
1696 (home-page "https://www.gnu.org/software/ssw/")
1697 (synopsis "Gtk+ widget for dealing with 2-D tabular data")
1699 "GNU Spread Sheet Widget is a library for Gtk+ which provides a widget for
1700 viewing and manipulating 2 dimensional tabular data in a manner similar to many
1701 popular spread sheet programs.")
1702 (license license:gpl3+)))
1704 (define-public volumeicon
1711 (uri (string-append "http://nullwise.com/files/volumeicon/volumeicon-"
1714 (base32 "182xl2w8syv6ky2h2bc9imc6ap8pzh0p7rp63hh8nw0xm38c3f14"))))
1715 (build-system gnu-build-system)
1718 (list "--enable-notify"))) ; optional libnotify support
1720 `(("intltool" ,intltool)
1721 ("pkg-config" ,pkg-config)))
1723 `(("alsa-lib" ,alsa-lib)
1725 ("libnotify" ,libnotify)))
1726 (home-page "http://nullwise.com/volumeicon.html")
1727 (synopsis "System tray volume applet")
1729 "Volume Icon is a volume indicator and control applet for @acronym{the
1730 Advanced Linux Sound Architecture, ALSA}. It sits in the system tray,
1731 independent of your desktop environment, and supports global key bindings.")
1732 (license (list license:expat ; src/{bind.c,keybinder.h}
1733 license:isc ; src/alsa_volume_mapping.c
1734 license:gpl3)))) ; the rest & combined work
1744 (url "https://github.com/v1cont/yad.git")
1745 (commit (string-append "v" version))))
1746 (file-name (git-file-name name version))
1748 (base32 "07rd61hvilsxxrj7lf8c9k0a8glj07s48m7ya8d45030r90g3lvc"))))
1749 (build-system glib-or-gtk-build-system)
1752 ;; Passing --enable-foo will silently disable foo if prerequisite
1753 ;; inputs are missing, not abort the build as one might expect.
1754 ;; ‘--enable-html’ adds a huge webkitgtk dependency. It was never
1755 ;; present in the past and nobody complained.
1756 '("--enable-icon-browser"
1757 "--enable-spell") ; gspell checking support
1759 (modify-phases %standard-phases
1760 (add-after 'bootstrap 'intltoolize
1762 (invoke "intltoolize" "--force" "--automake"))))))
1764 `(("gspell" ,gspell)
1767 `(("autoconf" ,autoconf)
1768 ("automake" ,automake)
1769 ("intltool" ,intltool)
1770 ("pkg-config" ,pkg-config)))
1771 (home-page "https://sourceforge.net/projects/yad-dialog/")
1772 (synopsis "GTK+ dialog boxes for shell scripts")
1774 "This program allows you to display GTK+ dialog boxes from command line or
1775 shell scripts. Example of how to use @code{yad} can be consulted at
1776 @url{https://sourceforge.net/p/yad-dialog/wiki/browse_pages/}.")
1777 (license license:gpl3+)))
1779 (define-public libdbusmenu
1781 (name "libdbusmenu")
1786 (uri (string-append "https://launchpad.net/libdbusmenu/"
1787 (version-major+minor version) "/" version
1788 "/+download/libdbusmenu-" version ".tar.gz"))
1790 (base32 "12l7z8dhl917iy9h02sxmpclnhkdjryn08r8i4sr8l3lrlm4mk5r"))))
1791 (build-system gnu-build-system)
1794 '("--sysconfdir=/etc"
1795 "--localstatedir=/var"
1796 ;; The shebang of the generated test files should be patched before
1800 `(,(string-append "typelibdir=" (assoc-ref %outputs "out")
1801 "/lib/girepository-1.0"))
1803 (modify-phases %standard-phases
1804 (add-before 'configure 'set-environment
1806 (setenv "HAVE_VALGRIND_TRUE" "")
1807 (setenv "HAVE_VALGRIND_FALSE" "#")
1812 ("gtk+-2" ,gtk+-2)))
1814 `(("glib:bin" ,glib "bin")
1815 ("gnome-doc-utils" ,gnome-doc-utils)
1816 ("gobject-introspection" ,gobject-introspection)
1817 ("intltool" ,intltool)
1818 ("json-glib" ,json-glib)
1819 ("pkg-config" ,pkg-config)
1820 ("python" ,python-2)
1822 (home-page "https://launchpad.net/libdbusmenu")
1823 (synopsis "Library for passing menus over DBus")
1824 (description "@code{libdbusmenu} passes a menu structure across DBus so
1825 that a program can create a menu simply without worrying about how it is
1826 displayed on the other side of the bus.")
1828 ;; Dual-licensed under either LGPLv2.1 or LGPLv3.
1829 (license (list license:lgpl2.1 license:lgpl3))))