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 ;;; 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/")))
127 (replacement cairo/fixed)
130 (uri (string-append "https://cairographics.org/releases/cairo-"
134 "0c930mk5xr2bshbdljv005j3j8zr47gqmkry3q6qgvqky6rjjysy"))))
135 (build-system gnu-build-system)
137 `(("fontconfig" ,fontconfig)
138 ("freetype" ,freetype)
143 ("libxrender" ,libxrender)
146 `(("ghostscript" ,ghostscript)
147 ("libspectre" ,libspectre)
149 ("xorgproto" ,xorgproto)
152 `(("pkg-config" ,pkg-config)
153 ("python" ,python-wrapper)))
155 `(#:tests? #f ; see http://lists.gnu.org/archive/html/bug-guix/2013-06/msg00085.html
156 #:configure-flags '("--enable-tee" ;needed for GNU Icecat
157 "--enable-xml" ;for cairo-xml support
158 "--disable-static")))
159 (synopsis "2D graphics library")
161 "Cairo is a 2D graphics library with support for multiple output devices.
162 Currently supported output targets include the X Window System (via both
163 Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file
164 output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.
166 Cairo is designed to produce consistent output on all output media while
167 taking advantage of display hardware acceleration when available
168 eg. through the X Render Extension).
170 The cairo API provides operations similar to the drawing operators of
171 PostScript and PDF. Operations in cairo including stroking and filling cubic
172 Bézier splines, transforming and compositing translucent images, and
173 antialiased text rendering. All drawing operations can be transformed by any
174 affine transformation (scale, rotation, shear, etc.).")
175 (license license:lgpl2.1) ; or Mozilla Public License 1.1
176 (home-page "https://cairographics.org/")))
182 (inherit (package-source cairo))
183 (patches (append (search-patches "cairo-CVE-2018-19876.patch"
184 "cairo-CVE-2020-35492.patch")
185 (origin-patches (package-source cairo))))))))
187 (define-public cairo-sans-poppler
188 ;; Variant used to break the dependency cycle between Poppler and Cairo.
189 (package/inherit cairo
190 (inputs (alist-delete "poppler" (package-inputs cairo)))
191 (properties `((hidden? . #t)))))
193 (define-public cairo-xcb
194 (package/inherit cairo
198 ,@(package-inputs cairo)))
202 '("--enable-xlib-xcb" "--enable-gl" "--enable-egl")))
203 (synopsis "2D graphics library (with X11 support)")))
205 (define-public harfbuzz
211 (uri (string-append "https://www.freedesktop.org/software/"
212 "harfbuzz/release/harfbuzz-"
216 "04iwq13w6zkdhljmsxrzgg4fyh04qnwfn57rgrl9kmijc7cvh4wl"))))
217 (build-system gnu-build-system)
219 "bin")) ; 160K, only hb-view depend on cairo
223 ;; There are all in the Requires or Requires.private field of '.pc'.
225 ("graphite2" ,graphite2)
228 `(("glib:bin" ,glib "bin") ;for glib-mkenums
229 ("gobject-introspection" ,gobject-introspection)
230 ("pkg-config" ,pkg-config)
231 ("python" ,python-wrapper)
234 `(#:configure-flags `("--with-graphite2"
237 "--bindir=" (assoc-ref %outputs "bin") "/bin"))))
238 (synopsis "OpenType text shaping engine")
240 "HarfBuzz is an OpenType text shaping engine.")
241 (license (license:x11-style "file://COPYING"
242 "See 'COPYING' in the distribution."))
243 (home-page "https://www.freedesktop.org/wiki/Software/HarfBuzz/")))
245 (define-public libdatrie
253 (string-append "https://linux.thai.net/pub/ThaiLinux/software/"
254 "libthai/libdatrie-" version ".tar.xz"))
256 (base32 "1gplcx9ddglpxmqm10qn38kjmvdh4hnhj14rzgqag095psr1n8qj"))))
257 (build-system gnu-build-system)
258 (outputs '("out" "doc"))
262 (string-append "--with-html-docdir="
263 (assoc-ref %outputs "doc")
264 "/share/doc/datrie/html"))))
266 `(("doxygen" ,doxygen)
267 ("pkg-config" ,pkg-config)))
268 (synopsis "Double-Array Trie Library")
269 (description "Libdatrie is an implementation of double-array structure for
270 representing trie. Trie is a kind of digital search tree.")
271 (home-page "https://linux.thai.net/~thep/datrie/datrie.html")
272 (license license:lgpl2.1+)))
274 (define-public libthai
282 (string-append "https://linux.thai.net/pub/thailinux/software/"
283 "libthai/libthai-" version ".tar.xz"))
285 (base32 "04g93bgxrcnay9fglpq2lj9nr7x1xh06i60m7haip8as9dxs3q7z"))))
286 (build-system gnu-build-system)
287 (outputs '("out" "doc"))
291 (string-append "--with-html-docdir="
292 (assoc-ref %outputs "doc")
293 "/share/doc/libthai/html"))))
295 `(("doxygen" ,doxygen)
296 ("pkg-config" ,pkg-config)))
298 `(("datrie" ,libdatrie)))
299 (synopsis "Thai language support library")
300 (description "LibThai is a set of Thai language support routines aimed to
301 ease developers’ tasks to incorporate Thai language support in their
303 (home-page "https://linux.thai.net/projects/libthai")
304 (license license:lgpl2.1+)))
312 (uri (string-append "mirror://gnome/sources/pango/"
313 (version-major+minor version) "/"
314 name "-" version ".tar.xz"))
315 (patches (search-patches "pango-skip-libthai-test.patch"))
318 "07qvxa2sk90chp1l12han6vxvy098mc37sdqcznyywyv2g6bd9b6"))))
319 (build-system meson-build-system)
321 '(#:phases (modify-phases %standard-phases
322 (add-after 'unpack 'disable-cantarell-tests
324 (substitute* "tests/meson.build"
325 ;; XXX FIXME: These tests require "font-cantarell", but
326 ;; adding it here would introduce a circular dependency.
327 (("\\[ 'test-harfbuzz'.*") "")
328 (("\\[ 'test-itemize'.*") "")
329 (("\\[ 'test-layout'.*") ""))
332 ;; These are all in Requires or Requires.private of the '.pc' files.
335 ("fontconfig" ,fontconfig)
336 ("freetype" ,freetype)
338 ("harfbuzz" ,harfbuzz)
340 ;; Some packages, such as Openbox, expect Pango to be built with the
341 ;; optional libxft support.
346 `(("pkg-config" ,pkg-config)
347 ("glib" ,glib "bin") ; glib-mkenums, etc.
348 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
349 (synopsis "GNOME text and font handling library")
351 "Pango is the core text and font handling library used in GNOME
352 applications. It has extensive support for the different writing systems
353 used throughout the world.")
354 (license license:lgpl2.0+)
355 (home-page "https://developer.gnome.org/pango/")))
357 (define-public pango-1.42
363 (uri (string-append "mirror://gnome/sources/pango/"
364 (version-major+minor version) "/"
365 "pango-" version ".tar.xz"))
368 "17bwb7dgbncrfsmchlib03k9n3xaalirb39g3yb43gg8cg6p8aqx"))))
369 (build-system gnu-build-system)
371 '(#:phases (modify-phases %standard-phases
372 (add-after 'configure 'disable-layout-test
374 ;; This test requires that fontconfig uses bitmap fonts
375 ;; such as "gs-fonts"; however providing such a package
376 ;; alone is not enough, as the requirement comes from
377 ;; deeper in the font stack. Since this version of Pango
378 ;; is only used for librsvg, simply disable the test.
379 (substitute* "tests/Makefile"
380 (("test-layout\\$\\(EXEEXT\\)") ""))
383 (define-public pangox-compat
385 (name "pangox-compat")
389 (uri (string-append "mirror://gnome/sources/" name "/"
390 (version-major+minor version) "/"
391 name "-" version ".tar.xz"))
394 "0ip0ziys6mrqqmz4n71ays0kf5cs1xflj1gfpvs4fgy2nsrr482m"))))
395 (build-system gnu-build-system)
398 ("pango" ,pango-1.42)))
400 `(("intltool" ,intltool)
401 ("pkg-config" ,pkg-config)))
402 (home-page "https://developer.gnome.org/pango")
403 (synopsis "Obsolete pango functions")
404 (description "Pangox was a X backend to pango. It is now obsolete and no
405 longer provided by recent pango releases. pangox-compat provides the
406 functions which were removed.")
407 (license license:lgpl2.0+)))
415 (uri (string-append "https://download.drobilla.net/ganv-"
419 "0pik2d3995z0rjcjhb4hsj5fsph3m8khg6j10k6mx4j2j727aq6l"))))
420 (build-system waf-build-system)
423 (modify-phases %standard-phases
424 (add-before 'configure 'set-flags
425 (lambda* (#:key outputs #:allow-other-keys)
426 ;; Allow 'bin/ganv_bench' to find libganv-1.so.
428 (string-append "-Wl,-rpath="
429 (assoc-ref outputs "out") "/lib"))
431 #:tests? #f)) ; no check target
436 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
437 ("pkg-config" ,pkg-config)))
438 (home-page "https://drobilla.net/software/ganv/")
439 (synopsis "GTK+ widget for interactive graph-like environments")
441 "Ganv is an interactive GTK+ widget for interactive “boxes and lines” or
442 graph-like environments, e.g. modular synths or finite state machine
444 (license license:gpl3+)))
446 (define-public gtksourceview-2
448 (name "gtksourceview")
449 (version "2.10.5") ; This is the last version which builds against gtk+2
452 (uri (string-append "mirror://gnome/sources/" name "/"
453 (version-major+minor version) "/"
454 name "-" version ".tar.bz2"))
457 "07hrabhpl6n8ajz10s0d960jdwndxs87szxyn428mpxi8cvpg1f5"))
460 "gtksourceview-2-add-default-directory.patch"))))
461 (build-system gnu-build-system)
463 `(("intltool" ,intltool)
464 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
465 ("pkg-config" ,pkg-config)
467 ("xorg-server" ,xorg-server-for-tests)
468 ("shared-mime-info" ,shared-mime-info)))
470 ;; As per the pkg-config file.
472 ("libxml2" ,libxml2)))
475 ;; Unfortunately, some of the tests in "make check" are highly dependent
476 ;; on the environment therefore, some black magic is required.
477 (modify-phases %standard-phases
478 (add-before 'check 'start-xserver
479 (lambda* (#:key inputs #:allow-other-keys)
480 (let ((xorg-server (assoc-ref inputs "xorg-server"))
481 (mime (assoc-ref inputs "shared-mime-info")))
483 ;; There must be a running X server and make check doesn't start one.
484 ;; Therefore we must do it.
485 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
486 (setenv "DISPLAY" ":1")
488 ;; The .lang files must be found in $XDG_DATA_HOME/gtksourceview-2.0
489 (system "ln -s gtksourceview gtksourceview-2.0")
490 (setenv "XDG_DATA_HOME" (getcwd))
492 ;; Finally, the mimetypes must be available.
493 (setenv "XDG_DATA_DIRS" (string-append mime "/share/")))
495 (synopsis "Widget that extends the standard GTK+ 2.x 'GtkTextView' widget")
497 "GtkSourceView is a portable C library that extends the standard GTK+
498 framework for multiline text editing with support for configurable syntax
499 highlighting, unlimited undo/redo, search and replace, a completion framework,
500 printing and other features typical of a source code editor.")
501 (license license:lgpl2.0+)
502 (home-page "https://developer.gnome.org/gtksourceview/")))
504 (define-public gtksourceview
506 (name "gtksourceview")
510 (uri (string-append "mirror://gnome/sources/gtksourceview/"
511 (version-major+minor version) "/"
512 "gtksourceview-" version ".tar.xz"))
515 "0xgnjj7jd56wbl99s76sa1vjq9bkz4mdsxwgwlcphg689liyncf4"))))
516 (build-system gnu-build-system)
519 (modify-phases %standard-phases
522 (lambda* (#:key inputs #:allow-other-keys)
523 (let ((xorg-server (assoc-ref inputs "xorg-server")))
524 ;; Tests require a running X server.
525 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
526 (setenv "DISPLAY" ":1")
527 ;; For the missing /etc/machine-id.
528 (setenv "DBUS_FATAL_WARNINGS" "0")
531 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
532 ("intltool" ,intltool)
534 ("gobject-introspection" ,gobject-introspection)
535 ("pkg-config" ,pkg-config)
538 ("xorg-server" ,xorg-server-for-tests)
539 ("shared-mime-info" ,shared-mime-info)))
541 ;; gtksourceview-3.0.pc refers to all these.
544 ("libxml2" ,libxml2)))
545 (home-page "https://wiki.gnome.org/Projects/GtkSourceView")
546 (synopsis "GNOME source code widget")
547 (description "GtkSourceView is a text widget that extends the standard
548 GTK+ text widget GtkTextView. It improves GtkTextView by implementing syntax
549 highlighting and other features typical of a source code editor.")
550 (license license:lgpl2.1+)))
552 (define-public gtksourceview-3
553 (package (inherit gtksourceview)
554 (name "gtksourceview")
558 (uri (string-append "mirror://gnome/sources/" name "/"
559 (version-major+minor version) "/"
560 name "-" version ".tar.xz"))
563 "16ym7jwiki4s1pilwr4incx0yg7ll94f1cajrnpndkxxs36hcm5b"))))))
565 (define-public gdk-pixbuf
569 (replacement gdk-pixbuf/fixed)
572 (uri (string-append "mirror://gnome/sources/" name "/"
573 (version-major+minor version) "/"
574 name "-" version ".tar.xz"))
577 "1rnlx9yfw970maxi2x6niaxmih5la11q1ilr7gzshz2kk585k0hm"))))
578 (build-system meson-build-system)
580 `(#:configure-flags '("-Dinstalled_tests=false")
582 (modify-phases %standard-phases
584 'unpack 'disable-failing-tests
586 (substitute* "tests/meson.build"
587 ;; XXX FIXME: This test fails on armhf machines with:
588 ;; SKIP Not enough memory to load bitmap image
589 ;; ERROR: cve-2015-4491 - too few tests run (expected 4, got 2)
590 ((".*'cve-2015-4491'.*") "")
591 ;; XXX FIXME: This test fails with:
592 ;; ERROR:pixbuf-jpeg.c:74:test_type9_rotation_exif_tag:
593 ;; assertion failed (error == NULL): Data differ
594 ;; (gdk-pixbuf-error-quark, 0)
595 ((".*'pixbuf-jpeg'.*") ""))
597 ;; The slow tests take longer than the specified timeout.
598 ,@(if (any (cute string=? <> (%current-system))
599 '("armhf-linux" "aarch64-linux"))
602 (invoke "meson" "test" "--timeout-multiplier" "5"))))
605 `(;; Required by gdk-pixbuf-2.0.pc
608 ;; Used for testing and required at runtime.
609 ("shared-mime-info" ,shared-mime-info)))
611 `(("libjpeg" ,libjpeg-turbo)
615 `(("pkg-config" ,pkg-config)
616 ("gettext" ,gettext-minimal)
617 ("glib" ,glib "bin") ; glib-mkenums, etc.
618 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
619 (synopsis "GNOME image loading and manipulation library")
621 "GdkPixbuf is a library for image loading and manipulation developed
622 in the GNOME project.")
623 (license license:lgpl2.0+)
624 (home-page "https://developer.gnome.org/gdk-pixbuf/")))
626 (define gdk-pixbuf/fixed
630 (inherit (package-source gdk-pixbuf))
632 (append (search-patches "gdk-pixbuf-CVE-2020-29385.patch")
633 (origin-patches (package-source gdk-pixbuf))))))))
635 ;; To build gdk-pixbuf with SVG support, we need librsvg, and librsvg depends
636 ;; on gdk-pixbuf, so this new varibale. Also, librsvg adds 90MiB to the
638 (define-public gdk-pixbuf+svg
639 (package/inherit gdk-pixbuf
640 (name "gdk-pixbuf+svg")
642 `(("librsvg" ,librsvg)
643 ,@(package-inputs gdk-pixbuf)))
645 '(#:configure-flags '("-Dinstalled-tests=false")
646 #:tests? #f ; tested by the gdk-pixbuf package already
648 (modify-phases %standard-phases
649 (add-after 'install 'register-svg-loader
650 (lambda* (#:key inputs outputs #:allow-other-keys)
651 (let* ((out (assoc-ref outputs "out"))
652 (librsvg (assoc-ref inputs "librsvg"))
655 (find-files out "^libpixbufloader-.*\\.so$")
656 (find-files librsvg "^libpixbufloader-.*\\.so$")))
657 (gdk-pixbuf-query-loaders
658 (string-append out "/bin/gdk-pixbuf-query-loaders")))
660 gdk-pixbuf-query-loaders
664 "GNOME image loading and manipulation library, with SVG support")))
666 (define-public at-spi2-core
668 (name "at-spi2-core")
672 (uri (string-append "mirror://gnome/sources/" name "/"
673 (version-major+minor version) "/"
674 name "-" version ".tar.xz"))
677 "1ihixwhh3c16q6253qj9gf69741rb2pi51822a4rylsfcyywsafn"))))
678 (build-system meson-build-system)
679 (outputs '("out" "doc"))
684 (modify-phases %standard-phases
685 (add-after 'unpack 'set-documentation-path
686 (lambda* (#:key outputs #:allow-other-keys)
687 ;; Ensure that the cross-references point to the "doc" output.
688 (substitute* "doc/libatspi/meson.build"
690 (string-append "docpath = '" (assoc-ref outputs "doc") "/share/gtk-doc/html'\n")))
692 (add-before 'install 'prepare-doc-directory
693 (lambda* (#:key outputs #:allow-other-keys)
694 (mkdir-p (string-append (assoc-ref outputs "doc") "/share"))
696 (add-after 'install 'move-documentation
697 (lambda* (#:key outputs #:allow-other-keys)
698 (let ((out (assoc-ref outputs "out"))
699 (doc (assoc-ref outputs "doc")))
701 (string-append out "/share/gtk-doc")
702 (string-append doc "/share/gtk-doc"))
703 (delete-file-recursively
704 (string-append out "/share/gtk-doc")))
706 (add-after 'install 'check
708 (setenv "HOME" (getenv "TMPDIR")) ; xfconfd requires a writable HOME
709 ;; Run test-suite under a dbus session.
710 (setenv "XDG_DATA_DIRS" ; for finding org.xfce.Xfconf.service
711 (string-append %output "/share"))
712 ;; Don't fail on missing '/etc/machine-id'.
713 (setenv "DBUS_FATAL_WARNINGS" "0") ;
714 (invoke "dbus-launch" "ninja" "test")))
717 ;; atspi-2.pc refers to all these.
721 ("libxtst" ,libxtst)))
723 `(("gettext" ,gettext-minimal)
724 ("gobject-introspection" ,gobject-introspection)
727 ("pkg-config" ,pkg-config)))
728 (synopsis "Assistive Technology Service Provider Interface, core components")
730 "The Assistive Technology Service Provider Interface, core components,
731 is part of the GNOME accessibility project.")
732 (license license:lgpl2.0+)
733 (home-page "https://projects.gnome.org/accessibility/")))
735 ;;; A minimal variant used to prevent a cycle with Inkscape.
736 (define at-spi2-core-minimal
738 (inherit at-spi2-core)
739 (name "at-spi2-core-minimal")
740 (outputs (delete "doc" (package-outputs at-spi2-core)))
742 (substitute-keyword-arguments (package-arguments at-spi2-core)
743 ((#:configure-flags configure-flags)
744 `(delete "-Ddocs=true" ,configure-flags))
746 `(modify-phases ,phases
747 (delete 'set-documentation-path)
748 (delete 'prepare-doc-directory)
749 (delete 'move-documentation)))))
751 (alist-delete "gtk-doc" (package-native-inputs at-spi2-core)))))
753 (define-public at-spi2-atk
759 (uri (string-append "mirror://gnome/sources/" name "/"
760 (version-major+minor version) "/"
761 name "-" version ".tar.xz"))
764 "05ncp7s5nddjinffs26mcvpbd63vk1m3cv5y530p3plgfhqgjvbp"))))
765 (build-system meson-build-system)
768 (modify-phases %standard-phases
770 ;; Run test-suite under a dbus session.
772 (setenv "DBUS_FATAL_WARNINGS" "0")
773 (invoke "dbus-launch" "meson" "test"))))))
775 ;; TODO: Replace by at-spi2-core-minimal in the next staging window, or
776 ;; when Inkscape 0.92 is upgraded to 1.0 to avoid a cycle.
777 `(("at-spi2-core" ,at-spi2-core))) ; required by atk-bridge-2.0.pc
781 `(("pkg-config" ,pkg-config)
784 ("libxml2" ,libxml2)))
785 (synopsis "Assistive Technology Service Provider Interface, ATK bindings")
787 "The Assistive Technology Service Provider Interface
788 is part of the GNOME accessibility project.")
789 (license license:lgpl2.0+)
790 (home-page "https://projects.gnome.org/accessibility/")))
792 (define-public gtk+-2
798 (uri (string-append "mirror://gnome/sources/" name "/"
799 (version-major+minor version) "/"
800 name "-" version ".tar.xz"))
803 "0bjq7ja9gwcv6n5q4qkvdjjx40wsdiikksz1zqxvxsm5vlyskj5n"))
804 (patches (search-patches "gtk2-respect-GUIX_GTK2_PATH.patch"
805 "gtk2-respect-GUIX_GTK2_IM_MODULE_FILE.patch"
806 "gtk2-theme-paths.patch"))))
807 (build-system gnu-build-system)
808 (outputs '("out" "bin" "doc"))
811 ("gdk-pixbuf" ,gdk-pixbuf+svg)
815 ("libxcomposite" ,libxcomposite)
816 ("libxcursor" ,libxcursor)
817 ("libxdamage" ,libxdamage)
819 ("libxinerama" ,libxinerama)
820 ("libxrandr" ,libxrandr)))
823 ("gettext" ,gettext-minimal)
825 ("gobject-introspection" ,gobject-introspection)
826 ("pkg-config" ,pkg-config)
827 ("python-wrapper" ,python-wrapper)))
830 (list "--with-xinput=yes"
831 (string-append "--with-html-dir="
832 (assoc-ref %outputs "doc")
833 "/share/gtk-doc/html"))
835 (modify-phases %standard-phases
836 (add-before 'configure 'disable-tests
838 ;; FIXME: re-enable tests requiring an X server
839 (substitute* "gtk/Makefile.in"
840 (("SUBDIRS = theme-bits . tests") "SUBDIRS = theme-bits ."))
842 (add-after 'install 'remove-cache
843 (lambda* (#:key outputs #:allow-other-keys)
846 (find-files (assoc-ref outputs "out") "immodules.cache"))
849 (list (search-path-specification
850 (variable "GUIX_GTK2_PATH")
851 (files '("lib/gtk-2.0")))))
852 (synopsis "Cross-platform toolkit for creating graphical user interfaces")
854 "GTK+, or the GIMP Toolkit, is a multi-platform toolkit for creating
855 graphical user interfaces. Offering a complete set of widgets, GTK+ is
856 suitable for projects ranging from small one-off tools to complete
857 application suites.")
858 (license license:lgpl2.0+)
859 (home-page "https://www.gtk.org/")))
862 (package (inherit gtk+-2)
867 (uri (string-append "mirror://gnome/sources/" name "/"
868 (version-major+minor version) "/"
869 name "-" version ".tar.xz"))
872 "12ipk1d376bai9v820qzhxba93kkh5abi6mhyqr4hwjvqmkl77fc"))
873 (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch"
874 "gtk3-respect-GUIX_GTK3_IM_MODULE_FILE.patch"))))
876 `(("at-spi2-atk" ,at-spi2-atk)
878 ("gdk-pixbuf" ,gdk-pixbuf+svg)
879 ("libepoxy" ,libepoxy)
880 ("libxcursor" ,libxcursor)
882 ("libxinerama" ,libxinerama)
883 ("libxkbcommon" ,libxkbcommon)
884 ("libxdamage" ,libxdamage)
885 ("libxrandr" ,libxrandr)
889 ("wayland-protocols" ,wayland-protocols)))
891 `(("libxml2" ,libxml2)
892 ;; XXX: colord depends on mozjs (through polkit), which fails on
893 ;; on non-intel systems now.
895 ("cups" ,cups) ;for printing support
896 ;; XXX: rest depends on p11-kit, which fails on mips64el now.
898 ("json-glib" ,json-glib)))
902 ("gettext" ,gettext-minimal)
903 ("pkg-config" ,pkg-config)
904 ("gobject-introspection" ,gobject-introspection)
905 ("python-wrapper" ,python-wrapper)
906 ;; By using a special xorg-server for GTK+'s tests, we reduce the impact
907 ;; of updating xorg-server directly on the master branch.
908 ("xorg-server" ,xorg-server-for-tests)))
910 `(#:disallowed-references (,xorg-server-for-tests)
911 ;; 47 MiB goes to "out" (24 of which is locale data!), and 26 MiB goes
913 #:configure-flags (list (string-append "--with-html-dir="
914 (assoc-ref %outputs "doc")
915 "/share/gtk-doc/html")
916 ;; The header file <gdk/gdkwayland.h> is required
917 ;; by gnome-control-center
918 "--enable-wayland-backend"
919 ;; This is necessary to build both backends.
920 "--enable-x11-backend"
921 ;; This enables the HTML5 websocket backend.
922 "--enable-broadway-backend")
923 #:phases (modify-phases %standard-phases
924 (add-before 'configure 'pre-configure
926 ;; Disable most tests, failing in the chroot with the message:
927 ;; D-Bus library appears to be incorrectly set up; failed to read
928 ;; machine uuid: Failed to open "/etc/machine-id": No such file or
930 ;; See the manual page for dbus-uuidgen to correct this issue.
931 (substitute* "testsuite/Makefile.in"
932 (("SUBDIRS = gdk gtk a11y css reftests")
935 (add-after 'install 'move-desktop-files
936 ;; Move desktop files into 'bin' to avoid cycle references.
937 (lambda* (#:key outputs #:allow-other-keys)
938 (let ((out (assoc-ref outputs "out"))
939 (bin (assoc-ref outputs "bin")))
940 (mkdir-p (string-append bin "/share"))
941 (rename-file (string-append out "/share/applications")
942 (string-append bin "/share/applications"))
945 (list (search-path-specification
946 (variable "GUIX_GTK3_PATH")
947 (files '("lib/gtk-3.0")))))))
953 (define-public guile-cairo
959 (uri (string-append "mirror://savannah/guile-cairo/guile-cairo-"
963 "0yx0844p61ljd4d3d63qrawiygiw6ks02fwv2cqx7nav5kfd8ck2"))
964 (modules '((guix build utils)))
968 ;; Install Scheme files in …/guile/site/X.Y.
969 (substitute* (find-files "." "^Makefile\\.in$")
970 (("^(.*)dir = (.*)/guile/site(.*)" _ name prefix suffix)
971 (string-append name "dir = " prefix
972 "/guile/site/@GUILE_EFFECTIVE_VERSION@"
975 (build-system gnu-build-system)
977 ;; Uses of 'scm_t_uint8' & co. are deprecated; don't stop the build
979 `(#:configure-flags '("--disable-Werror")
980 #:make-flags '("GUILE_AUTO_COMPILE=0") ; to prevent guild warnings
981 #:modules ((guix build gnu-build-system)
986 (modify-phases %standard-phases
987 (add-after 'install 'install-go-files
988 (lambda* (#:key outputs inputs #:allow-other-keys)
989 (let* ((out (assoc-ref outputs "out"))
990 (effective (read-line
991 (open-pipe* OPEN_READ
993 "(display (effective-version))")))
994 (module-dir (string-append out "/share/guile/site/"
996 (object-dir (string-append out "/lib/guile/" effective
998 (prefix (string-length module-dir)))
999 ;; compile to the destination
1000 (for-each (lambda (file)
1001 (let* ((base (string-drop (string-drop-right file 4)
1003 (go (string-append object-dir base ".go")))
1004 (invoke "guild" "compile" "-L" module-dir
1006 (find-files module-dir "\\.scm$"))
1009 `(("guile-lib" ,guile-lib)
1011 ("guile" ,guile-3.0)))
1013 ;; The .pc file refers to 'cairo'.
1014 `(("cairo" ,cairo)))
1016 `(("pkg-config" ,pkg-config)))
1017 (home-page "https://www.nongnu.org/guile-cairo/")
1018 (synopsis "Cairo bindings for GNU Guile")
1020 "Guile-Cairo wraps the Cairo graphics library for Guile Scheme.
1021 Guile-Cairo is complete, wrapping almost all of the Cairo API. It is API
1022 stable, providing a firm base on which to do graphics work. Finally, and
1023 importantly, it is pleasant to use. You get a powerful and well-maintained
1024 graphics library with all of the benefits of Scheme: memory management,
1025 exceptions, macros, and a dynamic programming environment.")
1026 (license license:lgpl3+)))
1028 (define-public guile2.2-cairo
1030 (inherit guile-cairo)
1031 (name "guile2.2-cairo")
1033 `(("guile" ,guile-2.2)
1034 ("guile-lib" ,guile2.2-lib)
1035 ,@(fold alist-delete (package-inputs guile-cairo)
1036 '("guile" "guile-lib"))))))
1038 (define-public guile3.0-cairo
1039 (deprecated-package "guile3.0-cairo" guile-cairo))
1041 (define-public guile-rsvg
1042 ;; Use a recent snapshot that supports Guile 2.2 and beyond.
1043 (let ((commit "05c6a2fd67e4fea1a7c3ff776729dc931bae6678")
1047 (version (string-append "2.18.1-" revision "."
1048 (string-take commit 7)))
1052 (url "https://gitlab.com/wingo/guile-rsvg/")
1056 "0cnbl40df2sbhpc32cma6j6w312rfvcgbxxqaixgf0ymim3fb248"))
1057 (patches (search-patches "guile-rsvg-pkgconfig.patch"))
1058 (modules '((guix build utils)))
1061 (substitute* (find-files "." "Makefile\\.am")
1062 (("/share/guile/site")
1063 "/share/guile/site/@GUILE_EFFECTIVE_VERSION@"))
1065 (file-name (string-append name "-" version ".tar.gz"))))
1066 (build-system gnu-build-system)
1068 `(#:modules ((guix build gnu-build-system)
1073 (modify-phases %standard-phases
1076 (invoke "autoreconf" "-vfi")))
1077 (add-after 'install 'install-go-files
1078 (lambda* (#:key outputs inputs #:allow-other-keys)
1079 (let* ((out (assoc-ref outputs "out"))
1080 (effective (read-line
1081 (open-pipe* OPEN_READ
1083 "(display (effective-version))")))
1084 (module-dir (string-append out "/share/guile/site/"
1086 (object-dir (string-append out "/lib/guile/" effective
1088 (prefix (string-length module-dir)))
1089 ;; compile to the destination
1090 (for-each (lambda (file)
1091 (let* ((base (string-drop (string-drop-right file 4)
1093 (go (string-append object-dir base ".go")))
1094 (invoke "guild" "compile" "-L" module-dir
1096 (find-files module-dir "\\.scm$"))
1098 (native-inputs `(("pkg-config" ,pkg-config)
1099 ("autoconf" ,autoconf)
1100 ("automake" ,automake)
1101 ("libtool" ,libtool)
1102 ("texinfo" ,texinfo)))
1103 (inputs `(("guile" ,guile-3.0)
1104 ("librsvg" ,librsvg)
1105 ("guile-lib" ,guile-lib))) ;for (unit-test)
1106 (propagated-inputs `(("guile-cairo" ,guile-cairo)))
1107 (synopsis "Render SVG images using Cairo from Guile")
1109 "Guile-RSVG wraps the RSVG library for Guile, allowing you to render SVG
1110 images onto Cairo surfaces.")
1111 (home-page "https://wingolog.org/projects/guile-rsvg/")
1112 (license license:lgpl2.1+))))
1114 (define-public guile2.2-rsvg
1116 (inherit guile-rsvg)
1117 (name "guile2.2-rsvg")
1119 `(("guile" ,guile-2.2)
1120 ("guile-lib" ,guile2.2-lib)
1121 ,@(fold alist-delete (package-inputs guile-rsvg)
1122 '("guile" "guile-lib"))))
1123 (propagated-inputs `(("guile-cairo" ,guile2.2-cairo)))))
1125 (define-public guile3.0-rsvg
1126 (deprecated-package "guile3.0-rsvg" guile-rsvg))
1128 (define-public guile-present
1130 (name "guile-present")
1134 (uri (string-append "http://wingolog.org/pub/guile-present/"
1135 "guile-present-" version ".tar.gz"))
1138 "1qam447m05sxxv6x8dlzg7qnyfc4dh8apjw1idpfhpns671gfr6m"))
1139 (patches (search-patches "guile-present-coding.patch"))
1140 (modules '((guix build utils)))
1143 ;; Allow builds with Guile 3.0.
1144 (substitute* "configure"
1148 ;; Install .go files in the right place.
1149 (substitute* "Makefile.in"
1150 (("/ccache") "/site-ccache"))
1152 (build-system gnu-build-system)
1155 (modify-phases %standard-phases
1156 (add-after 'install 'post-install
1157 (lambda* (#:key inputs outputs #:allow-other-keys)
1158 (let* ((out (assoc-ref outputs "out"))
1159 (bin (string-append out "/bin"))
1160 (guile (assoc-ref inputs "guile"))
1162 ,(match (assoc "guile" (package-inputs this-package))
1164 (version-major+minor (package-version guile))))))
1165 (substitute* (find-files bin ".*")
1167 (string-append guile "/bin/guile -L "
1168 out "/share/guile/site/" version " -C "
1169 out "/lib/guile/" version "/site-ccache "))))
1171 (native-inputs `(("pkg-config" ,pkg-config)))
1172 (inputs `(("guile" ,guile-3.0)))
1174 ;; These are used by the (present …) modules.
1175 `(("guile-lib" ,guile-lib)
1176 ("guile-cairo" ,guile-cairo)
1177 ("guile-rsvg" ,guile-rsvg)))
1178 (home-page "https://wingolog.org/software/guile-present/")
1179 (synopsis "Create SVG or PDF presentations in Guile")
1181 "Guile-Present defines a declarative vocabulary for presentations,
1182 together with tools to render presentation documents as SVG or PDF.
1183 Guile-Present can be used to make presentations programmatically, but also
1184 includes a tools to generate PDF presentations out of Org mode and Texinfo
1186 (license license:lgpl3+)))
1188 (define-public guile2.2-present
1190 (inherit guile-present)
1191 (name "guile2.2-present")
1192 (inputs `(("guile" ,guile-2.2)))
1194 `(("guile-lib" ,guile2.2-lib)
1195 ("guile-cairo" ,guile2.2-cairo)
1196 ("guile-rsvg" ,guile2.2-rsvg)))))
1198 (define-public guile3.0-present
1199 (deprecated-package "guile3.0-present" guile-present))
1201 (define-public guile-gnome
1203 (name "guile-gnome")
1208 (string-append "mirror://gnu/" name
1209 "/guile-gnome-platform/guile-gnome-platform-"
1213 "1gnf3j96nip5kl99a268i0dy1hj7s1cfs66sps3zwysnkd7qr399"))))
1214 (build-system gnu-build-system)
1216 `(("pkg-config" ,pkg-config)
1218 ;;("corba" ,corba) ; not packaged yet
1220 ("gobject-introspection" ,gobject-introspection)
1221 ;;("gthread" ,gthread) ; not packaged yet
1222 ("gnome-vfs" ,gnome-vfs)
1223 ("gdk-pixbuf" ,gdk-pixbuf)
1225 ("libglade" ,libglade)
1226 ("libgnome" ,libgnome)
1227 ("libgnomecanvas" ,libgnomecanvas)
1228 ("libgnomeui" ,libgnomeui)
1232 (inputs `(("guile" ,guile-2.2)))
1234 `(("guile-cairo" ,guile2.2-cairo)
1236 ("guile-lib" ,guile2.2-lib)))
1238 `(#:tests? #f ;FIXME
1239 #:phases (modify-phases %standard-phases
1240 (add-before 'configure 'pre-configure
1241 (lambda* (#:key outputs #:allow-other-keys)
1242 (let ((out (assoc-ref outputs "out")))
1243 (substitute* (find-files "." "^Makefile.in$")
1244 (("guilesite :=.*guile/site" all)
1245 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
1247 (outputs '("out" "debug"))
1248 (synopsis "Guile interface for GTK+ programming for GNOME")
1250 "Includes guile-clutter, guile-gnome-gstreamer,
1251 guile-gnome-platform (GNOME developer libraries), and guile-gtksourceview.")
1252 (home-page "https://www.gnu.org/software/guile-gnome/")
1253 (license license:gpl2+)
1254 (properties '((upstream-name . "guile-gnome-platform")
1255 (ftp-directory . "/gnu/guile-gnome/guile-gnome-platform")))))
1261 (define-public cairomm
1267 (uri (string-append "https://www.cairographics.org/releases/"
1268 name "-" version ".tar.gz"))
1271 "16fmigxsaz85c3lgcls7biwyz8zy8c8h3jndfm54cxxas3a7zi25"))))
1272 (build-system gnu-build-system)
1274 ;; The examples lack -lcairo.
1275 '(#:make-flags '("LDFLAGS=-lcairo")))
1276 (native-inputs `(("pkg-config" ,pkg-config)))
1278 `(("libsigc++" ,libsigc++)
1279 ("freetype" ,freetype)
1280 ("fontconfig" ,fontconfig)
1282 (home-page "https://cairographics.org/")
1283 (synopsis "C++ bindings to the Cairo 2D graphics library")
1285 "Cairomm provides a C++ programming interface to the Cairo 2D graphics
1287 (license license:lgpl2.0+)))
1289 (define-public cairomm-1.13
1298 (string-append "https://www.cairographics.org/releases/"
1299 name "-" version ".tar.gz"))
1301 (base32 "1xlfl0fm5mgv53lr8xjv2kqsk3bz67qkk6qzvbrqmbvbvvbqp9wp"))))
1304 ("sigc++" ,libsigc++)))))
1306 (define-public pangomm
1312 (uri (string-append "mirror://gnome/sources/" name "/"
1313 (version-major+minor version) "/"
1314 name "-" version ".tar.xz"))
1317 "0mmzxp3wniaafkxr30sb22mq9x44xckb5d60h1bl99lkzxks0vfa"))))
1318 (build-system gnu-build-system)
1319 (native-inputs `(("pkg-config" ,pkg-config)))
1322 ("cairomm" ,cairomm)
1325 (home-page "https://pango.gnome.org//")
1326 (synopsis "C++ interface to the Pango text rendering library")
1328 "Pangomm provides a C++ programming interface to the Pango text rendering
1330 (license license:lgpl2.1+)))
1332 (define-public pangomm-2.42
1341 (string-append "mirror://gnome/sources/" name "/"
1342 (version-major+minor version) "/"
1343 name "-" version ".tar.xz"))
1345 (base32 "03zli5amizhv9bfklwfq7xyf0b5dagchx1lnz9f0v1rhk69h9gql"))))
1347 `(("cairomm" ,cairomm-1.13)
1348 ("glibmm" ,glibmm-2.64)
1349 ("pango" ,pango)))))
1351 (define-public atkmm
1357 (uri (string-append "mirror://gnome/sources/" name "/"
1358 (version-major+minor version) "/"
1359 name "-" version ".tar.xz"))
1362 "0fnxrspxkhhbrjphqrpvl3zjm66n50s4cywrrrwkhbflgy8zqk2c"))))
1363 (build-system gnu-build-system)
1364 (native-inputs `(("pkg-config" ,pkg-config)))
1366 `(("glibmm" ,glibmm) ("atk" ,atk)))
1367 (home-page "https://www.gtkmm.org")
1368 (synopsis "C++ interface to the ATK accessibility library")
1370 "ATKmm provides a C++ programming interface to the ATK accessibility
1372 (license license:lgpl2.1+)))
1374 (define-public gtkmm
1380 (uri (string-append "mirror://gnome/sources/" name "/"
1381 (version-major+minor version) "/"
1382 name "-" version ".tar.xz"))
1385 "1hxdnhavjyvbcpxhd5z17l9fj4182028s66lc0s16qqqrldhjwbd"))))
1386 (build-system gnu-build-system)
1387 (native-inputs `(("pkg-config" ,pkg-config)
1388 ("glib" ,glib "bin") ;for 'glib-compile-resources'
1389 ("xorg-server" ,xorg-server-for-tests)))
1391 `(("pangomm" ,pangomm)
1392 ("cairomm" ,cairomm)
1395 ("glibmm" ,glibmm)))
1397 `(#:disallowed-references (,xorg-server-for-tests)
1398 #:phases (modify-phases %standard-phases
1399 (add-before 'check 'run-xvfb
1400 (lambda* (#:key inputs #:allow-other-keys)
1401 (let ((xorg-server (assoc-ref inputs "xorg-server")))
1402 ;; Tests such as 'object_move/test' require a running
1404 (system (string-append xorg-server "/bin/Xvfb :1 &"))
1405 (setenv "DISPLAY" ":1")
1406 ;; Don't fail because of the missing /etc/machine-id.
1407 (setenv "DBUS_FATAL_WARNINGS" "0")
1409 (home-page "https://gtkmm.org/")
1411 "C++ interface to the GTK+ graphical user interface library")
1413 "gtkmm is the official C++ interface for the popular GUI library GTK+.
1414 Highlights include typesafe callbacks, and a comprehensive set of widgets that
1415 are easily extensible via inheritance. You can create user interfaces either
1416 in code or with the Glade User Interface designer, using libglademm. There's
1417 extensive documentation, including API reference and a tutorial.")
1418 (license license:lgpl2.1+)))
1421 (define-public gtkmm-2
1422 (package (inherit gtkmm)
1427 (uri (string-append "mirror://gnome/sources/" name "/"
1428 (version-major+minor version) "/"
1429 name "-" version ".tar.xz"))
1432 "0wkbzvsx4kgw16f6xjdc1dz7f77ldngdila4yi5lw2zrgcxsb006"))))
1434 (native-inputs `(("pkg-config" ,pkg-config)))
1436 `(("pangomm" ,pangomm)
1437 ("cairomm" ,cairomm)
1440 ("glibmm" ,glibmm)))))
1442 (define-public gtksourceviewmm
1444 (name "gtksourceviewmm")
1448 (uri (string-append "mirror://gnome/sources/" name "/"
1449 (version-major+minor version) "/"
1450 name "-" version ".tar.xz"))
1452 (base32 "0fgvmhm4h4qmxig87qvangs6ijw53mi40siz7pixlxbrsgiil22i"))))
1453 (build-system gnu-build-system)
1455 `(("pkg-config" ,pkg-config)))
1457 ;; In 'Requires' of gtksourceviewmm-3.0.pc.
1458 `(("glibmm" ,glibmm)
1460 ("gtksourceview" ,gtksourceview-3)))
1461 (synopsis "C++ interface to the GTK+ 'GtkTextView' widget")
1463 "gtksourceviewmm is a portable C++ library that extends the standard GTK+
1464 framework for multiline text editing with support for configurable syntax
1465 highlighting, unlimited undo/redo, search and replace, a completion framework,
1466 printing and other features typical of a source code editor.")
1467 (license license:lgpl2.1+)
1468 (home-page "https://developer.gnome.org/gtksourceview/")))
1471 ;;; Python bindings.
1474 (define-public python-pycairo
1476 (name "python-pycairo")
1481 (uri (string-append "https://github.com/pygobject/pycairo/releases/download/v"
1482 version "/pycairo-" version ".tar.gz"))
1485 "111fav9m1iagw3nh2ws2vzkjh34r97yl7rdlpvsngsqg521k251c"))))
1486 (build-system python-build-system)
1488 `(("pkg-config" ,pkg-config)
1489 ("python-pytest" ,python-pytest)))
1490 (propagated-inputs ;pycairo.pc references cairo
1491 `(("cairo" ,cairo)))
1492 (home-page "https://cairographics.org/pycairo/")
1493 (synopsis "Python bindings for cairo")
1495 "Pycairo is a set of Python bindings for the Cairo graphics library.")
1496 (license license:lgpl3+)
1497 (properties `((python2-variant . ,(delay python2-pycairo))))))
1499 ;; Pycairo no longer supports Python 2 since version 1.19.0, so we stick
1500 ;; with this older version here.
1501 (define-public python2-pycairo
1502 (let ((pycairo (package-with-python2
1503 (strip-python2-variant python-pycairo))))
1509 (uri (string-append "https://github.com/pygobject/pycairo/releases"
1510 "/download/v" version "/pycairo-" version ".tar.gz"))
1513 "0cb5n4r4nl0k1g90b1gz9iyk4lp7hi03db98i1p52a870bym7f6w"))))
1514 ;; Dual-licensed under LGPL 2.1 or Mozilla Public License 1.1
1515 (license (list license:lgpl2.1 license:mpl1.1)))))
1517 (define-public python2-pygtk
1519 (name "python2-pygtk")
1524 (uri (string-append "mirror://gnome/sources"
1525 "/pygtk/" (version-major+minor version)
1526 "/pygtk-" version ".tar.bz2"))
1529 "04k942gn8vl95kwf0qskkv6npclfm31d78ljkrkgyqxxcni1w76d"))))
1530 (build-system gnu-build-system)
1532 "doc")) ;13 MiB of gtk-doc HTML
1534 `(("pkg-config" ,pkg-config)))
1536 `(("python" ,python-2)
1538 ;; XXX: The package fails to build with the latest Pango (propagated
1539 ;; from GTK+2), so we provide it with this older version.
1540 ("pango" ,pango-1.42)
1542 ("libglade" ,libglade)
1545 `(("python-pycairo" ,python2-pycairo) ;loaded at runtime
1546 ("python-pygobject" ,python2-pygobject-2) ;referenced in pc file
1550 #:phases (modify-phases %standard-phases
1551 (add-before 'configure 'set-gtk-doc-directory
1552 (lambda* (#:key outputs #:allow-other-keys)
1553 ;; Install documentation to "doc".
1554 (let ((doc (assoc-ref outputs "doc")))
1555 (substitute* "docs/Makefile.in"
1556 (("TARGET_DIR = \\$\\(datadir\\)")
1557 (string-append "TARGET_DIR = " doc))))))
1558 (add-after 'configure 'fix-codegen
1559 (lambda* (#:key inputs #:allow-other-keys)
1560 (substitute* "pygtk-codegen-2.0"
1564 (assoc-ref inputs "python-pygobject") "\n")))))
1565 (add-after 'install 'install-pth
1566 (lambda* (#:key inputs outputs #:allow-other-keys)
1567 ;; pygtk's modules are stored in a subdirectory of
1568 ;; python's site-packages directory. Add a .pth file so
1569 ;; that python will add that subdirectory to its module
1571 (let* ((out (assoc-ref outputs "out"))
1572 (site (string-append out "/lib/python"
1573 ,(version-major+minor
1574 (package-version python-2))
1576 (call-with-output-file (string-append site "/pygtk.pth")
1578 (format port "gtk-2.0~%")))))))))
1579 (home-page "http://www.pygtk.org/")
1580 (synopsis "Python bindings for GTK+")
1582 "PyGTK allows you to write full featured GTK programs in Python. It is
1583 targeted at GTK 2.x, and can be used in conjunction with gnome-python to
1584 write GNOME applications.")
1585 (license license:lgpl2.1+)))
1587 (define-public perl-cairo
1594 "mirror://cpan/authors/id/X/XA/XAOC/Cairo-"
1598 "1nh5iya63q6j2w0cdi24x2ygpi8k8wwccnbh8cisnx8nqmywnhk0"))))
1599 (build-system perl-build-system)
1601 `(("perl-extutils-depends" ,perl-extutils-depends)
1602 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1604 `(("cairo" ,cairo)))
1605 (home-page "https://metacpan.org/release/Cairo")
1606 (synopsis "Perl interface to the cairo 2d vector graphics library")
1607 (description "Cairo provides Perl bindings for the vector graphics library
1608 cairo. It supports multiple output targets, including PNG, PDF and SVG. Cairo
1609 produces identical output on all those targets.")
1610 (license license:lgpl2.1+)))
1612 (define-public perl-gtk2
1618 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Gtk2-"
1622 "0ry9jfvfgdwzalxcvwsgr7plhk3agx7p40l0fqdf3vrf7ds47i29"))))
1623 (build-system perl-build-system)
1625 `(("perl-extutils-depends" ,perl-extutils-depends)
1626 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1628 `(("gtk+" ,gtk+-2)))
1630 `(("perl-pango" ,perl-pango)))
1633 (modify-phases %standard-phases
1634 (add-before 'build 'remove-broken-test
1635 ;; See https://gitlab.gnome.org/GNOME/perl-gtk2/issues/3.
1637 (substitute* "t/GdkPixbuf.t"
1638 (("tests => 112") "tests => 111")
1639 (("ok \\(defined \\$pixbuf, \"Don't crash on partial pixmap data\"\\);")
1640 "# ok (defined $pixbuf, \"Don't crash on partial pixmap data\");")))))))
1641 (home-page "https://metacpan.org/release/Gtk2")
1642 (synopsis "Perl interface to the 2.x series of the Gimp Toolkit library")
1643 (description "Perl bindings to the 2.x series of the Gtk+ widget set.
1644 This module allows you to write graphical user interfaces in a Perlish and
1645 object-oriented way, freeing you from the casting and memory management in C,
1646 yet remaining very close in spirit to original API.")
1647 (license license:lgpl2.1+)))
1649 (define-public perl-pango
1655 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Pango-"
1659 "0wdcidnfnb6nm79fzfs39ivawj3x8m98a147fmcxgv1zvwia9c1l"))))
1660 (build-system perl-build-system)
1662 `(("perl-extutils-depends" ,perl-extutils-depends)
1663 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1665 `(("pango" ,pango)))
1667 `(("perl-cairo" ,perl-cairo)
1668 ("perl-glib" ,perl-glib)))
1669 (home-page "https://metacpan.org/release/Pango")
1670 (synopsis "Layout and render international text")
1671 (description "Pango is a library for laying out and rendering text, with an
1672 emphasis on internationalization. Pango can be used anywhere that text layout
1673 is needed, but using Pango in conjunction with Cairo and/or Gtk2 provides a
1674 complete solution with high quality text handling and graphics rendering.
1676 Dynamically loaded modules handle text layout for particular combinations of
1677 script and font backend. Pango provides a wide selection of modules, including
1678 modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts.
1679 Virtually all of the world's major scripts are supported.
1681 In addition to the low level layout rendering routines, Pango includes
1682 @code{Pango::Layout}, a high level driver for laying out entire blocks of text,
1683 and routines to assist in editing internationalized text.")
1684 (license license:lgpl2.1+)))
1686 (define-public girara
1694 (url "https://git.pwmt.org/pwmt/girara")
1696 (file-name (git-file-name name version))
1698 (base32 "08rpw9hkaprm4r853xy1d35i2af1pji8c3mzzl01mmwmyr9p0x8k"))))
1699 (native-inputs `(("pkg-config" ,pkg-config)
1700 ("check" ,check-0.14)
1701 ("gettext" ,gettext-minimal)
1702 ("glib:bin" ,glib "bin")
1703 ("xorg-server" ,xorg-server-for-tests)))
1704 ;; Listed in 'Requires.private' of 'girara.pc'.
1705 (propagated-inputs `(("gtk+" ,gtk+)))
1707 `(#:phases (modify-phases %standard-phases
1708 (add-before 'check 'start-xserver
1709 ;; Tests require a running X server.
1710 (lambda* (#:key inputs #:allow-other-keys)
1711 (let ((xorg-server (assoc-ref inputs "xorg-server"))
1713 (setenv "DISPLAY" display)
1715 ;; On busy machines, tests may take longer than
1716 ;; the default of four seconds.
1717 (setenv "CK_DEFAULT_TIMEOUT" "20")
1719 ;; Don't fail due to missing '/etc/machine-id'.
1720 (setenv "DBUS_FATAL_WARNINGS" "0")
1721 (zero? (system (string-append xorg-server "/bin/Xvfb "
1722 display " &")))))))))
1723 (build-system meson-build-system)
1724 (home-page "https://pwmt.org/projects/girara/")
1725 (synopsis "Library for minimalistic gtk+3 user interfaces")
1726 (description "Girara is a library that implements a user interface that
1727 focuses on simplicity and minimalism. Currently based on GTK+, a
1728 cross-platform widget toolkit, it provides an interface that focuses on three
1729 main components: a so-called view widget that represents the actual
1730 application, an input bar that is used to execute commands of the
1731 application and the status bar which provides the user with current
1733 (license license:zlib)))
1735 (define-public gtk-doc
1741 (uri (string-append "mirror://gnome/sources/" name "/"
1742 (version-major+minor version) "/"
1743 name "-" version ".tar.xz"))
1746 "05apmwibkmn1icx05l8aw241lhymcx01zvk5i499cb150bijj7li"))))
1747 (build-system gnu-build-system)
1749 `(#:parallel-tests? #f
1751 (modify-phases %standard-phases
1752 (add-after 'unpack 'patch-gtk-doc-scan
1753 (lambda* (#:key inputs #:allow-other-keys)
1754 (substitute* "gtk-doc.xsl"
1755 (("http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl")
1756 (string-append (assoc-ref inputs "docbook-xsl")
1757 "/xml/xsl/docbook-xsl-"
1758 ,(package-version docbook-xsl)
1760 (("http://docbook.sourceforge.net/release/xsl/current/common/en.xml")
1761 (string-append (assoc-ref inputs "docbook-xsl")
1762 "/xml/xsl/docbook-xsl-"
1763 ,(package-version docbook-xsl)
1766 (add-after 'patch-gtk-doc-scan 'patch-test-out
1768 ;; sanity.sh counts the number of status lines. Since our
1769 ;; texlive regenerates the fonts every time and the font
1770 ;; generator metafont outputs a lot of extra lines, this
1771 ;; test would always fail. Disable it for now.
1772 (substitute* "tests/Makefile.in"
1773 (("empty.sh sanity.sh") "empty.sh"))
1775 (add-before 'build 'set-HOME
1777 ;; FIXME: dblatex with texlive-union does not find the built
1778 ;; metafonts, so it tries to generate them in HOME.
1779 (setenv "HOME" "/tmp")
1781 (add-before 'configure 'fix-docbook
1782 (lambda* (#:key inputs #:allow-other-keys)
1783 (substitute* "configure"
1784 ;; The configure check is overzealous about making sure that
1785 ;; things are in place -- it uses the xmlcatalog tool to make
1786 ;; sure that docbook-xsl is available, but this tool can only
1787 ;; look in one catalog file, unlike the $XML_CATALOG_FILES
1788 ;; variable that Guix defines. Fool the test by using the
1789 ;; docbook-xsl catalog explicitly and get on with life.
1790 (("\"\\$XML_CATALOG_FILE\" \
1791 \"http://docbook.sourceforge.net/release/xsl/")
1792 (string-append (car (find-files (assoc-ref inputs "docbook-xsl")
1794 " \"http://docbook.sourceforge.net/release/xsl/")))
1796 (add-after 'install 'wrap-executables
1797 (lambda* (#:key outputs #:allow-other-keys)
1798 (let ((out (assoc-ref outputs "out")))
1799 (for-each (lambda (prog)
1801 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))))
1802 (find-files (string-append out "/bin")))
1805 (list (string-append "--with-xml-catalog="
1806 (assoc-ref %build-inputs "docbook-xml")
1807 "/xml/dtd/docbook/catalog.xml"))))
1809 `(("pkg-config" ,pkg-config)
1810 ("itstool" ,itstool)
1812 ("gettext" ,gettext-minimal)
1817 ("xsltproc" ,libxslt)
1818 ("dblatex" ,dblatex)
1819 ("docbook-xml" ,docbook-xml-4.3)
1820 ("docbook-xsl" ,docbook-xsl)
1821 ("source-highlight" ,source-highlight)
1823 ("python-six" ,python-six)))
1824 (home-page "https://www.gtk.org/gtk-doc/")
1825 (synopsis "Documentation generator from C source code")
1827 "GTK-Doc generates API documentation from comments added to C code. It is
1828 typically used to document the public API of GTK+ and GNOME libraries, but it
1829 can also be used to document application code.")
1830 (license license:gpl2+)))
1832 (define-public gtk-engines
1834 (name "gtk-engines")
1838 (uri (string-append "mirror://gnome/sources/" name "/"
1839 (version-major+minor version) "/"
1840 name "-" version ".tar.bz2"))
1843 "1db65pb0j0mijmswrvpgkdabilqd23x22d95hp5kwxvcramq1dhm"))))
1844 (build-system gnu-build-system)
1847 `("--enable-animation")))
1849 `(("pkg-config" ,pkg-config)
1850 ("intltool" ,intltool)))
1852 ;; Don't propagate GTK+ to reduce "profile pollution".
1853 `(("gtk+" ,gtk+-2))) ; required by gtk-engines-2.pc
1854 (home-page "https://live.gnome.org/GnomeArt")
1855 (synopsis "Theming engines for GTK+ 2.x")
1857 "This package contains the standard GTK+ 2.x theming engines including
1858 Clearlooks, Crux, High Contrast, Industrial, LighthouseBlue, Metal, Mist,
1859 Redmond95 and ThinIce.")
1860 (license (list license:gpl2+ license:lgpl2.1+))))
1862 (define-public murrine
1868 (uri (string-append "mirror://gnome/sources/" name "/"
1869 (version-major+minor version) "/"
1870 name "-" version ".tar.xz"))
1873 "129cs5bqw23i76h3nmc29c9mqkm9460iwc8vkl7hs4xr07h8mip9"))))
1874 (build-system gnu-build-system)
1877 `("--enable-animation"
1878 "--enable-animationrtl")))
1880 `(("pkg-config" ,pkg-config)
1881 ("intltool" ,intltool)))
1883 `(("gtk+" ,gtk+-2)))
1884 (home-page "https://live.gnome.org/GnomeArt")
1885 (synopsis "Cairo-based theming engine for GTK+ 2.x")
1887 "Murrine is a cairo-based GTK+ theming engine. It is named after the
1888 glass artworks done by Venicians glass blowers.")
1889 (license license:gpl2+)))
1891 (define-public gtkspell3
1897 (uri (string-append "mirror://sourceforge/gtkspell/"
1898 version "/" name "-" version ".tar.xz"))
1901 "0cjp6xdcnzh6kka42w9g0w2ihqjlq8yl8hjm9wsfnixk6qwgch5h"))))
1902 (build-system gnu-build-system)
1904 `(("intltool" ,intltool)
1905 ("pkg-config" ,pkg-config)
1908 `(("gobject-introspection" ,gobject-introspection)
1912 `(("enchant" ,enchant))) ; gtkspell3-3.0.pc refers to it
1913 (home-page "http://gtkspell.sourceforge.net")
1914 (synopsis "Spell-checking addon for GTK's TextView widget")
1916 "GtkSpell provides word-processor-style highlighting and replacement of
1917 misspelled words in a GtkTextView widget.")
1918 (license license:gpl2+)))
1920 (define-public clipit
1928 (url "https://github.com/CristianHenzel/ClipIt")
1929 (commit (string-append "v" version))))
1930 (file-name (git-file-name name version))
1932 (base32 "05xi29v2y0rvb33fmvrz7r9j4l858qj7ngwd7dp4pzpkkaybjln0"))))
1933 (build-system gnu-build-system)
1935 `(("autoconf" ,autoconf)
1936 ("automake" ,automake)
1937 ("intltool" ,intltool)
1938 ("pkg-config" ,pkg-config)))
1940 `(("gtk+" ,gtk+-2)))
1941 (home-page "https://github.com/CristianHenzel/ClipIt")
1942 (synopsis "Lightweight GTK+ clipboard manager")
1944 "ClipIt is a clipboard manager with features such as a history, search
1945 thereof, global hotkeys and clipboard item actions. It was forked from
1946 Parcellite and adds bugfixes and features.")
1947 (license license:gpl2+)))
1949 (define-public graphene
1958 (url "https://github.com/ebassi/graphene.git")
1960 (file-name (git-file-name name version))
1962 (base32 "14a0j1rvjlc7yhfdmhmckdmkzy4ch61qbzywdlw1xv58h23wx29p"))))
1963 (build-system meson-build-system)
1965 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
1968 "-Dinstalled_tests=false")))
1970 `(("git" ,git-minimal)
1971 ("gobject-introspection" ,gobject-introspection)
1973 ("pkg-config" ,pkg-config)))
1976 ("python" ,python)))
1977 (synopsis "Thin layer of graphic data types")
1978 (description "Graphene provides graphic types and their relative API; it
1979 does not deal with windowing system surfaces, drawing, scene graphs, or input.")
1980 (home-page "https://ebassi.github.io/graphene/")
1981 (license license:expat)))
1983 (define-public spread-sheet-widget
1985 (name "spread-sheet-widget")
1990 (uri (string-append "https://alpha.gnu.org/gnu/ssw/"
1991 "spread-sheet-widget-" version ".tar.gz"))
1993 (base32 "09rzgp7gabnzab460x874a1ibgyjiibpwzsz5srn9zs6jv2jdxjb"))))
1994 (build-system gnu-build-system)
1996 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
1997 ("pkg-config" ,pkg-config)))
1998 ;; In 'Requires' of spread-sheet-widget.pc.
2002 (home-page "https://www.gnu.org/software/ssw/")
2003 (synopsis "Gtk+ widget for dealing with 2-D tabular data")
2005 "GNU Spread Sheet Widget is a library for Gtk+ which provides a widget for
2006 viewing and manipulating 2 dimensional tabular data in a manner similar to many
2007 popular spread sheet programs.")
2008 (license license:gpl3+)))
2010 (define-public volumeicon
2017 (uri (string-append "http://nullwise.com/files/volumeicon/volumeicon-"
2020 (base32 "182xl2w8syv6ky2h2bc9imc6ap8pzh0p7rp63hh8nw0xm38c3f14"))))
2021 (build-system gnu-build-system)
2024 (list "--enable-notify"))) ; optional libnotify support
2026 `(("intltool" ,intltool)
2027 ("pkg-config" ,pkg-config)))
2029 `(("alsa-lib" ,alsa-lib)
2031 ("libnotify" ,libnotify)))
2032 (home-page "http://nullwise.com/volumeicon.html")
2033 (synopsis "System tray volume applet")
2035 "Volume Icon is a volume indicator and control applet for @acronym{the
2036 Advanced Linux Sound Architecture, ALSA}. It sits in the system tray,
2037 independent of your desktop environment, and supports global key bindings.")
2038 (license (list license:expat ; src/{bind.c,keybinder.h}
2039 license:isc ; src/alsa_volume_mapping.c
2040 license:gpl3)))) ; the rest & combined work
2050 (url "https://github.com/v1cont/yad")
2051 (commit (string-append "v" version))))
2052 (file-name (git-file-name name version))
2054 (base32 "07rd61hvilsxxrj7lf8c9k0a8glj07s48m7ya8d45030r90g3lvc"))))
2055 (build-system glib-or-gtk-build-system)
2058 ;; Passing --enable-foo will silently disable foo if prerequisite
2059 ;; inputs are missing, not abort the build as one might expect.
2060 ;; ‘--enable-html’ adds a huge webkitgtk dependency. It was never
2061 ;; present in the past and nobody complained.
2062 '("--enable-icon-browser"
2063 "--enable-spell") ; gspell checking support
2065 (modify-phases %standard-phases
2066 (add-after 'bootstrap 'intltoolize
2068 (invoke "intltoolize" "--force" "--automake"))))))
2070 `(("gspell" ,gspell)
2073 `(("autoconf" ,autoconf)
2074 ("automake" ,automake)
2075 ("intltool" ,intltool)
2076 ("pkg-config" ,pkg-config)))
2077 (home-page "https://sourceforge.net/projects/yad-dialog/")
2078 (synopsis "GTK+ dialog boxes for shell scripts")
2080 "This program allows you to display GTK+ dialog boxes from command line or
2081 shell scripts. Example of how to use @code{yad} can be consulted at
2082 @url{https://sourceforge.net/p/yad-dialog/wiki/browse_pages/}.")
2083 (license license:gpl3+)))
2085 (define-public dragon-drop
2087 (name "dragon-drop")
2093 (url "https://github.com/mwh/dragon")
2094 (commit (string-append "v" version))))
2095 (file-name (git-file-name name version))
2098 "0fgzz39007fdjwq72scp0qygp2v3zc5f1xkm0sxaa8zxm25g1bra"))))
2099 (build-system gnu-build-system)
2100 (inputs `(("gtk+" ,gtk+)))
2101 (native-inputs `(("pkg-config" ,pkg-config)))
2103 `(#:tests? #f ; no check
2105 (list (string-append "CC=" ,(cc-for-target))
2106 ;; makefile uses PREFIX for the binary location
2107 (string-append "PREFIX=" (assoc-ref %outputs "out")
2110 (modify-phases %standard-phases
2111 (delete 'configure)))) ; no configure script
2112 (synopsis "Drag and drop source/target for X")
2114 "Dragon is a lightweight drag-and-drop source for X where you can run:
2120 to get a window with just that file in it, ready to be dragged where you need it.
2121 What if you need to drag into something? Using:
2127 you get a window you can drag files and text into. Dropped items are
2128 printed to standard output.")
2129 (home-page "https://github.com/mwh/dragon")
2130 (license license:gpl3+)))
2132 (define-public libdbusmenu
2134 (name "libdbusmenu")
2139 (uri (string-append "https://launchpad.net/libdbusmenu/"
2140 (version-major+minor version) "/" version
2141 "/+download/libdbusmenu-" version ".tar.gz"))
2143 (base32 "12l7z8dhl917iy9h02sxmpclnhkdjryn08r8i4sr8l3lrlm4mk5r"))))
2144 (build-system gnu-build-system)
2147 '("--sysconfdir=/etc"
2148 "--localstatedir=/var"
2149 ;; The shebang of the generated test files should be patched before
2153 `(,(string-append "typelibdir=" (assoc-ref %outputs "out")
2154 "/lib/girepository-1.0"))
2156 (modify-phases %standard-phases
2157 (add-before 'configure 'do-not-treat-warnings-as-errors
2159 ;; Prevent the build from failing due to deprecation warnings
2160 ;; from newer GLib and GTK versions.
2161 (substitute* (find-files "." "^Makefile.in$")
2165 (add-before 'configure 'set-environment
2167 (setenv "HAVE_VALGRIND_TRUE" "")
2168 (setenv "HAVE_VALGRIND_FALSE" "#")
2173 ("gtk+-2" ,gtk+-2)))
2175 `(("glib:bin" ,glib "bin")
2176 ("gnome-doc-utils" ,gnome-doc-utils)
2177 ("gobject-introspection" ,gobject-introspection)
2178 ("intltool" ,intltool)
2179 ("json-glib" ,json-glib)
2180 ("pkg-config" ,pkg-config)
2181 ("python" ,python-2)
2183 (home-page "https://launchpad.net/libdbusmenu")
2184 (synopsis "Library for passing menus over DBus")
2185 (description "@code{libdbusmenu} passes a menu structure across DBus so
2186 that a program can create a menu simply without worrying about how it is
2187 displayed on the other side of the bus.")
2189 ;; Dual-licensed under either LGPLv2.1 or LGPLv3.
2190 (license (list license:lgpl2.1 license:lgpl3))))
2192 (define-public gtk-layer-shell
2194 (name "gtk-layer-shell")
2200 "https://github.com/wmww/gtk-layer-shell/releases/download/v"
2201 version "/gtk-layer-shell-" version ".tar.xz"))
2203 (base32 "0ncklk3z0fzlz6p76jdcrr1ykyp1f4ykjjch4x2hfp9bwsnl4a3m"))))
2204 (build-system meson-build-system)
2205 (native-inputs `(("pkg-config" ,pkg-config)
2206 ("gobject-introspection" ,gobject-introspection)))
2207 (inputs `(("wayland" ,wayland)
2209 (home-page "https://github.com/wmww/gtk-layer-shell")
2210 (synopsis "Library to create Wayland desktop components using the Layer
2212 (description "Layer Shell is a Wayland protocol for desktop shell
2213 components, such as panels, notifications and wallpapers. It can be used to
2214 anchor windows to a corner or edge of the output, or stretch them across the
2215 entire output. It supports all Layer Shell features including popups and
2217 (license license:expat)))
2219 (define-public goocanvas
2226 (uri (string-append "mirror://gnome/sources/goocanvas/"
2227 (version-major+minor version)
2228 "/goocanvas-" version ".tar.xz"))
2230 (base32 "141fm7mbqib0011zmkv3g8vxcjwa7hypmq71ahdyhnj2sjvy4a67"))))
2231 (build-system gnu-build-system)
2233 `(("gettext" ,gettext-minimal)
2234 ("glib-bin" ,glib "bin")
2235 ("gobject-introspection" ,gobject-introspection)
2236 ("gtk-doc" ,gtk-doc)
2237 ("pkg-config" ,pkg-config)
2238 ("python" ,python)))
2243 ("python-pygobject" ,python-pygobject)))
2245 `(#:configure-flags '("--disable-rebuilds"
2248 (modify-phases %standard-phases
2249 (add-after 'unpack 'fix-install-path
2250 (lambda* (#:key inputs outputs #:allow-other-keys)
2251 (substitute* "configure"
2252 (("\\(gi._overridesdir\\)")
2253 (string-append "((gi._overridesdir).replace(\\\""
2254 (assoc-ref inputs "python-pygobject")
2256 (assoc-ref outputs "out")
2259 (synopsis "Canvas widget for GTK+")
2260 (description "GooCanvas is a canvas widget for GTK+ that uses the cairo 2D
2261 library for drawing.")
2262 (home-page "https://wiki.gnome.org/GooCanvas")
2263 (license license:lgpl2.0)))
2265 (define-public gtksheet
2273 (url "https://github.com/fpaquet/gtksheet")
2274 (commit (string-append "V" version))))
2275 (file-name (git-file-name name version))
2278 "13jwr1vly4ga3f09dajwky1cdrz5bmggwga3vnnd6j6zzia7dpyr"))))
2279 (build-system gnu-build-system)
2281 `(#:configure-flags (list "--enable-glade"
2282 "--enable-introspection")
2284 (modify-phases %standard-phases
2285 ;; The "configure" script is present, but otherwise the project is
2286 ;; not bootstrapped properly. Delete configure so the bootstrap phase
2288 (add-after 'unpack 'delete-configure
2290 (delete-file "configure")
2292 (add-after 'unpack 'rename-type
2294 (substitute* "glade/glade-gtksheet-editor.c"
2295 (("GladeEditableIface") "GladeEditableInterface"))
2297 ;; Fix glade install directories.
2298 (add-before 'bootstrap 'configure-glade-directories
2299 (lambda* (#:key outputs #:allow-other-keys)
2300 (substitute* "configure.ac"
2301 (("`\\$PKG_CONFIG --variable=catalogdir gladeui-2.0`")
2302 (string-append (assoc-ref outputs "out") "/share/glade/catalogs"))
2303 (("`\\$PKG_CONFIG --variable=moduledir gladeui-2.0`")
2304 (string-append (assoc-ref outputs "out") "/lib/glade/modules"))
2305 (("`\\$PKG_CONFIG --variable=pixmapdir gladeui-2.0`")
2306 (string-append (assoc-ref outputs "out") "/share/pixmaps")))
2312 ("libxml2" ,libxml2)))
2314 `(("autoconf" ,autoconf)
2315 ("automake" ,automake)
2316 ("gobject-introspection" ,gobject-introspection)
2317 ("libtool" ,libtool)
2318 ("pkg-config" ,pkg-config)))
2319 (home-page "https://fpaquet.github.io/gtksheet/")
2320 (synopsis "Spreadsheet widget for GTK+")
2321 (description "GtkSheet is a matrix widget for GTK+. It consists of an
2322 scrollable grid of cells where you can allocate text. Cell contents can be
2323 edited interactively through a specially designed entry, GtkItemEntry. It is
2324 also a container subclass, allowing you to display buttons, images and any
2325 other widget in it. You can also set many attributes such as border,
2326 foreground and background colors, text justification and more.")
2327 (native-search-paths
2329 (search-path-specification
2330 (variable "GLADE_CATALOG_SEARCH_PATH")
2331 (files '("share/glade/catalogs")))
2332 (search-path-specification
2333 (variable "GLADE_MODULE_SEARCH_PATH")
2334 (files '("lib/glade/modules")))))
2335 (license license:lgpl2.0+)))
2337 (define-public gtkdatabox
2343 (uri (string-append "mirror://sourceforge/gtkdatabox/gtkdatabox/"
2344 version "/gtkdatabox-" version ".tar.gz"))
2347 "1rdxnjgh6v3yjqgsfmamyzpfxckzchps4kqvvz88nifmd7ckhjfh"))))
2348 (build-system gnu-build-system)
2350 `(("pkg-config" ,pkg-config)))
2352 `(("gtk+-2" ,gtk+-2)))
2353 (synopsis "Display widget for dynamic data")
2354 (description "GtkDatabox is a widget for live display of large amounts of
2355 fluctuating numerical data. It enables data presentation (for example, on
2356 linear or logarithmic scales, as dots or lines, with markers/labels) as well as
2357 user interaction (e.g. measuring distances).")
2358 (home-page "https://sourceforge.net/projects/gtkdatabox/")
2359 (license license:lgpl2.1+)))