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 perl-check)
84 #:use-module (gnu packages pkg-config)
85 #:use-module (gnu packages pretty-print)
86 #:use-module (gnu packages python)
87 #:use-module (gnu packages python-xyz)
88 #:use-module (gnu packages guile)
89 #:use-module (gnu packages guile-xyz)
90 #:use-module (gnu packages cups)
91 #:use-module (gnu packages version-control)
92 #:use-module (gnu packages xml)
93 #:use-module (gnu packages xorg)
94 #:use-module (gnu packages xdisorg)
95 #:use-module (gnu packages pulseaudio)
96 #:use-module (srfi srfi-1)
97 #:use-module (srfi srfi-26)
98 #:use-module (ice-9 match))
106 (uri (string-append "mirror://gnome/sources/" name "/"
107 (version-major+minor version) "/"
108 name "-" version ".tar.xz"))
111 "1jwp16r6p5z66k4b2v8zlzhyshhwlmyi27ippkrgqr8jsary7w6l"))))
112 (build-system meson-build-system)
113 (propagated-inputs `(("glib" ,glib))) ; required by atk.pc
115 `(("pkg-config" ,pkg-config)
116 ("gettext" ,gettext-minimal)
117 ("glib" ,glib "bin") ; glib-mkenums, etc.
118 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
119 (synopsis "GNOME accessibility toolkit")
121 "ATK provides the set of accessibility interfaces that are implemented
122 by other toolkits and applications. Using the ATK interfaces, accessibility
123 tools have full access to view and control running applications.")
124 (license license:lgpl2.0+)
125 (home-page "https://developer.gnome.org/atk/")))
133 (uri (string-append "https://cairographics.org/releases/cairo-"
135 (patches (search-patches "cairo-CVE-2018-19876.patch"
136 "cairo-CVE-2020-35492.patch"))
139 "0c930mk5xr2bshbdljv005j3j8zr47gqmkry3q6qgvqky6rjjysy"))))
140 (build-system gnu-build-system)
142 `(("fontconfig" ,fontconfig)
143 ("freetype" ,freetype)
148 ("libxrender" ,libxrender)
151 `(("ghostscript" ,ghostscript)
152 ("libspectre" ,libspectre)
154 ("xorgproto" ,xorgproto)
157 `(("pkg-config" ,pkg-config)
158 ("python" ,python-wrapper)))
160 `(#:tests? #f ; see http://lists.gnu.org/archive/html/bug-guix/2013-06/msg00085.html
161 #:configure-flags '("--enable-tee" ;needed for GNU Icecat
162 "--enable-xml" ;for cairo-xml support
163 "--disable-static")))
164 (synopsis "2D graphics library")
166 "Cairo is a 2D graphics library with support for multiple output devices.
167 Currently supported output targets include the X Window System (via both
168 Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file
169 output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.
171 Cairo is designed to produce consistent output on all output media while
172 taking advantage of display hardware acceleration when available
173 eg. through the X Render Extension).
175 The cairo API provides operations similar to the drawing operators of
176 PostScript and PDF. Operations in cairo including stroking and filling cubic
177 Bézier splines, transforming and compositing translucent images, and
178 antialiased text rendering. All drawing operations can be transformed by any
179 affine transformation (scale, rotation, shear, etc.).")
180 (license license:lgpl2.1) ; or Mozilla Public License 1.1
181 (home-page "https://cairographics.org/")))
183 (define-public cairo-sans-poppler
184 ;; Variant used to break the dependency cycle between Poppler and Cairo.
185 (package/inherit cairo
186 (inputs (alist-delete "poppler" (package-inputs cairo)))
187 (properties `((hidden? . #t)))))
189 (define-public cairo-xcb
190 (package/inherit cairo
194 ,@(package-inputs cairo)))
198 '("--enable-xlib-xcb" "--enable-gl" "--enable-egl")))
199 (synopsis "2D graphics library (with X11 support)")))
201 (define-public harfbuzz
207 (uri (string-append "https://www.freedesktop.org/software/"
208 "harfbuzz/release/harfbuzz-"
212 "04iwq13w6zkdhljmsxrzgg4fyh04qnwfn57rgrl9kmijc7cvh4wl"))))
213 (build-system gnu-build-system)
215 "bin")) ; 160K, only hb-view depend on cairo
219 ;; There are all in the Requires or Requires.private field of '.pc'.
221 ("graphite2" ,graphite2)
224 `(("glib:bin" ,glib "bin") ;for glib-mkenums
225 ("gobject-introspection" ,gobject-introspection)
226 ("pkg-config" ,pkg-config)
227 ("python" ,python-wrapper)
230 `(#:configure-flags `("--with-graphite2"
233 "--bindir=" (assoc-ref %outputs "bin") "/bin"))))
234 (synopsis "OpenType text shaping engine")
236 "HarfBuzz is an OpenType text shaping engine.")
237 (license (license:x11-style "file://COPYING"
238 "See 'COPYING' in the distribution."))
239 (home-page "https://www.freedesktop.org/wiki/Software/HarfBuzz/")))
241 (define-public libdatrie
249 (string-append "https://linux.thai.net/pub/ThaiLinux/software/"
250 "libthai/libdatrie-" version ".tar.xz"))
252 (base32 "1gplcx9ddglpxmqm10qn38kjmvdh4hnhj14rzgqag095psr1n8qj"))))
253 (build-system gnu-build-system)
254 (outputs '("out" "doc"))
258 (string-append "--with-html-docdir="
259 (assoc-ref %outputs "doc")
260 "/share/doc/datrie/html"))))
262 `(("doxygen" ,doxygen)
263 ("pkg-config" ,pkg-config)))
264 (synopsis "Double-Array Trie Library")
265 (description "Libdatrie is an implementation of double-array structure for
266 representing trie. Trie is a kind of digital search tree.")
267 (home-page "https://linux.thai.net/~thep/datrie/datrie.html")
268 (license license:lgpl2.1+)))
270 (define-public libthai
278 (string-append "https://linux.thai.net/pub/thailinux/software/"
279 "libthai/libthai-" version ".tar.xz"))
281 (base32 "04g93bgxrcnay9fglpq2lj9nr7x1xh06i60m7haip8as9dxs3q7z"))))
282 (build-system gnu-build-system)
283 (outputs '("out" "doc"))
287 (string-append "--with-html-docdir="
288 (assoc-ref %outputs "doc")
289 "/share/doc/libthai/html"))))
291 `(("doxygen" ,doxygen)
292 ("pkg-config" ,pkg-config)))
294 `(("datrie" ,libdatrie)))
295 (synopsis "Thai language support library")
296 (description "LibThai is a set of Thai language support routines aimed to
297 ease developers’ tasks to incorporate Thai language support in their
299 (home-page "https://linux.thai.net/projects/libthai")
300 (license license:lgpl2.1+)))
308 (uri (string-append "mirror://gnome/sources/pango/"
309 (version-major+minor version) "/"
310 name "-" version ".tar.xz"))
311 (patches (search-patches "pango-skip-libthai-test.patch"))
314 "07qvxa2sk90chp1l12han6vxvy098mc37sdqcznyywyv2g6bd9b6"))))
315 (build-system meson-build-system)
317 '(#:phases (modify-phases %standard-phases
318 (add-after 'unpack 'disable-cantarell-tests
320 (substitute* "tests/meson.build"
321 ;; XXX FIXME: These tests require "font-cantarell", but
322 ;; adding it here would introduce a circular dependency.
323 (("\\[ 'test-harfbuzz'.*") "")
324 (("\\[ 'test-itemize'.*") "")
325 (("\\[ 'test-layout'.*") ""))
328 ;; These are all in Requires or Requires.private of the '.pc' files.
331 ("fontconfig" ,fontconfig)
332 ("freetype" ,freetype)
334 ("harfbuzz" ,harfbuzz)
336 ;; Some packages, such as Openbox, expect Pango to be built with the
337 ;; optional libxft support.
342 `(("pkg-config" ,pkg-config)
343 ("glib" ,glib "bin") ; glib-mkenums, etc.
344 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
345 (synopsis "GNOME text and font handling library")
347 "Pango is the core text and font handling library used in GNOME
348 applications. It has extensive support for the different writing systems
349 used throughout the world.")
350 (license license:lgpl2.0+)
351 (home-page "https://developer.gnome.org/pango/")))
353 (define-public pango-1.42
359 (uri (string-append "mirror://gnome/sources/pango/"
360 (version-major+minor version) "/"
361 "pango-" version ".tar.xz"))
364 "17bwb7dgbncrfsmchlib03k9n3xaalirb39g3yb43gg8cg6p8aqx"))))
365 (build-system gnu-build-system)
367 '(#:phases (modify-phases %standard-phases
368 (add-after 'configure 'disable-layout-test
370 ;; This test requires that fontconfig uses bitmap fonts
371 ;; such as "gs-fonts"; however providing such a package
372 ;; alone is not enough, as the requirement comes from
373 ;; deeper in the font stack. Since this version of Pango
374 ;; is only used for librsvg, simply disable the test.
375 (substitute* "tests/Makefile"
376 (("test-layout\\$\\(EXEEXT\\)") ""))
379 (define-public pangox-compat
381 (name "pangox-compat")
385 (uri (string-append "mirror://gnome/sources/" name "/"
386 (version-major+minor version) "/"
387 name "-" version ".tar.xz"))
390 "0ip0ziys6mrqqmz4n71ays0kf5cs1xflj1gfpvs4fgy2nsrr482m"))))
391 (build-system gnu-build-system)
394 ("pango" ,pango-1.42)))
396 `(("intltool" ,intltool)
397 ("pkg-config" ,pkg-config)))
398 (home-page "https://developer.gnome.org/pango")
399 (synopsis "Obsolete pango functions")
400 (description "Pangox was a X backend to pango. It is now obsolete and no
401 longer provided by recent pango releases. pangox-compat provides the
402 functions which were removed.")
403 (license license:lgpl2.0+)))
411 (uri (string-append "https://download.drobilla.net/ganv-"
415 "0pik2d3995z0rjcjhb4hsj5fsph3m8khg6j10k6mx4j2j727aq6l"))))
416 (build-system waf-build-system)
419 (modify-phases %standard-phases
420 (add-before 'configure 'set-flags
421 (lambda* (#:key outputs #:allow-other-keys)
422 ;; Allow 'bin/ganv_bench' to find libganv-1.so.
424 (string-append "-Wl,-rpath="
425 (assoc-ref outputs "out") "/lib"))
427 #:tests? #f)) ; no check target
432 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
433 ("pkg-config" ,pkg-config)))
434 (home-page "https://drobilla.net/software/ganv/")
435 (synopsis "GTK+ widget for interactive graph-like environments")
437 "Ganv is an interactive GTK+ widget for interactive “boxes and lines” or
438 graph-like environments, e.g. modular synths or finite state machine
440 (license license:gpl3+)))
442 (define-public gtksourceview-2
444 (name "gtksourceview")
445 (version "2.10.5") ; This is the last version which builds against gtk+2
448 (uri (string-append "mirror://gnome/sources/" name "/"
449 (version-major+minor version) "/"
450 name "-" version ".tar.bz2"))
453 "07hrabhpl6n8ajz10s0d960jdwndxs87szxyn428mpxi8cvpg1f5"))
456 "gtksourceview-2-add-default-directory.patch"))))
457 (build-system gnu-build-system)
459 `(("intltool" ,intltool)
460 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
461 ("pkg-config" ,pkg-config)
463 ("xorg-server" ,xorg-server-for-tests)
464 ("shared-mime-info" ,shared-mime-info)))
466 ;; As per the pkg-config file.
468 ("libxml2" ,libxml2)))
471 ;; Unfortunately, some of the tests in "make check" are highly dependent
472 ;; on the environment therefore, some black magic is required.
473 (modify-phases %standard-phases
474 (add-before 'check 'start-xserver
475 (lambda* (#:key inputs #:allow-other-keys)
476 (let ((xorg-server (assoc-ref inputs "xorg-server"))
477 (mime (assoc-ref inputs "shared-mime-info")))
479 ;; There must be a running X server and make check doesn't start one.
480 ;; Therefore we must do it.
481 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
482 (setenv "DISPLAY" ":1")
484 ;; The .lang files must be found in $XDG_DATA_HOME/gtksourceview-2.0
485 (system "ln -s gtksourceview gtksourceview-2.0")
486 (setenv "XDG_DATA_HOME" (getcwd))
488 ;; Finally, the mimetypes must be available.
489 (setenv "XDG_DATA_DIRS" (string-append mime "/share/")))
491 (synopsis "Widget that extends the standard GTK+ 2.x 'GtkTextView' widget")
493 "GtkSourceView is a portable C library that extends the standard GTK+
494 framework for multiline text editing with support for configurable syntax
495 highlighting, unlimited undo/redo, search and replace, a completion framework,
496 printing and other features typical of a source code editor.")
497 (license license:lgpl2.0+)
498 (home-page "https://developer.gnome.org/gtksourceview/")))
500 (define-public gtksourceview
502 (name "gtksourceview")
506 (uri (string-append "mirror://gnome/sources/gtksourceview/"
507 (version-major+minor version) "/"
508 "gtksourceview-" version ".tar.xz"))
511 "0xgnjj7jd56wbl99s76sa1vjq9bkz4mdsxwgwlcphg689liyncf4"))))
512 (build-system gnu-build-system)
515 (modify-phases %standard-phases
518 (lambda* (#:key inputs #:allow-other-keys)
519 (let ((xorg-server (assoc-ref inputs "xorg-server")))
520 ;; Tests require a running X server.
521 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
522 (setenv "DISPLAY" ":1")
523 ;; For the missing /etc/machine-id.
524 (setenv "DBUS_FATAL_WARNINGS" "0")
527 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
528 ("intltool" ,intltool)
530 ("gobject-introspection" ,gobject-introspection)
531 ("pkg-config" ,pkg-config)
534 ("xorg-server" ,xorg-server-for-tests)
535 ("shared-mime-info" ,shared-mime-info)))
537 ;; gtksourceview-3.0.pc refers to all these.
540 ("libxml2" ,libxml2)))
541 (home-page "https://wiki.gnome.org/Projects/GtkSourceView")
542 (synopsis "GNOME source code widget")
543 (description "GtkSourceView is a text widget that extends the standard
544 GTK+ text widget GtkTextView. It improves GtkTextView by implementing syntax
545 highlighting and other features typical of a source code editor.")
546 (license license:lgpl2.1+)))
548 (define-public gtksourceview-3
549 (package (inherit gtksourceview)
550 (name "gtksourceview")
554 (uri (string-append "mirror://gnome/sources/" name "/"
555 (version-major+minor version) "/"
556 name "-" version ".tar.xz"))
559 "16ym7jwiki4s1pilwr4incx0yg7ll94f1cajrnpndkxxs36hcm5b"))))))
561 (define-public gdk-pixbuf
567 (uri (string-append "mirror://gnome/sources/" name "/"
568 (version-major+minor version) "/"
569 name "-" version ".tar.xz"))
570 (patches (search-patches "gdk-pixbuf-CVE-2020-29385.patch"))
573 "1rnlx9yfw970maxi2x6niaxmih5la11q1ilr7gzshz2kk585k0hm"))))
574 (build-system meson-build-system)
576 `(#:configure-flags '("-Dinstalled_tests=false")
578 (modify-phases %standard-phases
580 'unpack 'disable-failing-tests
582 (substitute* "tests/meson.build"
583 ;; XXX FIXME: This test fails on armhf machines with:
584 ;; SKIP Not enough memory to load bitmap image
585 ;; ERROR: cve-2015-4491 - too few tests run (expected 4, got 2)
586 ((".*'cve-2015-4491'.*") "")
587 ;; XXX FIXME: This test fails with:
588 ;; ERROR:pixbuf-jpeg.c:74:test_type9_rotation_exif_tag:
589 ;; assertion failed (error == NULL): Data differ
590 ;; (gdk-pixbuf-error-quark, 0)
591 ((".*'pixbuf-jpeg'.*") ""))
593 ;; The slow tests take longer than the specified timeout.
594 ,@(if (any (cute string=? <> (%current-system))
595 '("armhf-linux" "aarch64-linux"))
598 (invoke "meson" "test" "--timeout-multiplier" "5"))))
601 `(;; Required by gdk-pixbuf-2.0.pc
604 ;; Used for testing and required at runtime.
605 ("shared-mime-info" ,shared-mime-info)))
607 `(("libjpeg" ,libjpeg-turbo)
611 `(("pkg-config" ,pkg-config)
612 ("gettext" ,gettext-minimal)
613 ("glib" ,glib "bin") ; glib-mkenums, etc.
614 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
615 (synopsis "GNOME image loading and manipulation library")
617 "GdkPixbuf is a library for image loading and manipulation developed
618 in the GNOME project.")
619 (license license:lgpl2.0+)
620 (home-page "https://developer.gnome.org/gdk-pixbuf/")))
622 ;; To build gdk-pixbuf with SVG support, we need librsvg, and librsvg depends
623 ;; on gdk-pixbuf, so this new varibale. Also, librsvg adds 90MiB to the
625 (define-public gdk-pixbuf+svg
626 (package/inherit gdk-pixbuf
627 (name "gdk-pixbuf+svg")
629 `(("librsvg" ,librsvg)
630 ,@(package-inputs gdk-pixbuf)))
632 '(#:configure-flags '("-Dinstalled-tests=false")
633 #:tests? #f ; tested by the gdk-pixbuf package already
635 (modify-phases %standard-phases
636 (add-after 'install 'register-svg-loader
637 (lambda* (#:key inputs outputs #:allow-other-keys)
638 (let* ((out (assoc-ref outputs "out"))
639 (librsvg (assoc-ref inputs "librsvg"))
642 (find-files out "^libpixbufloader-.*\\.so$")
643 (find-files librsvg "^libpixbufloader-.*\\.so$")))
644 (gdk-pixbuf-query-loaders
645 (string-append out "/bin/gdk-pixbuf-query-loaders")))
647 gdk-pixbuf-query-loaders
651 "GNOME image loading and manipulation library, with SVG support")))
653 (define-public at-spi2-core
655 (name "at-spi2-core")
659 (uri (string-append "mirror://gnome/sources/" name "/"
660 (version-major+minor version) "/"
661 name "-" version ".tar.xz"))
664 "1ihixwhh3c16q6253qj9gf69741rb2pi51822a4rylsfcyywsafn"))))
665 (build-system meson-build-system)
666 (outputs '("out" "doc"))
671 (modify-phases %standard-phases
672 (add-after 'unpack 'set-documentation-path
673 (lambda* (#:key outputs #:allow-other-keys)
674 ;; Ensure that the cross-references point to the "doc" output.
675 (substitute* "doc/libatspi/meson.build"
677 (string-append "docpath = '" (assoc-ref outputs "doc") "/share/gtk-doc/html'\n")))
679 (add-before 'install 'prepare-doc-directory
680 (lambda* (#:key outputs #:allow-other-keys)
681 (mkdir-p (string-append (assoc-ref outputs "doc") "/share"))
683 (add-after 'install 'move-documentation
684 (lambda* (#:key outputs #:allow-other-keys)
685 (let ((out (assoc-ref outputs "out"))
686 (doc (assoc-ref outputs "doc")))
688 (string-append out "/share/gtk-doc")
689 (string-append doc "/share/gtk-doc"))
690 (delete-file-recursively
691 (string-append out "/share/gtk-doc")))
693 (add-after 'install 'check
695 (setenv "HOME" (getenv "TMPDIR")) ; xfconfd requires a writable HOME
696 ;; Run test-suite under a dbus session.
697 (setenv "XDG_DATA_DIRS" ; for finding org.xfce.Xfconf.service
698 (string-append %output "/share"))
699 ;; Don't fail on missing '/etc/machine-id'.
700 (setenv "DBUS_FATAL_WARNINGS" "0") ;
701 (invoke "dbus-launch" "ninja" "test")))
704 ;; atspi-2.pc refers to all these.
708 ("libxtst" ,libxtst)))
710 `(("gettext" ,gettext-minimal)
711 ("gobject-introspection" ,gobject-introspection)
712 ("gtk-doc" ,gtk-doc/stable)
714 ("pkg-config" ,pkg-config)))
715 (synopsis "Assistive Technology Service Provider Interface, core components")
717 "The Assistive Technology Service Provider Interface, core components,
718 is part of the GNOME accessibility project.")
719 (license license:lgpl2.0+)
720 (home-page "https://projects.gnome.org/accessibility/")))
722 ;;; A minimal variant used to prevent a cycle with Inkscape.
723 (define at-spi2-core-minimal
725 (inherit at-spi2-core)
726 (name "at-spi2-core-minimal")
727 (outputs (delete "doc" (package-outputs at-spi2-core)))
729 (substitute-keyword-arguments (package-arguments at-spi2-core)
730 ((#:configure-flags configure-flags)
731 `(delete "-Ddocs=true" ,configure-flags))
733 `(modify-phases ,phases
734 (delete 'set-documentation-path)
735 (delete 'prepare-doc-directory)
736 (delete 'move-documentation)))))
738 (alist-delete "gtk-doc" (package-native-inputs at-spi2-core)))))
740 (define-public at-spi2-atk
746 (uri (string-append "mirror://gnome/sources/" name "/"
747 (version-major+minor version) "/"
748 name "-" version ".tar.xz"))
751 "05ncp7s5nddjinffs26mcvpbd63vk1m3cv5y530p3plgfhqgjvbp"))))
752 (build-system meson-build-system)
755 (modify-phases %standard-phases
757 ;; Run test-suite under a dbus session.
759 (setenv "DBUS_FATAL_WARNINGS" "0")
760 (invoke "dbus-launch" "meson" "test"))))))
762 ;; TODO: Replace by at-spi2-core-minimal in the next staging window, or
763 ;; when Inkscape 0.92 is upgraded to 1.0 to avoid a cycle.
764 `(("at-spi2-core" ,at-spi2-core))) ; required by atk-bridge-2.0.pc
768 `(("pkg-config" ,pkg-config)
771 ("libxml2" ,libxml2)))
772 (synopsis "Assistive Technology Service Provider Interface, ATK bindings")
774 "The Assistive Technology Service Provider Interface
775 is part of the GNOME accessibility project.")
776 (license license:lgpl2.0+)
777 (home-page "https://projects.gnome.org/accessibility/")))
779 (define-public gtk+-2
785 (uri (string-append "mirror://gnome/sources/" name "/"
786 (version-major+minor version) "/"
787 name "-" version ".tar.xz"))
790 "0bjq7ja9gwcv6n5q4qkvdjjx40wsdiikksz1zqxvxsm5vlyskj5n"))
791 (patches (search-patches "gtk2-respect-GUIX_GTK2_PATH.patch"
792 "gtk2-respect-GUIX_GTK2_IM_MODULE_FILE.patch"
793 "gtk2-theme-paths.patch"))))
794 (build-system gnu-build-system)
795 (outputs '("out" "bin" "doc"))
798 ("gdk-pixbuf" ,gdk-pixbuf+svg)
802 ("libxcomposite" ,libxcomposite)
803 ("libxcursor" ,libxcursor)
804 ("libxdamage" ,libxdamage)
806 ("libxinerama" ,libxinerama)
807 ("libxrandr" ,libxrandr)))
810 ("gettext" ,gettext-minimal)
812 ("gobject-introspection" ,gobject-introspection)
813 ("pkg-config" ,pkg-config)
814 ("python-wrapper" ,python-wrapper)))
817 (list "--with-xinput=yes"
818 (string-append "--with-html-dir="
819 (assoc-ref %outputs "doc")
820 "/share/gtk-doc/html"))
822 (modify-phases %standard-phases
823 (add-before 'configure 'disable-tests
825 ;; FIXME: re-enable tests requiring an X server
826 (substitute* "gtk/Makefile.in"
827 (("SUBDIRS = theme-bits . tests") "SUBDIRS = theme-bits ."))
829 (add-after 'install 'remove-cache
830 (lambda* (#:key outputs #:allow-other-keys)
833 (find-files (assoc-ref outputs "out") "immodules.cache"))
836 (list (search-path-specification
837 (variable "GUIX_GTK2_PATH")
838 (files '("lib/gtk-2.0")))))
839 (synopsis "Cross-platform toolkit for creating graphical user interfaces")
841 "GTK+, or the GIMP Toolkit, is a multi-platform toolkit for creating
842 graphical user interfaces. Offering a complete set of widgets, GTK+ is
843 suitable for projects ranging from small one-off tools to complete
844 application suites.")
845 (license license:lgpl2.0+)
846 (home-page "https://www.gtk.org/")))
849 (package (inherit gtk+-2)
854 (uri (string-append "mirror://gnome/sources/" name "/"
855 (version-major+minor version) "/"
856 name "-" version ".tar.xz"))
859 "12ipk1d376bai9v820qzhxba93kkh5abi6mhyqr4hwjvqmkl77fc"))
860 (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch"
861 "gtk3-respect-GUIX_GTK3_IM_MODULE_FILE.patch"))))
863 `(("at-spi2-atk" ,at-spi2-atk)
865 ("gdk-pixbuf" ,gdk-pixbuf+svg)
866 ("libepoxy" ,libepoxy)
867 ("libxcursor" ,libxcursor)
869 ("libxinerama" ,libxinerama)
870 ("libxkbcommon" ,libxkbcommon)
871 ("libxdamage" ,libxdamage)
872 ("libxrandr" ,libxrandr)
876 ("wayland-protocols" ,wayland-protocols)))
878 `(("libxml2" ,libxml2)
879 ;; XXX: colord depends on mozjs (through polkit), which fails on
880 ;; on non-intel systems now.
882 ("cups" ,cups) ;for printing support
883 ;; XXX: rest depends on p11-kit, which fails on mips64el now.
885 ("json-glib" ,json-glib)))
889 ("gettext" ,gettext-minimal)
890 ("pkg-config" ,pkg-config)
891 ("gobject-introspection" ,gobject-introspection)
892 ("python-wrapper" ,python-wrapper)
893 ;; By using a special xorg-server for GTK+'s tests, we reduce the impact
894 ;; of updating xorg-server directly on the master branch.
895 ("xorg-server" ,xorg-server-for-tests)))
897 `(#:disallowed-references (,xorg-server-for-tests)
898 ;; 47 MiB goes to "out" (24 of which is locale data!), and 26 MiB goes
900 #:configure-flags (list (string-append "--with-html-dir="
901 (assoc-ref %outputs "doc")
902 "/share/gtk-doc/html")
903 ;; The header file <gdk/gdkwayland.h> is required
904 ;; by gnome-control-center
905 "--enable-wayland-backend"
906 ;; This is necessary to build both backends.
907 "--enable-x11-backend"
908 ;; This enables the HTML5 websocket backend.
909 "--enable-broadway-backend")
910 #:phases (modify-phases %standard-phases
911 (add-before 'configure 'pre-configure
913 ;; Disable most tests, failing in the chroot with the message:
914 ;; D-Bus library appears to be incorrectly set up; failed to read
915 ;; machine uuid: Failed to open "/etc/machine-id": No such file or
917 ;; See the manual page for dbus-uuidgen to correct this issue.
918 (substitute* "testsuite/Makefile.in"
919 (("SUBDIRS = gdk gtk a11y css reftests")
922 (add-after 'install 'move-desktop-files
923 ;; Move desktop files into 'bin' to avoid cycle references.
924 (lambda* (#:key outputs #:allow-other-keys)
925 (let ((out (assoc-ref outputs "out"))
926 (bin (assoc-ref outputs "bin")))
927 (mkdir-p (string-append bin "/share"))
928 (rename-file (string-append out "/share/applications")
929 (string-append bin "/share/applications"))
932 (list (search-path-specification
933 (variable "GUIX_GTK3_PATH")
934 (files '("lib/gtk-3.0")))))))
940 (define-public guile-cairo
946 (uri (string-append "mirror://savannah/guile-cairo/guile-cairo-"
950 "0yx0844p61ljd4d3d63qrawiygiw6ks02fwv2cqx7nav5kfd8ck2"))
951 (modules '((guix build utils)))
955 ;; Install Scheme files in …/guile/site/X.Y.
956 (substitute* (find-files "." "^Makefile\\.in$")
957 (("^(.*)dir = (.*)/guile/site(.*)" _ name prefix suffix)
958 (string-append name "dir = " prefix
959 "/guile/site/@GUILE_EFFECTIVE_VERSION@"
962 (build-system gnu-build-system)
964 ;; Uses of 'scm_t_uint8' & co. are deprecated; don't stop the build
966 `(#:configure-flags '("--disable-Werror")
967 #:make-flags '("GUILE_AUTO_COMPILE=0") ; to prevent guild warnings
968 #:modules ((guix build gnu-build-system)
973 (modify-phases %standard-phases
974 (add-after 'install 'install-go-files
975 (lambda* (#:key outputs inputs #:allow-other-keys)
976 (let* ((out (assoc-ref outputs "out"))
977 (effective (read-line
978 (open-pipe* OPEN_READ
980 "(display (effective-version))")))
981 (module-dir (string-append out "/share/guile/site/"
983 (object-dir (string-append out "/lib/guile/" effective
985 (prefix (string-length module-dir)))
986 ;; compile to the destination
987 (for-each (lambda (file)
988 (let* ((base (string-drop (string-drop-right file 4)
990 (go (string-append object-dir base ".go")))
991 (invoke "guild" "compile" "-L" module-dir
993 (find-files module-dir "\\.scm$"))
996 `(("guile-lib" ,guile-lib)
998 ("guile" ,guile-3.0)))
1000 ;; The .pc file refers to 'cairo'.
1001 `(("cairo" ,cairo)))
1003 `(("pkg-config" ,pkg-config)))
1004 (home-page "https://www.nongnu.org/guile-cairo/")
1005 (synopsis "Cairo bindings for GNU Guile")
1007 "Guile-Cairo wraps the Cairo graphics library for Guile Scheme.
1008 Guile-Cairo is complete, wrapping almost all of the Cairo API. It is API
1009 stable, providing a firm base on which to do graphics work. Finally, and
1010 importantly, it is pleasant to use. You get a powerful and well-maintained
1011 graphics library with all of the benefits of Scheme: memory management,
1012 exceptions, macros, and a dynamic programming environment.")
1013 (license license:lgpl3+)))
1015 (define-public guile2.2-cairo
1017 (inherit guile-cairo)
1018 (name "guile2.2-cairo")
1020 `(("guile" ,guile-2.2)
1021 ("guile-lib" ,guile2.2-lib)
1022 ,@(fold alist-delete (package-inputs guile-cairo)
1023 '("guile" "guile-lib"))))))
1025 (define-public guile3.0-cairo
1026 (deprecated-package "guile3.0-cairo" guile-cairo))
1028 (define-public guile-rsvg
1029 ;; Use a recent snapshot that supports Guile 2.2 and beyond.
1030 (let ((commit "05c6a2fd67e4fea1a7c3ff776729dc931bae6678")
1034 (version (string-append "2.18.1-" revision "."
1035 (string-take commit 7)))
1039 (url "https://gitlab.com/wingo/guile-rsvg/")
1043 "0cnbl40df2sbhpc32cma6j6w312rfvcgbxxqaixgf0ymim3fb248"))
1044 (patches (search-patches "guile-rsvg-pkgconfig.patch"))
1045 (modules '((guix build utils)))
1048 (substitute* (find-files "." "Makefile\\.am")
1049 (("/share/guile/site")
1050 "/share/guile/site/@GUILE_EFFECTIVE_VERSION@"))
1052 (file-name (string-append name "-" version ".tar.gz"))))
1053 (build-system gnu-build-system)
1055 `(#:modules ((guix build gnu-build-system)
1060 (modify-phases %standard-phases
1063 (invoke "autoreconf" "-vfi")))
1064 (add-after 'install 'install-go-files
1065 (lambda* (#:key outputs inputs #:allow-other-keys)
1066 (let* ((out (assoc-ref outputs "out"))
1067 (effective (read-line
1068 (open-pipe* OPEN_READ
1070 "(display (effective-version))")))
1071 (module-dir (string-append out "/share/guile/site/"
1073 (object-dir (string-append out "/lib/guile/" effective
1075 (prefix (string-length module-dir)))
1076 ;; compile to the destination
1077 (for-each (lambda (file)
1078 (let* ((base (string-drop (string-drop-right file 4)
1080 (go (string-append object-dir base ".go")))
1081 (invoke "guild" "compile" "-L" module-dir
1083 (find-files module-dir "\\.scm$"))
1085 (native-inputs `(("pkg-config" ,pkg-config)
1086 ("autoconf" ,autoconf)
1087 ("automake" ,automake)
1088 ("libtool" ,libtool)
1089 ("texinfo" ,texinfo)))
1090 (inputs `(("guile" ,guile-3.0)
1091 ("librsvg" ,librsvg)
1092 ("guile-lib" ,guile-lib))) ;for (unit-test)
1093 (propagated-inputs `(("guile-cairo" ,guile-cairo)))
1094 (synopsis "Render SVG images using Cairo from Guile")
1096 "Guile-RSVG wraps the RSVG library for Guile, allowing you to render SVG
1097 images onto Cairo surfaces.")
1098 (home-page "https://wingolog.org/projects/guile-rsvg/")
1099 (license license:lgpl2.1+))))
1101 (define-public guile2.2-rsvg
1103 (inherit guile-rsvg)
1104 (name "guile2.2-rsvg")
1106 `(("guile" ,guile-2.2)
1107 ("guile-lib" ,guile2.2-lib)
1108 ,@(fold alist-delete (package-inputs guile-rsvg)
1109 '("guile" "guile-lib"))))
1110 (propagated-inputs `(("guile-cairo" ,guile2.2-cairo)))))
1112 (define-public guile3.0-rsvg
1113 (deprecated-package "guile3.0-rsvg" guile-rsvg))
1115 (define-public guile-present
1117 (name "guile-present")
1121 (uri (string-append "http://wingolog.org/pub/guile-present/"
1122 "guile-present-" version ".tar.gz"))
1125 "1qam447m05sxxv6x8dlzg7qnyfc4dh8apjw1idpfhpns671gfr6m"))
1126 (patches (search-patches "guile-present-coding.patch"))
1127 (modules '((guix build utils)))
1130 ;; Allow builds with Guile 3.0.
1131 (substitute* "configure"
1135 ;; Install .go files in the right place.
1136 (substitute* "Makefile.in"
1137 (("/ccache") "/site-ccache"))
1139 (build-system gnu-build-system)
1142 (modify-phases %standard-phases
1143 (add-after 'install 'post-install
1144 (lambda* (#:key inputs outputs #:allow-other-keys)
1145 (let* ((out (assoc-ref outputs "out"))
1146 (bin (string-append out "/bin"))
1147 (guile (assoc-ref inputs "guile"))
1149 ,(match (assoc "guile" (package-inputs this-package))
1151 (version-major+minor (package-version guile))))))
1152 (substitute* (find-files bin ".*")
1154 (string-append guile "/bin/guile -L "
1155 out "/share/guile/site/" version " -C "
1156 out "/lib/guile/" version "/site-ccache "))))
1158 (native-inputs `(("pkg-config" ,pkg-config)))
1159 (inputs `(("guile" ,guile-3.0)))
1161 ;; These are used by the (present …) modules.
1162 `(("guile-lib" ,guile-lib)
1163 ("guile-cairo" ,guile-cairo)
1164 ("guile-rsvg" ,guile-rsvg)))
1165 (home-page "https://wingolog.org/software/guile-present/")
1166 (synopsis "Create SVG or PDF presentations in Guile")
1168 "Guile-Present defines a declarative vocabulary for presentations,
1169 together with tools to render presentation documents as SVG or PDF.
1170 Guile-Present can be used to make presentations programmatically, but also
1171 includes a tools to generate PDF presentations out of Org mode and Texinfo
1173 (license license:lgpl3+)))
1175 (define-public guile2.2-present
1177 (inherit guile-present)
1178 (name "guile2.2-present")
1179 (inputs `(("guile" ,guile-2.2)))
1181 `(("guile-lib" ,guile2.2-lib)
1182 ("guile-cairo" ,guile2.2-cairo)
1183 ("guile-rsvg" ,guile2.2-rsvg)))))
1185 (define-public guile3.0-present
1186 (deprecated-package "guile3.0-present" guile-present))
1188 (define-public guile-gnome
1190 (name "guile-gnome")
1195 (string-append "mirror://gnu/" name
1196 "/guile-gnome-platform/guile-gnome-platform-"
1200 "1gnf3j96nip5kl99a268i0dy1hj7s1cfs66sps3zwysnkd7qr399"))))
1201 (build-system gnu-build-system)
1203 `(("pkg-config" ,pkg-config)
1205 ;;("corba" ,corba) ; not packaged yet
1207 ("gobject-introspection" ,gobject-introspection)
1208 ;;("gthread" ,gthread) ; not packaged yet
1209 ("gnome-vfs" ,gnome-vfs)
1210 ("gdk-pixbuf" ,gdk-pixbuf)
1212 ("libglade" ,libglade)
1213 ("libgnome" ,libgnome)
1214 ("libgnomecanvas" ,libgnomecanvas)
1215 ("libgnomeui" ,libgnomeui)
1219 (inputs `(("guile" ,guile-2.2)))
1221 `(("guile-cairo" ,guile2.2-cairo)
1223 ("guile-lib" ,guile2.2-lib)))
1225 `(#:tests? #f ;FIXME
1226 #:phases (modify-phases %standard-phases
1227 (add-before 'configure 'pre-configure
1228 (lambda* (#:key outputs #:allow-other-keys)
1229 (let ((out (assoc-ref outputs "out")))
1230 (substitute* (find-files "." "^Makefile.in$")
1231 (("guilesite :=.*guile/site" all)
1232 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
1234 (outputs '("out" "debug"))
1235 (synopsis "Guile interface for GTK+ programming for GNOME")
1237 "Includes guile-clutter, guile-gnome-gstreamer,
1238 guile-gnome-platform (GNOME developer libraries), and guile-gtksourceview.")
1239 (home-page "https://www.gnu.org/software/guile-gnome/")
1240 (license license:gpl2+)
1241 (properties '((upstream-name . "guile-gnome-platform")
1242 (ftp-directory . "/gnu/guile-gnome/guile-gnome-platform")))))
1248 (define-public cairomm
1254 (uri (string-append "https://www.cairographics.org/releases/"
1255 name "-" version ".tar.gz"))
1258 "16fmigxsaz85c3lgcls7biwyz8zy8c8h3jndfm54cxxas3a7zi25"))))
1259 (build-system gnu-build-system)
1261 ;; The examples lack -lcairo.
1262 '(#:make-flags '("LDFLAGS=-lcairo")))
1263 (native-inputs `(("pkg-config" ,pkg-config)))
1265 `(("libsigc++" ,libsigc++)
1266 ("freetype" ,freetype)
1267 ("fontconfig" ,fontconfig)
1269 (home-page "https://cairographics.org/")
1270 (synopsis "C++ bindings to the Cairo 2D graphics library")
1272 "Cairomm provides a C++ programming interface to the Cairo 2D graphics
1274 (license license:lgpl2.0+)))
1276 (define-public cairomm-1.13
1285 (string-append "https://www.cairographics.org/releases/"
1286 name "-" version ".tar.gz"))
1288 (base32 "1xlfl0fm5mgv53lr8xjv2kqsk3bz67qkk6qzvbrqmbvbvvbqp9wp"))))
1291 ("sigc++" ,libsigc++)))))
1293 (define-public pangomm
1299 (uri (string-append "mirror://gnome/sources/" name "/"
1300 (version-major+minor version) "/"
1301 name "-" version ".tar.xz"))
1304 "0mmzxp3wniaafkxr30sb22mq9x44xckb5d60h1bl99lkzxks0vfa"))))
1305 (build-system gnu-build-system)
1306 (native-inputs `(("pkg-config" ,pkg-config)))
1309 ("cairomm" ,cairomm)
1312 (home-page "https://pango.gnome.org//")
1313 (synopsis "C++ interface to the Pango text rendering library")
1315 "Pangomm provides a C++ programming interface to the Pango text rendering
1317 (license license:lgpl2.1+)))
1319 (define-public pangomm-2.42
1328 (string-append "mirror://gnome/sources/" name "/"
1329 (version-major+minor version) "/"
1330 name "-" version ".tar.xz"))
1332 (base32 "03zli5amizhv9bfklwfq7xyf0b5dagchx1lnz9f0v1rhk69h9gql"))))
1334 `(("cairomm" ,cairomm-1.13)
1335 ("glibmm" ,glibmm-2.64)
1336 ("pango" ,pango)))))
1338 (define-public atkmm
1344 (uri (string-append "mirror://gnome/sources/" name "/"
1345 (version-major+minor version) "/"
1346 name "-" version ".tar.xz"))
1349 "0fnxrspxkhhbrjphqrpvl3zjm66n50s4cywrrrwkhbflgy8zqk2c"))))
1350 (build-system gnu-build-system)
1351 (native-inputs `(("pkg-config" ,pkg-config)))
1353 `(("glibmm" ,glibmm) ("atk" ,atk)))
1354 (home-page "https://www.gtkmm.org")
1355 (synopsis "C++ interface to the ATK accessibility library")
1357 "ATKmm provides a C++ programming interface to the ATK accessibility
1359 (license license:lgpl2.1+)))
1361 (define-public gtkmm
1367 (uri (string-append "mirror://gnome/sources/" name "/"
1368 (version-major+minor version) "/"
1369 name "-" version ".tar.xz"))
1372 "1hxdnhavjyvbcpxhd5z17l9fj4182028s66lc0s16qqqrldhjwbd"))))
1373 (build-system gnu-build-system)
1374 (native-inputs `(("pkg-config" ,pkg-config)
1375 ("glib" ,glib "bin") ;for 'glib-compile-resources'
1376 ("xorg-server" ,xorg-server-for-tests)))
1378 `(("pangomm" ,pangomm)
1379 ("cairomm" ,cairomm)
1382 ("glibmm" ,glibmm)))
1384 `(#:disallowed-references (,xorg-server-for-tests)
1385 #:phases (modify-phases %standard-phases
1386 (add-before 'check 'run-xvfb
1387 (lambda* (#:key inputs #:allow-other-keys)
1388 (let ((xorg-server (assoc-ref inputs "xorg-server")))
1389 ;; Tests such as 'object_move/test' require a running
1391 (system (string-append xorg-server "/bin/Xvfb :1 &"))
1392 (setenv "DISPLAY" ":1")
1393 ;; Don't fail because of the missing /etc/machine-id.
1394 (setenv "DBUS_FATAL_WARNINGS" "0")
1396 (home-page "https://gtkmm.org/")
1398 "C++ interface to the GTK+ graphical user interface library")
1400 "gtkmm is the official C++ interface for the popular GUI library GTK+.
1401 Highlights include typesafe callbacks, and a comprehensive set of widgets that
1402 are easily extensible via inheritance. You can create user interfaces either
1403 in code or with the Glade User Interface designer, using libglademm. There's
1404 extensive documentation, including API reference and a tutorial.")
1405 (license license:lgpl2.1+)))
1408 (define-public gtkmm-2
1409 (package (inherit gtkmm)
1414 (uri (string-append "mirror://gnome/sources/" name "/"
1415 (version-major+minor version) "/"
1416 name "-" version ".tar.xz"))
1419 "0wkbzvsx4kgw16f6xjdc1dz7f77ldngdila4yi5lw2zrgcxsb006"))))
1421 (native-inputs `(("pkg-config" ,pkg-config)))
1423 `(("pangomm" ,pangomm)
1424 ("cairomm" ,cairomm)
1427 ("glibmm" ,glibmm)))))
1429 (define-public gtksourceviewmm
1431 (name "gtksourceviewmm")
1435 (uri (string-append "mirror://gnome/sources/" name "/"
1436 (version-major+minor version) "/"
1437 name "-" version ".tar.xz"))
1439 (base32 "0fgvmhm4h4qmxig87qvangs6ijw53mi40siz7pixlxbrsgiil22i"))))
1440 (build-system gnu-build-system)
1442 `(("pkg-config" ,pkg-config)))
1444 ;; In 'Requires' of gtksourceviewmm-3.0.pc.
1445 `(("glibmm" ,glibmm)
1447 ("gtksourceview" ,gtksourceview-3)))
1448 (synopsis "C++ interface to the GTK+ 'GtkTextView' widget")
1450 "gtksourceviewmm is a portable C++ library that extends the standard GTK+
1451 framework for multiline text editing with support for configurable syntax
1452 highlighting, unlimited undo/redo, search and replace, a completion framework,
1453 printing and other features typical of a source code editor.")
1454 (license license:lgpl2.1+)
1455 (home-page "https://developer.gnome.org/gtksourceview/")))
1458 ;;; Python bindings.
1461 (define-public python-pycairo
1463 (name "python-pycairo")
1468 (uri (string-append "https://github.com/pygobject/pycairo/releases/download/v"
1469 version "/pycairo-" version ".tar.gz"))
1472 "111fav9m1iagw3nh2ws2vzkjh34r97yl7rdlpvsngsqg521k251c"))))
1473 (build-system python-build-system)
1475 `(("pkg-config" ,pkg-config)
1476 ("python-pytest" ,python-pytest)))
1477 (propagated-inputs ;pycairo.pc references cairo
1478 `(("cairo" ,cairo)))
1479 (home-page "https://cairographics.org/pycairo/")
1480 (synopsis "Python bindings for cairo")
1482 "Pycairo is a set of Python bindings for the Cairo graphics library.")
1483 (license license:lgpl3+)
1484 (properties `((python2-variant . ,(delay python2-pycairo))))))
1486 ;; Pycairo no longer supports Python 2 since version 1.19.0, so we stick
1487 ;; with this older version here.
1488 (define-public python2-pycairo
1489 (let ((pycairo (package-with-python2
1490 (strip-python2-variant python-pycairo))))
1496 (uri (string-append "https://github.com/pygobject/pycairo/releases"
1497 "/download/v" version "/pycairo-" version ".tar.gz"))
1500 "0cb5n4r4nl0k1g90b1gz9iyk4lp7hi03db98i1p52a870bym7f6w"))))
1501 ;; Dual-licensed under LGPL 2.1 or Mozilla Public License 1.1
1502 (license (list license:lgpl2.1 license:mpl1.1)))))
1504 (define-public python2-pygtk
1506 (name "python2-pygtk")
1511 (uri (string-append "mirror://gnome/sources"
1512 "/pygtk/" (version-major+minor version)
1513 "/pygtk-" version ".tar.bz2"))
1516 "04k942gn8vl95kwf0qskkv6npclfm31d78ljkrkgyqxxcni1w76d"))))
1517 (build-system gnu-build-system)
1519 "doc")) ;13 MiB of gtk-doc HTML
1521 `(("pkg-config" ,pkg-config)))
1523 `(("python" ,python-2)
1525 ;; XXX: The package fails to build with the latest Pango (propagated
1526 ;; from GTK+2), so we provide it with this older version.
1527 ("pango" ,pango-1.42)
1529 ("libglade" ,libglade)
1532 `(("python-pycairo" ,python2-pycairo) ;loaded at runtime
1533 ("python-pygobject" ,python2-pygobject-2) ;referenced in pc file
1537 #:phases (modify-phases %standard-phases
1538 (add-before 'configure 'set-gtk-doc-directory
1539 (lambda* (#:key outputs #:allow-other-keys)
1540 ;; Install documentation to "doc".
1541 (let ((doc (assoc-ref outputs "doc")))
1542 (substitute* "docs/Makefile.in"
1543 (("TARGET_DIR = \\$\\(datadir\\)")
1544 (string-append "TARGET_DIR = " doc))))))
1545 (add-after 'configure 'fix-codegen
1546 (lambda* (#:key inputs #:allow-other-keys)
1547 (substitute* "pygtk-codegen-2.0"
1551 (assoc-ref inputs "python-pygobject") "\n")))))
1552 (add-after 'install 'install-pth
1553 (lambda* (#:key inputs outputs #:allow-other-keys)
1554 ;; pygtk's modules are stored in a subdirectory of
1555 ;; python's site-packages directory. Add a .pth file so
1556 ;; that python will add that subdirectory to its module
1558 (let* ((out (assoc-ref outputs "out"))
1559 (site (string-append out "/lib/python"
1560 ,(version-major+minor
1561 (package-version python-2))
1563 (call-with-output-file (string-append site "/pygtk.pth")
1565 (format port "gtk-2.0~%")))))))))
1566 (home-page "http://www.pygtk.org/")
1567 (synopsis "Python bindings for GTK+")
1569 "PyGTK allows you to write full featured GTK programs in Python. It is
1570 targeted at GTK 2.x, and can be used in conjunction with gnome-python to
1571 write GNOME applications.")
1572 (license license:lgpl2.1+)))
1574 (define-public perl-cairo
1581 "mirror://cpan/authors/id/X/XA/XAOC/Cairo-"
1585 "0zq78dv22arg35ma6kah9cwfd1zx8gg7amsibzd128qw81p766c2"))))
1586 (build-system perl-build-system)
1588 `(("perl-extutils-depends" ,perl-extutils-depends)
1589 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1591 `(("cairo" ,cairo)))
1592 (home-page "https://metacpan.org/release/Cairo")
1593 (synopsis "Perl interface to the cairo 2d vector graphics library")
1594 (description "Cairo provides Perl bindings for the vector graphics library
1595 cairo. It supports multiple output targets, including PNG, PDF and SVG. Cairo
1596 produces identical output on all those targets.")
1597 (license license:lgpl2.1+)))
1599 (define-public perl-cairo-gobject
1601 (name "perl-cairo-gobject")
1606 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/"
1607 "Cairo-GObject-" version ".tar.gz"))
1609 (base32 "0l2wcz77ndmbgvxx34gdm919a3dxh9fixqr47p50n78ysx2692cd"))))
1610 (build-system perl-build-system)
1612 `(("perl-extutils-depends" ,perl-extutils-depends)
1613 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1615 `(("perl-cairo" ,perl-cairo)
1616 ("perl-glib" ,perl-glib)))
1617 (home-page "https://metacpan.org/dist/Cairo-GObject")
1618 (synopsis "Integrate Cairo into the Glib type system")
1619 (description "Cairo::GObject registers Cairo's types with Glib's type systems,
1620 so that they can be used normally in signals and properties.")
1621 (license license:lgpl2.1+)))
1623 (define-public perl-gtk2
1629 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Gtk2-"
1633 "0ry9jfvfgdwzalxcvwsgr7plhk3agx7p40l0fqdf3vrf7ds47i29"))))
1634 (build-system perl-build-system)
1636 `(("perl-extutils-depends" ,perl-extutils-depends)
1637 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1639 `(("gtk+" ,gtk+-2)))
1641 `(("perl-pango" ,perl-pango)))
1644 (modify-phases %standard-phases
1645 (add-before 'build 'remove-broken-test
1646 ;; See https://gitlab.gnome.org/GNOME/perl-gtk2/issues/3.
1648 (substitute* "t/GdkPixbuf.t"
1649 (("tests => 112") "tests => 111")
1650 (("ok \\(defined \\$pixbuf, \"Don't crash on partial pixmap data\"\\);")
1651 "# ok (defined $pixbuf, \"Don't crash on partial pixmap data\");")))))))
1652 (home-page "https://metacpan.org/release/Gtk2")
1653 (synopsis "Perl interface to the 2.x series of the Gimp Toolkit library")
1654 (description "Perl bindings to the 2.x series of the Gtk+ widget set.
1655 This module allows you to write graphical user interfaces in a Perlish and
1656 object-oriented way, freeing you from the casting and memory management in C,
1657 yet remaining very close in spirit to original API.")
1658 (license license:lgpl2.1+)))
1660 (define-public perl-pango
1666 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Pango-"
1670 "0wdcidnfnb6nm79fzfs39ivawj3x8m98a147fmcxgv1zvwia9c1l"))))
1671 (build-system perl-build-system)
1673 `(("perl-extutils-depends" ,perl-extutils-depends)
1674 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1676 `(("pango" ,pango)))
1678 `(("perl-cairo" ,perl-cairo)
1679 ("perl-glib" ,perl-glib)))
1680 (home-page "https://metacpan.org/release/Pango")
1681 (synopsis "Layout and render international text")
1682 (description "Pango is a library for laying out and rendering text, with an
1683 emphasis on internationalization. Pango can be used anywhere that text layout
1684 is needed, but using Pango in conjunction with Cairo and/or Gtk2 provides a
1685 complete solution with high quality text handling and graphics rendering.
1687 Dynamically loaded modules handle text layout for particular combinations of
1688 script and font backend. Pango provides a wide selection of modules, including
1689 modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts.
1690 Virtually all of the world's major scripts are supported.
1692 In addition to the low level layout rendering routines, Pango includes
1693 @code{Pango::Layout}, a high level driver for laying out entire blocks of text,
1694 and routines to assist in editing internationalized text.")
1695 (license license:lgpl2.1+)))
1697 (define-public girara
1705 (url "https://git.pwmt.org/pwmt/girara")
1707 (file-name (git-file-name name version))
1709 (base32 "08rpw9hkaprm4r853xy1d35i2af1pji8c3mzzl01mmwmyr9p0x8k"))))
1710 (native-inputs `(("pkg-config" ,pkg-config)
1711 ("check" ,check-0.14)
1712 ("gettext" ,gettext-minimal)
1713 ("glib:bin" ,glib "bin")
1714 ("xorg-server" ,xorg-server-for-tests)))
1715 ;; Listed in 'Requires.private' of 'girara.pc'.
1716 (propagated-inputs `(("gtk+" ,gtk+)))
1718 `(#:phases (modify-phases %standard-phases
1719 (add-before 'check 'start-xserver
1720 ;; Tests require a running X server.
1721 (lambda* (#:key inputs #:allow-other-keys)
1722 (let ((xorg-server (assoc-ref inputs "xorg-server"))
1724 (setenv "DISPLAY" display)
1726 ;; On busy machines, tests may take longer than
1727 ;; the default of four seconds.
1728 (setenv "CK_DEFAULT_TIMEOUT" "20")
1730 ;; Don't fail due to missing '/etc/machine-id'.
1731 (setenv "DBUS_FATAL_WARNINGS" "0")
1732 (zero? (system (string-append xorg-server "/bin/Xvfb "
1733 display " &")))))))))
1734 (build-system meson-build-system)
1735 (home-page "https://pwmt.org/projects/girara/")
1736 (synopsis "Library for minimalistic gtk+3 user interfaces")
1737 (description "Girara is a library that implements a user interface that
1738 focuses on simplicity and minimalism. Currently based on GTK+, a
1739 cross-platform widget toolkit, it provides an interface that focuses on three
1740 main components: a so-called view widget that represents the actual
1741 application, an input bar that is used to execute commands of the
1742 application and the status bar which provides the user with current
1744 (license license:zlib)))
1746 (define-public gtk-doc
1752 (uri (string-append "mirror://gnome/sources/" name "/"
1753 (version-major+minor version) "/"
1754 name "-" version ".tar.xz"))
1757 "05apmwibkmn1icx05l8aw241lhymcx01zvk5i499cb150bijj7li"))))
1758 (build-system gnu-build-system)
1760 `(#:parallel-tests? #f
1762 (modify-phases %standard-phases
1763 (add-after 'unpack 'patch-gtk-doc-scan
1764 (lambda* (#:key inputs #:allow-other-keys)
1765 (substitute* "gtk-doc.xsl"
1766 (("http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl")
1767 (string-append (assoc-ref inputs "docbook-xsl")
1768 "/xml/xsl/docbook-xsl-"
1769 ,(package-version docbook-xsl)
1771 (("http://docbook.sourceforge.net/release/xsl/current/common/en.xml")
1772 (string-append (assoc-ref inputs "docbook-xsl")
1773 "/xml/xsl/docbook-xsl-"
1774 ,(package-version docbook-xsl)
1777 (add-after 'patch-gtk-doc-scan 'patch-test-out
1779 ;; sanity.sh counts the number of status lines. Since our
1780 ;; texlive regenerates the fonts every time and the font
1781 ;; generator metafont outputs a lot of extra lines, this
1782 ;; test would always fail. Disable it for now.
1783 (substitute* "tests/Makefile.in"
1784 (("empty.sh sanity.sh") "empty.sh"))
1786 (add-before 'build 'set-HOME
1788 ;; FIXME: dblatex with texlive-union does not find the built
1789 ;; metafonts, so it tries to generate them in HOME.
1790 (setenv "HOME" "/tmp")
1792 (add-before 'configure 'fix-docbook
1793 (lambda* (#:key inputs #:allow-other-keys)
1794 (substitute* "configure"
1795 ;; The configure check is overzealous about making sure that
1796 ;; things are in place -- it uses the xmlcatalog tool to make
1797 ;; sure that docbook-xsl is available, but this tool can only
1798 ;; look in one catalog file, unlike the $XML_CATALOG_FILES
1799 ;; variable that Guix defines. Fool the test by using the
1800 ;; docbook-xsl catalog explicitly and get on with life.
1801 (("\"\\$XML_CATALOG_FILE\" \
1802 \"http://docbook.sourceforge.net/release/xsl/")
1803 (string-append (car (find-files (assoc-ref inputs "docbook-xsl")
1805 " \"http://docbook.sourceforge.net/release/xsl/")))
1807 (add-after 'install 'wrap-executables
1808 (lambda* (#:key outputs #:allow-other-keys)
1809 (let ((out (assoc-ref outputs "out")))
1810 (for-each (lambda (prog)
1812 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))))
1813 (find-files (string-append out "/bin")))
1816 (list (string-append "--with-xml-catalog="
1817 (assoc-ref %build-inputs "docbook-xml")
1818 "/xml/dtd/docbook/catalog.xml"))))
1820 `(("pkg-config" ,pkg-config)
1821 ("itstool" ,itstool)
1823 ("gettext" ,gettext-minimal)
1828 ("xsltproc" ,libxslt)
1829 ("dblatex" ,dblatex)
1830 ("docbook-xml" ,docbook-xml-4.3)
1831 ("docbook-xsl" ,docbook-xsl)
1832 ("source-highlight" ,source-highlight)
1834 ("python-six" ,python-six)))
1835 (home-page "https://www.gtk.org/gtk-doc/")
1836 (synopsis "Documentation generator from C source code")
1838 "GTK-Doc generates API documentation from comments added to C code. It is
1839 typically used to document the public API of GTK+ and GNOME libraries, but it
1840 can also be used to document application code.")
1841 (license license:gpl2+)))
1843 ;; This is a variant of the 'gtk-doc' package that is not updated often. It
1844 ;; is intended to be used as a native-input at build-time only. This allows
1845 ;; the main 'gtk-doc', 'dblatex' and 'imagemagick' packages to be freely
1846 ;; updated on the 'master' branch without triggering an excessive number of
1848 (define-public gtk-doc/stable
1850 (package/inherit gtk-doc
1851 (inputs (alist-replace "dblatex" `(,dblatex/stable)
1852 (package-inputs gtk-doc))))))
1854 (define-public gtk-engines
1856 (name "gtk-engines")
1860 (uri (string-append "mirror://gnome/sources/" name "/"
1861 (version-major+minor version) "/"
1862 name "-" version ".tar.bz2"))
1865 "1db65pb0j0mijmswrvpgkdabilqd23x22d95hp5kwxvcramq1dhm"))))
1866 (build-system gnu-build-system)
1869 `("--enable-animation")))
1871 `(("pkg-config" ,pkg-config)
1872 ("intltool" ,intltool)))
1874 ;; Don't propagate GTK+ to reduce "profile pollution".
1875 `(("gtk+" ,gtk+-2))) ; required by gtk-engines-2.pc
1876 (home-page "https://live.gnome.org/GnomeArt")
1877 (synopsis "Theming engines for GTK+ 2.x")
1879 "This package contains the standard GTK+ 2.x theming engines including
1880 Clearlooks, Crux, High Contrast, Industrial, LighthouseBlue, Metal, Mist,
1881 Redmond95 and ThinIce.")
1882 (license (list license:gpl2+ license:lgpl2.1+))))
1884 (define-public murrine
1890 (uri (string-append "mirror://gnome/sources/" name "/"
1891 (version-major+minor version) "/"
1892 name "-" version ".tar.xz"))
1895 "129cs5bqw23i76h3nmc29c9mqkm9460iwc8vkl7hs4xr07h8mip9"))))
1896 (build-system gnu-build-system)
1899 `("--enable-animation"
1900 "--enable-animationrtl")))
1902 `(("pkg-config" ,pkg-config)
1903 ("intltool" ,intltool)))
1905 `(("gtk+" ,gtk+-2)))
1906 (home-page "https://live.gnome.org/GnomeArt")
1907 (synopsis "Cairo-based theming engine for GTK+ 2.x")
1909 "Murrine is a cairo-based GTK+ theming engine. It is named after the
1910 glass artworks done by Venicians glass blowers.")
1911 (license license:gpl2+)))
1913 (define-public gtkspell3
1919 (uri (string-append "mirror://sourceforge/gtkspell/"
1920 version "/" name "-" version ".tar.xz"))
1923 "0cjp6xdcnzh6kka42w9g0w2ihqjlq8yl8hjm9wsfnixk6qwgch5h"))))
1924 (build-system gnu-build-system)
1926 `(("intltool" ,intltool)
1927 ("pkg-config" ,pkg-config)
1930 `(("gobject-introspection" ,gobject-introspection)
1934 `(("enchant" ,enchant))) ; gtkspell3-3.0.pc refers to it
1935 (home-page "http://gtkspell.sourceforge.net")
1936 (synopsis "Spell-checking addon for GTK's TextView widget")
1938 "GtkSpell provides word-processor-style highlighting and replacement of
1939 misspelled words in a GtkTextView widget.")
1940 (license license:gpl2+)))
1942 (define-public clipit
1950 (url "https://github.com/CristianHenzel/ClipIt")
1951 (commit (string-append "v" version))))
1952 (file-name (git-file-name name version))
1954 (base32 "05xi29v2y0rvb33fmvrz7r9j4l858qj7ngwd7dp4pzpkkaybjln0"))))
1955 (build-system gnu-build-system)
1957 `(("autoconf" ,autoconf)
1958 ("automake" ,automake)
1959 ("intltool" ,intltool)
1960 ("pkg-config" ,pkg-config)))
1962 `(("gtk+" ,gtk+-2)))
1963 (home-page "https://github.com/CristianHenzel/ClipIt")
1964 (synopsis "Lightweight GTK+ clipboard manager")
1966 "ClipIt is a clipboard manager with features such as a history, search
1967 thereof, global hotkeys and clipboard item actions. It was forked from
1968 Parcellite and adds bugfixes and features.")
1969 (license license:gpl2+)))
1971 (define-public graphene
1980 (url "https://github.com/ebassi/graphene.git")
1982 (file-name (git-file-name name version))
1984 (base32 "14a0j1rvjlc7yhfdmhmckdmkzy4ch61qbzywdlw1xv58h23wx29p"))))
1985 (build-system meson-build-system)
1987 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
1990 "-Dinstalled_tests=false")))
1992 `(("git" ,git-minimal)
1993 ("gobject-introspection" ,gobject-introspection)
1995 ("pkg-config" ,pkg-config)))
1998 ("python" ,python)))
1999 (synopsis "Thin layer of graphic data types")
2000 (description "Graphene provides graphic types and their relative API; it
2001 does not deal with windowing system surfaces, drawing, scene graphs, or input.")
2002 (home-page "https://ebassi.github.io/graphene/")
2003 (license license:expat)))
2005 (define-public spread-sheet-widget
2007 (name "spread-sheet-widget")
2012 (uri (string-append "https://alpha.gnu.org/gnu/ssw/"
2013 "spread-sheet-widget-" version ".tar.gz"))
2015 (base32 "09rzgp7gabnzab460x874a1ibgyjiibpwzsz5srn9zs6jv2jdxjb"))))
2016 (build-system gnu-build-system)
2018 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
2019 ("pkg-config" ,pkg-config)))
2020 ;; In 'Requires' of spread-sheet-widget.pc.
2024 (home-page "https://www.gnu.org/software/ssw/")
2025 (synopsis "Gtk+ widget for dealing with 2-D tabular data")
2027 "GNU Spread Sheet Widget is a library for Gtk+ which provides a widget for
2028 viewing and manipulating 2 dimensional tabular data in a manner similar to many
2029 popular spread sheet programs.")
2030 (license license:gpl3+)))
2032 (define-public volumeicon
2039 (uri (string-append "http://nullwise.com/files/volumeicon/volumeicon-"
2042 (base32 "182xl2w8syv6ky2h2bc9imc6ap8pzh0p7rp63hh8nw0xm38c3f14"))))
2043 (build-system gnu-build-system)
2046 (list "--enable-notify"))) ; optional libnotify support
2048 `(("intltool" ,intltool)
2049 ("pkg-config" ,pkg-config)))
2051 `(("alsa-lib" ,alsa-lib)
2053 ("libnotify" ,libnotify)))
2054 (home-page "http://nullwise.com/volumeicon.html")
2055 (synopsis "System tray volume applet")
2057 "Volume Icon is a volume indicator and control applet for @acronym{the
2058 Advanced Linux Sound Architecture, ALSA}. It sits in the system tray,
2059 independent of your desktop environment, and supports global key bindings.")
2060 (license (list license:expat ; src/{bind.c,keybinder.h}
2061 license:isc ; src/alsa_volume_mapping.c
2062 license:gpl3)))) ; the rest & combined work
2072 (url "https://github.com/v1cont/yad")
2073 (commit (string-append "v" version))))
2074 (file-name (git-file-name name version))
2076 (base32 "07rd61hvilsxxrj7lf8c9k0a8glj07s48m7ya8d45030r90g3lvc"))))
2077 (build-system glib-or-gtk-build-system)
2080 ;; Passing --enable-foo will silently disable foo if prerequisite
2081 ;; inputs are missing, not abort the build as one might expect.
2082 ;; ‘--enable-html’ adds a huge webkitgtk dependency. It was never
2083 ;; present in the past and nobody complained.
2084 '("--enable-icon-browser"
2085 "--enable-spell") ; gspell checking support
2087 (modify-phases %standard-phases
2088 (add-after 'bootstrap 'intltoolize
2090 (invoke "intltoolize" "--force" "--automake"))))))
2092 `(("gspell" ,gspell)
2095 `(("autoconf" ,autoconf)
2096 ("automake" ,automake)
2097 ("intltool" ,intltool)
2098 ("pkg-config" ,pkg-config)))
2099 (home-page "https://sourceforge.net/projects/yad-dialog/")
2100 (synopsis "GTK+ dialog boxes for shell scripts")
2102 "This program allows you to display GTK+ dialog boxes from command line or
2103 shell scripts. Example of how to use @code{yad} can be consulted at
2104 @url{https://sourceforge.net/p/yad-dialog/wiki/browse_pages/}.")
2105 (license license:gpl3+)))
2107 (define-public dragon-drop
2109 (name "dragon-drop")
2115 (url "https://github.com/mwh/dragon")
2116 (commit (string-append "v" version))))
2117 (file-name (git-file-name name version))
2120 "0fgzz39007fdjwq72scp0qygp2v3zc5f1xkm0sxaa8zxm25g1bra"))))
2121 (build-system gnu-build-system)
2122 (inputs `(("gtk+" ,gtk+)))
2123 (native-inputs `(("pkg-config" ,pkg-config)))
2125 `(#:tests? #f ; no check
2127 (list (string-append "CC=" ,(cc-for-target))
2128 ;; makefile uses PREFIX for the binary location
2129 (string-append "PREFIX=" (assoc-ref %outputs "out")
2132 (modify-phases %standard-phases
2133 (delete 'configure)))) ; no configure script
2134 (synopsis "Drag and drop source/target for X")
2136 "Dragon is a lightweight drag-and-drop source for X where you can run:
2142 to get a window with just that file in it, ready to be dragged where you need it.
2143 What if you need to drag into something? Using:
2149 you get a window you can drag files and text into. Dropped items are
2150 printed to standard output.")
2151 (home-page "https://github.com/mwh/dragon")
2152 (license license:gpl3+)))
2154 (define-public libdbusmenu
2156 (name "libdbusmenu")
2161 (uri (string-append "https://launchpad.net/libdbusmenu/"
2162 (version-major+minor version) "/" version
2163 "/+download/libdbusmenu-" version ".tar.gz"))
2165 (base32 "12l7z8dhl917iy9h02sxmpclnhkdjryn08r8i4sr8l3lrlm4mk5r"))))
2166 (build-system gnu-build-system)
2169 '("--sysconfdir=/etc"
2170 "--localstatedir=/var"
2171 ;; The shebang of the generated test files should be patched before
2175 `(,(string-append "typelibdir=" (assoc-ref %outputs "out")
2176 "/lib/girepository-1.0"))
2178 (modify-phases %standard-phases
2179 (add-before 'configure 'do-not-treat-warnings-as-errors
2181 ;; Prevent the build from failing due to deprecation warnings
2182 ;; from newer GLib and GTK versions.
2183 (substitute* (find-files "." "^Makefile.in$")
2187 (add-before 'configure 'set-environment
2189 (setenv "HAVE_VALGRIND_TRUE" "")
2190 (setenv "HAVE_VALGRIND_FALSE" "#")
2195 ("gtk+-2" ,gtk+-2)))
2197 `(("glib:bin" ,glib "bin")
2198 ("gnome-doc-utils" ,gnome-doc-utils)
2199 ("gobject-introspection" ,gobject-introspection)
2200 ("intltool" ,intltool)
2201 ("json-glib" ,json-glib)
2202 ("pkg-config" ,pkg-config)
2203 ("python" ,python-2)
2205 (home-page "https://launchpad.net/libdbusmenu")
2206 (synopsis "Library for passing menus over DBus")
2207 (description "@code{libdbusmenu} passes a menu structure across DBus so
2208 that a program can create a menu simply without worrying about how it is
2209 displayed on the other side of the bus.")
2211 ;; Dual-licensed under either LGPLv2.1 or LGPLv3.
2212 (license (list license:lgpl2.1 license:lgpl3))))
2214 (define-public gtk-layer-shell
2216 (name "gtk-layer-shell")
2222 (url "https://github.com/wmww/gtk-layer-shell")
2223 (commit (string-append "v" version))))
2224 (file-name (git-file-name name version))
2226 (base32 "1kcp4p3s7sdh9lwniybjdarfy8z69j2j23hfrw98amhwhq39gdcc"))))
2227 (build-system meson-build-system)
2228 (arguments `(#:configure-flags (list "-Dtests=true")))
2229 (native-inputs `(("pkg-config" ,pkg-config)
2230 ("gobject-introspection" ,gobject-introspection)))
2231 (inputs `(("wayland" ,wayland)
2233 (home-page "https://github.com/wmww/gtk-layer-shell")
2234 (synopsis "Library to create Wayland desktop components using the Layer
2236 (description "Layer Shell is a Wayland protocol for desktop shell
2237 components, such as panels, notifications and wallpapers. It can be used to
2238 anchor windows to a corner or edge of the output, or stretch them across the
2239 entire output. It supports all Layer Shell features including popups and
2241 (license license:expat)))
2243 (define-public goocanvas
2250 (uri (string-append "mirror://gnome/sources/goocanvas/"
2251 (version-major+minor version)
2252 "/goocanvas-" version ".tar.xz"))
2254 (base32 "141fm7mbqib0011zmkv3g8vxcjwa7hypmq71ahdyhnj2sjvy4a67"))))
2255 (build-system gnu-build-system)
2257 `(("gettext" ,gettext-minimal)
2258 ("glib-bin" ,glib "bin")
2259 ("gobject-introspection" ,gobject-introspection)
2260 ("gtk-doc" ,gtk-doc/stable)
2261 ("pkg-config" ,pkg-config)
2262 ("python" ,python)))
2267 ("python-pygobject" ,python-pygobject)))
2269 `(#:configure-flags '("--disable-rebuilds"
2272 (modify-phases %standard-phases
2273 (add-after 'unpack 'fix-install-path
2274 (lambda* (#:key inputs outputs #:allow-other-keys)
2275 (substitute* "configure"
2276 (("\\(gi._overridesdir\\)")
2277 (string-append "((gi._overridesdir).replace(\\\""
2278 (assoc-ref inputs "python-pygobject")
2280 (assoc-ref outputs "out")
2283 (synopsis "Canvas widget for GTK+")
2284 (description "GooCanvas is a canvas widget for GTK+ that uses the cairo 2D
2285 library for drawing.")
2286 (home-page "https://wiki.gnome.org/GooCanvas")
2287 (license license:lgpl2.0)))
2289 (define-public gtksheet
2297 (url "https://github.com/fpaquet/gtksheet")
2298 (commit (string-append "V" version))))
2299 (file-name (git-file-name name version))
2302 "13jwr1vly4ga3f09dajwky1cdrz5bmggwga3vnnd6j6zzia7dpyr"))))
2303 (build-system gnu-build-system)
2305 `(#:configure-flags (list "--enable-glade"
2306 "--enable-introspection")
2308 (modify-phases %standard-phases
2309 ;; The "configure" script is present, but otherwise the project is
2310 ;; not bootstrapped properly. Delete configure so the bootstrap phase
2312 (add-after 'unpack 'delete-configure
2314 (delete-file "configure")
2316 (add-after 'unpack 'rename-type
2318 (substitute* "glade/glade-gtksheet-editor.c"
2319 (("GladeEditableIface") "GladeEditableInterface"))
2321 ;; Fix glade install directories.
2322 (add-before 'bootstrap 'configure-glade-directories
2323 (lambda* (#:key outputs #:allow-other-keys)
2324 (substitute* "configure.ac"
2325 (("`\\$PKG_CONFIG --variable=catalogdir gladeui-2.0`")
2326 (string-append (assoc-ref outputs "out") "/share/glade/catalogs"))
2327 (("`\\$PKG_CONFIG --variable=moduledir gladeui-2.0`")
2328 (string-append (assoc-ref outputs "out") "/lib/glade/modules"))
2329 (("`\\$PKG_CONFIG --variable=pixmapdir gladeui-2.0`")
2330 (string-append (assoc-ref outputs "out") "/share/pixmaps")))
2336 ("libxml2" ,libxml2)))
2338 `(("autoconf" ,autoconf)
2339 ("automake" ,automake)
2340 ("gobject-introspection" ,gobject-introspection)
2341 ("libtool" ,libtool)
2342 ("pkg-config" ,pkg-config)))
2343 (home-page "https://fpaquet.github.io/gtksheet/")
2344 (synopsis "Spreadsheet widget for GTK+")
2345 (description "GtkSheet is a matrix widget for GTK+. It consists of an
2346 scrollable grid of cells where you can allocate text. Cell contents can be
2347 edited interactively through a specially designed entry, GtkItemEntry. It is
2348 also a container subclass, allowing you to display buttons, images and any
2349 other widget in it. You can also set many attributes such as border,
2350 foreground and background colors, text justification and more.")
2351 (native-search-paths
2353 (search-path-specification
2354 (variable "GLADE_CATALOG_SEARCH_PATH")
2355 (files '("share/glade/catalogs")))
2356 (search-path-specification
2357 (variable "GLADE_MODULE_SEARCH_PATH")
2358 (files '("lib/glade/modules")))))
2359 (license license:lgpl2.0+)))
2361 (define-public gtkdatabox
2368 (uri (string-append "mirror://sourceforge/gtkdatabox/gtkdatabox-1/"
2369 "gtkdatabox-" version ".tar.gz"))
2371 (base32 "1qykm551bx8j8pfgxs60l2vhpi8lv4r8va69zvn2594lchh71vlb"))))
2372 (build-system gnu-build-system)
2374 `(("pkg-config" ,pkg-config)))
2377 (synopsis "Display widget for dynamic data")
2378 (description "GtkDatabox is a widget for live display of large amounts of
2379 fluctuating numerical data. It enables data presentation (for example, on
2380 linear or logarithmic scales, as dots or lines, with markers/labels) as well as
2381 user interaction (e.g. measuring distances).")
2382 (home-page "https://sourceforge.net/projects/gtkdatabox/")
2383 (license license:lgpl2.1+)))
2385 (define-public volctl
2391 (uri (git-reference (url "https://github.com/buzz/volctl")
2392 (commit (string-append "v" version))))
2393 (file-name (git-file-name name version))
2396 "1cx27j83pz2qffnzb85fbl1x6pp3irv1kbw7g1hri7kaw6ky4xiz"))))
2397 (build-system python-build-system)
2400 (modify-phases %standard-phases
2401 (add-after 'unpack 'patch-path
2402 (lambda* (#:key inputs #:allow-other-keys)
2403 (let ((pulse (assoc-ref inputs "pulseaudio"))
2404 (xfixes (assoc-ref inputs "libxfixes")))
2405 (substitute* "volctl/lib/xwrappers.py"
2407 (string-append xfixes "/lib/libXfixes.so")))
2408 (substitute* "volctl/lib/pulseaudio.py"
2410 (string-append pulse "/lib/libpulse.so.0")))
2414 ("libxfixes" ,libxfixes)
2415 ("pulseaudio" ,pulseaudio)))
2417 `(("python-click" ,python-click)
2418 ("python-pycairo" ,python-pycairo)
2419 ("python-pygobject" ,python-pygobject)
2420 ("python-pyyaml" ,python-pyyaml)))
2421 (home-page "https://buzz.github.io/volctl/")
2422 (synopsis "Per-application volume control and on-screen display (OSD) for graphical desktops")
2423 (description "Volctl is a PulseAudio-enabled tray icon volume control and
2424 OSD applet for graphical desktops. It's not meant to be an replacement for a
2425 full-featured mixer application. If you're looking for that check out the
2426 excellent pavucontrol.")
2428 ;; XXX: 'setup.py' says "GPLv2" but nothing says "version 2 only". Is
2430 (license license:gpl2)))