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, 2021 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 ;;; Copyright © 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 utils) #:select (alist-replace))
52 #:use-module (guix build-system glib-or-gtk)
53 #:use-module (guix build-system gnu)
54 #:use-module (guix build-system meson)
55 #:use-module (guix build-system perl)
56 #:use-module (guix build-system python)
57 #:use-module (guix build-system waf)
58 #:use-module (gnu packages)
59 #:use-module (gnu packages algebra)
60 #:use-module (gnu packages autotools)
61 #:use-module (gnu packages base)
62 #:use-module (gnu packages texinfo)
63 #:use-module (gnu packages check)
64 #:use-module (gnu packages compression)
65 #:use-module (gnu packages docbook)
66 #:use-module (gnu packages documentation)
67 #:use-module (gnu packages enchant)
68 #:use-module (gnu packages fontutils)
69 #:use-module (gnu packages freedesktop)
70 #:use-module (gnu packages fribidi)
71 #:use-module (gnu packages gettext)
72 #:use-module (gnu packages ghostscript)
73 #:use-module (gnu packages gl)
74 #:use-module (gnu packages glib)
75 #:use-module (gnu packages gnome)
76 #:use-module (gnu packages icu4c)
77 #:use-module (gnu packages image)
78 #:use-module (gnu packages libffi)
79 #:use-module (gnu packages linux)
80 #:use-module (gnu packages pdf)
81 #:use-module (gnu packages perl)
82 #:use-module (gnu packages pkg-config)
83 #:use-module (gnu packages pretty-print)
84 #:use-module (gnu packages python)
85 #:use-module (gnu packages python-xyz)
86 #:use-module (gnu packages guile)
87 #:use-module (gnu packages guile-xyz)
88 #:use-module (gnu packages cups)
89 #:use-module (gnu packages version-control)
90 #:use-module (gnu packages xml)
91 #:use-module (gnu packages xorg)
92 #:use-module (gnu packages xdisorg)
93 #:use-module (srfi srfi-1)
94 #:use-module (srfi srfi-26)
95 #:use-module (ice-9 match))
103 (uri (string-append "mirror://gnome/sources/" name "/"
104 (version-major+minor version) "/"
105 name "-" version ".tar.xz"))
108 "1jwp16r6p5z66k4b2v8zlzhyshhwlmyi27ippkrgqr8jsary7w6l"))))
109 (build-system meson-build-system)
110 (propagated-inputs `(("glib" ,glib))) ; required by atk.pc
112 `(("pkg-config" ,pkg-config)
113 ("gettext" ,gettext-minimal)
114 ("glib" ,glib "bin") ; glib-mkenums, etc.
115 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
116 (synopsis "GNOME accessibility toolkit")
118 "ATK provides the set of accessibility interfaces that are implemented
119 by other toolkits and applications. Using the ATK interfaces, accessibility
120 tools have full access to view and control running applications.")
121 (license license:lgpl2.0+)
122 (home-page "https://developer.gnome.org/atk/")))
128 (replacement cairo/fixed)
131 (uri (string-append "https://cairographics.org/releases/cairo-"
135 "0c930mk5xr2bshbdljv005j3j8zr47gqmkry3q6qgvqky6rjjysy"))))
136 (build-system gnu-build-system)
138 `(("fontconfig" ,fontconfig)
139 ("freetype" ,freetype)
144 ("libxrender" ,libxrender)
147 `(("ghostscript" ,ghostscript)
148 ("libspectre" ,libspectre)
150 ("xorgproto" ,xorgproto)
153 `(("pkg-config" ,pkg-config)
154 ("python" ,python-wrapper)))
156 `(#:tests? #f ; see http://lists.gnu.org/archive/html/bug-guix/2013-06/msg00085.html
157 #:configure-flags '("--enable-tee" ;needed for GNU Icecat
158 "--enable-xml" ;for cairo-xml support
159 "--disable-static")))
160 (synopsis "2D graphics library")
162 "Cairo is a 2D graphics library with support for multiple output devices.
163 Currently supported output targets include the X Window System (via both
164 Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file
165 output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.
167 Cairo is designed to produce consistent output on all output media while
168 taking advantage of display hardware acceleration when available
169 eg. through the X Render Extension).
171 The cairo API provides operations similar to the drawing operators of
172 PostScript and PDF. Operations in cairo including stroking and filling cubic
173 Bézier splines, transforming and compositing translucent images, and
174 antialiased text rendering. All drawing operations can be transformed by any
175 affine transformation (scale, rotation, shear, etc.).")
176 (license license:lgpl2.1) ; or Mozilla Public License 1.1
177 (home-page "https://cairographics.org/")))
183 (inherit (package-source cairo))
184 (patches (append (search-patches "cairo-CVE-2018-19876.patch"
185 "cairo-CVE-2020-35492.patch")
186 (origin-patches (package-source cairo))))))))
188 (define-public cairo-sans-poppler
189 ;; Variant used to break the dependency cycle between Poppler and Cairo.
190 (package/inherit cairo
191 (inputs (alist-delete "poppler" (package-inputs cairo)))
192 (properties `((hidden? . #t)))))
194 (define-public cairo-xcb
195 (package/inherit cairo
199 ,@(package-inputs cairo)))
203 '("--enable-xlib-xcb" "--enable-gl" "--enable-egl")))
204 (synopsis "2D graphics library (with X11 support)")))
206 (define-public harfbuzz
212 (uri (string-append "https://www.freedesktop.org/software/"
213 "harfbuzz/release/harfbuzz-"
217 "04iwq13w6zkdhljmsxrzgg4fyh04qnwfn57rgrl9kmijc7cvh4wl"))))
218 (build-system gnu-build-system)
220 "bin")) ; 160K, only hb-view depend on cairo
224 ;; There are all in the Requires or Requires.private field of '.pc'.
226 ("graphite2" ,graphite2)
229 `(("glib:bin" ,glib "bin") ;for glib-mkenums
230 ("gobject-introspection" ,gobject-introspection)
231 ("pkg-config" ,pkg-config)
232 ("python" ,python-wrapper)
235 `(#:configure-flags `("--with-graphite2"
238 "--bindir=" (assoc-ref %outputs "bin") "/bin"))))
239 (synopsis "OpenType text shaping engine")
241 "HarfBuzz is an OpenType text shaping engine.")
242 (license (license:x11-style "file://COPYING"
243 "See 'COPYING' in the distribution."))
244 (home-page "https://www.freedesktop.org/wiki/Software/HarfBuzz/")))
246 (define-public libdatrie
254 (string-append "https://linux.thai.net/pub/ThaiLinux/software/"
255 "libthai/libdatrie-" version ".tar.xz"))
257 (base32 "1gplcx9ddglpxmqm10qn38kjmvdh4hnhj14rzgqag095psr1n8qj"))))
258 (build-system gnu-build-system)
259 (outputs '("out" "doc"))
263 (string-append "--with-html-docdir="
264 (assoc-ref %outputs "doc")
265 "/share/doc/datrie/html"))))
267 `(("doxygen" ,doxygen)
268 ("pkg-config" ,pkg-config)))
269 (synopsis "Double-Array Trie Library")
270 (description "Libdatrie is an implementation of double-array structure for
271 representing trie. Trie is a kind of digital search tree.")
272 (home-page "https://linux.thai.net/~thep/datrie/datrie.html")
273 (license license:lgpl2.1+)))
275 (define-public libthai
283 (string-append "https://linux.thai.net/pub/thailinux/software/"
284 "libthai/libthai-" version ".tar.xz"))
286 (base32 "04g93bgxrcnay9fglpq2lj9nr7x1xh06i60m7haip8as9dxs3q7z"))))
287 (build-system gnu-build-system)
288 (outputs '("out" "doc"))
292 (string-append "--with-html-docdir="
293 (assoc-ref %outputs "doc")
294 "/share/doc/libthai/html"))))
296 `(("doxygen" ,doxygen)
297 ("pkg-config" ,pkg-config)))
299 `(("datrie" ,libdatrie)))
300 (synopsis "Thai language support library")
301 (description "LibThai is a set of Thai language support routines aimed to
302 ease developers’ tasks to incorporate Thai language support in their
304 (home-page "https://linux.thai.net/projects/libthai")
305 (license license:lgpl2.1+)))
313 (uri (string-append "mirror://gnome/sources/pango/"
314 (version-major+minor version) "/"
315 name "-" version ".tar.xz"))
316 (patches (search-patches "pango-skip-libthai-test.patch"))
319 "07qvxa2sk90chp1l12han6vxvy098mc37sdqcznyywyv2g6bd9b6"))))
320 (build-system meson-build-system)
322 '(#:phases (modify-phases %standard-phases
323 (add-after 'unpack 'disable-cantarell-tests
325 (substitute* "tests/meson.build"
326 ;; XXX FIXME: These tests require "font-cantarell", but
327 ;; adding it here would introduce a circular dependency.
328 (("\\[ 'test-harfbuzz'.*") "")
329 (("\\[ 'test-itemize'.*") "")
330 (("\\[ 'test-layout'.*") ""))
333 ;; These are all in Requires or Requires.private of the '.pc' files.
336 ("fontconfig" ,fontconfig)
337 ("freetype" ,freetype)
339 ("harfbuzz" ,harfbuzz)
341 ;; Some packages, such as Openbox, expect Pango to be built with the
342 ;; optional libxft support.
347 `(("pkg-config" ,pkg-config)
348 ("glib" ,glib "bin") ; glib-mkenums, etc.
349 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
350 (synopsis "GNOME text and font handling library")
352 "Pango is the core text and font handling library used in GNOME
353 applications. It has extensive support for the different writing systems
354 used throughout the world.")
355 (license license:lgpl2.0+)
356 (home-page "https://developer.gnome.org/pango/")))
358 (define-public pango-1.42
364 (uri (string-append "mirror://gnome/sources/pango/"
365 (version-major+minor version) "/"
366 "pango-" version ".tar.xz"))
369 "17bwb7dgbncrfsmchlib03k9n3xaalirb39g3yb43gg8cg6p8aqx"))))
370 (build-system gnu-build-system)
372 '(#:phases (modify-phases %standard-phases
373 (add-after 'configure 'disable-layout-test
375 ;; This test requires that fontconfig uses bitmap fonts
376 ;; such as "gs-fonts"; however providing such a package
377 ;; alone is not enough, as the requirement comes from
378 ;; deeper in the font stack. Since this version of Pango
379 ;; is only used for librsvg, simply disable the test.
380 (substitute* "tests/Makefile"
381 (("test-layout\\$\\(EXEEXT\\)") ""))
384 (define-public pangox-compat
386 (name "pangox-compat")
390 (uri (string-append "mirror://gnome/sources/" name "/"
391 (version-major+minor version) "/"
392 name "-" version ".tar.xz"))
395 "0ip0ziys6mrqqmz4n71ays0kf5cs1xflj1gfpvs4fgy2nsrr482m"))))
396 (build-system gnu-build-system)
399 ("pango" ,pango-1.42)))
401 `(("intltool" ,intltool)
402 ("pkg-config" ,pkg-config)))
403 (home-page "https://developer.gnome.org/pango")
404 (synopsis "Obsolete pango functions")
405 (description "Pangox was a X backend to pango. It is now obsolete and no
406 longer provided by recent pango releases. pangox-compat provides the
407 functions which were removed.")
408 (license license:lgpl2.0+)))
416 (uri (string-append "https://download.drobilla.net/ganv-"
420 "0pik2d3995z0rjcjhb4hsj5fsph3m8khg6j10k6mx4j2j727aq6l"))))
421 (build-system waf-build-system)
424 (modify-phases %standard-phases
425 (add-before 'configure 'set-flags
426 (lambda* (#:key outputs #:allow-other-keys)
427 ;; Allow 'bin/ganv_bench' to find libganv-1.so.
429 (string-append "-Wl,-rpath="
430 (assoc-ref outputs "out") "/lib"))
432 #:tests? #f)) ; no check target
437 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
438 ("pkg-config" ,pkg-config)))
439 (home-page "https://drobilla.net/software/ganv/")
440 (synopsis "GTK+ widget for interactive graph-like environments")
442 "Ganv is an interactive GTK+ widget for interactive “boxes and lines” or
443 graph-like environments, e.g. modular synths or finite state machine
445 (license license:gpl3+)))
447 (define-public gtksourceview-2
449 (name "gtksourceview")
450 (version "2.10.5") ; This is the last version which builds against gtk+2
453 (uri (string-append "mirror://gnome/sources/" name "/"
454 (version-major+minor version) "/"
455 name "-" version ".tar.bz2"))
458 "07hrabhpl6n8ajz10s0d960jdwndxs87szxyn428mpxi8cvpg1f5"))
461 "gtksourceview-2-add-default-directory.patch"))))
462 (build-system gnu-build-system)
464 `(("intltool" ,intltool)
465 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
466 ("pkg-config" ,pkg-config)
468 ("xorg-server" ,xorg-server-for-tests)
469 ("shared-mime-info" ,shared-mime-info)))
471 ;; As per the pkg-config file.
473 ("libxml2" ,libxml2)))
476 ;; Unfortunately, some of the tests in "make check" are highly dependent
477 ;; on the environment therefore, some black magic is required.
478 (modify-phases %standard-phases
479 (add-before 'check 'start-xserver
480 (lambda* (#:key inputs #:allow-other-keys)
481 (let ((xorg-server (assoc-ref inputs "xorg-server"))
482 (mime (assoc-ref inputs "shared-mime-info")))
484 ;; There must be a running X server and make check doesn't start one.
485 ;; Therefore we must do it.
486 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
487 (setenv "DISPLAY" ":1")
489 ;; The .lang files must be found in $XDG_DATA_HOME/gtksourceview-2.0
490 (system "ln -s gtksourceview gtksourceview-2.0")
491 (setenv "XDG_DATA_HOME" (getcwd))
493 ;; Finally, the mimetypes must be available.
494 (setenv "XDG_DATA_DIRS" (string-append mime "/share/")))
496 (synopsis "Widget that extends the standard GTK+ 2.x 'GtkTextView' widget")
498 "GtkSourceView is a portable C library that extends the standard GTK+
499 framework for multiline text editing with support for configurable syntax
500 highlighting, unlimited undo/redo, search and replace, a completion framework,
501 printing and other features typical of a source code editor.")
502 (license license:lgpl2.0+)
503 (home-page "https://developer.gnome.org/gtksourceview/")))
505 (define-public gtksourceview
507 (name "gtksourceview")
511 (uri (string-append "mirror://gnome/sources/gtksourceview/"
512 (version-major+minor version) "/"
513 "gtksourceview-" version ".tar.xz"))
516 "0xgnjj7jd56wbl99s76sa1vjq9bkz4mdsxwgwlcphg689liyncf4"))))
517 (build-system gnu-build-system)
520 (modify-phases %standard-phases
523 (lambda* (#:key inputs #:allow-other-keys)
524 (let ((xorg-server (assoc-ref inputs "xorg-server")))
525 ;; Tests require a running X server.
526 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
527 (setenv "DISPLAY" ":1")
528 ;; For the missing /etc/machine-id.
529 (setenv "DBUS_FATAL_WARNINGS" "0")
532 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
533 ("intltool" ,intltool)
535 ("gobject-introspection" ,gobject-introspection)
536 ("pkg-config" ,pkg-config)
539 ("xorg-server" ,xorg-server-for-tests)
540 ("shared-mime-info" ,shared-mime-info)))
542 ;; gtksourceview-3.0.pc refers to all these.
545 ("libxml2" ,libxml2)))
546 (home-page "https://wiki.gnome.org/Projects/GtkSourceView")
547 (synopsis "GNOME source code widget")
548 (description "GtkSourceView is a text widget that extends the standard
549 GTK+ text widget GtkTextView. It improves GtkTextView by implementing syntax
550 highlighting and other features typical of a source code editor.")
551 (license license:lgpl2.1+)))
553 (define-public gtksourceview-3
554 (package (inherit gtksourceview)
555 (name "gtksourceview")
559 (uri (string-append "mirror://gnome/sources/" name "/"
560 (version-major+minor version) "/"
561 name "-" version ".tar.xz"))
564 "16ym7jwiki4s1pilwr4incx0yg7ll94f1cajrnpndkxxs36hcm5b"))))))
566 (define-public gdk-pixbuf
570 (replacement gdk-pixbuf/fixed)
573 (uri (string-append "mirror://gnome/sources/" name "/"
574 (version-major+minor version) "/"
575 name "-" version ".tar.xz"))
578 "1rnlx9yfw970maxi2x6niaxmih5la11q1ilr7gzshz2kk585k0hm"))))
579 (build-system meson-build-system)
581 `(#:configure-flags '("-Dinstalled_tests=false")
583 (modify-phases %standard-phases
585 'unpack 'disable-failing-tests
587 (substitute* "tests/meson.build"
588 ;; XXX FIXME: This test fails on armhf machines with:
589 ;; SKIP Not enough memory to load bitmap image
590 ;; ERROR: cve-2015-4491 - too few tests run (expected 4, got 2)
591 ((".*'cve-2015-4491'.*") "")
592 ;; XXX FIXME: This test fails with:
593 ;; ERROR:pixbuf-jpeg.c:74:test_type9_rotation_exif_tag:
594 ;; assertion failed (error == NULL): Data differ
595 ;; (gdk-pixbuf-error-quark, 0)
596 ((".*'pixbuf-jpeg'.*") ""))
598 ;; The slow tests take longer than the specified timeout.
599 ,@(if (any (cute string=? <> (%current-system))
600 '("armhf-linux" "aarch64-linux"))
603 (invoke "meson" "test" "--timeout-multiplier" "5"))))
606 `(;; Required by gdk-pixbuf-2.0.pc
609 ;; Used for testing and required at runtime.
610 ("shared-mime-info" ,shared-mime-info)))
612 `(("libjpeg" ,libjpeg-turbo)
616 `(("pkg-config" ,pkg-config)
617 ("gettext" ,gettext-minimal)
618 ("glib" ,glib "bin") ; glib-mkenums, etc.
619 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
620 (synopsis "GNOME image loading and manipulation library")
622 "GdkPixbuf is a library for image loading and manipulation developed
623 in the GNOME project.")
624 (license license:lgpl2.0+)
625 (home-page "https://developer.gnome.org/gdk-pixbuf/")))
627 (define gdk-pixbuf/fixed
631 (inherit (package-source gdk-pixbuf))
633 (append (search-patches "gdk-pixbuf-CVE-2020-29385.patch")
634 (origin-patches (package-source gdk-pixbuf))))))))
636 ;; To build gdk-pixbuf with SVG support, we need librsvg, and librsvg depends
637 ;; on gdk-pixbuf, so this new varibale. Also, librsvg adds 90MiB to the
639 (define-public gdk-pixbuf+svg
640 (package/inherit gdk-pixbuf
641 (name "gdk-pixbuf+svg")
643 `(("librsvg" ,librsvg)
644 ,@(package-inputs gdk-pixbuf)))
646 '(#:configure-flags '("-Dinstalled-tests=false")
647 #:tests? #f ; tested by the gdk-pixbuf package already
649 (modify-phases %standard-phases
650 (add-after 'install 'register-svg-loader
651 (lambda* (#:key inputs outputs #:allow-other-keys)
652 (let* ((out (assoc-ref outputs "out"))
653 (librsvg (assoc-ref inputs "librsvg"))
656 (find-files out "^libpixbufloader-.*\\.so$")
657 (find-files librsvg "^libpixbufloader-.*\\.so$")))
658 (gdk-pixbuf-query-loaders
659 (string-append out "/bin/gdk-pixbuf-query-loaders")))
661 gdk-pixbuf-query-loaders
665 "GNOME image loading and manipulation library, with SVG support")))
667 (define-public at-spi2-core
669 (name "at-spi2-core")
673 (uri (string-append "mirror://gnome/sources/" name "/"
674 (version-major+minor version) "/"
675 name "-" version ".tar.xz"))
678 "1ihixwhh3c16q6253qj9gf69741rb2pi51822a4rylsfcyywsafn"))))
679 (build-system meson-build-system)
680 (outputs '("out" "doc"))
685 (modify-phases %standard-phases
686 (add-after 'unpack 'set-documentation-path
687 (lambda* (#:key outputs #:allow-other-keys)
688 ;; Ensure that the cross-references point to the "doc" output.
689 (substitute* "doc/libatspi/meson.build"
691 (string-append "docpath = '" (assoc-ref outputs "doc") "/share/gtk-doc/html'\n")))
693 (add-before 'install 'prepare-doc-directory
694 (lambda* (#:key outputs #:allow-other-keys)
695 (mkdir-p (string-append (assoc-ref outputs "doc") "/share"))
697 (add-after 'install 'move-documentation
698 (lambda* (#:key outputs #:allow-other-keys)
699 (let ((out (assoc-ref outputs "out"))
700 (doc (assoc-ref outputs "doc")))
702 (string-append out "/share/gtk-doc")
703 (string-append doc "/share/gtk-doc"))
704 (delete-file-recursively
705 (string-append out "/share/gtk-doc")))
707 (add-after 'install 'check
709 (setenv "HOME" (getenv "TMPDIR")) ; xfconfd requires a writable HOME
710 ;; Run test-suite under a dbus session.
711 (setenv "XDG_DATA_DIRS" ; for finding org.xfce.Xfconf.service
712 (string-append %output "/share"))
713 ;; Don't fail on missing '/etc/machine-id'.
714 (setenv "DBUS_FATAL_WARNINGS" "0") ;
715 (invoke "dbus-launch" "ninja" "test")))
718 ;; atspi-2.pc refers to all these.
722 ("libxtst" ,libxtst)))
724 `(("gettext" ,gettext-minimal)
725 ("gobject-introspection" ,gobject-introspection)
726 ("gtk-doc" ,gtk-doc/stable)
728 ("pkg-config" ,pkg-config)))
729 (synopsis "Assistive Technology Service Provider Interface, core components")
731 "The Assistive Technology Service Provider Interface, core components,
732 is part of the GNOME accessibility project.")
733 (license license:lgpl2.0+)
734 (home-page "https://projects.gnome.org/accessibility/")))
736 ;;; A minimal variant used to prevent a cycle with Inkscape.
737 (define at-spi2-core-minimal
739 (inherit at-spi2-core)
740 (name "at-spi2-core-minimal")
741 (outputs (delete "doc" (package-outputs at-spi2-core)))
743 (substitute-keyword-arguments (package-arguments at-spi2-core)
744 ((#:configure-flags configure-flags)
745 `(delete "-Ddocs=true" ,configure-flags))
747 `(modify-phases ,phases
748 (delete 'set-documentation-path)
749 (delete 'prepare-doc-directory)
750 (delete 'move-documentation)))))
752 (alist-delete "gtk-doc" (package-native-inputs at-spi2-core)))))
754 (define-public at-spi2-atk
760 (uri (string-append "mirror://gnome/sources/" name "/"
761 (version-major+minor version) "/"
762 name "-" version ".tar.xz"))
765 "05ncp7s5nddjinffs26mcvpbd63vk1m3cv5y530p3plgfhqgjvbp"))))
766 (build-system meson-build-system)
769 (modify-phases %standard-phases
771 ;; Run test-suite under a dbus session.
773 (setenv "DBUS_FATAL_WARNINGS" "0")
774 (invoke "dbus-launch" "meson" "test"))))))
776 ;; TODO: Replace by at-spi2-core-minimal in the next staging window, or
777 ;; when Inkscape 0.92 is upgraded to 1.0 to avoid a cycle.
778 `(("at-spi2-core" ,at-spi2-core))) ; required by atk-bridge-2.0.pc
782 `(("pkg-config" ,pkg-config)
785 ("libxml2" ,libxml2)))
786 (synopsis "Assistive Technology Service Provider Interface, ATK bindings")
788 "The Assistive Technology Service Provider Interface
789 is part of the GNOME accessibility project.")
790 (license license:lgpl2.0+)
791 (home-page "https://projects.gnome.org/accessibility/")))
793 (define-public gtk+-2
799 (uri (string-append "mirror://gnome/sources/" name "/"
800 (version-major+minor version) "/"
801 name "-" version ".tar.xz"))
804 "0bjq7ja9gwcv6n5q4qkvdjjx40wsdiikksz1zqxvxsm5vlyskj5n"))
805 (patches (search-patches "gtk2-respect-GUIX_GTK2_PATH.patch"
806 "gtk2-respect-GUIX_GTK2_IM_MODULE_FILE.patch"
807 "gtk2-theme-paths.patch"))))
808 (build-system gnu-build-system)
809 (outputs '("out" "bin" "doc"))
812 ("gdk-pixbuf" ,gdk-pixbuf+svg)
816 ("libxcomposite" ,libxcomposite)
817 ("libxcursor" ,libxcursor)
818 ("libxdamage" ,libxdamage)
820 ("libxinerama" ,libxinerama)
821 ("libxrandr" ,libxrandr)))
824 ("gettext" ,gettext-minimal)
826 ("gobject-introspection" ,gobject-introspection)
827 ("pkg-config" ,pkg-config)
828 ("python-wrapper" ,python-wrapper)))
831 (list "--with-xinput=yes"
832 (string-append "--with-html-dir="
833 (assoc-ref %outputs "doc")
834 "/share/gtk-doc/html"))
836 (modify-phases %standard-phases
837 (add-before 'configure 'disable-tests
839 ;; FIXME: re-enable tests requiring an X server
840 (substitute* "gtk/Makefile.in"
841 (("SUBDIRS = theme-bits . tests") "SUBDIRS = theme-bits ."))
843 (add-after 'install 'remove-cache
844 (lambda* (#:key outputs #:allow-other-keys)
847 (find-files (assoc-ref outputs "out") "immodules.cache"))
850 (list (search-path-specification
851 (variable "GUIX_GTK2_PATH")
852 (files '("lib/gtk-2.0")))))
853 (synopsis "Cross-platform toolkit for creating graphical user interfaces")
855 "GTK+, or the GIMP Toolkit, is a multi-platform toolkit for creating
856 graphical user interfaces. Offering a complete set of widgets, GTK+ is
857 suitable for projects ranging from small one-off tools to complete
858 application suites.")
859 (license license:lgpl2.0+)
860 (home-page "https://www.gtk.org/")))
863 (package (inherit gtk+-2)
868 (uri (string-append "mirror://gnome/sources/" name "/"
869 (version-major+minor version) "/"
870 name "-" version ".tar.xz"))
873 "12ipk1d376bai9v820qzhxba93kkh5abi6mhyqr4hwjvqmkl77fc"))
874 (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch"
875 "gtk3-respect-GUIX_GTK3_IM_MODULE_FILE.patch"))))
877 `(("at-spi2-atk" ,at-spi2-atk)
879 ("gdk-pixbuf" ,gdk-pixbuf+svg)
880 ("libepoxy" ,libepoxy)
881 ("libxcursor" ,libxcursor)
883 ("libxinerama" ,libxinerama)
884 ("libxkbcommon" ,libxkbcommon)
885 ("libxdamage" ,libxdamage)
886 ("libxrandr" ,libxrandr)
890 ("wayland-protocols" ,wayland-protocols)))
892 `(("libxml2" ,libxml2)
893 ;; XXX: colord depends on mozjs (through polkit), which fails on
894 ;; on non-intel systems now.
896 ("cups" ,cups) ;for printing support
897 ;; XXX: rest depends on p11-kit, which fails on mips64el now.
899 ("json-glib" ,json-glib)))
903 ("gettext" ,gettext-minimal)
904 ("pkg-config" ,pkg-config)
905 ("gobject-introspection" ,gobject-introspection)
906 ("python-wrapper" ,python-wrapper)
907 ;; By using a special xorg-server for GTK+'s tests, we reduce the impact
908 ;; of updating xorg-server directly on the master branch.
909 ("xorg-server" ,xorg-server-for-tests)))
911 `(#:disallowed-references (,xorg-server-for-tests)
912 ;; 47 MiB goes to "out" (24 of which is locale data!), and 26 MiB goes
914 #:configure-flags (list (string-append "--with-html-dir="
915 (assoc-ref %outputs "doc")
916 "/share/gtk-doc/html")
917 ;; The header file <gdk/gdkwayland.h> is required
918 ;; by gnome-control-center
919 "--enable-wayland-backend"
920 ;; This is necessary to build both backends.
921 "--enable-x11-backend"
922 ;; This enables the HTML5 websocket backend.
923 "--enable-broadway-backend")
924 #:phases (modify-phases %standard-phases
925 (add-before 'configure 'pre-configure
927 ;; Disable most tests, failing in the chroot with the message:
928 ;; D-Bus library appears to be incorrectly set up; failed to read
929 ;; machine uuid: Failed to open "/etc/machine-id": No such file or
931 ;; See the manual page for dbus-uuidgen to correct this issue.
932 (substitute* "testsuite/Makefile.in"
933 (("SUBDIRS = gdk gtk a11y css reftests")
936 (add-after 'install 'move-desktop-files
937 ;; Move desktop files into 'bin' to avoid cycle references.
938 (lambda* (#:key outputs #:allow-other-keys)
939 (let ((out (assoc-ref outputs "out"))
940 (bin (assoc-ref outputs "bin")))
941 (mkdir-p (string-append bin "/share"))
942 (rename-file (string-append out "/share/applications")
943 (string-append bin "/share/applications"))
946 (list (search-path-specification
947 (variable "GUIX_GTK3_PATH")
948 (files '("lib/gtk-3.0")))))))
954 (define-public guile-cairo
960 (uri (string-append "mirror://savannah/guile-cairo/guile-cairo-"
964 "0yx0844p61ljd4d3d63qrawiygiw6ks02fwv2cqx7nav5kfd8ck2"))
965 (modules '((guix build utils)))
969 ;; Install Scheme files in …/guile/site/X.Y.
970 (substitute* (find-files "." "^Makefile\\.in$")
971 (("^(.*)dir = (.*)/guile/site(.*)" _ name prefix suffix)
972 (string-append name "dir = " prefix
973 "/guile/site/@GUILE_EFFECTIVE_VERSION@"
976 (build-system gnu-build-system)
978 ;; Uses of 'scm_t_uint8' & co. are deprecated; don't stop the build
980 `(#:configure-flags '("--disable-Werror")
981 #:make-flags '("GUILE_AUTO_COMPILE=0") ; to prevent guild warnings
982 #:modules ((guix build gnu-build-system)
987 (modify-phases %standard-phases
988 (add-after 'install 'install-go-files
989 (lambda* (#:key outputs inputs #:allow-other-keys)
990 (let* ((out (assoc-ref outputs "out"))
991 (effective (read-line
992 (open-pipe* OPEN_READ
994 "(display (effective-version))")))
995 (module-dir (string-append out "/share/guile/site/"
997 (object-dir (string-append out "/lib/guile/" effective
999 (prefix (string-length module-dir)))
1000 ;; compile to the destination
1001 (for-each (lambda (file)
1002 (let* ((base (string-drop (string-drop-right file 4)
1004 (go (string-append object-dir base ".go")))
1005 (invoke "guild" "compile" "-L" module-dir
1007 (find-files module-dir "\\.scm$"))
1010 `(("guile-lib" ,guile-lib)
1012 ("guile" ,guile-3.0)))
1014 ;; The .pc file refers to 'cairo'.
1015 `(("cairo" ,cairo)))
1017 `(("pkg-config" ,pkg-config)))
1018 (home-page "https://www.nongnu.org/guile-cairo/")
1019 (synopsis "Cairo bindings for GNU Guile")
1021 "Guile-Cairo wraps the Cairo graphics library for Guile Scheme.
1022 Guile-Cairo is complete, wrapping almost all of the Cairo API. It is API
1023 stable, providing a firm base on which to do graphics work. Finally, and
1024 importantly, it is pleasant to use. You get a powerful and well-maintained
1025 graphics library with all of the benefits of Scheme: memory management,
1026 exceptions, macros, and a dynamic programming environment.")
1027 (license license:lgpl3+)))
1029 (define-public guile2.2-cairo
1031 (inherit guile-cairo)
1032 (name "guile2.2-cairo")
1034 `(("guile" ,guile-2.2)
1035 ("guile-lib" ,guile2.2-lib)
1036 ,@(fold alist-delete (package-inputs guile-cairo)
1037 '("guile" "guile-lib"))))))
1039 (define-public guile3.0-cairo
1040 (deprecated-package "guile3.0-cairo" guile-cairo))
1042 (define-public guile-rsvg
1043 ;; Use a recent snapshot that supports Guile 2.2 and beyond.
1044 (let ((commit "05c6a2fd67e4fea1a7c3ff776729dc931bae6678")
1048 (version (string-append "2.18.1-" revision "."
1049 (string-take commit 7)))
1053 (url "https://gitlab.com/wingo/guile-rsvg/")
1057 "0cnbl40df2sbhpc32cma6j6w312rfvcgbxxqaixgf0ymim3fb248"))
1058 (patches (search-patches "guile-rsvg-pkgconfig.patch"))
1059 (modules '((guix build utils)))
1062 (substitute* (find-files "." "Makefile\\.am")
1063 (("/share/guile/site")
1064 "/share/guile/site/@GUILE_EFFECTIVE_VERSION@"))
1066 (file-name (string-append name "-" version ".tar.gz"))))
1067 (build-system gnu-build-system)
1069 `(#:modules ((guix build gnu-build-system)
1074 (modify-phases %standard-phases
1077 (invoke "autoreconf" "-vfi")))
1078 (add-after 'install 'install-go-files
1079 (lambda* (#:key outputs inputs #:allow-other-keys)
1080 (let* ((out (assoc-ref outputs "out"))
1081 (effective (read-line
1082 (open-pipe* OPEN_READ
1084 "(display (effective-version))")))
1085 (module-dir (string-append out "/share/guile/site/"
1087 (object-dir (string-append out "/lib/guile/" effective
1089 (prefix (string-length module-dir)))
1090 ;; compile to the destination
1091 (for-each (lambda (file)
1092 (let* ((base (string-drop (string-drop-right file 4)
1094 (go (string-append object-dir base ".go")))
1095 (invoke "guild" "compile" "-L" module-dir
1097 (find-files module-dir "\\.scm$"))
1099 (native-inputs `(("pkg-config" ,pkg-config)
1100 ("autoconf" ,autoconf)
1101 ("automake" ,automake)
1102 ("libtool" ,libtool)
1103 ("texinfo" ,texinfo)))
1104 (inputs `(("guile" ,guile-3.0)
1105 ("librsvg" ,librsvg)
1106 ("guile-lib" ,guile-lib))) ;for (unit-test)
1107 (propagated-inputs `(("guile-cairo" ,guile-cairo)))
1108 (synopsis "Render SVG images using Cairo from Guile")
1110 "Guile-RSVG wraps the RSVG library for Guile, allowing you to render SVG
1111 images onto Cairo surfaces.")
1112 (home-page "https://wingolog.org/projects/guile-rsvg/")
1113 (license license:lgpl2.1+))))
1115 (define-public guile2.2-rsvg
1117 (inherit guile-rsvg)
1118 (name "guile2.2-rsvg")
1120 `(("guile" ,guile-2.2)
1121 ("guile-lib" ,guile2.2-lib)
1122 ,@(fold alist-delete (package-inputs guile-rsvg)
1123 '("guile" "guile-lib"))))
1124 (propagated-inputs `(("guile-cairo" ,guile2.2-cairo)))))
1126 (define-public guile3.0-rsvg
1127 (deprecated-package "guile3.0-rsvg" guile-rsvg))
1129 (define-public guile-present
1131 (name "guile-present")
1135 (uri (string-append "http://wingolog.org/pub/guile-present/"
1136 "guile-present-" version ".tar.gz"))
1139 "1qam447m05sxxv6x8dlzg7qnyfc4dh8apjw1idpfhpns671gfr6m"))
1140 (patches (search-patches "guile-present-coding.patch"))
1141 (modules '((guix build utils)))
1144 ;; Allow builds with Guile 3.0.
1145 (substitute* "configure"
1149 ;; Install .go files in the right place.
1150 (substitute* "Makefile.in"
1151 (("/ccache") "/site-ccache"))
1153 (build-system gnu-build-system)
1156 (modify-phases %standard-phases
1157 (add-after 'install 'post-install
1158 (lambda* (#:key inputs outputs #:allow-other-keys)
1159 (let* ((out (assoc-ref outputs "out"))
1160 (bin (string-append out "/bin"))
1161 (guile (assoc-ref inputs "guile"))
1163 ,(match (assoc "guile" (package-inputs this-package))
1165 (version-major+minor (package-version guile))))))
1166 (substitute* (find-files bin ".*")
1168 (string-append guile "/bin/guile -L "
1169 out "/share/guile/site/" version " -C "
1170 out "/lib/guile/" version "/site-ccache "))))
1172 (native-inputs `(("pkg-config" ,pkg-config)))
1173 (inputs `(("guile" ,guile-3.0)))
1175 ;; These are used by the (present …) modules.
1176 `(("guile-lib" ,guile-lib)
1177 ("guile-cairo" ,guile-cairo)
1178 ("guile-rsvg" ,guile-rsvg)))
1179 (home-page "https://wingolog.org/software/guile-present/")
1180 (synopsis "Create SVG or PDF presentations in Guile")
1182 "Guile-Present defines a declarative vocabulary for presentations,
1183 together with tools to render presentation documents as SVG or PDF.
1184 Guile-Present can be used to make presentations programmatically, but also
1185 includes a tools to generate PDF presentations out of Org mode and Texinfo
1187 (license license:lgpl3+)))
1189 (define-public guile2.2-present
1191 (inherit guile-present)
1192 (name "guile2.2-present")
1193 (inputs `(("guile" ,guile-2.2)))
1195 `(("guile-lib" ,guile2.2-lib)
1196 ("guile-cairo" ,guile2.2-cairo)
1197 ("guile-rsvg" ,guile2.2-rsvg)))))
1199 (define-public guile3.0-present
1200 (deprecated-package "guile3.0-present" guile-present))
1202 (define-public guile-gnome
1204 (name "guile-gnome")
1209 (string-append "mirror://gnu/" name
1210 "/guile-gnome-platform/guile-gnome-platform-"
1214 "1gnf3j96nip5kl99a268i0dy1hj7s1cfs66sps3zwysnkd7qr399"))))
1215 (build-system gnu-build-system)
1217 `(("pkg-config" ,pkg-config)
1219 ;;("corba" ,corba) ; not packaged yet
1221 ("gobject-introspection" ,gobject-introspection)
1222 ;;("gthread" ,gthread) ; not packaged yet
1223 ("gnome-vfs" ,gnome-vfs)
1224 ("gdk-pixbuf" ,gdk-pixbuf)
1226 ("libglade" ,libglade)
1227 ("libgnome" ,libgnome)
1228 ("libgnomecanvas" ,libgnomecanvas)
1229 ("libgnomeui" ,libgnomeui)
1233 (inputs `(("guile" ,guile-2.2)))
1235 `(("guile-cairo" ,guile2.2-cairo)
1237 ("guile-lib" ,guile2.2-lib)))
1239 `(#:tests? #f ;FIXME
1240 #:phases (modify-phases %standard-phases
1241 (add-before 'configure 'pre-configure
1242 (lambda* (#:key outputs #:allow-other-keys)
1243 (let ((out (assoc-ref outputs "out")))
1244 (substitute* (find-files "." "^Makefile.in$")
1245 (("guilesite :=.*guile/site" all)
1246 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
1248 (outputs '("out" "debug"))
1249 (synopsis "Guile interface for GTK+ programming for GNOME")
1251 "Includes guile-clutter, guile-gnome-gstreamer,
1252 guile-gnome-platform (GNOME developer libraries), and guile-gtksourceview.")
1253 (home-page "https://www.gnu.org/software/guile-gnome/")
1254 (license license:gpl2+)
1255 (properties '((upstream-name . "guile-gnome-platform")
1256 (ftp-directory . "/gnu/guile-gnome/guile-gnome-platform")))))
1262 (define-public cairomm
1268 (uri (string-append "https://www.cairographics.org/releases/"
1269 name "-" version ".tar.gz"))
1272 "16fmigxsaz85c3lgcls7biwyz8zy8c8h3jndfm54cxxas3a7zi25"))))
1273 (build-system gnu-build-system)
1275 ;; The examples lack -lcairo.
1276 '(#:make-flags '("LDFLAGS=-lcairo")))
1277 (native-inputs `(("pkg-config" ,pkg-config)))
1279 `(("libsigc++" ,libsigc++)
1280 ("freetype" ,freetype)
1281 ("fontconfig" ,fontconfig)
1283 (home-page "https://cairographics.org/")
1284 (synopsis "C++ bindings to the Cairo 2D graphics library")
1286 "Cairomm provides a C++ programming interface to the Cairo 2D graphics
1288 (license license:lgpl2.0+)))
1290 (define-public cairomm-1.13
1299 (string-append "https://www.cairographics.org/releases/"
1300 name "-" version ".tar.gz"))
1302 (base32 "1xlfl0fm5mgv53lr8xjv2kqsk3bz67qkk6qzvbrqmbvbvvbqp9wp"))))
1305 ("sigc++" ,libsigc++)))))
1307 (define-public pangomm
1313 (uri (string-append "mirror://gnome/sources/" name "/"
1314 (version-major+minor version) "/"
1315 name "-" version ".tar.xz"))
1318 "0mmzxp3wniaafkxr30sb22mq9x44xckb5d60h1bl99lkzxks0vfa"))))
1319 (build-system gnu-build-system)
1320 (native-inputs `(("pkg-config" ,pkg-config)))
1323 ("cairomm" ,cairomm)
1326 (home-page "https://pango.gnome.org//")
1327 (synopsis "C++ interface to the Pango text rendering library")
1329 "Pangomm provides a C++ programming interface to the Pango text rendering
1331 (license license:lgpl2.1+)))
1333 (define-public pangomm-2.42
1342 (string-append "mirror://gnome/sources/" name "/"
1343 (version-major+minor version) "/"
1344 name "-" version ".tar.xz"))
1346 (base32 "03zli5amizhv9bfklwfq7xyf0b5dagchx1lnz9f0v1rhk69h9gql"))))
1348 `(("cairomm" ,cairomm-1.13)
1349 ("glibmm" ,glibmm-2.64)
1350 ("pango" ,pango)))))
1352 (define-public atkmm
1358 (uri (string-append "mirror://gnome/sources/" name "/"
1359 (version-major+minor version) "/"
1360 name "-" version ".tar.xz"))
1363 "0fnxrspxkhhbrjphqrpvl3zjm66n50s4cywrrrwkhbflgy8zqk2c"))))
1364 (build-system gnu-build-system)
1365 (native-inputs `(("pkg-config" ,pkg-config)))
1367 `(("glibmm" ,glibmm) ("atk" ,atk)))
1368 (home-page "https://www.gtkmm.org")
1369 (synopsis "C++ interface to the ATK accessibility library")
1371 "ATKmm provides a C++ programming interface to the ATK accessibility
1373 (license license:lgpl2.1+)))
1375 (define-public gtkmm
1381 (uri (string-append "mirror://gnome/sources/" name "/"
1382 (version-major+minor version) "/"
1383 name "-" version ".tar.xz"))
1386 "1hxdnhavjyvbcpxhd5z17l9fj4182028s66lc0s16qqqrldhjwbd"))))
1387 (build-system gnu-build-system)
1388 (native-inputs `(("pkg-config" ,pkg-config)
1389 ("glib" ,glib "bin") ;for 'glib-compile-resources'
1390 ("xorg-server" ,xorg-server-for-tests)))
1392 `(("pangomm" ,pangomm)
1393 ("cairomm" ,cairomm)
1396 ("glibmm" ,glibmm)))
1398 `(#:disallowed-references (,xorg-server-for-tests)
1399 #:phases (modify-phases %standard-phases
1400 (add-before 'check 'run-xvfb
1401 (lambda* (#:key inputs #:allow-other-keys)
1402 (let ((xorg-server (assoc-ref inputs "xorg-server")))
1403 ;; Tests such as 'object_move/test' require a running
1405 (system (string-append xorg-server "/bin/Xvfb :1 &"))
1406 (setenv "DISPLAY" ":1")
1407 ;; Don't fail because of the missing /etc/machine-id.
1408 (setenv "DBUS_FATAL_WARNINGS" "0")
1410 (home-page "https://gtkmm.org/")
1412 "C++ interface to the GTK+ graphical user interface library")
1414 "gtkmm is the official C++ interface for the popular GUI library GTK+.
1415 Highlights include typesafe callbacks, and a comprehensive set of widgets that
1416 are easily extensible via inheritance. You can create user interfaces either
1417 in code or with the Glade User Interface designer, using libglademm. There's
1418 extensive documentation, including API reference and a tutorial.")
1419 (license license:lgpl2.1+)))
1422 (define-public gtkmm-2
1423 (package (inherit gtkmm)
1428 (uri (string-append "mirror://gnome/sources/" name "/"
1429 (version-major+minor version) "/"
1430 name "-" version ".tar.xz"))
1433 "0wkbzvsx4kgw16f6xjdc1dz7f77ldngdila4yi5lw2zrgcxsb006"))))
1435 (native-inputs `(("pkg-config" ,pkg-config)))
1437 `(("pangomm" ,pangomm)
1438 ("cairomm" ,cairomm)
1441 ("glibmm" ,glibmm)))))
1443 (define-public gtksourceviewmm
1445 (name "gtksourceviewmm")
1449 (uri (string-append "mirror://gnome/sources/" name "/"
1450 (version-major+minor version) "/"
1451 name "-" version ".tar.xz"))
1453 (base32 "0fgvmhm4h4qmxig87qvangs6ijw53mi40siz7pixlxbrsgiil22i"))))
1454 (build-system gnu-build-system)
1456 `(("pkg-config" ,pkg-config)))
1458 ;; In 'Requires' of gtksourceviewmm-3.0.pc.
1459 `(("glibmm" ,glibmm)
1461 ("gtksourceview" ,gtksourceview-3)))
1462 (synopsis "C++ interface to the GTK+ 'GtkTextView' widget")
1464 "gtksourceviewmm is a portable C++ library that extends the standard GTK+
1465 framework for multiline text editing with support for configurable syntax
1466 highlighting, unlimited undo/redo, search and replace, a completion framework,
1467 printing and other features typical of a source code editor.")
1468 (license license:lgpl2.1+)
1469 (home-page "https://developer.gnome.org/gtksourceview/")))
1472 ;;; Python bindings.
1475 (define-public python-pycairo
1477 (name "python-pycairo")
1482 (uri (string-append "https://github.com/pygobject/pycairo/releases/download/v"
1483 version "/pycairo-" version ".tar.gz"))
1486 "111fav9m1iagw3nh2ws2vzkjh34r97yl7rdlpvsngsqg521k251c"))))
1487 (build-system python-build-system)
1489 `(("pkg-config" ,pkg-config)
1490 ("python-pytest" ,python-pytest)))
1491 (propagated-inputs ;pycairo.pc references cairo
1492 `(("cairo" ,cairo)))
1493 (home-page "https://cairographics.org/pycairo/")
1494 (synopsis "Python bindings for cairo")
1496 "Pycairo is a set of Python bindings for the Cairo graphics library.")
1497 (license license:lgpl3+)
1498 (properties `((python2-variant . ,(delay python2-pycairo))))))
1500 ;; Pycairo no longer supports Python 2 since version 1.19.0, so we stick
1501 ;; with this older version here.
1502 (define-public python2-pycairo
1503 (let ((pycairo (package-with-python2
1504 (strip-python2-variant python-pycairo))))
1510 (uri (string-append "https://github.com/pygobject/pycairo/releases"
1511 "/download/v" version "/pycairo-" version ".tar.gz"))
1514 "0cb5n4r4nl0k1g90b1gz9iyk4lp7hi03db98i1p52a870bym7f6w"))))
1515 ;; Dual-licensed under LGPL 2.1 or Mozilla Public License 1.1
1516 (license (list license:lgpl2.1 license:mpl1.1)))))
1518 (define-public python2-pygtk
1520 (name "python2-pygtk")
1525 (uri (string-append "mirror://gnome/sources"
1526 "/pygtk/" (version-major+minor version)
1527 "/pygtk-" version ".tar.bz2"))
1530 "04k942gn8vl95kwf0qskkv6npclfm31d78ljkrkgyqxxcni1w76d"))))
1531 (build-system gnu-build-system)
1533 "doc")) ;13 MiB of gtk-doc HTML
1535 `(("pkg-config" ,pkg-config)))
1537 `(("python" ,python-2)
1539 ;; XXX: The package fails to build with the latest Pango (propagated
1540 ;; from GTK+2), so we provide it with this older version.
1541 ("pango" ,pango-1.42)
1543 ("libglade" ,libglade)
1546 `(("python-pycairo" ,python2-pycairo) ;loaded at runtime
1547 ("python-pygobject" ,python2-pygobject-2) ;referenced in pc file
1551 #:phases (modify-phases %standard-phases
1552 (add-before 'configure 'set-gtk-doc-directory
1553 (lambda* (#:key outputs #:allow-other-keys)
1554 ;; Install documentation to "doc".
1555 (let ((doc (assoc-ref outputs "doc")))
1556 (substitute* "docs/Makefile.in"
1557 (("TARGET_DIR = \\$\\(datadir\\)")
1558 (string-append "TARGET_DIR = " doc))))))
1559 (add-after 'configure 'fix-codegen
1560 (lambda* (#:key inputs #:allow-other-keys)
1561 (substitute* "pygtk-codegen-2.0"
1565 (assoc-ref inputs "python-pygobject") "\n")))))
1566 (add-after 'install 'install-pth
1567 (lambda* (#:key inputs outputs #:allow-other-keys)
1568 ;; pygtk's modules are stored in a subdirectory of
1569 ;; python's site-packages directory. Add a .pth file so
1570 ;; that python will add that subdirectory to its module
1572 (let* ((out (assoc-ref outputs "out"))
1573 (site (string-append out "/lib/python"
1574 ,(version-major+minor
1575 (package-version python-2))
1577 (call-with-output-file (string-append site "/pygtk.pth")
1579 (format port "gtk-2.0~%")))))))))
1580 (home-page "http://www.pygtk.org/")
1581 (synopsis "Python bindings for GTK+")
1583 "PyGTK allows you to write full featured GTK programs in Python. It is
1584 targeted at GTK 2.x, and can be used in conjunction with gnome-python to
1585 write GNOME applications.")
1586 (license license:lgpl2.1+)))
1588 (define-public perl-cairo
1595 "mirror://cpan/authors/id/X/XA/XAOC/Cairo-"
1599 "1nh5iya63q6j2w0cdi24x2ygpi8k8wwccnbh8cisnx8nqmywnhk0"))))
1600 (build-system perl-build-system)
1602 `(("perl-extutils-depends" ,perl-extutils-depends)
1603 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1605 `(("cairo" ,cairo)))
1606 (home-page "https://metacpan.org/release/Cairo")
1607 (synopsis "Perl interface to the cairo 2d vector graphics library")
1608 (description "Cairo provides Perl bindings for the vector graphics library
1609 cairo. It supports multiple output targets, including PNG, PDF and SVG. Cairo
1610 produces identical output on all those targets.")
1611 (license license:lgpl2.1+)))
1613 (define-public perl-gtk2
1619 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Gtk2-"
1623 "0ry9jfvfgdwzalxcvwsgr7plhk3agx7p40l0fqdf3vrf7ds47i29"))))
1624 (build-system perl-build-system)
1626 `(("perl-extutils-depends" ,perl-extutils-depends)
1627 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1629 `(("gtk+" ,gtk+-2)))
1631 `(("perl-pango" ,perl-pango)))
1634 (modify-phases %standard-phases
1635 (add-before 'build 'remove-broken-test
1636 ;; See https://gitlab.gnome.org/GNOME/perl-gtk2/issues/3.
1638 (substitute* "t/GdkPixbuf.t"
1639 (("tests => 112") "tests => 111")
1640 (("ok \\(defined \\$pixbuf, \"Don't crash on partial pixmap data\"\\);")
1641 "# ok (defined $pixbuf, \"Don't crash on partial pixmap data\");")))))))
1642 (home-page "https://metacpan.org/release/Gtk2")
1643 (synopsis "Perl interface to the 2.x series of the Gimp Toolkit library")
1644 (description "Perl bindings to the 2.x series of the Gtk+ widget set.
1645 This module allows you to write graphical user interfaces in a Perlish and
1646 object-oriented way, freeing you from the casting and memory management in C,
1647 yet remaining very close in spirit to original API.")
1648 (license license:lgpl2.1+)))
1650 (define-public perl-pango
1656 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Pango-"
1660 "0wdcidnfnb6nm79fzfs39ivawj3x8m98a147fmcxgv1zvwia9c1l"))))
1661 (build-system perl-build-system)
1663 `(("perl-extutils-depends" ,perl-extutils-depends)
1664 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1666 `(("pango" ,pango)))
1668 `(("perl-cairo" ,perl-cairo)
1669 ("perl-glib" ,perl-glib)))
1670 (home-page "https://metacpan.org/release/Pango")
1671 (synopsis "Layout and render international text")
1672 (description "Pango is a library for laying out and rendering text, with an
1673 emphasis on internationalization. Pango can be used anywhere that text layout
1674 is needed, but using Pango in conjunction with Cairo and/or Gtk2 provides a
1675 complete solution with high quality text handling and graphics rendering.
1677 Dynamically loaded modules handle text layout for particular combinations of
1678 script and font backend. Pango provides a wide selection of modules, including
1679 modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts.
1680 Virtually all of the world's major scripts are supported.
1682 In addition to the low level layout rendering routines, Pango includes
1683 @code{Pango::Layout}, a high level driver for laying out entire blocks of text,
1684 and routines to assist in editing internationalized text.")
1685 (license license:lgpl2.1+)))
1687 (define-public girara
1695 (url "https://git.pwmt.org/pwmt/girara")
1697 (file-name (git-file-name name version))
1699 (base32 "08rpw9hkaprm4r853xy1d35i2af1pji8c3mzzl01mmwmyr9p0x8k"))))
1700 (native-inputs `(("pkg-config" ,pkg-config)
1701 ("check" ,check-0.14)
1702 ("gettext" ,gettext-minimal)
1703 ("glib:bin" ,glib "bin")
1704 ("xorg-server" ,xorg-server-for-tests)))
1705 ;; Listed in 'Requires.private' of 'girara.pc'.
1706 (propagated-inputs `(("gtk+" ,gtk+)))
1708 `(#:phases (modify-phases %standard-phases
1709 (add-before 'check 'start-xserver
1710 ;; Tests require a running X server.
1711 (lambda* (#:key inputs #:allow-other-keys)
1712 (let ((xorg-server (assoc-ref inputs "xorg-server"))
1714 (setenv "DISPLAY" display)
1716 ;; On busy machines, tests may take longer than
1717 ;; the default of four seconds.
1718 (setenv "CK_DEFAULT_TIMEOUT" "20")
1720 ;; Don't fail due to missing '/etc/machine-id'.
1721 (setenv "DBUS_FATAL_WARNINGS" "0")
1722 (zero? (system (string-append xorg-server "/bin/Xvfb "
1723 display " &")))))))))
1724 (build-system meson-build-system)
1725 (home-page "https://pwmt.org/projects/girara/")
1726 (synopsis "Library for minimalistic gtk+3 user interfaces")
1727 (description "Girara is a library that implements a user interface that
1728 focuses on simplicity and minimalism. Currently based on GTK+, a
1729 cross-platform widget toolkit, it provides an interface that focuses on three
1730 main components: a so-called view widget that represents the actual
1731 application, an input bar that is used to execute commands of the
1732 application and the status bar which provides the user with current
1734 (license license:zlib)))
1736 (define-public gtk-doc
1742 (uri (string-append "mirror://gnome/sources/" name "/"
1743 (version-major+minor version) "/"
1744 name "-" version ".tar.xz"))
1747 "05apmwibkmn1icx05l8aw241lhymcx01zvk5i499cb150bijj7li"))))
1748 (build-system gnu-build-system)
1750 `(#:parallel-tests? #f
1752 (modify-phases %standard-phases
1753 (add-after 'unpack 'patch-gtk-doc-scan
1754 (lambda* (#:key inputs #:allow-other-keys)
1755 (substitute* "gtk-doc.xsl"
1756 (("http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl")
1757 (string-append (assoc-ref inputs "docbook-xsl")
1758 "/xml/xsl/docbook-xsl-"
1759 ,(package-version docbook-xsl)
1761 (("http://docbook.sourceforge.net/release/xsl/current/common/en.xml")
1762 (string-append (assoc-ref inputs "docbook-xsl")
1763 "/xml/xsl/docbook-xsl-"
1764 ,(package-version docbook-xsl)
1767 (add-after 'patch-gtk-doc-scan 'patch-test-out
1769 ;; sanity.sh counts the number of status lines. Since our
1770 ;; texlive regenerates the fonts every time and the font
1771 ;; generator metafont outputs a lot of extra lines, this
1772 ;; test would always fail. Disable it for now.
1773 (substitute* "tests/Makefile.in"
1774 (("empty.sh sanity.sh") "empty.sh"))
1776 (add-before 'build 'set-HOME
1778 ;; FIXME: dblatex with texlive-union does not find the built
1779 ;; metafonts, so it tries to generate them in HOME.
1780 (setenv "HOME" "/tmp")
1782 (add-before 'configure 'fix-docbook
1783 (lambda* (#:key inputs #:allow-other-keys)
1784 (substitute* "configure"
1785 ;; The configure check is overzealous about making sure that
1786 ;; things are in place -- it uses the xmlcatalog tool to make
1787 ;; sure that docbook-xsl is available, but this tool can only
1788 ;; look in one catalog file, unlike the $XML_CATALOG_FILES
1789 ;; variable that Guix defines. Fool the test by using the
1790 ;; docbook-xsl catalog explicitly and get on with life.
1791 (("\"\\$XML_CATALOG_FILE\" \
1792 \"http://docbook.sourceforge.net/release/xsl/")
1793 (string-append (car (find-files (assoc-ref inputs "docbook-xsl")
1795 " \"http://docbook.sourceforge.net/release/xsl/")))
1797 (add-after 'install 'wrap-executables
1798 (lambda* (#:key outputs #:allow-other-keys)
1799 (let ((out (assoc-ref outputs "out")))
1800 (for-each (lambda (prog)
1802 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))))
1803 (find-files (string-append out "/bin")))
1806 (list (string-append "--with-xml-catalog="
1807 (assoc-ref %build-inputs "docbook-xml")
1808 "/xml/dtd/docbook/catalog.xml"))))
1810 `(("pkg-config" ,pkg-config)
1811 ("itstool" ,itstool)
1813 ("gettext" ,gettext-minimal)
1818 ("xsltproc" ,libxslt)
1819 ("dblatex" ,dblatex)
1820 ("docbook-xml" ,docbook-xml-4.3)
1821 ("docbook-xsl" ,docbook-xsl)
1822 ("source-highlight" ,source-highlight)
1824 ("python-six" ,python-six)))
1825 (home-page "https://www.gtk.org/gtk-doc/")
1826 (synopsis "Documentation generator from C source code")
1828 "GTK-Doc generates API documentation from comments added to C code. It is
1829 typically used to document the public API of GTK+ and GNOME libraries, but it
1830 can also be used to document application code.")
1831 (license license:gpl2+)))
1833 ;; This is a variant of the 'gtk-doc' package that is not updated often. It
1834 ;; is intended to be used as a native-input at build-time only. This allows
1835 ;; the main 'gtk-doc', 'dblatex' and 'imagemagick' packages to be freely
1836 ;; updated on the 'master' branch without triggering an excessive number of
1838 (define-public gtk-doc/stable
1840 (package/inherit gtk-doc
1841 (inputs (alist-replace "dblatex" `(,dblatex/stable)
1842 (package-inputs gtk-doc))))))
1844 (define-public gtk-engines
1846 (name "gtk-engines")
1850 (uri (string-append "mirror://gnome/sources/" name "/"
1851 (version-major+minor version) "/"
1852 name "-" version ".tar.bz2"))
1855 "1db65pb0j0mijmswrvpgkdabilqd23x22d95hp5kwxvcramq1dhm"))))
1856 (build-system gnu-build-system)
1859 `("--enable-animation")))
1861 `(("pkg-config" ,pkg-config)
1862 ("intltool" ,intltool)))
1864 ;; Don't propagate GTK+ to reduce "profile pollution".
1865 `(("gtk+" ,gtk+-2))) ; required by gtk-engines-2.pc
1866 (home-page "https://live.gnome.org/GnomeArt")
1867 (synopsis "Theming engines for GTK+ 2.x")
1869 "This package contains the standard GTK+ 2.x theming engines including
1870 Clearlooks, Crux, High Contrast, Industrial, LighthouseBlue, Metal, Mist,
1871 Redmond95 and ThinIce.")
1872 (license (list license:gpl2+ license:lgpl2.1+))))
1874 (define-public murrine
1880 (uri (string-append "mirror://gnome/sources/" name "/"
1881 (version-major+minor version) "/"
1882 name "-" version ".tar.xz"))
1885 "129cs5bqw23i76h3nmc29c9mqkm9460iwc8vkl7hs4xr07h8mip9"))))
1886 (build-system gnu-build-system)
1889 `("--enable-animation"
1890 "--enable-animationrtl")))
1892 `(("pkg-config" ,pkg-config)
1893 ("intltool" ,intltool)))
1895 `(("gtk+" ,gtk+-2)))
1896 (home-page "https://live.gnome.org/GnomeArt")
1897 (synopsis "Cairo-based theming engine for GTK+ 2.x")
1899 "Murrine is a cairo-based GTK+ theming engine. It is named after the
1900 glass artworks done by Venicians glass blowers.")
1901 (license license:gpl2+)))
1903 (define-public gtkspell3
1909 (uri (string-append "mirror://sourceforge/gtkspell/"
1910 version "/" name "-" version ".tar.xz"))
1913 "0cjp6xdcnzh6kka42w9g0w2ihqjlq8yl8hjm9wsfnixk6qwgch5h"))))
1914 (build-system gnu-build-system)
1916 `(("intltool" ,intltool)
1917 ("pkg-config" ,pkg-config)
1920 `(("gobject-introspection" ,gobject-introspection)
1924 `(("enchant" ,enchant))) ; gtkspell3-3.0.pc refers to it
1925 (home-page "http://gtkspell.sourceforge.net")
1926 (synopsis "Spell-checking addon for GTK's TextView widget")
1928 "GtkSpell provides word-processor-style highlighting and replacement of
1929 misspelled words in a GtkTextView widget.")
1930 (license license:gpl2+)))
1932 (define-public clipit
1940 (url "https://github.com/CristianHenzel/ClipIt")
1941 (commit (string-append "v" version))))
1942 (file-name (git-file-name name version))
1944 (base32 "05xi29v2y0rvb33fmvrz7r9j4l858qj7ngwd7dp4pzpkkaybjln0"))))
1945 (build-system gnu-build-system)
1947 `(("autoconf" ,autoconf)
1948 ("automake" ,automake)
1949 ("intltool" ,intltool)
1950 ("pkg-config" ,pkg-config)))
1952 `(("gtk+" ,gtk+-2)))
1953 (home-page "https://github.com/CristianHenzel/ClipIt")
1954 (synopsis "Lightweight GTK+ clipboard manager")
1956 "ClipIt is a clipboard manager with features such as a history, search
1957 thereof, global hotkeys and clipboard item actions. It was forked from
1958 Parcellite and adds bugfixes and features.")
1959 (license license:gpl2+)))
1961 (define-public graphene
1970 (url "https://github.com/ebassi/graphene.git")
1972 (file-name (git-file-name name version))
1974 (base32 "14a0j1rvjlc7yhfdmhmckdmkzy4ch61qbzywdlw1xv58h23wx29p"))))
1975 (build-system meson-build-system)
1977 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
1980 "-Dinstalled_tests=false")))
1982 `(("git" ,git-minimal)
1983 ("gobject-introspection" ,gobject-introspection)
1985 ("pkg-config" ,pkg-config)))
1988 ("python" ,python)))
1989 (synopsis "Thin layer of graphic data types")
1990 (description "Graphene provides graphic types and their relative API; it
1991 does not deal with windowing system surfaces, drawing, scene graphs, or input.")
1992 (home-page "https://ebassi.github.io/graphene/")
1993 (license license:expat)))
1995 (define-public spread-sheet-widget
1997 (name "spread-sheet-widget")
2002 (uri (string-append "https://alpha.gnu.org/gnu/ssw/"
2003 "spread-sheet-widget-" version ".tar.gz"))
2005 (base32 "09rzgp7gabnzab460x874a1ibgyjiibpwzsz5srn9zs6jv2jdxjb"))))
2006 (build-system gnu-build-system)
2008 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
2009 ("pkg-config" ,pkg-config)))
2010 ;; In 'Requires' of spread-sheet-widget.pc.
2014 (home-page "https://www.gnu.org/software/ssw/")
2015 (synopsis "Gtk+ widget for dealing with 2-D tabular data")
2017 "GNU Spread Sheet Widget is a library for Gtk+ which provides a widget for
2018 viewing and manipulating 2 dimensional tabular data in a manner similar to many
2019 popular spread sheet programs.")
2020 (license license:gpl3+)))
2022 (define-public volumeicon
2029 (uri (string-append "http://nullwise.com/files/volumeicon/volumeicon-"
2032 (base32 "182xl2w8syv6ky2h2bc9imc6ap8pzh0p7rp63hh8nw0xm38c3f14"))))
2033 (build-system gnu-build-system)
2036 (list "--enable-notify"))) ; optional libnotify support
2038 `(("intltool" ,intltool)
2039 ("pkg-config" ,pkg-config)))
2041 `(("alsa-lib" ,alsa-lib)
2043 ("libnotify" ,libnotify)))
2044 (home-page "http://nullwise.com/volumeicon.html")
2045 (synopsis "System tray volume applet")
2047 "Volume Icon is a volume indicator and control applet for @acronym{the
2048 Advanced Linux Sound Architecture, ALSA}. It sits in the system tray,
2049 independent of your desktop environment, and supports global key bindings.")
2050 (license (list license:expat ; src/{bind.c,keybinder.h}
2051 license:isc ; src/alsa_volume_mapping.c
2052 license:gpl3)))) ; the rest & combined work
2062 (url "https://github.com/v1cont/yad")
2063 (commit (string-append "v" version))))
2064 (file-name (git-file-name name version))
2066 (base32 "07rd61hvilsxxrj7lf8c9k0a8glj07s48m7ya8d45030r90g3lvc"))))
2067 (build-system glib-or-gtk-build-system)
2070 ;; Passing --enable-foo will silently disable foo if prerequisite
2071 ;; inputs are missing, not abort the build as one might expect.
2072 ;; ‘--enable-html’ adds a huge webkitgtk dependency. It was never
2073 ;; present in the past and nobody complained.
2074 '("--enable-icon-browser"
2075 "--enable-spell") ; gspell checking support
2077 (modify-phases %standard-phases
2078 (add-after 'bootstrap 'intltoolize
2080 (invoke "intltoolize" "--force" "--automake"))))))
2082 `(("gspell" ,gspell)
2085 `(("autoconf" ,autoconf)
2086 ("automake" ,automake)
2087 ("intltool" ,intltool)
2088 ("pkg-config" ,pkg-config)))
2089 (home-page "https://sourceforge.net/projects/yad-dialog/")
2090 (synopsis "GTK+ dialog boxes for shell scripts")
2092 "This program allows you to display GTK+ dialog boxes from command line or
2093 shell scripts. Example of how to use @code{yad} can be consulted at
2094 @url{https://sourceforge.net/p/yad-dialog/wiki/browse_pages/}.")
2095 (license license:gpl3+)))
2097 (define-public dragon-drop
2099 (name "dragon-drop")
2105 (url "https://github.com/mwh/dragon")
2106 (commit (string-append "v" version))))
2107 (file-name (git-file-name name version))
2110 "0fgzz39007fdjwq72scp0qygp2v3zc5f1xkm0sxaa8zxm25g1bra"))))
2111 (build-system gnu-build-system)
2112 (inputs `(("gtk+" ,gtk+)))
2113 (native-inputs `(("pkg-config" ,pkg-config)))
2115 `(#:tests? #f ; no check
2117 (list (string-append "CC=" ,(cc-for-target))
2118 ;; makefile uses PREFIX for the binary location
2119 (string-append "PREFIX=" (assoc-ref %outputs "out")
2122 (modify-phases %standard-phases
2123 (delete 'configure)))) ; no configure script
2124 (synopsis "Drag and drop source/target for X")
2126 "Dragon is a lightweight drag-and-drop source for X where you can run:
2132 to get a window with just that file in it, ready to be dragged where you need it.
2133 What if you need to drag into something? Using:
2139 you get a window you can drag files and text into. Dropped items are
2140 printed to standard output.")
2141 (home-page "https://github.com/mwh/dragon")
2142 (license license:gpl3+)))
2144 (define-public libdbusmenu
2146 (name "libdbusmenu")
2151 (uri (string-append "https://launchpad.net/libdbusmenu/"
2152 (version-major+minor version) "/" version
2153 "/+download/libdbusmenu-" version ".tar.gz"))
2155 (base32 "12l7z8dhl917iy9h02sxmpclnhkdjryn08r8i4sr8l3lrlm4mk5r"))))
2156 (build-system gnu-build-system)
2159 '("--sysconfdir=/etc"
2160 "--localstatedir=/var"
2161 ;; The shebang of the generated test files should be patched before
2165 `(,(string-append "typelibdir=" (assoc-ref %outputs "out")
2166 "/lib/girepository-1.0"))
2168 (modify-phases %standard-phases
2169 (add-before 'configure 'do-not-treat-warnings-as-errors
2171 ;; Prevent the build from failing due to deprecation warnings
2172 ;; from newer GLib and GTK versions.
2173 (substitute* (find-files "." "^Makefile.in$")
2177 (add-before 'configure 'set-environment
2179 (setenv "HAVE_VALGRIND_TRUE" "")
2180 (setenv "HAVE_VALGRIND_FALSE" "#")
2185 ("gtk+-2" ,gtk+-2)))
2187 `(("glib:bin" ,glib "bin")
2188 ("gnome-doc-utils" ,gnome-doc-utils)
2189 ("gobject-introspection" ,gobject-introspection)
2190 ("intltool" ,intltool)
2191 ("json-glib" ,json-glib)
2192 ("pkg-config" ,pkg-config)
2193 ("python" ,python-2)
2195 (home-page "https://launchpad.net/libdbusmenu")
2196 (synopsis "Library for passing menus over DBus")
2197 (description "@code{libdbusmenu} passes a menu structure across DBus so
2198 that a program can create a menu simply without worrying about how it is
2199 displayed on the other side of the bus.")
2201 ;; Dual-licensed under either LGPLv2.1 or LGPLv3.
2202 (license (list license:lgpl2.1 license:lgpl3))))
2204 (define-public gtk-layer-shell
2206 (name "gtk-layer-shell")
2212 (url "https://github.com/wmww/gtk-layer-shell")
2213 (commit (string-append "v" version))))
2214 (file-name (git-file-name name version))
2216 (base32 "1kcp4p3s7sdh9lwniybjdarfy8z69j2j23hfrw98amhwhq39gdcc"))))
2217 (build-system meson-build-system)
2218 (arguments `(#:configure-flags (list "-Dtests=true")))
2219 (native-inputs `(("pkg-config" ,pkg-config)
2220 ("gobject-introspection" ,gobject-introspection)))
2221 (inputs `(("wayland" ,wayland)
2223 (home-page "https://github.com/wmww/gtk-layer-shell")
2224 (synopsis "Library to create Wayland desktop components using the Layer
2226 (description "Layer Shell is a Wayland protocol for desktop shell
2227 components, such as panels, notifications and wallpapers. It can be used to
2228 anchor windows to a corner or edge of the output, or stretch them across the
2229 entire output. It supports all Layer Shell features including popups and
2231 (license license:expat)))
2233 (define-public goocanvas
2240 (uri (string-append "mirror://gnome/sources/goocanvas/"
2241 (version-major+minor version)
2242 "/goocanvas-" version ".tar.xz"))
2244 (base32 "141fm7mbqib0011zmkv3g8vxcjwa7hypmq71ahdyhnj2sjvy4a67"))))
2245 (build-system gnu-build-system)
2247 `(("gettext" ,gettext-minimal)
2248 ("glib-bin" ,glib "bin")
2249 ("gobject-introspection" ,gobject-introspection)
2250 ("gtk-doc" ,gtk-doc/stable)
2251 ("pkg-config" ,pkg-config)
2252 ("python" ,python)))
2257 ("python-pygobject" ,python-pygobject)))
2259 `(#:configure-flags '("--disable-rebuilds"
2262 (modify-phases %standard-phases
2263 (add-after 'unpack 'fix-install-path
2264 (lambda* (#:key inputs outputs #:allow-other-keys)
2265 (substitute* "configure"
2266 (("\\(gi._overridesdir\\)")
2267 (string-append "((gi._overridesdir).replace(\\\""
2268 (assoc-ref inputs "python-pygobject")
2270 (assoc-ref outputs "out")
2273 (synopsis "Canvas widget for GTK+")
2274 (description "GooCanvas is a canvas widget for GTK+ that uses the cairo 2D
2275 library for drawing.")
2276 (home-page "https://wiki.gnome.org/GooCanvas")
2277 (license license:lgpl2.0)))
2279 (define-public gtksheet
2287 (url "https://github.com/fpaquet/gtksheet")
2288 (commit (string-append "V" version))))
2289 (file-name (git-file-name name version))
2292 "13jwr1vly4ga3f09dajwky1cdrz5bmggwga3vnnd6j6zzia7dpyr"))))
2293 (build-system gnu-build-system)
2295 `(#:configure-flags (list "--enable-glade"
2296 "--enable-introspection")
2298 (modify-phases %standard-phases
2299 ;; The "configure" script is present, but otherwise the project is
2300 ;; not bootstrapped properly. Delete configure so the bootstrap phase
2302 (add-after 'unpack 'delete-configure
2304 (delete-file "configure")
2306 (add-after 'unpack 'rename-type
2308 (substitute* "glade/glade-gtksheet-editor.c"
2309 (("GladeEditableIface") "GladeEditableInterface"))
2311 ;; Fix glade install directories.
2312 (add-before 'bootstrap 'configure-glade-directories
2313 (lambda* (#:key outputs #:allow-other-keys)
2314 (substitute* "configure.ac"
2315 (("`\\$PKG_CONFIG --variable=catalogdir gladeui-2.0`")
2316 (string-append (assoc-ref outputs "out") "/share/glade/catalogs"))
2317 (("`\\$PKG_CONFIG --variable=moduledir gladeui-2.0`")
2318 (string-append (assoc-ref outputs "out") "/lib/glade/modules"))
2319 (("`\\$PKG_CONFIG --variable=pixmapdir gladeui-2.0`")
2320 (string-append (assoc-ref outputs "out") "/share/pixmaps")))
2326 ("libxml2" ,libxml2)))
2328 `(("autoconf" ,autoconf)
2329 ("automake" ,automake)
2330 ("gobject-introspection" ,gobject-introspection)
2331 ("libtool" ,libtool)
2332 ("pkg-config" ,pkg-config)))
2333 (home-page "https://fpaquet.github.io/gtksheet/")
2334 (synopsis "Spreadsheet widget for GTK+")
2335 (description "GtkSheet is a matrix widget for GTK+. It consists of an
2336 scrollable grid of cells where you can allocate text. Cell contents can be
2337 edited interactively through a specially designed entry, GtkItemEntry. It is
2338 also a container subclass, allowing you to display buttons, images and any
2339 other widget in it. You can also set many attributes such as border,
2340 foreground and background colors, text justification and more.")
2341 (native-search-paths
2343 (search-path-specification
2344 (variable "GLADE_CATALOG_SEARCH_PATH")
2345 (files '("share/glade/catalogs")))
2346 (search-path-specification
2347 (variable "GLADE_MODULE_SEARCH_PATH")
2348 (files '("lib/glade/modules")))))
2349 (license license:lgpl2.0+)))
2351 (define-public gtkdatabox
2357 (uri (string-append "mirror://sourceforge/gtkdatabox/gtkdatabox/"
2358 version "/gtkdatabox-" version ".tar.gz"))
2361 "1rdxnjgh6v3yjqgsfmamyzpfxckzchps4kqvvz88nifmd7ckhjfh"))))
2362 (build-system gnu-build-system)
2364 `(("pkg-config" ,pkg-config)))
2366 `(("gtk+-2" ,gtk+-2)))
2367 (synopsis "Display widget for dynamic data")
2368 (description "GtkDatabox is a widget for live display of large amounts of
2369 fluctuating numerical data. It enables data presentation (for example, on
2370 linear or logarithmic scales, as dots or lines, with markers/labels) as well as
2371 user interaction (e.g. measuring distances).")
2372 (home-page "https://sourceforge.net/projects/gtkdatabox/")
2373 (license license:lgpl2.1+)))