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, 2020, 2021 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, 2020, 2021 Ricardo Wurmus <rekado@elephly.net>
12 ;;; Copyright © 2016, 2017, 2020 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 Nikita <nikita@n0.is>
17 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
18 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
19 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
20 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
21 ;;; Copyright © 2018, 2020 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>
25 ;;; Copyright © 2020 Brendan Tildesley <mail@brendan.scot>
26 ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
27 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
28 ;;; Copyright © 2021 Leo Famulari <leo@famulari.name>
30 ;;; This file is part of GNU Guix.
32 ;;; GNU Guix is free software; you can redistribute it and/or modify it
33 ;;; under the terms of the GNU General Public License as published by
34 ;;; the Free Software Foundation; either version 3 of the License, or (at
35 ;;; your option) any later version.
37 ;;; GNU Guix is distributed in the hope that it will be useful, but
38 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
39 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40 ;;; GNU General Public License for more details.
42 ;;; You should have received a copy of the GNU General Public License
43 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
45 (define-module (gnu packages gtk)
46 #:use-module ((guix licenses) #:prefix license:)
47 #:use-module (guix utils)
48 #:use-module (guix packages)
49 #:use-module (guix download)
50 #:use-module (guix git-download)
51 #:use-module (guix build-system glib-or-gtk)
52 #:use-module (guix build-system gnu)
53 #:use-module (guix build-system meson)
54 #:use-module (guix build-system perl)
55 #:use-module (guix build-system python)
56 #:use-module (guix build-system waf)
57 #:use-module (gnu packages)
58 #:use-module (gnu packages algebra)
59 #:use-module (gnu packages autotools)
60 #:use-module (gnu packages base)
61 #:use-module (gnu packages texinfo)
62 #:use-module (gnu packages check)
63 #:use-module (gnu packages compression)
64 #:use-module (gnu packages docbook)
65 #:use-module (gnu packages documentation)
66 #:use-module (gnu packages enchant)
67 #:use-module (gnu packages fontutils)
68 #:use-module (gnu packages freedesktop)
69 #:use-module (gnu packages fribidi)
70 #:use-module (gnu packages gettext)
71 #:use-module (gnu packages ghostscript)
72 #:use-module (gnu packages gl)
73 #:use-module (gnu packages glib)
74 #:use-module (gnu packages gnome)
75 #:use-module (gnu packages icu4c)
76 #:use-module (gnu packages image)
77 #:use-module (gnu packages libffi)
78 #:use-module (gnu packages linux)
79 #:use-module (gnu packages pdf)
80 #:use-module (gnu packages perl)
81 #:use-module (gnu packages pkg-config)
82 #:use-module (gnu packages pretty-print)
83 #:use-module (gnu packages python)
84 #:use-module (gnu packages python-xyz)
85 #:use-module (gnu packages guile)
86 #:use-module (gnu packages guile-xyz)
87 #:use-module (gnu packages cups)
88 #:use-module (gnu packages version-control)
89 #:use-module (gnu packages xml)
90 #:use-module (gnu packages xorg)
91 #:use-module (gnu packages xdisorg)
92 #:use-module (srfi srfi-1)
93 #:use-module (srfi srfi-26)
94 #:use-module (ice-9 match))
102 (uri (string-append "mirror://gnome/sources/" name "/"
103 (version-major+minor version) "/"
104 name "-" version ".tar.xz"))
107 "1jwp16r6p5z66k4b2v8zlzhyshhwlmyi27ippkrgqr8jsary7w6l"))))
108 (build-system meson-build-system)
109 (propagated-inputs `(("glib" ,glib))) ; required by atk.pc
111 `(("pkg-config" ,pkg-config)
112 ("gettext" ,gettext-minimal)
113 ("glib" ,glib "bin") ; glib-mkenums, etc.
114 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
115 (synopsis "GNOME accessibility toolkit")
117 "ATK provides the set of accessibility interfaces that are implemented
118 by other toolkits and applications. Using the ATK interfaces, accessibility
119 tools have full access to view and control running applications.")
120 (license license:lgpl2.0+)
121 (home-page "https://developer.gnome.org/atk/")))
129 (uri (string-append "https://cairographics.org/releases/cairo-"
133 "0c930mk5xr2bshbdljv005j3j8zr47gqmkry3q6qgvqky6rjjysy"))))
134 (build-system gnu-build-system)
136 `(("fontconfig" ,fontconfig)
137 ("freetype" ,freetype)
142 ("libxrender" ,libxrender)
145 `(("ghostscript" ,ghostscript)
146 ("libspectre" ,libspectre)
148 ("xorgproto" ,xorgproto)
151 `(("pkg-config" ,pkg-config)
152 ("python" ,python-wrapper)))
154 `(#:tests? #f ; see http://lists.gnu.org/archive/html/bug-guix/2013-06/msg00085.html
155 #:configure-flags '("--enable-tee" ;needed for GNU Icecat
156 "--enable-xml" ;for cairo-xml support
157 "--disable-static")))
158 (synopsis "2D graphics library")
160 "Cairo is a 2D graphics library with support for multiple output devices.
161 Currently supported output targets include the X Window System (via both
162 Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file
163 output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.
165 Cairo is designed to produce consistent output on all output media while
166 taking advantage of display hardware acceleration when available
167 eg. through the X Render Extension).
169 The cairo API provides operations similar to the drawing operators of
170 PostScript and PDF. Operations in cairo including stroking and filling cubic
171 Bézier splines, transforming and compositing translucent images, and
172 antialiased text rendering. All drawing operations can be transformed by any
173 affine transformation (scale, rotation, shear, etc.).")
174 (license license:lgpl2.1) ; or Mozilla Public License 1.1
175 (home-page "https://cairographics.org/")))
177 (define-public cairo-sans-poppler
178 ;; Variant used to break the dependency cycle between Poppler and Cairo.
179 (package/inherit cairo
180 (inputs (alist-delete "poppler" (package-inputs cairo)))
181 (properties `((hidden? . #t)))))
183 (define-public cairo-xcb
189 ,@(package-inputs cairo)))
193 '("--enable-xlib-xcb" "--enable-gl" "--enable-egl")))
194 (synopsis "2D graphics library (with X11 support)")))
196 (define-public harfbuzz
202 (uri (string-append "https://www.freedesktop.org/software/"
203 "harfbuzz/release/harfbuzz-"
207 "04iwq13w6zkdhljmsxrzgg4fyh04qnwfn57rgrl9kmijc7cvh4wl"))))
208 (build-system gnu-build-system)
210 "bin")) ; 160K, only hb-view depend on cairo
214 ;; There are all in the Requires or Requires.private field of '.pc'.
216 ("graphite2" ,graphite2)
219 `(("glib:bin" ,glib "bin") ;for glib-mkenums
220 ("gobject-introspection" ,gobject-introspection)
221 ("pkg-config" ,pkg-config)
222 ("python" ,python-wrapper)
225 `(#:configure-flags `("--with-graphite2"
228 "--bindir=" (assoc-ref %outputs "bin") "/bin"))))
229 (synopsis "OpenType text shaping engine")
231 "HarfBuzz is an OpenType text shaping engine.")
232 (license (license:x11-style "file://COPYING"
233 "See 'COPYING' in the distribution."))
234 (home-page "https://www.freedesktop.org/wiki/Software/HarfBuzz/")))
236 (define-public libdatrie
244 (string-append "https://linux.thai.net/pub/ThaiLinux/software/"
245 "libthai/libdatrie-" version ".tar.xz"))
247 (base32 "0jdi01pcxv0b24zbjy7zahawsqqqw4mv94f2yy01zh4n796wqba5"))))
248 (build-system gnu-build-system)
249 (outputs '("out" "doc"))
253 (string-append "--with-html-docdir="
254 (assoc-ref %outputs "doc")
255 "/share/doc/datrie/html"))))
257 `(("doxygen" ,doxygen)
258 ("pkg-config" ,pkg-config)))
259 (synopsis "Double-Array Trie Library")
260 (description "Libdatrie is an implementation of double-array structure for
261 representing trie. Trie is a kind of digital search tree.")
262 (home-page "https://linux.thai.net/~thep/datrie/datrie.html")
263 (license license:lgpl2.1+)))
265 (define-public libthai
273 (string-append "https://linux.thai.net/pub/thailinux/software/"
274 "libthai/libthai-" version ".tar.xz"))
276 (base32 "04g93bgxrcnay9fglpq2lj9nr7x1xh06i60m7haip8as9dxs3q7z"))))
277 (build-system gnu-build-system)
278 (outputs '("out" "doc"))
282 (string-append "--with-html-docdir="
283 (assoc-ref %outputs "doc")
284 "/share/doc/libthai/html"))))
286 `(("doxygen" ,doxygen)
287 ("pkg-config" ,pkg-config)))
289 `(("datrie" ,libdatrie)))
290 (synopsis "Thai language support library")
291 (description "LibThai is a set of Thai language support routines aimed to
292 ease developers’ tasks to incorporate Thai language support in their
294 (home-page "https://linux.thai.net/projects/libthai")
295 (license license:lgpl2.1+)))
303 (uri (string-append "mirror://gnome/sources/pango/"
304 (version-major+minor version) "/"
305 name "-" version ".tar.xz"))
306 (patches (search-patches "pango-skip-libthai-test.patch"))
309 "07qvxa2sk90chp1l12han6vxvy098mc37sdqcznyywyv2g6bd9b6"))))
310 (build-system meson-build-system)
312 '(#:phases (modify-phases %standard-phases
313 (add-after 'unpack 'disable-cantarell-tests
315 (substitute* "tests/meson.build"
316 ;; XXX FIXME: These tests require "font-cantarell", but
317 ;; adding it here would introduce a circular dependency.
318 (("\\[ 'test-harfbuzz'.*") "")
319 (("\\[ 'test-itemize'.*") "")
320 (("\\[ 'test-layout'.*") ""))
323 ;; These are all in Requires or Requires.private of the '.pc' files.
326 ("fontconfig" ,fontconfig)
327 ("freetype" ,freetype)
329 ("harfbuzz" ,harfbuzz)
331 ;; Some packages, such as Openbox, expect Pango to be built with the
332 ;; optional libxft support.
337 `(("pkg-config" ,pkg-config)
338 ("glib" ,glib "bin") ; glib-mkenums, etc.
339 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
340 (synopsis "GNOME text and font handling library")
342 "Pango is the core text and font handling library used in GNOME
343 applications. It has extensive support for the different writing systems
344 used throughout the world.")
345 (license license:lgpl2.0+)
346 (home-page "https://developer.gnome.org/pango/")))
348 (define-public pango-1.42
354 (uri (string-append "mirror://gnome/sources/pango/"
355 (version-major+minor version) "/"
356 "pango-" version ".tar.xz"))
359 "17bwb7dgbncrfsmchlib03k9n3xaalirb39g3yb43gg8cg6p8aqx"))))
360 (build-system gnu-build-system)
362 '(#:phases (modify-phases %standard-phases
363 (add-after 'configure 'disable-layout-test
365 ;; This test requires that fontconfig uses bitmap fonts
366 ;; such as "gs-fonts"; however providing such a package
367 ;; alone is not enough, as the requirement comes from
368 ;; deeper in the font stack. Since this version of Pango
369 ;; is only used for librsvg, simply disable the test.
370 (substitute* "tests/Makefile"
371 (("test-layout\\$\\(EXEEXT\\)") ""))
374 (define-public pangox-compat
376 (name "pangox-compat")
380 (uri (string-append "mirror://gnome/sources/" name "/"
381 (version-major+minor version) "/"
382 name "-" version ".tar.xz"))
385 "0ip0ziys6mrqqmz4n71ays0kf5cs1xflj1gfpvs4fgy2nsrr482m"))))
386 (build-system gnu-build-system)
389 ("pango" ,pango-1.42)))
391 `(("intltool" ,intltool)
392 ("pkg-config" ,pkg-config)))
393 (home-page "https://developer.gnome.org/pango")
394 (synopsis "Obsolete pango functions")
395 (description "Pangox was a X backend to pango. It is now obsolete and no
396 longer provided by recent pango releases. pangox-compat provides the
397 functions which were removed.")
398 (license license:lgpl2.0+)))
406 (uri (string-append "https://download.drobilla.net/ganv-"
410 "0pik2d3995z0rjcjhb4hsj5fsph3m8khg6j10k6mx4j2j727aq6l"))))
411 (build-system waf-build-system)
414 (modify-phases %standard-phases
415 (add-before 'configure 'set-flags
416 (lambda* (#:key outputs #:allow-other-keys)
417 ;; Allow 'bin/ganv_bench' to find libganv-1.so.
419 (string-append "-Wl,-rpath="
420 (assoc-ref outputs "out") "/lib"))
422 #:tests? #f)) ; no check target
427 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
428 ("pkg-config" ,pkg-config)))
429 (home-page "https://drobilla.net/software/ganv/")
430 (synopsis "GTK+ widget for interactive graph-like environments")
432 "Ganv is an interactive GTK+ widget for interactive “boxes and lines” or
433 graph-like environments, e.g. modular synths or finite state machine
435 (license license:gpl3+)))
437 (define-public gtksourceview-2
439 (name "gtksourceview")
440 (version "2.10.5") ; This is the last version which builds against gtk+2
443 (uri (string-append "mirror://gnome/sources/" name "/"
444 (version-major+minor version) "/"
445 name "-" version ".tar.bz2"))
448 "07hrabhpl6n8ajz10s0d960jdwndxs87szxyn428mpxi8cvpg1f5"))
451 "gtksourceview-2-add-default-directory.patch"))))
452 (build-system gnu-build-system)
454 `(("intltool" ,intltool)
455 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
456 ("pkg-config" ,pkg-config)
458 ("xorg-server" ,xorg-server-for-tests)
459 ("shared-mime-info" ,shared-mime-info)))
461 ;; As per the pkg-config file.
463 ("libxml2" ,libxml2)))
466 ;; Unfortunately, some of the tests in "make check" are highly dependent
467 ;; on the environment therefore, some black magic is required.
468 (modify-phases %standard-phases
469 (add-before 'check 'start-xserver
470 (lambda* (#:key inputs #:allow-other-keys)
471 (let ((xorg-server (assoc-ref inputs "xorg-server"))
472 (mime (assoc-ref inputs "shared-mime-info")))
474 ;; There must be a running X server and make check doesn't start one.
475 ;; Therefore we must do it.
476 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
477 (setenv "DISPLAY" ":1")
479 ;; The .lang files must be found in $XDG_DATA_HOME/gtksourceview-2.0
480 (system "ln -s gtksourceview gtksourceview-2.0")
481 (setenv "XDG_DATA_HOME" (getcwd))
483 ;; Finally, the mimetypes must be available.
484 (setenv "XDG_DATA_DIRS" (string-append mime "/share/")))
486 (synopsis "Widget that extends the standard GTK+ 2.x 'GtkTextView' widget")
488 "GtkSourceView is a portable C library that extends the standard GTK+
489 framework for multiline text editing with support for configurable syntax
490 highlighting, unlimited undo/redo, search and replace, a completion framework,
491 printing and other features typical of a source code editor.")
492 (license license:lgpl2.0+)
493 (home-page "https://developer.gnome.org/gtksourceview/")))
495 (define-public gtksourceview
497 (name "gtksourceview")
501 (uri (string-append "mirror://gnome/sources/gtksourceview/"
502 (version-major+minor version) "/"
503 "gtksourceview-" version ".tar.xz"))
506 "0xgnjj7jd56wbl99s76sa1vjq9bkz4mdsxwgwlcphg689liyncf4"))))
507 (build-system gnu-build-system)
510 (modify-phases %standard-phases
513 (lambda* (#:key inputs #:allow-other-keys)
514 (let ((xorg-server (assoc-ref inputs "xorg-server")))
515 ;; Tests require a running X server.
516 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
517 (setenv "DISPLAY" ":1")
518 ;; For the missing /etc/machine-id.
519 (setenv "DBUS_FATAL_WARNINGS" "0")
522 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
523 ("intltool" ,intltool)
525 ("gobject-introspection" ,gobject-introspection)
526 ("pkg-config" ,pkg-config)
529 ("xorg-server" ,xorg-server-for-tests)
530 ("shared-mime-info" ,shared-mime-info)))
532 ;; gtksourceview-3.0.pc refers to all these.
535 ("libxml2" ,libxml2)))
536 (home-page "https://wiki.gnome.org/Projects/GtkSourceView")
537 (synopsis "GNOME source code widget")
538 (description "GtkSourceView is a text widget that extends the standard
539 GTK+ text widget GtkTextView. It improves GtkTextView by implementing syntax
540 highlighting and other features typical of a source code editor.")
541 (license license:lgpl2.1+)))
543 (define-public gtksourceview-3
544 (package (inherit gtksourceview)
545 (name "gtksourceview")
549 (uri (string-append "mirror://gnome/sources/" name "/"
550 (version-major+minor version) "/"
551 name "-" version ".tar.xz"))
554 "16ym7jwiki4s1pilwr4incx0yg7ll94f1cajrnpndkxxs36hcm5b"))))))
556 (define-public gdk-pixbuf
562 (uri (string-append "mirror://gnome/sources/" name "/"
563 (version-major+minor version) "/"
564 name "-" version ".tar.xz"))
567 "1rnlx9yfw970maxi2x6niaxmih5la11q1ilr7gzshz2kk585k0hm"))))
568 (build-system meson-build-system)
570 `(#:configure-flags '("-Dinstalled_tests=false")
572 (modify-phases %standard-phases
574 'unpack 'disable-failing-tests
576 (substitute* "tests/meson.build"
577 ;; XXX FIXME: This test fails on armhf machines with:
578 ;; SKIP Not enough memory to load bitmap image
579 ;; ERROR: cve-2015-4491 - too few tests run (expected 4, got 2)
580 ((".*'cve-2015-4491'.*") "")
581 ;; XXX FIXME: This test fails with:
582 ;; ERROR:pixbuf-jpeg.c:74:test_type9_rotation_exif_tag:
583 ;; assertion failed (error == NULL): Data differ
584 ;; (gdk-pixbuf-error-quark, 0)
585 ((".*'pixbuf-jpeg'.*") ""))
587 ;; The slow tests take longer than the specified timeout.
588 ,@(if (any (cute string=? <> (%current-system))
589 '("armhf-linux" "aarch64-linux"))
592 (invoke "meson" "test" "--timeout-multiplier" "5"))))
595 `(;; Required by gdk-pixbuf-2.0.pc
598 ;; Used for testing and required at runtime.
599 ("shared-mime-info" ,shared-mime-info)))
601 `(("libjpeg" ,libjpeg-turbo)
605 `(("pkg-config" ,pkg-config)
606 ("gettext" ,gettext-minimal)
607 ("glib" ,glib "bin") ; glib-mkenums, etc.
608 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
609 (synopsis "GNOME image loading and manipulation library")
611 "GdkPixbuf is a library for image loading and manipulation developed
612 in the GNOME project.")
613 (license license:lgpl2.0+)
614 (home-page "https://developer.gnome.org/gdk-pixbuf/")))
616 ;; To build gdk-pixbuf with SVG support, we need librsvg, and librsvg depends
617 ;; on gdk-pixbuf, so this new varibale. Also, librsvg adds 90MiB to the
619 (define-public gdk-pixbuf+svg
620 (package (inherit gdk-pixbuf)
621 (name "gdk-pixbuf+svg")
623 `(("librsvg" ,librsvg)
624 ,@(package-inputs gdk-pixbuf)))
626 '(#:configure-flags '("-Dinstalled-tests=false")
627 #:tests? #f ; tested by the gdk-pixbuf package already
629 (modify-phases %standard-phases
630 (add-after 'install 'register-svg-loader
631 (lambda* (#:key inputs outputs #:allow-other-keys)
632 (let* ((out (assoc-ref outputs "out"))
633 (librsvg (assoc-ref inputs "librsvg"))
636 (find-files out "^libpixbufloader-.*\\.so$")
637 (find-files librsvg "^libpixbufloader-.*\\.so$")))
638 (gdk-pixbuf-query-loaders
639 (string-append out "/bin/gdk-pixbuf-query-loaders")))
641 gdk-pixbuf-query-loaders
645 "GNOME image loading and manipulation library, with SVG support")))
647 (define-public at-spi2-core
649 (name "at-spi2-core")
653 (uri (string-append "mirror://gnome/sources/" name "/"
654 (version-major+minor version) "/"
655 name "-" version ".tar.xz"))
658 "1ihixwhh3c16q6253qj9gf69741rb2pi51822a4rylsfcyywsafn"))))
659 (build-system meson-build-system)
660 (outputs '("out" "doc"))
665 (modify-phases %standard-phases
666 (add-after 'unpack 'set-documentation-path
667 (lambda* (#:key outputs #:allow-other-keys)
668 ;; Ensure that the cross-references point to the "doc" output.
669 (substitute* "doc/libatspi/meson.build"
671 (string-append "docpath = '" (assoc-ref outputs "doc") "/share/gtk-doc/html'\n")))
673 (add-before 'install 'prepare-doc-directory
674 (lambda* (#:key outputs #:allow-other-keys)
675 (mkdir-p (string-append (assoc-ref outputs "doc") "/share"))
677 (add-after 'install 'move-documentation
678 (lambda* (#:key outputs #:allow-other-keys)
679 (let ((out (assoc-ref outputs "out"))
680 (doc (assoc-ref outputs "doc")))
682 (string-append out "/share/gtk-doc")
683 (string-append doc "/share/gtk-doc"))
684 (delete-file-recursively
685 (string-append out "/share/gtk-doc")))
687 (add-after 'install 'check
689 (setenv "HOME" (getenv "TMPDIR")) ; xfconfd requires a writable HOME
690 ;; Run test-suite under a dbus session.
691 (setenv "XDG_DATA_DIRS" ; for finding org.xfce.Xfconf.service
692 (string-append %output "/share"))
693 ;; Don't fail on missing '/etc/machine-id'.
694 (setenv "DBUS_FATAL_WARNINGS" "0") ;
695 (invoke "dbus-launch" "ninja" "test")))
698 ;; atspi-2.pc refers to all these.
702 ("libxtst" ,libxtst)))
704 `(("gettext" ,gettext-minimal)
705 ("gobject-introspection" ,gobject-introspection)
708 ("pkg-config" ,pkg-config)))
709 (synopsis "Assistive Technology Service Provider Interface, core components")
711 "The Assistive Technology Service Provider Interface, core components,
712 is part of the GNOME accessibility project.")
713 (license license:lgpl2.0+)
714 (home-page "https://projects.gnome.org/accessibility/")))
716 ;;; A minimal variant used to prevent a cycle with Inkscape.
717 (define at-spi2-core-minimal
719 (inherit at-spi2-core)
720 (name "at-spi2-core-minimal")
721 (outputs (delete "doc" (package-outputs at-spi2-core)))
723 (substitute-keyword-arguments (package-arguments at-spi2-core)
724 ((#:configure-flags configure-flags)
725 `(delete "-Ddocs=true" ,configure-flags))
727 `(modify-phases ,phases
728 (delete 'set-documentation-path)
729 (delete 'prepare-doc-directory)
730 (delete 'move-documentation)))))
732 (alist-delete "gtk-doc" (package-native-inputs at-spi2-core)))))
734 (define-public at-spi2-atk
740 (uri (string-append "mirror://gnome/sources/" name "/"
741 (version-major+minor version) "/"
742 name "-" version ".tar.xz"))
745 "05ncp7s5nddjinffs26mcvpbd63vk1m3cv5y530p3plgfhqgjvbp"))))
746 (build-system meson-build-system)
749 (modify-phases %standard-phases
751 ;; Run test-suite under a dbus session.
753 (setenv "DBUS_FATAL_WARNINGS" "0")
754 (invoke "dbus-launch" "meson" "test"))))))
756 ;; TODO: Replace by at-spi2-core-minimal in the next staging window, or
757 ;; when Inkscape 0.92 is upgraded to 1.0 to avoid a cycle.
758 `(("at-spi2-core" ,at-spi2-core))) ; required by atk-bridge-2.0.pc
762 `(("pkg-config" ,pkg-config)
765 ("libxml2" ,libxml2)))
766 (synopsis "Assistive Technology Service Provider Interface, ATK bindings")
768 "The Assistive Technology Service Provider Interface
769 is part of the GNOME accessibility project.")
770 (license license:lgpl2.0+)
771 (home-page "https://projects.gnome.org/accessibility/")))
773 (define-public gtk+-2
779 (uri (string-append "mirror://gnome/sources/" name "/"
780 (version-major+minor version) "/"
781 name "-" version ".tar.xz"))
784 "0bjq7ja9gwcv6n5q4qkvdjjx40wsdiikksz1zqxvxsm5vlyskj5n"))
785 (patches (search-patches "gtk2-respect-GUIX_GTK2_PATH.patch"
786 "gtk2-respect-GUIX_GTK2_IM_MODULE_FILE.patch"
787 "gtk2-theme-paths.patch"))))
788 (build-system gnu-build-system)
789 (outputs '("out" "bin" "doc"))
792 ("gdk-pixbuf" ,gdk-pixbuf+svg)
796 ("libxcomposite" ,libxcomposite)
797 ("libxcursor" ,libxcursor)
798 ("libxdamage" ,libxdamage)
800 ("libxinerama" ,libxinerama)
801 ("libxrandr" ,libxrandr)))
804 ("gettext" ,gettext-minimal)
806 ("gobject-introspection" ,gobject-introspection)
807 ("pkg-config" ,pkg-config)
808 ("python-wrapper" ,python-wrapper)))
811 (list "--with-xinput=yes"
812 (string-append "--with-html-dir="
813 (assoc-ref %outputs "doc")
814 "/share/gtk-doc/html"))
816 (modify-phases %standard-phases
817 (add-before 'configure 'disable-tests
819 ;; FIXME: re-enable tests requiring an X server
820 (substitute* "gtk/Makefile.in"
821 (("SUBDIRS = theme-bits . tests") "SUBDIRS = theme-bits ."))
823 (add-after 'install 'remove-cache
824 (lambda* (#:key outputs #:allow-other-keys)
827 (find-files (assoc-ref outputs "out") "immodules.cache"))
830 (list (search-path-specification
831 (variable "GUIX_GTK2_PATH")
832 (files '("lib/gtk-2.0")))))
833 (synopsis "Cross-platform toolkit for creating graphical user interfaces")
835 "GTK+, or the GIMP Toolkit, is a multi-platform toolkit for creating
836 graphical user interfaces. Offering a complete set of widgets, GTK+ is
837 suitable for projects ranging from small one-off tools to complete
838 application suites.")
839 (license license:lgpl2.0+)
840 (home-page "https://www.gtk.org/")))
843 (package (inherit gtk+-2)
848 (uri (string-append "mirror://gnome/sources/" name "/"
849 (version-major+minor version) "/"
850 name "-" version ".tar.xz"))
853 "12ipk1d376bai9v820qzhxba93kkh5abi6mhyqr4hwjvqmkl77fc"))
854 (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch"
855 "gtk3-respect-GUIX_GTK3_IM_MODULE_FILE.patch"))))
857 `(("at-spi2-atk" ,at-spi2-atk)
859 ("gdk-pixbuf" ,gdk-pixbuf+svg)
860 ("libepoxy" ,libepoxy)
861 ("libxcursor" ,libxcursor)
863 ("libxinerama" ,libxinerama)
864 ("libxkbcommon" ,libxkbcommon)
865 ("libxdamage" ,libxdamage)
866 ("libxrandr" ,libxrandr)
870 ("wayland-protocols" ,wayland-protocols)))
872 `(("libxml2" ,libxml2)
873 ;; XXX: colord depends on mozjs (through polkit), which fails on
874 ;; on non-intel systems now.
876 ("cups" ,cups) ;for printing support
877 ;; XXX: rest depends on p11-kit, which fails on mips64el now.
879 ("json-glib" ,json-glib)))
883 ("gettext" ,gettext-minimal)
884 ("pkg-config" ,pkg-config)
885 ("gobject-introspection" ,gobject-introspection)
886 ("python-wrapper" ,python-wrapper)
887 ;; By using a special xorg-server for GTK+'s tests, we reduce the impact
888 ;; of updating xorg-server directly on the master branch.
889 ("xorg-server" ,xorg-server-for-tests)))
891 `(#:disallowed-references (,xorg-server-for-tests)
892 ;; 47 MiB goes to "out" (24 of which is locale data!), and 26 MiB goes
894 #:configure-flags (list (string-append "--with-html-dir="
895 (assoc-ref %outputs "doc")
896 "/share/gtk-doc/html")
897 ;; The header file <gdk/gdkwayland.h> is required
898 ;; by gnome-control-center
899 "--enable-wayland-backend"
900 ;; This is necessary to build both backends.
901 "--enable-x11-backend"
902 ;; This enables the HTML5 websocket backend.
903 "--enable-broadway-backend")
904 #:phases (modify-phases %standard-phases
905 (add-before 'configure 'pre-configure
907 ;; Disable most tests, failing in the chroot with the message:
908 ;; D-Bus library appears to be incorrectly set up; failed to read
909 ;; machine uuid: Failed to open "/etc/machine-id": No such file or
911 ;; See the manual page for dbus-uuidgen to correct this issue.
912 (substitute* "testsuite/Makefile.in"
913 (("SUBDIRS = gdk gtk a11y css reftests")
916 (add-after 'install 'move-desktop-files
917 ;; Move desktop files into 'bin' to avoid cycle references.
918 (lambda* (#:key outputs #:allow-other-keys)
919 (let ((out (assoc-ref outputs "out"))
920 (bin (assoc-ref outputs "bin")))
921 (mkdir-p (string-append bin "/share"))
922 (rename-file (string-append out "/share/applications")
923 (string-append bin "/share/applications"))
926 (list (search-path-specification
927 (variable "GUIX_GTK3_PATH")
928 (files '("lib/gtk-3.0")))))))
934 (define-public guile-cairo
940 (uri (string-append "mirror://savannah/guile-cairo/guile-cairo-"
944 "0yx0844p61ljd4d3d63qrawiygiw6ks02fwv2cqx7nav5kfd8ck2"))
945 (modules '((guix build utils)))
949 ;; Install Scheme files in …/guile/site/X.Y.
950 (substitute* (find-files "." "^Makefile\\.in$")
951 (("^(.*)dir = (.*)/guile/site(.*)" _ name prefix suffix)
952 (string-append name "dir = " prefix
953 "/guile/site/@GUILE_EFFECTIVE_VERSION@"
956 (build-system gnu-build-system)
958 ;; Uses of 'scm_t_uint8' & co. are deprecated; don't stop the build
960 `(#:configure-flags '("--disable-Werror")
961 #:make-flags '("GUILE_AUTO_COMPILE=0") ; to prevent guild warnings
962 #:modules ((guix build gnu-build-system)
967 (modify-phases %standard-phases
968 (add-after 'install 'install-go-files
969 (lambda* (#:key outputs inputs #:allow-other-keys)
970 (let* ((out (assoc-ref outputs "out"))
971 (effective (read-line
972 (open-pipe* OPEN_READ
974 "(display (effective-version))")))
975 (module-dir (string-append out "/share/guile/site/"
977 (object-dir (string-append out "/lib/guile/" effective
979 (prefix (string-length module-dir)))
980 ;; compile to the destination
981 (for-each (lambda (file)
982 (let* ((base (string-drop (string-drop-right file 4)
984 (go (string-append object-dir base ".go")))
985 (invoke "guild" "compile" "-L" module-dir
987 (find-files module-dir "\\.scm$"))
990 `(("guile-lib" ,guile-lib)
992 ("guile" ,guile-3.0)))
994 ;; The .pc file refers to 'cairo'.
997 `(("pkg-config" ,pkg-config)))
998 (home-page "https://www.nongnu.org/guile-cairo/")
999 (synopsis "Cairo bindings for GNU Guile")
1001 "Guile-Cairo wraps the Cairo graphics library for Guile Scheme.
1002 Guile-Cairo is complete, wrapping almost all of the Cairo API. It is API
1003 stable, providing a firm base on which to do graphics work. Finally, and
1004 importantly, it is pleasant to use. You get a powerful and well-maintained
1005 graphics library with all of the benefits of Scheme: memory management,
1006 exceptions, macros, and a dynamic programming environment.")
1007 (license license:lgpl3+)))
1009 (define-public guile2.2-cairo
1011 (inherit guile-cairo)
1012 (name "guile2.2-cairo")
1014 `(("guile" ,guile-2.2)
1015 ("guile-lib" ,guile2.2-lib)
1016 ,@(fold alist-delete (package-inputs guile-cairo)
1017 '("guile" "guile-lib"))))))
1019 (define-public guile3.0-cairo
1020 (deprecated-package "guile3.0-cairo" guile-cairo))
1022 (define-public guile-rsvg
1023 ;; Use a recent snapshot that supports Guile 2.2 and beyond.
1024 (let ((commit "05c6a2fd67e4fea1a7c3ff776729dc931bae6678")
1028 (version (string-append "2.18.1-" revision "."
1029 (string-take commit 7)))
1033 (url "https://gitlab.com/wingo/guile-rsvg/")
1037 "0cnbl40df2sbhpc32cma6j6w312rfvcgbxxqaixgf0ymim3fb248"))
1038 (patches (search-patches "guile-rsvg-pkgconfig.patch"))
1039 (modules '((guix build utils)))
1042 (substitute* (find-files "." "Makefile\\.am")
1043 (("/share/guile/site")
1044 "/share/guile/site/@GUILE_EFFECTIVE_VERSION@"))
1046 (file-name (string-append name "-" version ".tar.gz"))))
1047 (build-system gnu-build-system)
1049 `(#:modules ((guix build gnu-build-system)
1054 (modify-phases %standard-phases
1057 (invoke "autoreconf" "-vfi")))
1058 (add-after 'install 'install-go-files
1059 (lambda* (#:key outputs inputs #:allow-other-keys)
1060 (let* ((out (assoc-ref outputs "out"))
1061 (effective (read-line
1062 (open-pipe* OPEN_READ
1064 "(display (effective-version))")))
1065 (module-dir (string-append out "/share/guile/site/"
1067 (object-dir (string-append out "/lib/guile/" effective
1069 (prefix (string-length module-dir)))
1070 ;; compile to the destination
1071 (for-each (lambda (file)
1072 (let* ((base (string-drop (string-drop-right file 4)
1074 (go (string-append object-dir base ".go")))
1075 (invoke "guild" "compile" "-L" module-dir
1077 (find-files module-dir "\\.scm$"))
1079 (native-inputs `(("pkg-config" ,pkg-config)
1080 ("autoconf" ,autoconf)
1081 ("automake" ,automake)
1082 ("libtool" ,libtool)
1083 ("texinfo" ,texinfo)))
1084 (inputs `(("guile" ,guile-3.0)
1085 ("librsvg" ,librsvg)
1086 ("guile-lib" ,guile-lib))) ;for (unit-test)
1087 (propagated-inputs `(("guile-cairo" ,guile-cairo)))
1088 (synopsis "Render SVG images using Cairo from Guile")
1090 "Guile-RSVG wraps the RSVG library for Guile, allowing you to render SVG
1091 images onto Cairo surfaces.")
1092 (home-page "https://wingolog.org/projects/guile-rsvg/")
1093 (license license:lgpl2.1+))))
1095 (define-public guile2.2-rsvg
1097 (inherit guile-rsvg)
1098 (name "guile2.2-rsvg")
1100 `(("guile" ,guile-2.2)
1101 ("guile-lib" ,guile2.2-lib)
1102 ,@(fold alist-delete (package-inputs guile-rsvg)
1103 '("guile" "guile-lib"))))
1104 (propagated-inputs `(("guile-cairo" ,guile2.2-cairo)))))
1106 (define-public guile3.0-rsvg
1107 (deprecated-package "guile3.0-rsvg" guile-rsvg))
1109 (define-public guile-present
1111 (name "guile-present")
1115 (uri (string-append "http://wingolog.org/pub/guile-present/"
1116 "guile-present-" version ".tar.gz"))
1119 "1qam447m05sxxv6x8dlzg7qnyfc4dh8apjw1idpfhpns671gfr6m"))
1120 (patches (search-patches "guile-present-coding.patch"))
1121 (modules '((guix build utils)))
1124 ;; Allow builds with Guile 3.0.
1125 (substitute* "configure"
1129 ;; Install .go files in the right place.
1130 (substitute* "Makefile.in"
1131 (("/ccache") "/site-ccache"))
1133 (build-system gnu-build-system)
1136 (modify-phases %standard-phases
1137 (add-after 'install 'post-install
1138 (lambda* (#:key inputs outputs #:allow-other-keys)
1139 (let* ((out (assoc-ref outputs "out"))
1140 (bin (string-append out "/bin"))
1141 (guile (assoc-ref inputs "guile"))
1143 ,(match (assoc "guile" (package-inputs this-package))
1145 (version-major+minor (package-version guile))))))
1146 (substitute* (find-files bin ".*")
1148 (string-append guile "/bin/guile -L "
1149 out "/share/guile/site/" version " -C "
1150 out "/lib/guile/" version "/site-ccache "))))
1152 (native-inputs `(("pkg-config" ,pkg-config)))
1153 (inputs `(("guile" ,guile-3.0)))
1155 ;; These are used by the (present …) modules.
1156 `(("guile-lib" ,guile-lib)
1157 ("guile-cairo" ,guile-cairo)
1158 ("guile-rsvg" ,guile-rsvg)))
1159 (home-page "https://wingolog.org/software/guile-present/")
1160 (synopsis "Create SVG or PDF presentations in Guile")
1162 "Guile-Present defines a declarative vocabulary for presentations,
1163 together with tools to render presentation documents as SVG or PDF.
1164 Guile-Present can be used to make presentations programmatically, but also
1165 includes a tools to generate PDF presentations out of Org mode and Texinfo
1167 (license license:lgpl3+)))
1169 (define-public guile2.2-present
1171 (inherit guile-present)
1172 (name "guile2.2-present")
1173 (inputs `(("guile" ,guile-2.2)))
1175 `(("guile-lib" ,guile2.2-lib)
1176 ("guile-cairo" ,guile2.2-cairo)
1177 ("guile-rsvg" ,guile2.2-rsvg)))))
1179 (define-public guile3.0-present
1180 (deprecated-package "guile3.0-present" guile-present))
1182 (define-public guile-gnome
1184 (name "guile-gnome")
1189 (string-append "mirror://gnu/" name
1190 "/guile-gnome-platform/guile-gnome-platform-"
1194 "1gnf3j96nip5kl99a268i0dy1hj7s1cfs66sps3zwysnkd7qr399"))))
1195 (build-system gnu-build-system)
1197 `(("pkg-config" ,pkg-config)
1199 ;;("corba" ,corba) ; not packaged yet
1201 ("gobject-introspection" ,gobject-introspection)
1202 ;;("gthread" ,gthread) ; not packaged yet
1203 ("gnome-vfs" ,gnome-vfs)
1204 ("gdk-pixbuf" ,gdk-pixbuf)
1206 ("libglade" ,libglade)
1207 ("libgnome" ,libgnome)
1208 ("libgnomecanvas" ,libgnomecanvas)
1209 ("libgnomeui" ,libgnomeui)
1213 (inputs `(("guile" ,guile-2.2)))
1215 `(("guile-cairo" ,guile2.2-cairo)
1217 ("guile-lib" ,guile2.2-lib)))
1219 `(#:tests? #f ;FIXME
1220 #:phases (modify-phases %standard-phases
1221 (add-before 'configure 'pre-configure
1222 (lambda* (#:key outputs #:allow-other-keys)
1223 (let ((out (assoc-ref outputs "out")))
1224 (substitute* (find-files "." "^Makefile.in$")
1225 (("guilesite :=.*guile/site" all)
1226 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
1228 (outputs '("out" "debug"))
1229 (synopsis "Guile interface for GTK+ programming for GNOME")
1231 "Includes guile-clutter, guile-gnome-gstreamer,
1232 guile-gnome-platform (GNOME developer libraries), and guile-gtksourceview.")
1233 (home-page "https://www.gnu.org/software/guile-gnome/")
1234 (license license:gpl2+)
1235 (properties '((upstream-name . "guile-gnome-platform")
1236 (ftp-directory . "/gnu/guile-gnome/guile-gnome-platform")))))
1242 (define-public cairomm
1248 (uri (string-append "https://www.cairographics.org/releases/"
1249 name "-" version ".tar.gz"))
1252 "16fmigxsaz85c3lgcls7biwyz8zy8c8h3jndfm54cxxas3a7zi25"))))
1253 (build-system gnu-build-system)
1255 ;; The examples lack -lcairo.
1256 '(#:make-flags '("LDFLAGS=-lcairo")))
1257 (native-inputs `(("pkg-config" ,pkg-config)))
1259 `(("libsigc++" ,libsigc++)
1260 ("freetype" ,freetype)
1261 ("fontconfig" ,fontconfig)
1263 (home-page "https://cairographics.org/")
1264 (synopsis "C++ bindings to the Cairo 2D graphics library")
1266 "Cairomm provides a C++ programming interface to the Cairo 2D graphics
1268 (license license:lgpl2.0+)))
1270 (define-public cairomm-1.13
1279 (string-append "https://www.cairographics.org/releases/"
1280 name "-" version ".tar.gz"))
1282 (base32 "1xlfl0fm5mgv53lr8xjv2kqsk3bz67qkk6qzvbrqmbvbvvbqp9wp"))))
1285 ("sigc++" ,libsigc++)))))
1287 (define-public pangomm
1293 (uri (string-append "mirror://gnome/sources/" name "/"
1294 (version-major+minor version) "/"
1295 name "-" version ".tar.xz"))
1298 "0mmzxp3wniaafkxr30sb22mq9x44xckb5d60h1bl99lkzxks0vfa"))))
1299 (build-system gnu-build-system)
1300 (native-inputs `(("pkg-config" ,pkg-config)))
1303 ("cairomm" ,cairomm)
1306 (home-page "https://pango.gnome.org//")
1307 (synopsis "C++ interface to the Pango text rendering library")
1309 "Pangomm provides a C++ programming interface to the Pango text rendering
1311 (license license:lgpl2.1+)))
1313 (define-public pangomm-2.42
1322 (string-append "mirror://gnome/sources/" name "/"
1323 (version-major+minor version) "/"
1324 name "-" version ".tar.xz"))
1326 (base32 "03zli5amizhv9bfklwfq7xyf0b5dagchx1lnz9f0v1rhk69h9gql"))))
1328 `(("cairomm" ,cairomm-1.13)
1329 ("glibmm" ,glibmm-2.64)
1330 ("pango" ,pango)))))
1332 (define-public atkmm
1338 (uri (string-append "mirror://gnome/sources/" name "/"
1339 (version-major+minor version) "/"
1340 name "-" version ".tar.xz"))
1343 "0fnxrspxkhhbrjphqrpvl3zjm66n50s4cywrrrwkhbflgy8zqk2c"))))
1344 (build-system gnu-build-system)
1345 (native-inputs `(("pkg-config" ,pkg-config)))
1347 `(("glibmm" ,glibmm) ("atk" ,atk)))
1348 (home-page "https://www.gtkmm.org")
1349 (synopsis "C++ interface to the ATK accessibility library")
1351 "ATKmm provides a C++ programming interface to the ATK accessibility
1353 (license license:lgpl2.1+)))
1355 (define-public gtkmm
1361 (uri (string-append "mirror://gnome/sources/" name "/"
1362 (version-major+minor version) "/"
1363 name "-" version ".tar.xz"))
1366 "1hxdnhavjyvbcpxhd5z17l9fj4182028s66lc0s16qqqrldhjwbd"))))
1367 (build-system gnu-build-system)
1368 (native-inputs `(("pkg-config" ,pkg-config)
1369 ("glib" ,glib "bin") ;for 'glib-compile-resources'
1370 ("xorg-server" ,xorg-server-for-tests)))
1372 `(("pangomm" ,pangomm)
1373 ("cairomm" ,cairomm)
1376 ("glibmm" ,glibmm)))
1378 `(#:disallowed-references (,xorg-server-for-tests)
1379 #:phases (modify-phases %standard-phases
1380 (add-before 'check 'run-xvfb
1381 (lambda* (#:key inputs #:allow-other-keys)
1382 (let ((xorg-server (assoc-ref inputs "xorg-server")))
1383 ;; Tests such as 'object_move/test' require a running
1385 (system (string-append xorg-server "/bin/Xvfb :1 &"))
1386 (setenv "DISPLAY" ":1")
1387 ;; Don't fail because of the missing /etc/machine-id.
1388 (setenv "DBUS_FATAL_WARNINGS" "0")
1390 (home-page "https://gtkmm.org/")
1392 "C++ interface to the GTK+ graphical user interface library")
1394 "gtkmm is the official C++ interface for the popular GUI library GTK+.
1395 Highlights include typesafe callbacks, and a comprehensive set of widgets that
1396 are easily extensible via inheritance. You can create user interfaces either
1397 in code or with the Glade User Interface designer, using libglademm. There's
1398 extensive documentation, including API reference and a tutorial.")
1399 (license license:lgpl2.1+)))
1402 (define-public gtkmm-2
1403 (package (inherit gtkmm)
1408 (uri (string-append "mirror://gnome/sources/" name "/"
1409 (version-major+minor version) "/"
1410 name "-" version ".tar.xz"))
1413 "0wkbzvsx4kgw16f6xjdc1dz7f77ldngdila4yi5lw2zrgcxsb006"))))
1415 (native-inputs `(("pkg-config" ,pkg-config)))
1417 `(("pangomm" ,pangomm)
1418 ("cairomm" ,cairomm)
1421 ("glibmm" ,glibmm)))))
1423 (define-public gtksourceviewmm
1425 (name "gtksourceviewmm")
1429 (uri (string-append "mirror://gnome/sources/" name "/"
1430 (version-major+minor version) "/"
1431 name "-" version ".tar.xz"))
1433 (base32 "0fgvmhm4h4qmxig87qvangs6ijw53mi40siz7pixlxbrsgiil22i"))))
1434 (build-system gnu-build-system)
1436 `(("pkg-config" ,pkg-config)))
1438 ;; In 'Requires' of gtksourceviewmm-3.0.pc.
1439 `(("glibmm" ,glibmm)
1441 ("gtksourceview" ,gtksourceview-3)))
1442 (synopsis "C++ interface to the GTK+ 'GtkTextView' widget")
1444 "gtksourceviewmm is a portable C++ library that extends the standard GTK+
1445 framework for multiline text editing with support for configurable syntax
1446 highlighting, unlimited undo/redo, search and replace, a completion framework,
1447 printing and other features typical of a source code editor.")
1448 (license license:lgpl2.1+)
1449 (home-page "https://developer.gnome.org/gtksourceview/")))
1452 ;;; Python bindings.
1455 (define-public python-pycairo
1457 (name "python-pycairo")
1462 (uri (string-append "https://github.com/pygobject/pycairo/releases/download/v"
1463 version "/pycairo-" version ".tar.gz"))
1466 "111fav9m1iagw3nh2ws2vzkjh34r97yl7rdlpvsngsqg521k251c"))))
1467 (build-system python-build-system)
1469 `(("pkg-config" ,pkg-config)
1470 ("python-pytest" ,python-pytest)))
1471 (propagated-inputs ;pycairo.pc references cairo
1472 `(("cairo" ,cairo)))
1473 (home-page "https://cairographics.org/pycairo/")
1474 (synopsis "Python bindings for cairo")
1476 "Pycairo is a set of Python bindings for the Cairo graphics library.")
1477 (license license:lgpl3+)
1478 (properties `((python2-variant . ,(delay python2-pycairo))))))
1480 ;; Pycairo no longer supports Python 2 since version 1.19.0, so we stick
1481 ;; with this older version here.
1482 (define-public python2-pycairo
1483 (let ((pycairo (package-with-python2
1484 (strip-python2-variant python-pycairo))))
1490 (uri (string-append "https://github.com/pygobject/pycairo/releases"
1491 "/download/v" version "/pycairo-" version ".tar.gz"))
1494 "0cb5n4r4nl0k1g90b1gz9iyk4lp7hi03db98i1p52a870bym7f6w"))))
1495 ;; Dual-licensed under LGPL 2.1 or Mozilla Public License 1.1
1496 (license (list license:lgpl2.1 license:mpl1.1)))))
1498 (define-public python2-pygtk
1500 (name "python2-pygtk")
1505 (uri (string-append "mirror://gnome/sources"
1506 "/pygtk/" (version-major+minor version)
1507 "/pygtk-" version ".tar.bz2"))
1510 "04k942gn8vl95kwf0qskkv6npclfm31d78ljkrkgyqxxcni1w76d"))))
1511 (build-system gnu-build-system)
1513 "doc")) ;13 MiB of gtk-doc HTML
1515 `(("pkg-config" ,pkg-config)))
1517 `(("python" ,python-2)
1519 ;; XXX: The package fails to build with the latest Pango (propagated
1520 ;; from GTK+2), so we provide it with this older version.
1521 ("pango" ,pango-1.42)
1523 ("libglade" ,libglade)
1526 `(("python-pycairo" ,python2-pycairo) ;loaded at runtime
1527 ("python-pygobject" ,python2-pygobject-2) ;referenced in pc file
1531 #:phases (modify-phases %standard-phases
1532 (add-before 'configure 'set-gtk-doc-directory
1533 (lambda* (#:key outputs #:allow-other-keys)
1534 ;; Install documentation to "doc".
1535 (let ((doc (assoc-ref outputs "doc")))
1536 (substitute* "docs/Makefile.in"
1537 (("TARGET_DIR = \\$\\(datadir\\)")
1538 (string-append "TARGET_DIR = " doc))))))
1539 (add-after 'configure 'fix-codegen
1540 (lambda* (#:key inputs #:allow-other-keys)
1541 (substitute* "pygtk-codegen-2.0"
1545 (assoc-ref inputs "python-pygobject") "\n")))))
1546 (add-after 'install 'install-pth
1547 (lambda* (#:key inputs outputs #:allow-other-keys)
1548 ;; pygtk's modules are stored in a subdirectory of
1549 ;; python's site-packages directory. Add a .pth file so
1550 ;; that python will add that subdirectory to its module
1552 (let* ((out (assoc-ref outputs "out"))
1553 (site (string-append out "/lib/python"
1554 ,(version-major+minor
1555 (package-version python-2))
1557 (call-with-output-file (string-append site "/pygtk.pth")
1559 (format port "gtk-2.0~%")))))))))
1560 (home-page "http://www.pygtk.org/")
1561 (synopsis "Python bindings for GTK+")
1563 "PyGTK allows you to write full featured GTK programs in Python. It is
1564 targeted at GTK 2.x, and can be used in conjunction with gnome-python to
1565 write GNOME applications.")
1566 (license license:lgpl2.1+)))
1568 (define-public perl-cairo
1575 "mirror://cpan/authors/id/X/XA/XAOC/Cairo-"
1579 "1nh5iya63q6j2w0cdi24x2ygpi8k8wwccnbh8cisnx8nqmywnhk0"))))
1580 (build-system perl-build-system)
1582 `(("perl-extutils-depends" ,perl-extutils-depends)
1583 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1585 `(("cairo" ,cairo)))
1586 (home-page "https://metacpan.org/release/Cairo")
1587 (synopsis "Perl interface to the cairo 2d vector graphics library")
1588 (description "Cairo provides Perl bindings for the vector graphics library
1589 cairo. It supports multiple output targets, including PNG, PDF and SVG. Cairo
1590 produces identical output on all those targets.")
1591 (license license:lgpl2.1+)))
1593 (define-public perl-gtk2
1599 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Gtk2-"
1603 "0ry9jfvfgdwzalxcvwsgr7plhk3agx7p40l0fqdf3vrf7ds47i29"))))
1604 (build-system perl-build-system)
1606 `(("perl-extutils-depends" ,perl-extutils-depends)
1607 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1609 `(("gtk+" ,gtk+-2)))
1611 `(("perl-pango" ,perl-pango)))
1614 (modify-phases %standard-phases
1615 (add-before 'build 'remove-broken-test
1616 ;; See https://gitlab.gnome.org/GNOME/perl-gtk2/issues/3.
1618 (substitute* "t/GdkPixbuf.t"
1619 (("tests => 112") "tests => 111")
1620 (("ok \\(defined \\$pixbuf, \"Don't crash on partial pixmap data\"\\);")
1621 "# ok (defined $pixbuf, \"Don't crash on partial pixmap data\");")))))))
1622 (home-page "https://metacpan.org/release/Gtk2")
1623 (synopsis "Perl interface to the 2.x series of the Gimp Toolkit library")
1624 (description "Perl bindings to the 2.x series of the Gtk+ widget set.
1625 This module allows you to write graphical user interfaces in a Perlish and
1626 object-oriented way, freeing you from the casting and memory management in C,
1627 yet remaining very close in spirit to original API.")
1628 (license license:lgpl2.1+)))
1630 (define-public perl-pango
1636 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Pango-"
1640 "0wdcidnfnb6nm79fzfs39ivawj3x8m98a147fmcxgv1zvwia9c1l"))))
1641 (build-system perl-build-system)
1643 `(("perl-extutils-depends" ,perl-extutils-depends)
1644 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1646 `(("pango" ,pango)))
1648 `(("perl-cairo" ,perl-cairo)
1649 ("perl-glib" ,perl-glib)))
1650 (home-page "https://metacpan.org/release/Pango")
1651 (synopsis "Layout and render international text")
1652 (description "Pango is a library for laying out and rendering text, with an
1653 emphasis on internationalization. Pango can be used anywhere that text layout
1654 is needed, but using Pango in conjunction with Cairo and/or Gtk2 provides a
1655 complete solution with high quality text handling and graphics rendering.
1657 Dynamically loaded modules handle text layout for particular combinations of
1658 script and font backend. Pango provides a wide selection of modules, including
1659 modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts.
1660 Virtually all of the world's major scripts are supported.
1662 In addition to the low level layout rendering routines, Pango includes
1663 @code{Pango::Layout}, a high level driver for laying out entire blocks of text,
1664 and routines to assist in editing internationalized text.")
1665 (license license:lgpl2.1+)))
1667 (define-public girara
1675 (url "https://git.pwmt.org/pwmt/girara")
1677 (file-name (git-file-name name version))
1679 (base32 "08rpw9hkaprm4r853xy1d35i2af1pji8c3mzzl01mmwmyr9p0x8k"))))
1680 (native-inputs `(("pkg-config" ,pkg-config)
1681 ("check" ,check-0.14)
1682 ("gettext" ,gettext-minimal)
1683 ("glib:bin" ,glib "bin")
1684 ("xorg-server" ,xorg-server-for-tests)))
1685 ;; Listed in 'Requires.private' of 'girara.pc'.
1686 (propagated-inputs `(("gtk+" ,gtk+)))
1688 `(#:phases (modify-phases %standard-phases
1689 (add-before 'check 'start-xserver
1690 ;; Tests require a running X server.
1691 (lambda* (#:key inputs #:allow-other-keys)
1692 (let ((xorg-server (assoc-ref inputs "xorg-server"))
1694 (setenv "DISPLAY" display)
1696 ;; On busy machines, tests may take longer than
1697 ;; the default of four seconds.
1698 (setenv "CK_DEFAULT_TIMEOUT" "20")
1700 ;; Don't fail due to missing '/etc/machine-id'.
1701 (setenv "DBUS_FATAL_WARNINGS" "0")
1702 (zero? (system (string-append xorg-server "/bin/Xvfb "
1703 display " &")))))))))
1704 (build-system meson-build-system)
1705 (home-page "https://pwmt.org/projects/girara/")
1706 (synopsis "Library for minimalistic gtk+3 user interfaces")
1707 (description "Girara is a library that implements a user interface that
1708 focuses on simplicity and minimalism. Currently based on GTK+, a
1709 cross-platform widget toolkit, it provides an interface that focuses on three
1710 main components: a so-called view widget that represents the actual
1711 application, an input bar that is used to execute commands of the
1712 application and the status bar which provides the user with current
1714 (license license:zlib)))
1716 (define-public gtk-doc
1722 (uri (string-append "mirror://gnome/sources/" name "/"
1723 (version-major+minor version) "/"
1724 name "-" version ".tar.xz"))
1727 "05apmwibkmn1icx05l8aw241lhymcx01zvk5i499cb150bijj7li"))))
1728 (build-system gnu-build-system)
1730 `(#:parallel-tests? #f
1732 (modify-phases %standard-phases
1733 (add-after 'unpack 'patch-gtk-doc-scan
1734 (lambda* (#:key inputs #:allow-other-keys)
1735 (substitute* "gtk-doc.xsl"
1736 (("http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl")
1737 (string-append (assoc-ref inputs "docbook-xsl")
1738 "/xml/xsl/docbook-xsl-"
1739 ,(package-version docbook-xsl)
1741 (("http://docbook.sourceforge.net/release/xsl/current/common/en.xml")
1742 (string-append (assoc-ref inputs "docbook-xsl")
1743 "/xml/xsl/docbook-xsl-"
1744 ,(package-version docbook-xsl)
1747 (add-after 'patch-gtk-doc-scan 'patch-test-out
1749 ;; sanity.sh counts the number of status lines. Since our
1750 ;; texlive regenerates the fonts every time and the font
1751 ;; generator metafont outputs a lot of extra lines, this
1752 ;; test would always fail. Disable it for now.
1753 (substitute* "tests/Makefile.in"
1754 (("empty.sh sanity.sh") "empty.sh"))
1756 (add-before 'build 'set-HOME
1758 ;; FIXME: dblatex with texlive-union does not find the built
1759 ;; metafonts, so it tries to generate them in HOME.
1760 (setenv "HOME" "/tmp")
1762 (add-before 'configure 'fix-docbook
1763 (lambda* (#:key inputs #:allow-other-keys)
1764 (substitute* "configure"
1765 ;; The configure check is overzealous about making sure that
1766 ;; things are in place -- it uses the xmlcatalog tool to make
1767 ;; sure that docbook-xsl is available, but this tool can only
1768 ;; look in one catalog file, unlike the $XML_CATALOG_FILES
1769 ;; variable that Guix defines. Fool the test by using the
1770 ;; docbook-xsl catalog explicitly and get on with life.
1771 (("\"\\$XML_CATALOG_FILE\" \
1772 \"http://docbook.sourceforge.net/release/xsl/")
1773 (string-append (car (find-files (assoc-ref inputs "docbook-xsl")
1775 " \"http://docbook.sourceforge.net/release/xsl/")))
1777 (add-after 'install 'wrap-executables
1778 (lambda* (#:key outputs #:allow-other-keys)
1779 (let ((out (assoc-ref outputs "out")))
1780 (for-each (lambda (prog)
1782 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))))
1783 (find-files (string-append out "/bin")))
1786 (list (string-append "--with-xml-catalog="
1787 (assoc-ref %build-inputs "docbook-xml")
1788 "/xml/dtd/docbook/catalog.xml"))))
1790 `(("pkg-config" ,pkg-config)
1791 ("itstool" ,itstool)
1793 ("gettext" ,gettext-minimal)
1798 ("xsltproc" ,libxslt)
1799 ("dblatex" ,dblatex)
1800 ("docbook-xml" ,docbook-xml-4.3)
1801 ("docbook-xsl" ,docbook-xsl)
1802 ("source-highlight" ,source-highlight)
1804 ("python-six" ,python-six)))
1805 (home-page "https://www.gtk.org/gtk-doc/")
1806 (synopsis "Documentation generator from C source code")
1808 "GTK-Doc generates API documentation from comments added to C code. It is
1809 typically used to document the public API of GTK+ and GNOME libraries, but it
1810 can also be used to document application code.")
1811 (license license:gpl2+)))
1813 (define-public gtk-engines
1815 (name "gtk-engines")
1819 (uri (string-append "mirror://gnome/sources/" name "/"
1820 (version-major+minor version) "/"
1821 name "-" version ".tar.bz2"))
1824 "1db65pb0j0mijmswrvpgkdabilqd23x22d95hp5kwxvcramq1dhm"))))
1825 (build-system gnu-build-system)
1828 `("--enable-animation")))
1830 `(("pkg-config" ,pkg-config)
1831 ("intltool" ,intltool)))
1833 ;; Don't propagate GTK+ to reduce "profile pollution".
1834 `(("gtk+" ,gtk+-2))) ; required by gtk-engines-2.pc
1835 (home-page "https://live.gnome.org/GnomeArt")
1836 (synopsis "Theming engines for GTK+ 2.x")
1838 "This package contains the standard GTK+ 2.x theming engines including
1839 Clearlooks, Crux, High Contrast, Industrial, LighthouseBlue, Metal, Mist,
1840 Redmond95 and ThinIce.")
1841 (license (list license:gpl2+ license:lgpl2.1+))))
1843 (define-public murrine
1849 (uri (string-append "mirror://gnome/sources/" name "/"
1850 (version-major+minor version) "/"
1851 name "-" version ".tar.xz"))
1854 "129cs5bqw23i76h3nmc29c9mqkm9460iwc8vkl7hs4xr07h8mip9"))))
1855 (build-system gnu-build-system)
1858 `("--enable-animation"
1859 "--enable-animationrtl")))
1861 `(("pkg-config" ,pkg-config)
1862 ("intltool" ,intltool)))
1864 `(("gtk+" ,gtk+-2)))
1865 (home-page "https://live.gnome.org/GnomeArt")
1866 (synopsis "Cairo-based theming engine for GTK+ 2.x")
1868 "Murrine is a cairo-based GTK+ theming engine. It is named after the
1869 glass artworks done by Venicians glass blowers.")
1870 (license license:gpl2+)))
1872 (define-public gtkspell3
1878 (uri (string-append "mirror://sourceforge/gtkspell/"
1879 version "/" name "-" version ".tar.xz"))
1882 "0cjp6xdcnzh6kka42w9g0w2ihqjlq8yl8hjm9wsfnixk6qwgch5h"))))
1883 (build-system gnu-build-system)
1885 `(("intltool" ,intltool)
1886 ("pkg-config" ,pkg-config)
1889 `(("gobject-introspection" ,gobject-introspection)
1893 `(("enchant" ,enchant))) ; gtkspell3-3.0.pc refers to it
1894 (home-page "http://gtkspell.sourceforge.net")
1895 (synopsis "Spell-checking addon for GTK's TextView widget")
1897 "GtkSpell provides word-processor-style highlighting and replacement of
1898 misspelled words in a GtkTextView widget.")
1899 (license license:gpl2+)))
1901 (define-public clipit
1909 (url "https://github.com/CristianHenzel/ClipIt")
1910 (commit (string-append "v" version))))
1911 (file-name (git-file-name name version))
1913 (base32 "05xi29v2y0rvb33fmvrz7r9j4l858qj7ngwd7dp4pzpkkaybjln0"))))
1914 (build-system gnu-build-system)
1916 `(("autoconf" ,autoconf)
1917 ("automake" ,automake)
1918 ("intltool" ,intltool)
1919 ("pkg-config" ,pkg-config)))
1921 `(("gtk+" ,gtk+-2)))
1922 (home-page "https://github.com/CristianHenzel/ClipIt")
1923 (synopsis "Lightweight GTK+ clipboard manager")
1925 "ClipIt is a clipboard manager with features such as a history, search
1926 thereof, global hotkeys and clipboard item actions. It was forked from
1927 Parcellite and adds bugfixes and features.")
1928 (license license:gpl2+)))
1930 (define-public graphene
1939 (url "https://github.com/ebassi/graphene.git")
1941 (file-name (git-file-name name version))
1943 (base32 "14a0j1rvjlc7yhfdmhmckdmkzy4ch61qbzywdlw1xv58h23wx29p"))))
1944 (build-system meson-build-system)
1946 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
1949 "-Dinstalled_tests=false")))
1951 `(("git" ,git-minimal)
1952 ("gobject-introspection" ,gobject-introspection)
1954 ("pkg-config" ,pkg-config)))
1957 ("python" ,python)))
1958 (synopsis "Thin layer of graphic data types")
1959 (description "Graphene provides graphic types and their relative API; it
1960 does not deal with windowing system surfaces, drawing, scene graphs, or input.")
1961 (home-page "https://ebassi.github.io/graphene/")
1962 (license license:expat)))
1964 (define-public spread-sheet-widget
1966 (name "spread-sheet-widget")
1971 (uri (string-append "https://alpha.gnu.org/gnu/ssw/"
1972 "spread-sheet-widget-" version ".tar.gz"))
1974 (base32 "09rzgp7gabnzab460x874a1ibgyjiibpwzsz5srn9zs6jv2jdxjb"))))
1975 (build-system gnu-build-system)
1977 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
1978 ("pkg-config" ,pkg-config)))
1979 ;; In 'Requires' of spread-sheet-widget.pc.
1983 (home-page "https://www.gnu.org/software/ssw/")
1984 (synopsis "Gtk+ widget for dealing with 2-D tabular data")
1986 "GNU Spread Sheet Widget is a library for Gtk+ which provides a widget for
1987 viewing and manipulating 2 dimensional tabular data in a manner similar to many
1988 popular spread sheet programs.")
1989 (license license:gpl3+)))
1991 (define-public volumeicon
1998 (uri (string-append "http://nullwise.com/files/volumeicon/volumeicon-"
2001 (base32 "182xl2w8syv6ky2h2bc9imc6ap8pzh0p7rp63hh8nw0xm38c3f14"))))
2002 (build-system gnu-build-system)
2005 (list "--enable-notify"))) ; optional libnotify support
2007 `(("intltool" ,intltool)
2008 ("pkg-config" ,pkg-config)))
2010 `(("alsa-lib" ,alsa-lib)
2012 ("libnotify" ,libnotify)))
2013 (home-page "http://nullwise.com/volumeicon.html")
2014 (synopsis "System tray volume applet")
2016 "Volume Icon is a volume indicator and control applet for @acronym{the
2017 Advanced Linux Sound Architecture, ALSA}. It sits in the system tray,
2018 independent of your desktop environment, and supports global key bindings.")
2019 (license (list license:expat ; src/{bind.c,keybinder.h}
2020 license:isc ; src/alsa_volume_mapping.c
2021 license:gpl3)))) ; the rest & combined work
2031 (url "https://github.com/v1cont/yad")
2032 (commit (string-append "v" version))))
2033 (file-name (git-file-name name version))
2035 (base32 "07rd61hvilsxxrj7lf8c9k0a8glj07s48m7ya8d45030r90g3lvc"))))
2036 (build-system glib-or-gtk-build-system)
2039 ;; Passing --enable-foo will silently disable foo if prerequisite
2040 ;; inputs are missing, not abort the build as one might expect.
2041 ;; ‘--enable-html’ adds a huge webkitgtk dependency. It was never
2042 ;; present in the past and nobody complained.
2043 '("--enable-icon-browser"
2044 "--enable-spell") ; gspell checking support
2046 (modify-phases %standard-phases
2047 (add-after 'bootstrap 'intltoolize
2049 (invoke "intltoolize" "--force" "--automake"))))))
2051 `(("gspell" ,gspell)
2054 `(("autoconf" ,autoconf)
2055 ("automake" ,automake)
2056 ("intltool" ,intltool)
2057 ("pkg-config" ,pkg-config)))
2058 (home-page "https://sourceforge.net/projects/yad-dialog/")
2059 (synopsis "GTK+ dialog boxes for shell scripts")
2061 "This program allows you to display GTK+ dialog boxes from command line or
2062 shell scripts. Example of how to use @code{yad} can be consulted at
2063 @url{https://sourceforge.net/p/yad-dialog/wiki/browse_pages/}.")
2064 (license license:gpl3+)))
2066 (define-public libdbusmenu
2068 (name "libdbusmenu")
2073 (uri (string-append "https://launchpad.net/libdbusmenu/"
2074 (version-major+minor version) "/" version
2075 "/+download/libdbusmenu-" version ".tar.gz"))
2077 (base32 "12l7z8dhl917iy9h02sxmpclnhkdjryn08r8i4sr8l3lrlm4mk5r"))))
2078 (build-system gnu-build-system)
2081 '("--sysconfdir=/etc"
2082 "--localstatedir=/var"
2083 ;; The shebang of the generated test files should be patched before
2087 `(,(string-append "typelibdir=" (assoc-ref %outputs "out")
2088 "/lib/girepository-1.0"))
2090 (modify-phases %standard-phases
2091 (add-before 'configure 'do-not-treat-warnings-as-errors
2093 ;; Prevent the build from failing due to deprecation warnings
2094 ;; from newer GLib and GTK versions.
2095 (substitute* (find-files "." "^Makefile.in$")
2099 (add-before 'configure 'set-environment
2101 (setenv "HAVE_VALGRIND_TRUE" "")
2102 (setenv "HAVE_VALGRIND_FALSE" "#")
2107 ("gtk+-2" ,gtk+-2)))
2109 `(("glib:bin" ,glib "bin")
2110 ("gnome-doc-utils" ,gnome-doc-utils)
2111 ("gobject-introspection" ,gobject-introspection)
2112 ("intltool" ,intltool)
2113 ("json-glib" ,json-glib)
2114 ("pkg-config" ,pkg-config)
2115 ("python" ,python-2)
2117 (home-page "https://launchpad.net/libdbusmenu")
2118 (synopsis "Library for passing menus over DBus")
2119 (description "@code{libdbusmenu} passes a menu structure across DBus so
2120 that a program can create a menu simply without worrying about how it is
2121 displayed on the other side of the bus.")
2123 ;; Dual-licensed under either LGPLv2.1 or LGPLv3.
2124 (license (list license:lgpl2.1 license:lgpl3))))
2126 (define-public gtk-layer-shell
2128 (name "gtk-layer-shell")
2134 "https://github.com/wmww/gtk-layer-shell/releases/download/v"
2135 version "/gtk-layer-shell-" version ".tar.xz"))
2137 (base32 "0ncklk3z0fzlz6p76jdcrr1ykyp1f4ykjjch4x2hfp9bwsnl4a3m"))))
2138 (build-system meson-build-system)
2139 (native-inputs `(("pkg-config" ,pkg-config)
2140 ("gobject-introspection" ,gobject-introspection)))
2141 (inputs `(("wayland" ,wayland)
2143 (home-page "https://github.com/wmww/gtk-layer-shell")
2144 (synopsis "Library to create Wayland desktop components using the Layer
2146 (description "Layer Shell is a Wayland protocol for desktop shell
2147 components, such as panels, notifications and wallpapers. It can be used to
2148 anchor windows to a corner or edge of the output, or stretch them across the
2149 entire output. It supports all Layer Shell features including popups and
2151 (license license:expat)))
2153 (define-public goocanvas
2160 (uri (string-append "mirror://gnome/sources/goocanvas/"
2161 (version-major+minor version)
2162 "/goocanvas-" version ".tar.xz"))
2164 (base32 "141fm7mbqib0011zmkv3g8vxcjwa7hypmq71ahdyhnj2sjvy4a67"))))
2165 (build-system gnu-build-system)
2167 `(("gettext" ,gettext-minimal)
2168 ("glib-bin" ,glib "bin")
2169 ("gobject-introspection" ,gobject-introspection)
2170 ("gtk-doc" ,gtk-doc)
2171 ("pkg-config" ,pkg-config)
2172 ("python" ,python)))
2177 ("python-pygobject" ,python-pygobject)))
2179 `(#:configure-flags '("--disable-rebuilds"
2182 (modify-phases %standard-phases
2183 (add-after 'unpack 'fix-install-path
2184 (lambda* (#:key inputs outputs #:allow-other-keys)
2185 (substitute* "configure"
2186 (("\\(gi._overridesdir\\)")
2187 (string-append "((gi._overridesdir).replace(\\\""
2188 (assoc-ref inputs "python-pygobject")
2190 (assoc-ref outputs "out")
2193 (synopsis "Canvas widget for GTK+")
2194 (description "GooCanvas is a canvas widget for GTK+ that uses the cairo 2D
2195 library for drawing.")
2196 (home-page "https://wiki.gnome.org/GooCanvas")
2197 (license license:lgpl2.0)))
2199 (define-public gtksheet
2207 (url "https://github.com/fpaquet/gtksheet")
2208 (commit (string-append "V" version))))
2209 (file-name (git-file-name name version))
2212 "13jwr1vly4ga3f09dajwky1cdrz5bmggwga3vnnd6j6zzia7dpyr"))))
2213 (build-system gnu-build-system)
2215 `(#:configure-flags (list "--enable-glade"
2216 "--enable-introspection")
2218 (modify-phases %standard-phases
2219 ;; The "configure" script is present, but otherwise the project is
2220 ;; not bootstrapped properly. Delete configure so the bootstrap phase
2222 (add-after 'unpack 'delete-configure
2224 (delete-file "configure")
2226 (add-after 'unpack 'rename-type
2228 (substitute* "glade/glade-gtksheet-editor.c"
2229 (("GladeEditableIface") "GladeEditableInterface"))
2231 ;; Fix glade install directories.
2232 (add-before 'bootstrap 'configure-glade-directories
2233 (lambda* (#:key outputs #:allow-other-keys)
2234 (substitute* "configure.ac"
2235 (("`\\$PKG_CONFIG --variable=catalogdir gladeui-2.0`")
2236 (string-append (assoc-ref outputs "out") "/share/glade/catalogs"))
2237 (("`\\$PKG_CONFIG --variable=moduledir gladeui-2.0`")
2238 (string-append (assoc-ref outputs "out") "/lib/glade/modules"))
2239 (("`\\$PKG_CONFIG --variable=pixmapdir gladeui-2.0`")
2240 (string-append (assoc-ref outputs "out") "/share/pixmaps")))
2246 ("libxml2" ,libxml2)))
2248 `(("autoconf" ,autoconf)
2249 ("automake" ,automake)
2250 ("gobject-introspection" ,gobject-introspection)
2251 ("libtool" ,libtool)
2252 ("pkg-config" ,pkg-config)))
2253 (home-page "https://fpaquet.github.io/gtksheet/")
2254 (synopsis "Spreadsheet widget for GTK+")
2255 (description "GtkSheet is a matrix widget for GTK+. It consists of an
2256 scrollable grid of cells where you can allocate text. Cell contents can be
2257 edited interactively through a specially designed entry, GtkItemEntry. It is
2258 also a container subclass, allowing you to display buttons, images and any
2259 other widget in it. You can also set many attributes such as border,
2260 foreground and background colors, text justification and more.")
2261 (native-search-paths
2263 (search-path-specification
2264 (variable "GLADE_CATALOG_SEARCH_PATH")
2265 (files '("share/glade/catalogs")))
2266 (search-path-specification
2267 (variable "GLADE_MODULE_SEARCH_PATH")
2268 (files '("lib/glade/modules")))))
2269 (license license:lgpl2.0+)))
2271 (define-public gtkdatabox
2277 (uri (string-append "mirror://sourceforge/gtkdatabox/gtkdatabox/"
2278 version "/gtkdatabox-" version ".tar.gz"))
2281 "1rdxnjgh6v3yjqgsfmamyzpfxckzchps4kqvvz88nifmd7ckhjfh"))))
2282 (build-system gnu-build-system)
2284 `(("pkg-config" ,pkg-config)))
2286 `(("gtk+-2" ,gtk+-2)))
2287 (synopsis "Display widget for dynamic data")
2288 (description "GtkDatabox is a widget for live display of large amounts of
2289 fluctuating numerical data. It enables data presentation (for example, on
2290 linear or logarithmic scales, as dots or lines, with markers/labels) as well as
2291 user interaction (e.g. measuring distances).")
2292 (home-page "https://sourceforge.net/projects/gtkdatabox/")
2293 (license license:lgpl2.1+)))