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, 2021 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–2021 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>
29 ;;; Copyright © 2021 Simon Streit <simon@netpanic.org>
31 ;;; This file is part of GNU Guix.
33 ;;; GNU Guix is free software; you can redistribute it and/or modify it
34 ;;; under the terms of the GNU General Public License as published by
35 ;;; the Free Software Foundation; either version 3 of the License, or (at
36 ;;; your option) any later version.
38 ;;; GNU Guix is distributed in the hope that it will be useful, but
39 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
40 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41 ;;; GNU General Public License for more details.
43 ;;; You should have received a copy of the GNU General Public License
44 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
46 (define-module (gnu packages gtk)
47 #:use-module ((guix licenses) #:prefix license:)
48 #:use-module (guix utils)
49 #:use-module (guix packages)
50 #:use-module (guix download)
51 #:use-module (guix git-download)
52 #:use-module ((guix build utils) #:select (alist-replace))
53 #:use-module (guix build-system glib-or-gtk)
54 #:use-module (guix build-system gnu)
55 #:use-module (guix build-system meson)
56 #:use-module (guix build-system perl)
57 #:use-module (guix build-system python)
58 #:use-module (guix build-system waf)
59 #:use-module (gnu packages)
60 #:use-module (gnu packages algebra)
61 #:use-module (gnu packages autotools)
62 #:use-module (gnu packages base)
63 #:use-module (gnu packages texinfo)
64 #:use-module (gnu packages check)
65 #:use-module (gnu packages compression)
66 #:use-module (gnu packages docbook)
67 #:use-module (gnu packages documentation)
68 #:use-module (gnu packages enchant)
69 #:use-module (gnu packages fontutils)
70 #:use-module (gnu packages freedesktop)
71 #:use-module (gnu packages fribidi)
72 #:use-module (gnu packages gettext)
73 #:use-module (gnu packages ghostscript)
74 #:use-module (gnu packages gl)
75 #:use-module (gnu packages glib)
76 #:use-module (gnu packages gnome)
77 #:use-module (gnu packages icu4c)
78 #:use-module (gnu packages image)
79 #:use-module (gnu packages libffi)
80 #:use-module (gnu packages linux)
81 #:use-module (gnu packages pdf)
82 #:use-module (gnu packages perl)
83 #:use-module (gnu packages pkg-config)
84 #:use-module (gnu packages pretty-print)
85 #:use-module (gnu packages python)
86 #:use-module (gnu packages python-xyz)
87 #:use-module (gnu packages guile)
88 #:use-module (gnu packages guile-xyz)
89 #:use-module (gnu packages cups)
90 #:use-module (gnu packages version-control)
91 #:use-module (gnu packages xml)
92 #:use-module (gnu packages xorg)
93 #:use-module (gnu packages xdisorg)
94 #:use-module (gnu packages pulseaudio)
95 #:use-module (srfi srfi-1)
96 #:use-module (srfi srfi-26)
97 #:use-module (ice-9 match))
105 (uri (string-append "mirror://gnome/sources/" name "/"
106 (version-major+minor version) "/"
107 name "-" version ".tar.xz"))
110 "1jwp16r6p5z66k4b2v8zlzhyshhwlmyi27ippkrgqr8jsary7w6l"))))
111 (build-system meson-build-system)
112 (propagated-inputs `(("glib" ,glib))) ; required by atk.pc
114 `(("pkg-config" ,pkg-config)
115 ("gettext" ,gettext-minimal)
116 ("glib" ,glib "bin") ; glib-mkenums, etc.
117 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
118 (synopsis "GNOME accessibility toolkit")
120 "ATK provides the set of accessibility interfaces that are implemented
121 by other toolkits and applications. Using the ATK interfaces, accessibility
122 tools have full access to view and control running applications.")
123 (license license:lgpl2.0+)
124 (home-page "https://developer.gnome.org/atk/")))
132 (uri (string-append "https://cairographics.org/releases/cairo-"
134 (patches (search-patches "cairo-CVE-2018-19876.patch"
135 "cairo-CVE-2020-35492.patch"))
138 "0c930mk5xr2bshbdljv005j3j8zr47gqmkry3q6qgvqky6rjjysy"))))
139 (build-system gnu-build-system)
141 `(("fontconfig" ,fontconfig)
142 ("freetype" ,freetype)
147 ("libxrender" ,libxrender)
150 `(("ghostscript" ,ghostscript)
151 ("libspectre" ,libspectre)
153 ("xorgproto" ,xorgproto)
156 `(("pkg-config" ,pkg-config)
157 ("python" ,python-wrapper)))
159 `(#:tests? #f ; see http://lists.gnu.org/archive/html/bug-guix/2013-06/msg00085.html
160 #:configure-flags '("--enable-tee" ;needed for GNU Icecat
161 "--enable-xml" ;for cairo-xml support
162 "--disable-static")))
163 (synopsis "2D graphics library")
165 "Cairo is a 2D graphics library with support for multiple output devices.
166 Currently supported output targets include the X Window System (via both
167 Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file
168 output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.
170 Cairo is designed to produce consistent output on all output media while
171 taking advantage of display hardware acceleration when available
172 eg. through the X Render Extension).
174 The cairo API provides operations similar to the drawing operators of
175 PostScript and PDF. Operations in cairo including stroking and filling cubic
176 Bézier splines, transforming and compositing translucent images, and
177 antialiased text rendering. All drawing operations can be transformed by any
178 affine transformation (scale, rotation, shear, etc.).")
179 (license license:lgpl2.1) ; or Mozilla Public License 1.1
180 (home-page "https://cairographics.org/")))
182 (define-public cairo-sans-poppler
183 ;; Variant used to break the dependency cycle between Poppler and Cairo.
184 (package/inherit cairo
185 (inputs (alist-delete "poppler" (package-inputs cairo)))
186 (properties `((hidden? . #t)))))
188 (define-public cairo-xcb
189 (package/inherit cairo
193 ,@(package-inputs cairo)))
197 '("--enable-xlib-xcb" "--enable-gl" "--enable-egl")))
198 (synopsis "2D graphics library (with X11 support)")))
200 (define-public harfbuzz
206 (uri (string-append "https://www.freedesktop.org/software/"
207 "harfbuzz/release/harfbuzz-"
211 "04iwq13w6zkdhljmsxrzgg4fyh04qnwfn57rgrl9kmijc7cvh4wl"))))
212 (build-system gnu-build-system)
214 "bin")) ; 160K, only hb-view depend on cairo
218 ;; There are all in the Requires or Requires.private field of '.pc'.
220 ("graphite2" ,graphite2)
223 `(("glib:bin" ,glib "bin") ;for glib-mkenums
224 ("gobject-introspection" ,gobject-introspection)
225 ("pkg-config" ,pkg-config)
226 ("python" ,python-wrapper)
229 `(#:configure-flags `("--with-graphite2"
232 "--bindir=" (assoc-ref %outputs "bin") "/bin"))))
233 (synopsis "OpenType text shaping engine")
235 "HarfBuzz is an OpenType text shaping engine.")
236 (license (license:x11-style "file://COPYING"
237 "See 'COPYING' in the distribution."))
238 (home-page "https://www.freedesktop.org/wiki/Software/HarfBuzz/")))
240 (define-public libdatrie
248 (string-append "https://linux.thai.net/pub/ThaiLinux/software/"
249 "libthai/libdatrie-" version ".tar.xz"))
251 (base32 "1gplcx9ddglpxmqm10qn38kjmvdh4hnhj14rzgqag095psr1n8qj"))))
252 (build-system gnu-build-system)
253 (outputs '("out" "doc"))
257 (string-append "--with-html-docdir="
258 (assoc-ref %outputs "doc")
259 "/share/doc/datrie/html"))))
261 `(("doxygen" ,doxygen)
262 ("pkg-config" ,pkg-config)))
263 (synopsis "Double-Array Trie Library")
264 (description "Libdatrie is an implementation of double-array structure for
265 representing trie. Trie is a kind of digital search tree.")
266 (home-page "https://linux.thai.net/~thep/datrie/datrie.html")
267 (license license:lgpl2.1+)))
269 (define-public libthai
277 (string-append "https://linux.thai.net/pub/thailinux/software/"
278 "libthai/libthai-" version ".tar.xz"))
280 (base32 "04g93bgxrcnay9fglpq2lj9nr7x1xh06i60m7haip8as9dxs3q7z"))))
281 (build-system gnu-build-system)
282 (outputs '("out" "doc"))
286 (string-append "--with-html-docdir="
287 (assoc-ref %outputs "doc")
288 "/share/doc/libthai/html"))))
290 `(("doxygen" ,doxygen)
291 ("pkg-config" ,pkg-config)))
293 `(("datrie" ,libdatrie)))
294 (synopsis "Thai language support library")
295 (description "LibThai is a set of Thai language support routines aimed to
296 ease developers’ tasks to incorporate Thai language support in their
298 (home-page "https://linux.thai.net/projects/libthai")
299 (license license:lgpl2.1+)))
307 (uri (string-append "mirror://gnome/sources/pango/"
308 (version-major+minor version) "/"
309 name "-" version ".tar.xz"))
310 (patches (search-patches "pango-skip-libthai-test.patch"))
313 "07qvxa2sk90chp1l12han6vxvy098mc37sdqcznyywyv2g6bd9b6"))))
314 (build-system meson-build-system)
316 '(#:phases (modify-phases %standard-phases
317 (add-after 'unpack 'disable-cantarell-tests
319 (substitute* "tests/meson.build"
320 ;; XXX FIXME: These tests require "font-cantarell", but
321 ;; adding it here would introduce a circular dependency.
322 (("\\[ 'test-harfbuzz'.*") "")
323 (("\\[ 'test-itemize'.*") "")
324 (("\\[ 'test-layout'.*") ""))
327 ;; These are all in Requires or Requires.private of the '.pc' files.
330 ("fontconfig" ,fontconfig)
331 ("freetype" ,freetype)
333 ("harfbuzz" ,harfbuzz)
335 ;; Some packages, such as Openbox, expect Pango to be built with the
336 ;; optional libxft support.
341 `(("pkg-config" ,pkg-config)
342 ("glib" ,glib "bin") ; glib-mkenums, etc.
343 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
344 (synopsis "GNOME text and font handling library")
346 "Pango is the core text and font handling library used in GNOME
347 applications. It has extensive support for the different writing systems
348 used throughout the world.")
349 (license license:lgpl2.0+)
350 (home-page "https://developer.gnome.org/pango/")))
352 (define-public pango-1.42
358 (uri (string-append "mirror://gnome/sources/pango/"
359 (version-major+minor version) "/"
360 "pango-" version ".tar.xz"))
363 "17bwb7dgbncrfsmchlib03k9n3xaalirb39g3yb43gg8cg6p8aqx"))))
364 (build-system gnu-build-system)
366 '(#:phases (modify-phases %standard-phases
367 (add-after 'configure 'disable-layout-test
369 ;; This test requires that fontconfig uses bitmap fonts
370 ;; such as "gs-fonts"; however providing such a package
371 ;; alone is not enough, as the requirement comes from
372 ;; deeper in the font stack. Since this version of Pango
373 ;; is only used for librsvg, simply disable the test.
374 (substitute* "tests/Makefile"
375 (("test-layout\\$\\(EXEEXT\\)") ""))
378 (define-public pangox-compat
380 (name "pangox-compat")
384 (uri (string-append "mirror://gnome/sources/" name "/"
385 (version-major+minor version) "/"
386 name "-" version ".tar.xz"))
389 "0ip0ziys6mrqqmz4n71ays0kf5cs1xflj1gfpvs4fgy2nsrr482m"))))
390 (build-system gnu-build-system)
393 ("pango" ,pango-1.42)))
395 `(("intltool" ,intltool)
396 ("pkg-config" ,pkg-config)))
397 (home-page "https://developer.gnome.org/pango")
398 (synopsis "Obsolete pango functions")
399 (description "Pangox was a X backend to pango. It is now obsolete and no
400 longer provided by recent pango releases. pangox-compat provides the
401 functions which were removed.")
402 (license license:lgpl2.0+)))
410 (uri (string-append "https://download.drobilla.net/ganv-"
414 "0pik2d3995z0rjcjhb4hsj5fsph3m8khg6j10k6mx4j2j727aq6l"))))
415 (build-system waf-build-system)
418 (modify-phases %standard-phases
419 (add-before 'configure 'set-flags
420 (lambda* (#:key outputs #:allow-other-keys)
421 ;; Allow 'bin/ganv_bench' to find libganv-1.so.
423 (string-append "-Wl,-rpath="
424 (assoc-ref outputs "out") "/lib"))
426 #:tests? #f)) ; no check target
431 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
432 ("pkg-config" ,pkg-config)))
433 (home-page "https://drobilla.net/software/ganv/")
434 (synopsis "GTK+ widget for interactive graph-like environments")
436 "Ganv is an interactive GTK+ widget for interactive “boxes and lines” or
437 graph-like environments, e.g. modular synths or finite state machine
439 (license license:gpl3+)))
441 (define-public gtksourceview-2
443 (name "gtksourceview")
444 (version "2.10.5") ; This is the last version which builds against gtk+2
447 (uri (string-append "mirror://gnome/sources/" name "/"
448 (version-major+minor version) "/"
449 name "-" version ".tar.bz2"))
452 "07hrabhpl6n8ajz10s0d960jdwndxs87szxyn428mpxi8cvpg1f5"))
455 "gtksourceview-2-add-default-directory.patch"))))
456 (build-system gnu-build-system)
458 `(("intltool" ,intltool)
459 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
460 ("pkg-config" ,pkg-config)
462 ("xorg-server" ,xorg-server-for-tests)
463 ("shared-mime-info" ,shared-mime-info)))
465 ;; As per the pkg-config file.
467 ("libxml2" ,libxml2)))
470 ;; Unfortunately, some of the tests in "make check" are highly dependent
471 ;; on the environment therefore, some black magic is required.
472 (modify-phases %standard-phases
473 (add-before 'check 'start-xserver
474 (lambda* (#:key inputs #:allow-other-keys)
475 (let ((xorg-server (assoc-ref inputs "xorg-server"))
476 (mime (assoc-ref inputs "shared-mime-info")))
478 ;; There must be a running X server and make check doesn't start one.
479 ;; Therefore we must do it.
480 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
481 (setenv "DISPLAY" ":1")
483 ;; The .lang files must be found in $XDG_DATA_HOME/gtksourceview-2.0
484 (system "ln -s gtksourceview gtksourceview-2.0")
485 (setenv "XDG_DATA_HOME" (getcwd))
487 ;; Finally, the mimetypes must be available.
488 (setenv "XDG_DATA_DIRS" (string-append mime "/share/")))
490 (synopsis "Widget that extends the standard GTK+ 2.x 'GtkTextView' widget")
492 "GtkSourceView is a portable C library that extends the standard GTK+
493 framework for multiline text editing with support for configurable syntax
494 highlighting, unlimited undo/redo, search and replace, a completion framework,
495 printing and other features typical of a source code editor.")
496 (license license:lgpl2.0+)
497 (home-page "https://developer.gnome.org/gtksourceview/")))
499 (define-public gtksourceview
501 (name "gtksourceview")
505 (uri (string-append "mirror://gnome/sources/gtksourceview/"
506 (version-major+minor version) "/"
507 "gtksourceview-" version ".tar.xz"))
510 "0xgnjj7jd56wbl99s76sa1vjq9bkz4mdsxwgwlcphg689liyncf4"))))
511 (build-system gnu-build-system)
514 (modify-phases %standard-phases
517 (lambda* (#:key inputs #:allow-other-keys)
518 (let ((xorg-server (assoc-ref inputs "xorg-server")))
519 ;; Tests require a running X server.
520 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
521 (setenv "DISPLAY" ":1")
522 ;; For the missing /etc/machine-id.
523 (setenv "DBUS_FATAL_WARNINGS" "0")
526 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
527 ("intltool" ,intltool)
529 ("gobject-introspection" ,gobject-introspection)
530 ("pkg-config" ,pkg-config)
533 ("xorg-server" ,xorg-server-for-tests)
534 ("shared-mime-info" ,shared-mime-info)))
536 ;; gtksourceview-3.0.pc refers to all these.
539 ("libxml2" ,libxml2)))
540 (home-page "https://wiki.gnome.org/Projects/GtkSourceView")
541 (synopsis "GNOME source code widget")
542 (description "GtkSourceView is a text widget that extends the standard
543 GTK+ text widget GtkTextView. It improves GtkTextView by implementing syntax
544 highlighting and other features typical of a source code editor.")
545 (license license:lgpl2.1+)))
547 (define-public gtksourceview-3
548 (package (inherit gtksourceview)
549 (name "gtksourceview")
553 (uri (string-append "mirror://gnome/sources/" name "/"
554 (version-major+minor version) "/"
555 name "-" version ".tar.xz"))
558 "16ym7jwiki4s1pilwr4incx0yg7ll94f1cajrnpndkxxs36hcm5b"))))))
560 (define-public gdk-pixbuf
566 (uri (string-append "mirror://gnome/sources/" name "/"
567 (version-major+minor version) "/"
568 name "-" version ".tar.xz"))
569 (patches (search-patches "gdk-pixbuf-CVE-2020-29385.patch"))
572 "1rnlx9yfw970maxi2x6niaxmih5la11q1ilr7gzshz2kk585k0hm"))))
573 (build-system meson-build-system)
575 `(#:configure-flags '("-Dinstalled_tests=false")
577 (modify-phases %standard-phases
579 'unpack 'disable-failing-tests
581 (substitute* "tests/meson.build"
582 ;; XXX FIXME: This test fails on armhf machines with:
583 ;; SKIP Not enough memory to load bitmap image
584 ;; ERROR: cve-2015-4491 - too few tests run (expected 4, got 2)
585 ((".*'cve-2015-4491'.*") "")
586 ;; XXX FIXME: This test fails with:
587 ;; ERROR:pixbuf-jpeg.c:74:test_type9_rotation_exif_tag:
588 ;; assertion failed (error == NULL): Data differ
589 ;; (gdk-pixbuf-error-quark, 0)
590 ((".*'pixbuf-jpeg'.*") ""))
592 ;; The slow tests take longer than the specified timeout.
593 ,@(if (any (cute string=? <> (%current-system))
594 '("armhf-linux" "aarch64-linux"))
597 (invoke "meson" "test" "--timeout-multiplier" "5"))))
600 `(;; Required by gdk-pixbuf-2.0.pc
603 ;; Used for testing and required at runtime.
604 ("shared-mime-info" ,shared-mime-info)))
606 `(("libjpeg" ,libjpeg-turbo)
610 `(("pkg-config" ,pkg-config)
611 ("gettext" ,gettext-minimal)
612 ("glib" ,glib "bin") ; glib-mkenums, etc.
613 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
614 (synopsis "GNOME image loading and manipulation library")
616 "GdkPixbuf is a library for image loading and manipulation developed
617 in the GNOME project.")
618 (license license:lgpl2.0+)
619 (home-page "https://developer.gnome.org/gdk-pixbuf/")))
621 ;; To build gdk-pixbuf with SVG support, we need librsvg, and librsvg depends
622 ;; on gdk-pixbuf, so this new varibale. Also, librsvg adds 90MiB to the
624 (define-public gdk-pixbuf+svg
625 (package/inherit gdk-pixbuf
626 (name "gdk-pixbuf+svg")
628 `(("librsvg" ,librsvg)
629 ,@(package-inputs gdk-pixbuf)))
631 '(#:configure-flags '("-Dinstalled-tests=false")
632 #:tests? #f ; tested by the gdk-pixbuf package already
634 (modify-phases %standard-phases
635 (add-after 'install 'register-svg-loader
636 (lambda* (#:key inputs outputs #:allow-other-keys)
637 (let* ((out (assoc-ref outputs "out"))
638 (librsvg (assoc-ref inputs "librsvg"))
641 (find-files out "^libpixbufloader-.*\\.so$")
642 (find-files librsvg "^libpixbufloader-.*\\.so$")))
643 (gdk-pixbuf-query-loaders
644 (string-append out "/bin/gdk-pixbuf-query-loaders")))
646 gdk-pixbuf-query-loaders
650 "GNOME image loading and manipulation library, with SVG support")))
652 (define-public at-spi2-core
654 (name "at-spi2-core")
658 (uri (string-append "mirror://gnome/sources/" name "/"
659 (version-major+minor version) "/"
660 name "-" version ".tar.xz"))
663 "1ihixwhh3c16q6253qj9gf69741rb2pi51822a4rylsfcyywsafn"))))
664 (build-system meson-build-system)
665 (outputs '("out" "doc"))
670 (modify-phases %standard-phases
671 (add-after 'unpack 'set-documentation-path
672 (lambda* (#:key outputs #:allow-other-keys)
673 ;; Ensure that the cross-references point to the "doc" output.
674 (substitute* "doc/libatspi/meson.build"
676 (string-append "docpath = '" (assoc-ref outputs "doc") "/share/gtk-doc/html'\n")))
678 (add-before 'install 'prepare-doc-directory
679 (lambda* (#:key outputs #:allow-other-keys)
680 (mkdir-p (string-append (assoc-ref outputs "doc") "/share"))
682 (add-after 'install 'move-documentation
683 (lambda* (#:key outputs #:allow-other-keys)
684 (let ((out (assoc-ref outputs "out"))
685 (doc (assoc-ref outputs "doc")))
687 (string-append out "/share/gtk-doc")
688 (string-append doc "/share/gtk-doc"))
689 (delete-file-recursively
690 (string-append out "/share/gtk-doc")))
692 (add-after 'install 'check
694 (setenv "HOME" (getenv "TMPDIR")) ; xfconfd requires a writable HOME
695 ;; Run test-suite under a dbus session.
696 (setenv "XDG_DATA_DIRS" ; for finding org.xfce.Xfconf.service
697 (string-append %output "/share"))
698 ;; Don't fail on missing '/etc/machine-id'.
699 (setenv "DBUS_FATAL_WARNINGS" "0") ;
700 (invoke "dbus-launch" "ninja" "test")))
703 ;; atspi-2.pc refers to all these.
707 ("libxtst" ,libxtst)))
709 `(("gettext" ,gettext-minimal)
710 ("gobject-introspection" ,gobject-introspection)
711 ("gtk-doc" ,gtk-doc/stable)
713 ("pkg-config" ,pkg-config)))
714 (synopsis "Assistive Technology Service Provider Interface, core components")
716 "The Assistive Technology Service Provider Interface, core components,
717 is part of the GNOME accessibility project.")
718 (license license:lgpl2.0+)
719 (home-page "https://projects.gnome.org/accessibility/")))
721 ;;; A minimal variant used to prevent a cycle with Inkscape.
722 (define at-spi2-core-minimal
724 (inherit at-spi2-core)
725 (name "at-spi2-core-minimal")
726 (outputs (delete "doc" (package-outputs at-spi2-core)))
728 (substitute-keyword-arguments (package-arguments at-spi2-core)
729 ((#:configure-flags configure-flags)
730 `(delete "-Ddocs=true" ,configure-flags))
732 `(modify-phases ,phases
733 (delete 'set-documentation-path)
734 (delete 'prepare-doc-directory)
735 (delete 'move-documentation)))))
737 (alist-delete "gtk-doc" (package-native-inputs at-spi2-core)))))
739 (define-public at-spi2-atk
745 (uri (string-append "mirror://gnome/sources/" name "/"
746 (version-major+minor version) "/"
747 name "-" version ".tar.xz"))
750 "05ncp7s5nddjinffs26mcvpbd63vk1m3cv5y530p3plgfhqgjvbp"))))
751 (build-system meson-build-system)
754 (modify-phases %standard-phases
756 ;; Run test-suite under a dbus session.
758 (setenv "DBUS_FATAL_WARNINGS" "0")
759 (invoke "dbus-launch" "meson" "test"))))))
761 ;; TODO: Replace by at-spi2-core-minimal in the next staging window, or
762 ;; when Inkscape 0.92 is upgraded to 1.0 to avoid a cycle.
763 `(("at-spi2-core" ,at-spi2-core))) ; required by atk-bridge-2.0.pc
767 `(("pkg-config" ,pkg-config)
770 ("libxml2" ,libxml2)))
771 (synopsis "Assistive Technology Service Provider Interface, ATK bindings")
773 "The Assistive Technology Service Provider Interface
774 is part of the GNOME accessibility project.")
775 (license license:lgpl2.0+)
776 (home-page "https://projects.gnome.org/accessibility/")))
778 (define-public gtk+-2
784 (uri (string-append "mirror://gnome/sources/" name "/"
785 (version-major+minor version) "/"
786 name "-" version ".tar.xz"))
789 "0bjq7ja9gwcv6n5q4qkvdjjx40wsdiikksz1zqxvxsm5vlyskj5n"))
790 (patches (search-patches "gtk2-respect-GUIX_GTK2_PATH.patch"
791 "gtk2-respect-GUIX_GTK2_IM_MODULE_FILE.patch"
792 "gtk2-theme-paths.patch"))))
793 (build-system gnu-build-system)
794 (outputs '("out" "bin" "doc"))
797 ("gdk-pixbuf" ,gdk-pixbuf+svg)
801 ("libxcomposite" ,libxcomposite)
802 ("libxcursor" ,libxcursor)
803 ("libxdamage" ,libxdamage)
805 ("libxinerama" ,libxinerama)
806 ("libxrandr" ,libxrandr)))
809 ("gettext" ,gettext-minimal)
811 ("gobject-introspection" ,gobject-introspection)
812 ("pkg-config" ,pkg-config)
813 ("python-wrapper" ,python-wrapper)))
816 (list "--with-xinput=yes"
817 (string-append "--with-html-dir="
818 (assoc-ref %outputs "doc")
819 "/share/gtk-doc/html"))
821 (modify-phases %standard-phases
822 (add-before 'configure 'disable-tests
824 ;; FIXME: re-enable tests requiring an X server
825 (substitute* "gtk/Makefile.in"
826 (("SUBDIRS = theme-bits . tests") "SUBDIRS = theme-bits ."))
828 (add-after 'install 'remove-cache
829 (lambda* (#:key outputs #:allow-other-keys)
832 (find-files (assoc-ref outputs "out") "immodules.cache"))
835 (list (search-path-specification
836 (variable "GUIX_GTK2_PATH")
837 (files '("lib/gtk-2.0")))))
838 (synopsis "Cross-platform toolkit for creating graphical user interfaces")
840 "GTK+, or the GIMP Toolkit, is a multi-platform toolkit for creating
841 graphical user interfaces. Offering a complete set of widgets, GTK+ is
842 suitable for projects ranging from small one-off tools to complete
843 application suites.")
844 (license license:lgpl2.0+)
845 (home-page "https://www.gtk.org/")))
848 (package (inherit gtk+-2)
853 (uri (string-append "mirror://gnome/sources/" name "/"
854 (version-major+minor version) "/"
855 name "-" version ".tar.xz"))
858 "12ipk1d376bai9v820qzhxba93kkh5abi6mhyqr4hwjvqmkl77fc"))
859 (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch"
860 "gtk3-respect-GUIX_GTK3_IM_MODULE_FILE.patch"))))
862 `(("at-spi2-atk" ,at-spi2-atk)
864 ("gdk-pixbuf" ,gdk-pixbuf+svg)
865 ("libepoxy" ,libepoxy)
866 ("libxcursor" ,libxcursor)
868 ("libxinerama" ,libxinerama)
869 ("libxkbcommon" ,libxkbcommon)
870 ("libxdamage" ,libxdamage)
871 ("libxrandr" ,libxrandr)
875 ("wayland-protocols" ,wayland-protocols)))
877 `(("libxml2" ,libxml2)
878 ;; XXX: colord depends on mozjs (through polkit), which fails on
879 ;; on non-intel systems now.
881 ("cups" ,cups) ;for printing support
882 ;; XXX: rest depends on p11-kit, which fails on mips64el now.
884 ("json-glib" ,json-glib)))
888 ("gettext" ,gettext-minimal)
889 ("pkg-config" ,pkg-config)
890 ("gobject-introspection" ,gobject-introspection)
891 ("python-wrapper" ,python-wrapper)
892 ;; By using a special xorg-server for GTK+'s tests, we reduce the impact
893 ;; of updating xorg-server directly on the master branch.
894 ("xorg-server" ,xorg-server-for-tests)))
896 `(#:disallowed-references (,xorg-server-for-tests)
897 ;; 47 MiB goes to "out" (24 of which is locale data!), and 26 MiB goes
899 #:configure-flags (list (string-append "--with-html-dir="
900 (assoc-ref %outputs "doc")
901 "/share/gtk-doc/html")
902 ;; The header file <gdk/gdkwayland.h> is required
903 ;; by gnome-control-center
904 "--enable-wayland-backend"
905 ;; This is necessary to build both backends.
906 "--enable-x11-backend"
907 ;; This enables the HTML5 websocket backend.
908 "--enable-broadway-backend")
909 #:phases (modify-phases %standard-phases
910 (add-before 'configure 'pre-configure
912 ;; Disable most tests, failing in the chroot with the message:
913 ;; D-Bus library appears to be incorrectly set up; failed to read
914 ;; machine uuid: Failed to open "/etc/machine-id": No such file or
916 ;; See the manual page for dbus-uuidgen to correct this issue.
917 (substitute* "testsuite/Makefile.in"
918 (("SUBDIRS = gdk gtk a11y css reftests")
921 (add-after 'install 'move-desktop-files
922 ;; Move desktop files into 'bin' to avoid cycle references.
923 (lambda* (#:key outputs #:allow-other-keys)
924 (let ((out (assoc-ref outputs "out"))
925 (bin (assoc-ref outputs "bin")))
926 (mkdir-p (string-append bin "/share"))
927 (rename-file (string-append out "/share/applications")
928 (string-append bin "/share/applications"))
931 (list (search-path-specification
932 (variable "GUIX_GTK3_PATH")
933 (files '("lib/gtk-3.0")))))))
939 (define-public guile-cairo
945 (uri (string-append "mirror://savannah/guile-cairo/guile-cairo-"
949 "0yx0844p61ljd4d3d63qrawiygiw6ks02fwv2cqx7nav5kfd8ck2"))
950 (modules '((guix build utils)))
954 ;; Install Scheme files in …/guile/site/X.Y.
955 (substitute* (find-files "." "^Makefile\\.in$")
956 (("^(.*)dir = (.*)/guile/site(.*)" _ name prefix suffix)
957 (string-append name "dir = " prefix
958 "/guile/site/@GUILE_EFFECTIVE_VERSION@"
961 (build-system gnu-build-system)
963 ;; Uses of 'scm_t_uint8' & co. are deprecated; don't stop the build
965 `(#:configure-flags '("--disable-Werror")
966 #:make-flags '("GUILE_AUTO_COMPILE=0") ; to prevent guild warnings
967 #:modules ((guix build gnu-build-system)
972 (modify-phases %standard-phases
973 (add-after 'install 'install-go-files
974 (lambda* (#:key outputs inputs #:allow-other-keys)
975 (let* ((out (assoc-ref outputs "out"))
976 (effective (read-line
977 (open-pipe* OPEN_READ
979 "(display (effective-version))")))
980 (module-dir (string-append out "/share/guile/site/"
982 (object-dir (string-append out "/lib/guile/" effective
984 (prefix (string-length module-dir)))
985 ;; compile to the destination
986 (for-each (lambda (file)
987 (let* ((base (string-drop (string-drop-right file 4)
989 (go (string-append object-dir base ".go")))
990 (invoke "guild" "compile" "-L" module-dir
992 (find-files module-dir "\\.scm$"))
995 `(("guile-lib" ,guile-lib)
997 ("guile" ,guile-3.0)))
999 ;; The .pc file refers to 'cairo'.
1000 `(("cairo" ,cairo)))
1002 `(("pkg-config" ,pkg-config)))
1003 (home-page "https://www.nongnu.org/guile-cairo/")
1004 (synopsis "Cairo bindings for GNU Guile")
1006 "Guile-Cairo wraps the Cairo graphics library for Guile Scheme.
1007 Guile-Cairo is complete, wrapping almost all of the Cairo API. It is API
1008 stable, providing a firm base on which to do graphics work. Finally, and
1009 importantly, it is pleasant to use. You get a powerful and well-maintained
1010 graphics library with all of the benefits of Scheme: memory management,
1011 exceptions, macros, and a dynamic programming environment.")
1012 (license license:lgpl3+)))
1014 (define-public guile2.2-cairo
1016 (inherit guile-cairo)
1017 (name "guile2.2-cairo")
1019 `(("guile" ,guile-2.2)
1020 ("guile-lib" ,guile2.2-lib)
1021 ,@(fold alist-delete (package-inputs guile-cairo)
1022 '("guile" "guile-lib"))))))
1024 (define-public guile3.0-cairo
1025 (deprecated-package "guile3.0-cairo" guile-cairo))
1027 (define-public guile-rsvg
1028 ;; Use a recent snapshot that supports Guile 2.2 and beyond.
1029 (let ((commit "05c6a2fd67e4fea1a7c3ff776729dc931bae6678")
1033 (version (string-append "2.18.1-" revision "."
1034 (string-take commit 7)))
1038 (url "https://gitlab.com/wingo/guile-rsvg/")
1042 "0cnbl40df2sbhpc32cma6j6w312rfvcgbxxqaixgf0ymim3fb248"))
1043 (patches (search-patches "guile-rsvg-pkgconfig.patch"))
1044 (modules '((guix build utils)))
1047 (substitute* (find-files "." "Makefile\\.am")
1048 (("/share/guile/site")
1049 "/share/guile/site/@GUILE_EFFECTIVE_VERSION@"))
1051 (file-name (string-append name "-" version ".tar.gz"))))
1052 (build-system gnu-build-system)
1054 `(#:modules ((guix build gnu-build-system)
1059 (modify-phases %standard-phases
1062 (invoke "autoreconf" "-vfi")))
1063 (add-after 'install 'install-go-files
1064 (lambda* (#:key outputs inputs #:allow-other-keys)
1065 (let* ((out (assoc-ref outputs "out"))
1066 (effective (read-line
1067 (open-pipe* OPEN_READ
1069 "(display (effective-version))")))
1070 (module-dir (string-append out "/share/guile/site/"
1072 (object-dir (string-append out "/lib/guile/" effective
1074 (prefix (string-length module-dir)))
1075 ;; compile to the destination
1076 (for-each (lambda (file)
1077 (let* ((base (string-drop (string-drop-right file 4)
1079 (go (string-append object-dir base ".go")))
1080 (invoke "guild" "compile" "-L" module-dir
1082 (find-files module-dir "\\.scm$"))
1084 (native-inputs `(("pkg-config" ,pkg-config)
1085 ("autoconf" ,autoconf)
1086 ("automake" ,automake)
1087 ("libtool" ,libtool)
1088 ("texinfo" ,texinfo)))
1089 (inputs `(("guile" ,guile-3.0)
1090 ("librsvg" ,librsvg)
1091 ("guile-lib" ,guile-lib))) ;for (unit-test)
1092 (propagated-inputs `(("guile-cairo" ,guile-cairo)))
1093 (synopsis "Render SVG images using Cairo from Guile")
1095 "Guile-RSVG wraps the RSVG library for Guile, allowing you to render SVG
1096 images onto Cairo surfaces.")
1097 (home-page "https://wingolog.org/projects/guile-rsvg/")
1098 (license license:lgpl2.1+))))
1100 (define-public guile2.2-rsvg
1102 (inherit guile-rsvg)
1103 (name "guile2.2-rsvg")
1105 `(("guile" ,guile-2.2)
1106 ("guile-lib" ,guile2.2-lib)
1107 ,@(fold alist-delete (package-inputs guile-rsvg)
1108 '("guile" "guile-lib"))))
1109 (propagated-inputs `(("guile-cairo" ,guile2.2-cairo)))))
1111 (define-public guile3.0-rsvg
1112 (deprecated-package "guile3.0-rsvg" guile-rsvg))
1114 (define-public guile-present
1116 (name "guile-present")
1120 (uri (string-append "http://wingolog.org/pub/guile-present/"
1121 "guile-present-" version ".tar.gz"))
1124 "1qam447m05sxxv6x8dlzg7qnyfc4dh8apjw1idpfhpns671gfr6m"))
1125 (patches (search-patches "guile-present-coding.patch"))
1126 (modules '((guix build utils)))
1129 ;; Allow builds with Guile 3.0.
1130 (substitute* "configure"
1134 ;; Install .go files in the right place.
1135 (substitute* "Makefile.in"
1136 (("/ccache") "/site-ccache"))
1138 (build-system gnu-build-system)
1141 (modify-phases %standard-phases
1142 (add-after 'install 'post-install
1143 (lambda* (#:key inputs outputs #:allow-other-keys)
1144 (let* ((out (assoc-ref outputs "out"))
1145 (bin (string-append out "/bin"))
1146 (guile (assoc-ref inputs "guile"))
1148 ,(match (assoc "guile" (package-inputs this-package))
1150 (version-major+minor (package-version guile))))))
1151 (substitute* (find-files bin ".*")
1153 (string-append guile "/bin/guile -L "
1154 out "/share/guile/site/" version " -C "
1155 out "/lib/guile/" version "/site-ccache "))))
1157 (native-inputs `(("pkg-config" ,pkg-config)))
1158 (inputs `(("guile" ,guile-3.0)))
1160 ;; These are used by the (present …) modules.
1161 `(("guile-lib" ,guile-lib)
1162 ("guile-cairo" ,guile-cairo)
1163 ("guile-rsvg" ,guile-rsvg)))
1164 (home-page "https://wingolog.org/software/guile-present/")
1165 (synopsis "Create SVG or PDF presentations in Guile")
1167 "Guile-Present defines a declarative vocabulary for presentations,
1168 together with tools to render presentation documents as SVG or PDF.
1169 Guile-Present can be used to make presentations programmatically, but also
1170 includes a tools to generate PDF presentations out of Org mode and Texinfo
1172 (license license:lgpl3+)))
1174 (define-public guile2.2-present
1176 (inherit guile-present)
1177 (name "guile2.2-present")
1178 (inputs `(("guile" ,guile-2.2)))
1180 `(("guile-lib" ,guile2.2-lib)
1181 ("guile-cairo" ,guile2.2-cairo)
1182 ("guile-rsvg" ,guile2.2-rsvg)))))
1184 (define-public guile3.0-present
1185 (deprecated-package "guile3.0-present" guile-present))
1187 (define-public guile-gnome
1189 (name "guile-gnome")
1194 (string-append "mirror://gnu/" name
1195 "/guile-gnome-platform/guile-gnome-platform-"
1199 "1gnf3j96nip5kl99a268i0dy1hj7s1cfs66sps3zwysnkd7qr399"))))
1200 (build-system gnu-build-system)
1202 `(("pkg-config" ,pkg-config)
1204 ;;("corba" ,corba) ; not packaged yet
1206 ("gobject-introspection" ,gobject-introspection)
1207 ;;("gthread" ,gthread) ; not packaged yet
1208 ("gnome-vfs" ,gnome-vfs)
1209 ("gdk-pixbuf" ,gdk-pixbuf)
1211 ("libglade" ,libglade)
1212 ("libgnome" ,libgnome)
1213 ("libgnomecanvas" ,libgnomecanvas)
1214 ("libgnomeui" ,libgnomeui)
1218 (inputs `(("guile" ,guile-2.2)))
1220 `(("guile-cairo" ,guile2.2-cairo)
1222 ("guile-lib" ,guile2.2-lib)))
1224 `(#:tests? #f ;FIXME
1225 #:phases (modify-phases %standard-phases
1226 (add-before 'configure 'pre-configure
1227 (lambda* (#:key outputs #:allow-other-keys)
1228 (let ((out (assoc-ref outputs "out")))
1229 (substitute* (find-files "." "^Makefile.in$")
1230 (("guilesite :=.*guile/site" all)
1231 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
1233 (outputs '("out" "debug"))
1234 (synopsis "Guile interface for GTK+ programming for GNOME")
1236 "Includes guile-clutter, guile-gnome-gstreamer,
1237 guile-gnome-platform (GNOME developer libraries), and guile-gtksourceview.")
1238 (home-page "https://www.gnu.org/software/guile-gnome/")
1239 (license license:gpl2+)
1240 (properties '((upstream-name . "guile-gnome-platform")
1241 (ftp-directory . "/gnu/guile-gnome/guile-gnome-platform")))))
1247 (define-public cairomm
1253 (uri (string-append "https://www.cairographics.org/releases/"
1254 name "-" version ".tar.gz"))
1257 "16fmigxsaz85c3lgcls7biwyz8zy8c8h3jndfm54cxxas3a7zi25"))))
1258 (build-system gnu-build-system)
1260 ;; The examples lack -lcairo.
1261 '(#:make-flags '("LDFLAGS=-lcairo")))
1262 (native-inputs `(("pkg-config" ,pkg-config)))
1264 `(("libsigc++" ,libsigc++)
1265 ("freetype" ,freetype)
1266 ("fontconfig" ,fontconfig)
1268 (home-page "https://cairographics.org/")
1269 (synopsis "C++ bindings to the Cairo 2D graphics library")
1271 "Cairomm provides a C++ programming interface to the Cairo 2D graphics
1273 (license license:lgpl2.0+)))
1275 (define-public cairomm-1.13
1284 (string-append "https://www.cairographics.org/releases/"
1285 name "-" version ".tar.gz"))
1287 (base32 "1xlfl0fm5mgv53lr8xjv2kqsk3bz67qkk6qzvbrqmbvbvvbqp9wp"))))
1290 ("sigc++" ,libsigc++)))))
1292 (define-public pangomm
1298 (uri (string-append "mirror://gnome/sources/" name "/"
1299 (version-major+minor version) "/"
1300 name "-" version ".tar.xz"))
1303 "0mmzxp3wniaafkxr30sb22mq9x44xckb5d60h1bl99lkzxks0vfa"))))
1304 (build-system gnu-build-system)
1305 (native-inputs `(("pkg-config" ,pkg-config)))
1308 ("cairomm" ,cairomm)
1311 (home-page "https://pango.gnome.org//")
1312 (synopsis "C++ interface to the Pango text rendering library")
1314 "Pangomm provides a C++ programming interface to the Pango text rendering
1316 (license license:lgpl2.1+)))
1318 (define-public pangomm-2.42
1327 (string-append "mirror://gnome/sources/" name "/"
1328 (version-major+minor version) "/"
1329 name "-" version ".tar.xz"))
1331 (base32 "03zli5amizhv9bfklwfq7xyf0b5dagchx1lnz9f0v1rhk69h9gql"))))
1333 `(("cairomm" ,cairomm-1.13)
1334 ("glibmm" ,glibmm-2.64)
1335 ("pango" ,pango)))))
1337 (define-public atkmm
1343 (uri (string-append "mirror://gnome/sources/" name "/"
1344 (version-major+minor version) "/"
1345 name "-" version ".tar.xz"))
1348 "0fnxrspxkhhbrjphqrpvl3zjm66n50s4cywrrrwkhbflgy8zqk2c"))))
1349 (build-system gnu-build-system)
1350 (native-inputs `(("pkg-config" ,pkg-config)))
1352 `(("glibmm" ,glibmm) ("atk" ,atk)))
1353 (home-page "https://www.gtkmm.org")
1354 (synopsis "C++ interface to the ATK accessibility library")
1356 "ATKmm provides a C++ programming interface to the ATK accessibility
1358 (license license:lgpl2.1+)))
1360 (define-public gtkmm
1366 (uri (string-append "mirror://gnome/sources/" name "/"
1367 (version-major+minor version) "/"
1368 name "-" version ".tar.xz"))
1371 "1hxdnhavjyvbcpxhd5z17l9fj4182028s66lc0s16qqqrldhjwbd"))))
1372 (build-system gnu-build-system)
1373 (native-inputs `(("pkg-config" ,pkg-config)
1374 ("glib" ,glib "bin") ;for 'glib-compile-resources'
1375 ("xorg-server" ,xorg-server-for-tests)))
1377 `(("pangomm" ,pangomm)
1378 ("cairomm" ,cairomm)
1381 ("glibmm" ,glibmm)))
1383 `(#:disallowed-references (,xorg-server-for-tests)
1384 #:phases (modify-phases %standard-phases
1385 (add-before 'check 'run-xvfb
1386 (lambda* (#:key inputs #:allow-other-keys)
1387 (let ((xorg-server (assoc-ref inputs "xorg-server")))
1388 ;; Tests such as 'object_move/test' require a running
1390 (system (string-append xorg-server "/bin/Xvfb :1 &"))
1391 (setenv "DISPLAY" ":1")
1392 ;; Don't fail because of the missing /etc/machine-id.
1393 (setenv "DBUS_FATAL_WARNINGS" "0")
1395 (home-page "https://gtkmm.org/")
1397 "C++ interface to the GTK+ graphical user interface library")
1399 "gtkmm is the official C++ interface for the popular GUI library GTK+.
1400 Highlights include typesafe callbacks, and a comprehensive set of widgets that
1401 are easily extensible via inheritance. You can create user interfaces either
1402 in code or with the Glade User Interface designer, using libglademm. There's
1403 extensive documentation, including API reference and a tutorial.")
1404 (license license:lgpl2.1+)))
1407 (define-public gtkmm-2
1408 (package (inherit gtkmm)
1413 (uri (string-append "mirror://gnome/sources/" name "/"
1414 (version-major+minor version) "/"
1415 name "-" version ".tar.xz"))
1418 "0wkbzvsx4kgw16f6xjdc1dz7f77ldngdila4yi5lw2zrgcxsb006"))))
1420 (native-inputs `(("pkg-config" ,pkg-config)))
1422 `(("pangomm" ,pangomm)
1423 ("cairomm" ,cairomm)
1426 ("glibmm" ,glibmm)))))
1428 (define-public gtksourceviewmm
1430 (name "gtksourceviewmm")
1434 (uri (string-append "mirror://gnome/sources/" name "/"
1435 (version-major+minor version) "/"
1436 name "-" version ".tar.xz"))
1438 (base32 "0fgvmhm4h4qmxig87qvangs6ijw53mi40siz7pixlxbrsgiil22i"))))
1439 (build-system gnu-build-system)
1441 `(("pkg-config" ,pkg-config)))
1443 ;; In 'Requires' of gtksourceviewmm-3.0.pc.
1444 `(("glibmm" ,glibmm)
1446 ("gtksourceview" ,gtksourceview-3)))
1447 (synopsis "C++ interface to the GTK+ 'GtkTextView' widget")
1449 "gtksourceviewmm is a portable C++ library that extends the standard GTK+
1450 framework for multiline text editing with support for configurable syntax
1451 highlighting, unlimited undo/redo, search and replace, a completion framework,
1452 printing and other features typical of a source code editor.")
1453 (license license:lgpl2.1+)
1454 (home-page "https://developer.gnome.org/gtksourceview/")))
1457 ;;; Python bindings.
1460 (define-public python-pycairo
1462 (name "python-pycairo")
1467 (uri (string-append "https://github.com/pygobject/pycairo/releases/download/v"
1468 version "/pycairo-" version ".tar.gz"))
1471 "111fav9m1iagw3nh2ws2vzkjh34r97yl7rdlpvsngsqg521k251c"))))
1472 (build-system python-build-system)
1474 `(("pkg-config" ,pkg-config)
1475 ("python-pytest" ,python-pytest)))
1476 (propagated-inputs ;pycairo.pc references cairo
1477 `(("cairo" ,cairo)))
1478 (home-page "https://cairographics.org/pycairo/")
1479 (synopsis "Python bindings for cairo")
1481 "Pycairo is a set of Python bindings for the Cairo graphics library.")
1482 (license license:lgpl3+)
1483 (properties `((python2-variant . ,(delay python2-pycairo))))))
1485 ;; Pycairo no longer supports Python 2 since version 1.19.0, so we stick
1486 ;; with this older version here.
1487 (define-public python2-pycairo
1488 (let ((pycairo (package-with-python2
1489 (strip-python2-variant python-pycairo))))
1495 (uri (string-append "https://github.com/pygobject/pycairo/releases"
1496 "/download/v" version "/pycairo-" version ".tar.gz"))
1499 "0cb5n4r4nl0k1g90b1gz9iyk4lp7hi03db98i1p52a870bym7f6w"))))
1500 ;; Dual-licensed under LGPL 2.1 or Mozilla Public License 1.1
1501 (license (list license:lgpl2.1 license:mpl1.1)))))
1503 (define-public python2-pygtk
1505 (name "python2-pygtk")
1510 (uri (string-append "mirror://gnome/sources"
1511 "/pygtk/" (version-major+minor version)
1512 "/pygtk-" version ".tar.bz2"))
1515 "04k942gn8vl95kwf0qskkv6npclfm31d78ljkrkgyqxxcni1w76d"))))
1516 (build-system gnu-build-system)
1518 "doc")) ;13 MiB of gtk-doc HTML
1520 `(("pkg-config" ,pkg-config)))
1522 `(("python" ,python-2)
1524 ;; XXX: The package fails to build with the latest Pango (propagated
1525 ;; from GTK+2), so we provide it with this older version.
1526 ("pango" ,pango-1.42)
1528 ("libglade" ,libglade)
1531 `(("python-pycairo" ,python2-pycairo) ;loaded at runtime
1532 ("python-pygobject" ,python2-pygobject-2) ;referenced in pc file
1536 #:phases (modify-phases %standard-phases
1537 (add-before 'configure 'set-gtk-doc-directory
1538 (lambda* (#:key outputs #:allow-other-keys)
1539 ;; Install documentation to "doc".
1540 (let ((doc (assoc-ref outputs "doc")))
1541 (substitute* "docs/Makefile.in"
1542 (("TARGET_DIR = \\$\\(datadir\\)")
1543 (string-append "TARGET_DIR = " doc))))))
1544 (add-after 'configure 'fix-codegen
1545 (lambda* (#:key inputs #:allow-other-keys)
1546 (substitute* "pygtk-codegen-2.0"
1550 (assoc-ref inputs "python-pygobject") "\n")))))
1551 (add-after 'install 'install-pth
1552 (lambda* (#:key inputs outputs #:allow-other-keys)
1553 ;; pygtk's modules are stored in a subdirectory of
1554 ;; python's site-packages directory. Add a .pth file so
1555 ;; that python will add that subdirectory to its module
1557 (let* ((out (assoc-ref outputs "out"))
1558 (site (string-append out "/lib/python"
1559 ,(version-major+minor
1560 (package-version python-2))
1562 (call-with-output-file (string-append site "/pygtk.pth")
1564 (format port "gtk-2.0~%")))))))))
1565 (home-page "http://www.pygtk.org/")
1566 (synopsis "Python bindings for GTK+")
1568 "PyGTK allows you to write full featured GTK programs in Python. It is
1569 targeted at GTK 2.x, and can be used in conjunction with gnome-python to
1570 write GNOME applications.")
1571 (license license:lgpl2.1+)))
1573 (define-public perl-cairo
1580 "mirror://cpan/authors/id/X/XA/XAOC/Cairo-"
1584 "0zq78dv22arg35ma6kah9cwfd1zx8gg7amsibzd128qw81p766c2"))))
1585 (build-system perl-build-system)
1587 `(("perl-extutils-depends" ,perl-extutils-depends)
1588 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1590 `(("cairo" ,cairo)))
1591 (home-page "https://metacpan.org/release/Cairo")
1592 (synopsis "Perl interface to the cairo 2d vector graphics library")
1593 (description "Cairo provides Perl bindings for the vector graphics library
1594 cairo. It supports multiple output targets, including PNG, PDF and SVG. Cairo
1595 produces identical output on all those targets.")
1596 (license license:lgpl2.1+)))
1598 (define-public perl-gtk2
1604 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Gtk2-"
1608 "0ry9jfvfgdwzalxcvwsgr7plhk3agx7p40l0fqdf3vrf7ds47i29"))))
1609 (build-system perl-build-system)
1611 `(("perl-extutils-depends" ,perl-extutils-depends)
1612 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1614 `(("gtk+" ,gtk+-2)))
1616 `(("perl-pango" ,perl-pango)))
1619 (modify-phases %standard-phases
1620 (add-before 'build 'remove-broken-test
1621 ;; See https://gitlab.gnome.org/GNOME/perl-gtk2/issues/3.
1623 (substitute* "t/GdkPixbuf.t"
1624 (("tests => 112") "tests => 111")
1625 (("ok \\(defined \\$pixbuf, \"Don't crash on partial pixmap data\"\\);")
1626 "# ok (defined $pixbuf, \"Don't crash on partial pixmap data\");")))))))
1627 (home-page "https://metacpan.org/release/Gtk2")
1628 (synopsis "Perl interface to the 2.x series of the Gimp Toolkit library")
1629 (description "Perl bindings to the 2.x series of the Gtk+ widget set.
1630 This module allows you to write graphical user interfaces in a Perlish and
1631 object-oriented way, freeing you from the casting and memory management in C,
1632 yet remaining very close in spirit to original API.")
1633 (license license:lgpl2.1+)))
1635 (define-public perl-pango
1641 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Pango-"
1645 "0wdcidnfnb6nm79fzfs39ivawj3x8m98a147fmcxgv1zvwia9c1l"))))
1646 (build-system perl-build-system)
1648 `(("perl-extutils-depends" ,perl-extutils-depends)
1649 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1651 `(("pango" ,pango)))
1653 `(("perl-cairo" ,perl-cairo)
1654 ("perl-glib" ,perl-glib)))
1655 (home-page "https://metacpan.org/release/Pango")
1656 (synopsis "Layout and render international text")
1657 (description "Pango is a library for laying out and rendering text, with an
1658 emphasis on internationalization. Pango can be used anywhere that text layout
1659 is needed, but using Pango in conjunction with Cairo and/or Gtk2 provides a
1660 complete solution with high quality text handling and graphics rendering.
1662 Dynamically loaded modules handle text layout for particular combinations of
1663 script and font backend. Pango provides a wide selection of modules, including
1664 modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts.
1665 Virtually all of the world's major scripts are supported.
1667 In addition to the low level layout rendering routines, Pango includes
1668 @code{Pango::Layout}, a high level driver for laying out entire blocks of text,
1669 and routines to assist in editing internationalized text.")
1670 (license license:lgpl2.1+)))
1672 (define-public girara
1680 (url "https://git.pwmt.org/pwmt/girara")
1682 (file-name (git-file-name name version))
1684 (base32 "08rpw9hkaprm4r853xy1d35i2af1pji8c3mzzl01mmwmyr9p0x8k"))))
1685 (native-inputs `(("pkg-config" ,pkg-config)
1686 ("check" ,check-0.14)
1687 ("gettext" ,gettext-minimal)
1688 ("glib:bin" ,glib "bin")
1689 ("xorg-server" ,xorg-server-for-tests)))
1690 ;; Listed in 'Requires.private' of 'girara.pc'.
1691 (propagated-inputs `(("gtk+" ,gtk+)))
1693 `(#:phases (modify-phases %standard-phases
1694 (add-before 'check 'start-xserver
1695 ;; Tests require a running X server.
1696 (lambda* (#:key inputs #:allow-other-keys)
1697 (let ((xorg-server (assoc-ref inputs "xorg-server"))
1699 (setenv "DISPLAY" display)
1701 ;; On busy machines, tests may take longer than
1702 ;; the default of four seconds.
1703 (setenv "CK_DEFAULT_TIMEOUT" "20")
1705 ;; Don't fail due to missing '/etc/machine-id'.
1706 (setenv "DBUS_FATAL_WARNINGS" "0")
1707 (zero? (system (string-append xorg-server "/bin/Xvfb "
1708 display " &")))))))))
1709 (build-system meson-build-system)
1710 (home-page "https://pwmt.org/projects/girara/")
1711 (synopsis "Library for minimalistic gtk+3 user interfaces")
1712 (description "Girara is a library that implements a user interface that
1713 focuses on simplicity and minimalism. Currently based on GTK+, a
1714 cross-platform widget toolkit, it provides an interface that focuses on three
1715 main components: a so-called view widget that represents the actual
1716 application, an input bar that is used to execute commands of the
1717 application and the status bar which provides the user with current
1719 (license license:zlib)))
1721 (define-public gtk-doc
1727 (uri (string-append "mirror://gnome/sources/" name "/"
1728 (version-major+minor version) "/"
1729 name "-" version ".tar.xz"))
1732 "05apmwibkmn1icx05l8aw241lhymcx01zvk5i499cb150bijj7li"))))
1733 (build-system gnu-build-system)
1735 `(#:parallel-tests? #f
1737 (modify-phases %standard-phases
1738 (add-after 'unpack 'patch-gtk-doc-scan
1739 (lambda* (#:key inputs #:allow-other-keys)
1740 (substitute* "gtk-doc.xsl"
1741 (("http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl")
1742 (string-append (assoc-ref inputs "docbook-xsl")
1743 "/xml/xsl/docbook-xsl-"
1744 ,(package-version docbook-xsl)
1746 (("http://docbook.sourceforge.net/release/xsl/current/common/en.xml")
1747 (string-append (assoc-ref inputs "docbook-xsl")
1748 "/xml/xsl/docbook-xsl-"
1749 ,(package-version docbook-xsl)
1752 (add-after 'patch-gtk-doc-scan 'patch-test-out
1754 ;; sanity.sh counts the number of status lines. Since our
1755 ;; texlive regenerates the fonts every time and the font
1756 ;; generator metafont outputs a lot of extra lines, this
1757 ;; test would always fail. Disable it for now.
1758 (substitute* "tests/Makefile.in"
1759 (("empty.sh sanity.sh") "empty.sh"))
1761 (add-before 'build 'set-HOME
1763 ;; FIXME: dblatex with texlive-union does not find the built
1764 ;; metafonts, so it tries to generate them in HOME.
1765 (setenv "HOME" "/tmp")
1767 (add-before 'configure 'fix-docbook
1768 (lambda* (#:key inputs #:allow-other-keys)
1769 (substitute* "configure"
1770 ;; The configure check is overzealous about making sure that
1771 ;; things are in place -- it uses the xmlcatalog tool to make
1772 ;; sure that docbook-xsl is available, but this tool can only
1773 ;; look in one catalog file, unlike the $XML_CATALOG_FILES
1774 ;; variable that Guix defines. Fool the test by using the
1775 ;; docbook-xsl catalog explicitly and get on with life.
1776 (("\"\\$XML_CATALOG_FILE\" \
1777 \"http://docbook.sourceforge.net/release/xsl/")
1778 (string-append (car (find-files (assoc-ref inputs "docbook-xsl")
1780 " \"http://docbook.sourceforge.net/release/xsl/")))
1782 (add-after 'install 'wrap-executables
1783 (lambda* (#:key outputs #:allow-other-keys)
1784 (let ((out (assoc-ref outputs "out")))
1785 (for-each (lambda (prog)
1787 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))))
1788 (find-files (string-append out "/bin")))
1791 (list (string-append "--with-xml-catalog="
1792 (assoc-ref %build-inputs "docbook-xml")
1793 "/xml/dtd/docbook/catalog.xml"))))
1795 `(("pkg-config" ,pkg-config)
1796 ("itstool" ,itstool)
1798 ("gettext" ,gettext-minimal)
1803 ("xsltproc" ,libxslt)
1804 ("dblatex" ,dblatex)
1805 ("docbook-xml" ,docbook-xml-4.3)
1806 ("docbook-xsl" ,docbook-xsl)
1807 ("source-highlight" ,source-highlight)
1809 ("python-six" ,python-six)))
1810 (home-page "https://www.gtk.org/gtk-doc/")
1811 (synopsis "Documentation generator from C source code")
1813 "GTK-Doc generates API documentation from comments added to C code. It is
1814 typically used to document the public API of GTK+ and GNOME libraries, but it
1815 can also be used to document application code.")
1816 (license license:gpl2+)))
1818 ;; This is a variant of the 'gtk-doc' package that is not updated often. It
1819 ;; is intended to be used as a native-input at build-time only. This allows
1820 ;; the main 'gtk-doc', 'dblatex' and 'imagemagick' packages to be freely
1821 ;; updated on the 'master' branch without triggering an excessive number of
1823 (define-public gtk-doc/stable
1825 (package/inherit gtk-doc
1826 (inputs (alist-replace "dblatex" `(,dblatex/stable)
1827 (package-inputs gtk-doc))))))
1829 (define-public gtk-engines
1831 (name "gtk-engines")
1835 (uri (string-append "mirror://gnome/sources/" name "/"
1836 (version-major+minor version) "/"
1837 name "-" version ".tar.bz2"))
1840 "1db65pb0j0mijmswrvpgkdabilqd23x22d95hp5kwxvcramq1dhm"))))
1841 (build-system gnu-build-system)
1844 `("--enable-animation")))
1846 `(("pkg-config" ,pkg-config)
1847 ("intltool" ,intltool)))
1849 ;; Don't propagate GTK+ to reduce "profile pollution".
1850 `(("gtk+" ,gtk+-2))) ; required by gtk-engines-2.pc
1851 (home-page "https://live.gnome.org/GnomeArt")
1852 (synopsis "Theming engines for GTK+ 2.x")
1854 "This package contains the standard GTK+ 2.x theming engines including
1855 Clearlooks, Crux, High Contrast, Industrial, LighthouseBlue, Metal, Mist,
1856 Redmond95 and ThinIce.")
1857 (license (list license:gpl2+ license:lgpl2.1+))))
1859 (define-public murrine
1865 (uri (string-append "mirror://gnome/sources/" name "/"
1866 (version-major+minor version) "/"
1867 name "-" version ".tar.xz"))
1870 "129cs5bqw23i76h3nmc29c9mqkm9460iwc8vkl7hs4xr07h8mip9"))))
1871 (build-system gnu-build-system)
1874 `("--enable-animation"
1875 "--enable-animationrtl")))
1877 `(("pkg-config" ,pkg-config)
1878 ("intltool" ,intltool)))
1880 `(("gtk+" ,gtk+-2)))
1881 (home-page "https://live.gnome.org/GnomeArt")
1882 (synopsis "Cairo-based theming engine for GTK+ 2.x")
1884 "Murrine is a cairo-based GTK+ theming engine. It is named after the
1885 glass artworks done by Venicians glass blowers.")
1886 (license license:gpl2+)))
1888 (define-public gtkspell3
1894 (uri (string-append "mirror://sourceforge/gtkspell/"
1895 version "/" name "-" version ".tar.xz"))
1898 "0cjp6xdcnzh6kka42w9g0w2ihqjlq8yl8hjm9wsfnixk6qwgch5h"))))
1899 (build-system gnu-build-system)
1901 `(("intltool" ,intltool)
1902 ("pkg-config" ,pkg-config)
1905 `(("gobject-introspection" ,gobject-introspection)
1909 `(("enchant" ,enchant))) ; gtkspell3-3.0.pc refers to it
1910 (home-page "http://gtkspell.sourceforge.net")
1911 (synopsis "Spell-checking addon for GTK's TextView widget")
1913 "GtkSpell provides word-processor-style highlighting and replacement of
1914 misspelled words in a GtkTextView widget.")
1915 (license license:gpl2+)))
1917 (define-public clipit
1925 (url "https://github.com/CristianHenzel/ClipIt")
1926 (commit (string-append "v" version))))
1927 (file-name (git-file-name name version))
1929 (base32 "05xi29v2y0rvb33fmvrz7r9j4l858qj7ngwd7dp4pzpkkaybjln0"))))
1930 (build-system gnu-build-system)
1932 `(("autoconf" ,autoconf)
1933 ("automake" ,automake)
1934 ("intltool" ,intltool)
1935 ("pkg-config" ,pkg-config)))
1937 `(("gtk+" ,gtk+-2)))
1938 (home-page "https://github.com/CristianHenzel/ClipIt")
1939 (synopsis "Lightweight GTK+ clipboard manager")
1941 "ClipIt is a clipboard manager with features such as a history, search
1942 thereof, global hotkeys and clipboard item actions. It was forked from
1943 Parcellite and adds bugfixes and features.")
1944 (license license:gpl2+)))
1946 (define-public graphene
1955 (url "https://github.com/ebassi/graphene.git")
1957 (file-name (git-file-name name version))
1959 (base32 "14a0j1rvjlc7yhfdmhmckdmkzy4ch61qbzywdlw1xv58h23wx29p"))))
1960 (build-system meson-build-system)
1962 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
1965 "-Dinstalled_tests=false")))
1967 `(("git" ,git-minimal)
1968 ("gobject-introspection" ,gobject-introspection)
1970 ("pkg-config" ,pkg-config)))
1973 ("python" ,python)))
1974 (synopsis "Thin layer of graphic data types")
1975 (description "Graphene provides graphic types and their relative API; it
1976 does not deal with windowing system surfaces, drawing, scene graphs, or input.")
1977 (home-page "https://ebassi.github.io/graphene/")
1978 (license license:expat)))
1980 (define-public spread-sheet-widget
1982 (name "spread-sheet-widget")
1987 (uri (string-append "https://alpha.gnu.org/gnu/ssw/"
1988 "spread-sheet-widget-" version ".tar.gz"))
1990 (base32 "09rzgp7gabnzab460x874a1ibgyjiibpwzsz5srn9zs6jv2jdxjb"))))
1991 (build-system gnu-build-system)
1993 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
1994 ("pkg-config" ,pkg-config)))
1995 ;; In 'Requires' of spread-sheet-widget.pc.
1999 (home-page "https://www.gnu.org/software/ssw/")
2000 (synopsis "Gtk+ widget for dealing with 2-D tabular data")
2002 "GNU Spread Sheet Widget is a library for Gtk+ which provides a widget for
2003 viewing and manipulating 2 dimensional tabular data in a manner similar to many
2004 popular spread sheet programs.")
2005 (license license:gpl3+)))
2007 (define-public volumeicon
2014 (uri (string-append "http://nullwise.com/files/volumeicon/volumeicon-"
2017 (base32 "182xl2w8syv6ky2h2bc9imc6ap8pzh0p7rp63hh8nw0xm38c3f14"))))
2018 (build-system gnu-build-system)
2021 (list "--enable-notify"))) ; optional libnotify support
2023 `(("intltool" ,intltool)
2024 ("pkg-config" ,pkg-config)))
2026 `(("alsa-lib" ,alsa-lib)
2028 ("libnotify" ,libnotify)))
2029 (home-page "http://nullwise.com/volumeicon.html")
2030 (synopsis "System tray volume applet")
2032 "Volume Icon is a volume indicator and control applet for @acronym{the
2033 Advanced Linux Sound Architecture, ALSA}. It sits in the system tray,
2034 independent of your desktop environment, and supports global key bindings.")
2035 (license (list license:expat ; src/{bind.c,keybinder.h}
2036 license:isc ; src/alsa_volume_mapping.c
2037 license:gpl3)))) ; the rest & combined work
2047 (url "https://github.com/v1cont/yad")
2048 (commit (string-append "v" version))))
2049 (file-name (git-file-name name version))
2051 (base32 "07rd61hvilsxxrj7lf8c9k0a8glj07s48m7ya8d45030r90g3lvc"))))
2052 (build-system glib-or-gtk-build-system)
2055 ;; Passing --enable-foo will silently disable foo if prerequisite
2056 ;; inputs are missing, not abort the build as one might expect.
2057 ;; ‘--enable-html’ adds a huge webkitgtk dependency. It was never
2058 ;; present in the past and nobody complained.
2059 '("--enable-icon-browser"
2060 "--enable-spell") ; gspell checking support
2062 (modify-phases %standard-phases
2063 (add-after 'bootstrap 'intltoolize
2065 (invoke "intltoolize" "--force" "--automake"))))))
2067 `(("gspell" ,gspell)
2070 `(("autoconf" ,autoconf)
2071 ("automake" ,automake)
2072 ("intltool" ,intltool)
2073 ("pkg-config" ,pkg-config)))
2074 (home-page "https://sourceforge.net/projects/yad-dialog/")
2075 (synopsis "GTK+ dialog boxes for shell scripts")
2077 "This program allows you to display GTK+ dialog boxes from command line or
2078 shell scripts. Example of how to use @code{yad} can be consulted at
2079 @url{https://sourceforge.net/p/yad-dialog/wiki/browse_pages/}.")
2080 (license license:gpl3+)))
2082 (define-public dragon-drop
2084 (name "dragon-drop")
2090 (url "https://github.com/mwh/dragon")
2091 (commit (string-append "v" version))))
2092 (file-name (git-file-name name version))
2095 "0fgzz39007fdjwq72scp0qygp2v3zc5f1xkm0sxaa8zxm25g1bra"))))
2096 (build-system gnu-build-system)
2097 (inputs `(("gtk+" ,gtk+)))
2098 (native-inputs `(("pkg-config" ,pkg-config)))
2100 `(#:tests? #f ; no check
2102 (list (string-append "CC=" ,(cc-for-target))
2103 ;; makefile uses PREFIX for the binary location
2104 (string-append "PREFIX=" (assoc-ref %outputs "out")
2107 (modify-phases %standard-phases
2108 (delete 'configure)))) ; no configure script
2109 (synopsis "Drag and drop source/target for X")
2111 "Dragon is a lightweight drag-and-drop source for X where you can run:
2117 to get a window with just that file in it, ready to be dragged where you need it.
2118 What if you need to drag into something? Using:
2124 you get a window you can drag files and text into. Dropped items are
2125 printed to standard output.")
2126 (home-page "https://github.com/mwh/dragon")
2127 (license license:gpl3+)))
2129 (define-public libdbusmenu
2131 (name "libdbusmenu")
2136 (uri (string-append "https://launchpad.net/libdbusmenu/"
2137 (version-major+minor version) "/" version
2138 "/+download/libdbusmenu-" version ".tar.gz"))
2140 (base32 "12l7z8dhl917iy9h02sxmpclnhkdjryn08r8i4sr8l3lrlm4mk5r"))))
2141 (build-system gnu-build-system)
2144 '("--sysconfdir=/etc"
2145 "--localstatedir=/var"
2146 ;; The shebang of the generated test files should be patched before
2150 `(,(string-append "typelibdir=" (assoc-ref %outputs "out")
2151 "/lib/girepository-1.0"))
2153 (modify-phases %standard-phases
2154 (add-before 'configure 'do-not-treat-warnings-as-errors
2156 ;; Prevent the build from failing due to deprecation warnings
2157 ;; from newer GLib and GTK versions.
2158 (substitute* (find-files "." "^Makefile.in$")
2162 (add-before 'configure 'set-environment
2164 (setenv "HAVE_VALGRIND_TRUE" "")
2165 (setenv "HAVE_VALGRIND_FALSE" "#")
2170 ("gtk+-2" ,gtk+-2)))
2172 `(("glib:bin" ,glib "bin")
2173 ("gnome-doc-utils" ,gnome-doc-utils)
2174 ("gobject-introspection" ,gobject-introspection)
2175 ("intltool" ,intltool)
2176 ("json-glib" ,json-glib)
2177 ("pkg-config" ,pkg-config)
2178 ("python" ,python-2)
2180 (home-page "https://launchpad.net/libdbusmenu")
2181 (synopsis "Library for passing menus over DBus")
2182 (description "@code{libdbusmenu} passes a menu structure across DBus so
2183 that a program can create a menu simply without worrying about how it is
2184 displayed on the other side of the bus.")
2186 ;; Dual-licensed under either LGPLv2.1 or LGPLv3.
2187 (license (list license:lgpl2.1 license:lgpl3))))
2189 (define-public gtk-layer-shell
2191 (name "gtk-layer-shell")
2197 (url "https://github.com/wmww/gtk-layer-shell")
2198 (commit (string-append "v" version))))
2199 (file-name (git-file-name name version))
2201 (base32 "1kcp4p3s7sdh9lwniybjdarfy8z69j2j23hfrw98amhwhq39gdcc"))))
2202 (build-system meson-build-system)
2203 (arguments `(#:configure-flags (list "-Dtests=true")))
2204 (native-inputs `(("pkg-config" ,pkg-config)
2205 ("gobject-introspection" ,gobject-introspection)))
2206 (inputs `(("wayland" ,wayland)
2208 (home-page "https://github.com/wmww/gtk-layer-shell")
2209 (synopsis "Library to create Wayland desktop components using the Layer
2211 (description "Layer Shell is a Wayland protocol for desktop shell
2212 components, such as panels, notifications and wallpapers. It can be used to
2213 anchor windows to a corner or edge of the output, or stretch them across the
2214 entire output. It supports all Layer Shell features including popups and
2216 (license license:expat)))
2218 (define-public goocanvas
2225 (uri (string-append "mirror://gnome/sources/goocanvas/"
2226 (version-major+minor version)
2227 "/goocanvas-" version ".tar.xz"))
2229 (base32 "141fm7mbqib0011zmkv3g8vxcjwa7hypmq71ahdyhnj2sjvy4a67"))))
2230 (build-system gnu-build-system)
2232 `(("gettext" ,gettext-minimal)
2233 ("glib-bin" ,glib "bin")
2234 ("gobject-introspection" ,gobject-introspection)
2235 ("gtk-doc" ,gtk-doc/stable)
2236 ("pkg-config" ,pkg-config)
2237 ("python" ,python)))
2242 ("python-pygobject" ,python-pygobject)))
2244 `(#:configure-flags '("--disable-rebuilds"
2247 (modify-phases %standard-phases
2248 (add-after 'unpack 'fix-install-path
2249 (lambda* (#:key inputs outputs #:allow-other-keys)
2250 (substitute* "configure"
2251 (("\\(gi._overridesdir\\)")
2252 (string-append "((gi._overridesdir).replace(\\\""
2253 (assoc-ref inputs "python-pygobject")
2255 (assoc-ref outputs "out")
2258 (synopsis "Canvas widget for GTK+")
2259 (description "GooCanvas is a canvas widget for GTK+ that uses the cairo 2D
2260 library for drawing.")
2261 (home-page "https://wiki.gnome.org/GooCanvas")
2262 (license license:lgpl2.0)))
2264 (define-public gtksheet
2272 (url "https://github.com/fpaquet/gtksheet")
2273 (commit (string-append "V" version))))
2274 (file-name (git-file-name name version))
2277 "13jwr1vly4ga3f09dajwky1cdrz5bmggwga3vnnd6j6zzia7dpyr"))))
2278 (build-system gnu-build-system)
2280 `(#:configure-flags (list "--enable-glade"
2281 "--enable-introspection")
2283 (modify-phases %standard-phases
2284 ;; The "configure" script is present, but otherwise the project is
2285 ;; not bootstrapped properly. Delete configure so the bootstrap phase
2287 (add-after 'unpack 'delete-configure
2289 (delete-file "configure")
2291 (add-after 'unpack 'rename-type
2293 (substitute* "glade/glade-gtksheet-editor.c"
2294 (("GladeEditableIface") "GladeEditableInterface"))
2296 ;; Fix glade install directories.
2297 (add-before 'bootstrap 'configure-glade-directories
2298 (lambda* (#:key outputs #:allow-other-keys)
2299 (substitute* "configure.ac"
2300 (("`\\$PKG_CONFIG --variable=catalogdir gladeui-2.0`")
2301 (string-append (assoc-ref outputs "out") "/share/glade/catalogs"))
2302 (("`\\$PKG_CONFIG --variable=moduledir gladeui-2.0`")
2303 (string-append (assoc-ref outputs "out") "/lib/glade/modules"))
2304 (("`\\$PKG_CONFIG --variable=pixmapdir gladeui-2.0`")
2305 (string-append (assoc-ref outputs "out") "/share/pixmaps")))
2311 ("libxml2" ,libxml2)))
2313 `(("autoconf" ,autoconf)
2314 ("automake" ,automake)
2315 ("gobject-introspection" ,gobject-introspection)
2316 ("libtool" ,libtool)
2317 ("pkg-config" ,pkg-config)))
2318 (home-page "https://fpaquet.github.io/gtksheet/")
2319 (synopsis "Spreadsheet widget for GTK+")
2320 (description "GtkSheet is a matrix widget for GTK+. It consists of an
2321 scrollable grid of cells where you can allocate text. Cell contents can be
2322 edited interactively through a specially designed entry, GtkItemEntry. It is
2323 also a container subclass, allowing you to display buttons, images and any
2324 other widget in it. You can also set many attributes such as border,
2325 foreground and background colors, text justification and more.")
2326 (native-search-paths
2328 (search-path-specification
2329 (variable "GLADE_CATALOG_SEARCH_PATH")
2330 (files '("share/glade/catalogs")))
2331 (search-path-specification
2332 (variable "GLADE_MODULE_SEARCH_PATH")
2333 (files '("lib/glade/modules")))))
2334 (license license:lgpl2.0+)))
2336 (define-public gtkdatabox
2343 (uri (string-append "mirror://sourceforge/gtkdatabox/gtkdatabox-1/"
2344 "gtkdatabox-" version ".tar.gz"))
2346 (base32 "1qykm551bx8j8pfgxs60l2vhpi8lv4r8va69zvn2594lchh71vlb"))))
2347 (build-system gnu-build-system)
2349 `(("pkg-config" ,pkg-config)))
2352 (synopsis "Display widget for dynamic data")
2353 (description "GtkDatabox is a widget for live display of large amounts of
2354 fluctuating numerical data. It enables data presentation (for example, on
2355 linear or logarithmic scales, as dots or lines, with markers/labels) as well as
2356 user interaction (e.g. measuring distances).")
2357 (home-page "https://sourceforge.net/projects/gtkdatabox/")
2358 (license license:lgpl2.1+)))
2360 (define-public volctl
2366 (uri (git-reference (url "https://github.com/buzz/volctl")
2367 (commit (string-append "v" version))))
2368 (file-name (git-file-name name version))
2371 "1cx27j83pz2qffnzb85fbl1x6pp3irv1kbw7g1hri7kaw6ky4xiz"))))
2372 (build-system python-build-system)
2375 (modify-phases %standard-phases
2376 (add-after 'unpack 'patch-path
2377 (lambda* (#:key inputs #:allow-other-keys)
2378 (let ((pulse (assoc-ref inputs "pulseaudio"))
2379 (xfixes (assoc-ref inputs "libxfixes")))
2380 (substitute* "volctl/lib/xwrappers.py"
2382 (string-append xfixes "/lib/libXfixes.so")))
2383 (substitute* "volctl/lib/pulseaudio.py"
2385 (string-append pulse "/lib/libpulse.so.0")))
2389 ("libxfixes" ,libxfixes)
2390 ("pulseaudio" ,pulseaudio)))
2392 `(("python-click" ,python-click)
2393 ("python-pycairo" ,python-pycairo)
2394 ("python-pygobject" ,python-pygobject)
2395 ("python-pyyaml" ,python-pyyaml)))
2396 (home-page "https://buzz.github.io/volctl/")
2397 (synopsis "Per-application volume control and on-screen display (OSD) for graphical desktops")
2398 (description "Volctl is a PulseAudio-enabled tray icon volume control and
2399 OSD applet for graphical desktops. It's not meant to be an replacement for a
2400 full-featured mixer application. If you're looking for that check out the
2401 excellent pavucontrol.")
2403 ;; XXX: 'setup.py' says "GPLv2" but nothing says "version 2 only". Is
2405 (license license:gpl2)))