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 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014, 2015, 2017, 2018, 2019 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
6 ;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch>
7 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
8 ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
9 ;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
10 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
11 ;;; Coypright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
12 ;;; Copyright © 2016, 2017, 2020 Efraim Flashner <efraim@flashner.co.il>
13 ;;; Copyright © 2016 Fabian Harfert <fhmgufs@web.de>
14 ;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net>
15 ;;; Copyright © 2016 Patrick Hetu <patrick.hetu@auf.org>
16 ;;; Copyright © 2016 Nikita <nikita@n0.is>
17 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
18 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
19 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
20 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
21 ;;; Copyright © 2018, 2020 Arun Isaac <arunisaac@systemreboot.net>
22 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
23 ;;; Copyright © 2019 Meiyo Peng <meiyo@riseup.net>
24 ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
25 ;;; Copyright © 2020 Brendan Tildesley <mail@brendan.scot>
26 ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
27 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
29 ;;; This file is part of GNU Guix.
31 ;;; GNU Guix is free software; you can redistribute it and/or modify it
32 ;;; under the terms of the GNU General Public License as published by
33 ;;; the Free Software Foundation; either version 3 of the License, or (at
34 ;;; your option) any later version.
36 ;;; GNU Guix is distributed in the hope that it will be useful, but
37 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
38 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39 ;;; GNU General Public License for more details.
41 ;;; You should have received a copy of the GNU General Public License
42 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
44 (define-module (gnu packages gtk)
45 #:use-module ((guix licenses) #:prefix license:)
46 #:use-module (guix utils)
47 #:use-module (guix packages)
48 #:use-module (guix download)
49 #:use-module (guix git-download)
50 #:use-module (guix build-system glib-or-gtk)
51 #:use-module (guix build-system gnu)
52 #:use-module (guix build-system meson)
53 #:use-module (guix build-system perl)
54 #:use-module (guix build-system python)
55 #:use-module (guix build-system waf)
56 #:use-module (gnu packages)
57 #:use-module (gnu packages algebra)
58 #:use-module (gnu packages autotools)
59 #:use-module (gnu packages base)
60 #:use-module (gnu packages texinfo)
61 #:use-module (gnu packages check)
62 #:use-module (gnu packages compression)
63 #:use-module (gnu packages docbook)
64 #:use-module (gnu packages documentation)
65 #:use-module (gnu packages enchant)
66 #:use-module (gnu packages fontutils)
67 #:use-module (gnu packages freedesktop)
68 #:use-module (gnu packages fribidi)
69 #:use-module (gnu packages gettext)
70 #:use-module (gnu packages ghostscript)
71 #:use-module (gnu packages gl)
72 #:use-module (gnu packages glib)
73 #:use-module (gnu packages gnome)
74 #:use-module (gnu packages icu4c)
75 #:use-module (gnu packages image)
76 #:use-module (gnu packages libffi)
77 #:use-module (gnu packages linux)
78 #:use-module (gnu packages pdf)
79 #:use-module (gnu packages perl)
80 #:use-module (gnu packages pkg-config)
81 #:use-module (gnu packages pretty-print)
82 #:use-module (gnu packages python)
83 #:use-module (gnu packages python-xyz)
84 #:use-module (gnu packages guile)
85 #:use-module (gnu packages guile-xyz)
86 #:use-module (gnu packages cups)
87 #:use-module (gnu packages version-control)
88 #:use-module (gnu packages xml)
89 #:use-module (gnu packages xorg)
90 #:use-module (gnu packages xdisorg)
91 #:use-module (srfi srfi-1)
92 #:use-module (srfi srfi-26)
93 #:use-module (ice-9 match))
101 (uri (string-append "mirror://gnome/sources/" name "/"
102 (version-major+minor version) "/"
103 name "-" version ".tar.xz"))
106 "1jwp16r6p5z66k4b2v8zlzhyshhwlmyi27ippkrgqr8jsary7w6l"))))
107 (build-system meson-build-system)
108 (propagated-inputs `(("glib" ,glib))) ; required by atk.pc
110 `(("pkg-config" ,pkg-config)
111 ("gettext" ,gettext-minimal)
112 ("glib" ,glib "bin") ; glib-mkenums, etc.
113 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
114 (synopsis "GNOME accessibility toolkit")
116 "ATK provides the set of accessibility interfaces that are implemented
117 by other toolkits and applications. Using the ATK interfaces, accessibility
118 tools have full access to view and control running applications.")
119 (license license:lgpl2.0+)
120 (home-page "https://developer.gnome.org/atk/")))
128 (uri (string-append "https://cairographics.org/releases/cairo-"
132 "0c930mk5xr2bshbdljv005j3j8zr47gqmkry3q6qgvqky6rjjysy"))))
133 (build-system gnu-build-system)
135 `(("fontconfig" ,fontconfig)
136 ("freetype" ,freetype)
141 ("libxrender" ,libxrender)
144 `(("ghostscript" ,ghostscript)
145 ("libspectre" ,libspectre)
147 ("xorgproto" ,xorgproto)
150 `(("pkg-config" ,pkg-config)
151 ("python" ,python-wrapper)))
153 `(#:tests? #f ; see http://lists.gnu.org/archive/html/bug-guix/2013-06/msg00085.html
154 #:configure-flags '("--enable-tee" ;needed for GNU Icecat
155 "--enable-xml" ;for cairo-xml support
156 "--disable-static")))
157 (synopsis "2D graphics library")
159 "Cairo is a 2D graphics library with support for multiple output devices.
160 Currently supported output targets include the X Window System (via both
161 Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file
162 output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.
164 Cairo is designed to produce consistent output on all output media while
165 taking advantage of display hardware acceleration when available
166 eg. through the X Render Extension).
168 The cairo API provides operations similar to the drawing operators of
169 PostScript and PDF. Operations in cairo including stroking and filling cubic
170 Bézier splines, transforming and compositing translucent images, and
171 antialiased text rendering. All drawing operations can be transformed by any
172 affine transformation (scale, rotation, shear, etc.).")
173 (license license:lgpl2.1) ; or Mozilla Public License 1.1
174 (home-page "https://cairographics.org/")))
176 (define-public cairo-sans-poppler
177 ;; Variant used to break the dependency cycle between Poppler and Cairo.
178 (package/inherit cairo
179 (inputs (alist-delete "poppler" (package-inputs cairo)))
180 (properties `((hidden? . #t)))))
182 (define-public cairo-xcb
188 ,@(package-inputs cairo)))
192 '("--enable-xlib-xcb" "--enable-gl" "--enable-egl")))
193 (synopsis "2D graphics library (with X11 support)")))
195 (define-public harfbuzz
201 (uri (string-append "https://www.freedesktop.org/software/"
202 "harfbuzz/release/harfbuzz-"
206 "04iwq13w6zkdhljmsxrzgg4fyh04qnwfn57rgrl9kmijc7cvh4wl"))))
207 (build-system gnu-build-system)
209 "bin")) ; 160K, only hb-view depend on cairo
213 ;; There are all in the Requires or Requires.private field of '.pc'.
215 ("graphite2" ,graphite2)
218 `(("glib:bin" ,glib "bin") ;for glib-mkenums
219 ("gobject-introspection" ,gobject-introspection)
220 ("pkg-config" ,pkg-config)
221 ("python" ,python-wrapper)
224 `(#:configure-flags `("--with-graphite2"
227 "--bindir=" (assoc-ref %outputs "bin") "/bin"))))
228 (synopsis "OpenType text shaping engine")
230 "HarfBuzz is an OpenType text shaping engine.")
231 (license (license:x11-style "file://COPYING"
232 "See 'COPYING' in the distribution."))
233 (home-page "https://www.freedesktop.org/wiki/Software/HarfBuzz/")))
235 (define-public libdatrie
243 (string-append "https://linux.thai.net/pub/ThaiLinux/software/"
244 "libthai/libdatrie-" version ".tar.xz"))
246 (base32 "0jdi01pcxv0b24zbjy7zahawsqqqw4mv94f2yy01zh4n796wqba5"))))
247 (build-system gnu-build-system)
248 (outputs '("out" "doc"))
252 (string-append "--with-html-docdir="
253 (assoc-ref %outputs "doc")
254 "/share/doc/datrie/html"))))
256 `(("doxygen" ,doxygen)
257 ("pkg-config" ,pkg-config)))
258 (synopsis "Double-Array Trie Library")
259 (description "Libdatrie is an implementation of double-array structure for
260 representing trie. Trie is a kind of digital search tree.")
261 (home-page "https://linux.thai.net/~thep/datrie/datrie.html")
262 (license license:lgpl2.1+)))
264 (define-public libthai
272 (string-append "https://linux.thai.net/pub/thailinux/software/"
273 "libthai/libthai-" version ".tar.xz"))
275 (base32 "04g93bgxrcnay9fglpq2lj9nr7x1xh06i60m7haip8as9dxs3q7z"))))
276 (build-system gnu-build-system)
277 (outputs '("out" "doc"))
281 (string-append "--with-html-docdir="
282 (assoc-ref %outputs "doc")
283 "/share/doc/libthai/html"))))
285 `(("doxygen" ,doxygen)
286 ("pkg-config" ,pkg-config)))
288 `(("datrie" ,libdatrie)))
289 (synopsis "Thai language support library")
290 (description "LibThai is a set of Thai language support routines aimed to
291 ease developers’ tasks to incorporate Thai language support in their
293 (home-page "https://linux.thai.net/projects/libthai")
294 (license license:lgpl2.1+)))
302 (uri (string-append "mirror://gnome/sources/pango/"
303 (version-major+minor version) "/"
304 name "-" version ".tar.xz"))
305 (patches (search-patches "pango-skip-libthai-test.patch"))
308 "07qvxa2sk90chp1l12han6vxvy098mc37sdqcznyywyv2g6bd9b6"))))
309 (build-system meson-build-system)
311 '(#:phases (modify-phases %standard-phases
312 (add-after 'unpack 'disable-cantarell-tests
314 (substitute* "tests/meson.build"
315 ;; XXX FIXME: These tests require "font-cantarell", but
316 ;; adding it here would introduce a circular dependency.
317 (("\\[ 'test-harfbuzz'.*") "")
318 (("\\[ 'test-itemize'.*") "")
319 (("\\[ 'test-layout'.*") ""))
322 ;; These are all in Requires or Requires.private of the '.pc' files.
325 ("fontconfig" ,fontconfig)
326 ("freetype" ,freetype)
328 ("harfbuzz" ,harfbuzz)
330 ;; Some packages, such as Openbox, expect Pango to be built with the
331 ;; optional libxft support.
336 `(("pkg-config" ,pkg-config)
337 ("glib" ,glib "bin") ; glib-mkenums, etc.
338 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
339 (synopsis "GNOME text and font handling library")
341 "Pango is the core text and font handling library used in GNOME
342 applications. It has extensive support for the different writing systems
343 used throughout the world.")
344 (license license:lgpl2.0+)
345 (home-page "https://developer.gnome.org/pango/")))
347 (define-public pango-1.42
353 (uri (string-append "mirror://gnome/sources/pango/"
354 (version-major+minor version) "/"
355 "pango-" version ".tar.xz"))
358 "17bwb7dgbncrfsmchlib03k9n3xaalirb39g3yb43gg8cg6p8aqx"))))
359 (build-system gnu-build-system)
362 (define-public pangox-compat
364 (name "pangox-compat")
368 (uri (string-append "mirror://gnome/sources/" name "/"
369 (version-major+minor version) "/"
370 name "-" version ".tar.xz"))
373 "0ip0ziys6mrqqmz4n71ays0kf5cs1xflj1gfpvs4fgy2nsrr482m"))))
374 (build-system gnu-build-system)
377 ("pango" ,pango-1.42)))
379 `(("intltool" ,intltool)
380 ("pkg-config" ,pkg-config)))
381 (home-page "https://developer.gnome.org/pango")
382 (synopsis "Obsolete pango functions")
383 (description "Pangox was a X backend to pango. It is now obsolete and no
384 longer provided by recent pango releases. pangox-compat provides the
385 functions which were removed.")
386 (license license:lgpl2.0+)))
394 (uri (string-append "https://download.drobilla.net/ganv-"
398 "0pik2d3995z0rjcjhb4hsj5fsph3m8khg6j10k6mx4j2j727aq6l"))))
399 (build-system waf-build-system)
402 (modify-phases %standard-phases
403 (add-before 'configure 'set-flags
404 (lambda* (#:key outputs #:allow-other-keys)
405 ;; Allow 'bin/ganv_bench' to find libganv-1.so.
407 (string-append "-Wl,-rpath="
408 (assoc-ref outputs "out") "/lib"))
410 #:tests? #f)) ; no check target
415 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
416 ("pkg-config" ,pkg-config)))
417 (home-page "https://drobilla.net/software/ganv/")
418 (synopsis "GTK+ widget for interactive graph-like environments")
420 "Ganv is an interactive GTK+ widget for interactive “boxes and lines” or
421 graph-like environments, e.g. modular synths or finite state machine
423 (license license:gpl3+)))
425 (define-public gtksourceview-2
427 (name "gtksourceview")
428 (version "2.10.5") ; This is the last version which builds against gtk+2
431 (uri (string-append "mirror://gnome/sources/" name "/"
432 (version-major+minor version) "/"
433 name "-" version ".tar.bz2"))
436 "07hrabhpl6n8ajz10s0d960jdwndxs87szxyn428mpxi8cvpg1f5"))
439 "gtksourceview-2-add-default-directory.patch"))))
440 (build-system gnu-build-system)
442 `(("intltool" ,intltool)
443 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
444 ("pkg-config" ,pkg-config)
446 ("xorg-server" ,xorg-server-for-tests)
447 ("shared-mime-info" ,shared-mime-info)))
449 ;; As per the pkg-config file.
451 ("libxml2" ,libxml2)))
454 ;; Unfortunately, some of the tests in "make check" are highly dependent
455 ;; on the environment therefore, some black magic is required.
456 (modify-phases %standard-phases
457 (add-before 'check 'start-xserver
458 (lambda* (#:key inputs #:allow-other-keys)
459 (let ((xorg-server (assoc-ref inputs "xorg-server"))
460 (mime (assoc-ref inputs "shared-mime-info")))
462 ;; There must be a running X server and make check doesn't start one.
463 ;; Therefore we must do it.
464 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
465 (setenv "DISPLAY" ":1")
467 ;; The .lang files must be found in $XDG_DATA_HOME/gtksourceview-2.0
468 (system "ln -s gtksourceview gtksourceview-2.0")
469 (setenv "XDG_DATA_HOME" (getcwd))
471 ;; Finally, the mimetypes must be available.
472 (setenv "XDG_DATA_DIRS" (string-append mime "/share/")))
474 (synopsis "Widget that extends the standard GTK+ 2.x 'GtkTextView' widget")
476 "GtkSourceView is a portable C library that extends the standard GTK+
477 framework for multiline text editing with support for configurable syntax
478 highlighting, unlimited undo/redo, search and replace, a completion framework,
479 printing and other features typical of a source code editor.")
480 (license license:lgpl2.0+)
481 (home-page "https://developer.gnome.org/gtksourceview/")))
483 (define-public gtksourceview
485 (name "gtksourceview")
489 (uri (string-append "mirror://gnome/sources/gtksourceview/"
490 (version-major+minor version) "/"
491 "gtksourceview-" version ".tar.xz"))
494 "0xgnjj7jd56wbl99s76sa1vjq9bkz4mdsxwgwlcphg689liyncf4"))))
495 (build-system gnu-build-system)
498 (modify-phases %standard-phases
501 (lambda* (#:key inputs #:allow-other-keys)
502 (let ((xorg-server (assoc-ref inputs "xorg-server")))
503 ;; Tests require a running X server.
504 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
505 (setenv "DISPLAY" ":1")
506 ;; For the missing /etc/machine-id.
507 (setenv "DBUS_FATAL_WARNINGS" "0")
510 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
511 ("intltool" ,intltool)
513 ("gobject-introspection" ,gobject-introspection)
514 ("pkg-config" ,pkg-config)
517 ("xorg-server" ,xorg-server-for-tests)
518 ("shared-mime-info" ,shared-mime-info)))
520 ;; gtksourceview-3.0.pc refers to all these.
523 ("libxml2" ,libxml2)))
524 (home-page "https://wiki.gnome.org/Projects/GtkSourceView")
525 (synopsis "GNOME source code widget")
526 (description "GtkSourceView is a text widget that extends the standard
527 GTK+ text widget GtkTextView. It improves GtkTextView by implementing syntax
528 highlighting and other features typical of a source code editor.")
529 (license license:lgpl2.1+)))
531 (define-public gtksourceview-3
532 (package (inherit gtksourceview)
533 (name "gtksourceview")
537 (uri (string-append "mirror://gnome/sources/" name "/"
538 (version-major+minor version) "/"
539 name "-" version ".tar.xz"))
542 "16ym7jwiki4s1pilwr4incx0yg7ll94f1cajrnpndkxxs36hcm5b"))))))
544 (define-public gdk-pixbuf
550 (uri (string-append "mirror://gnome/sources/" name "/"
551 (version-major+minor version) "/"
552 name "-" version ".tar.xz"))
555 "1rnlx9yfw970maxi2x6niaxmih5la11q1ilr7gzshz2kk585k0hm"))))
556 (build-system meson-build-system)
558 `(#:configure-flags '("-Dinstalled_tests=false")
560 (modify-phases %standard-phases
562 'unpack 'disable-failing-tests
564 (substitute* "tests/meson.build"
565 ;; XXX FIXME: This test fails on armhf machines with:
566 ;; SKIP Not enough memory to load bitmap image
567 ;; ERROR: cve-2015-4491 - too few tests run (expected 4, got 2)
568 ((".*'cve-2015-4491'.*") "")
569 ;; XXX FIXME: This test fails with:
570 ;; ERROR:pixbuf-jpeg.c:74:test_type9_rotation_exif_tag:
571 ;; assertion failed (error == NULL): Data differ
572 ;; (gdk-pixbuf-error-quark, 0)
573 ((".*'pixbuf-jpeg'.*") ""))
575 ;; The slow tests take longer than the specified timeout.
576 ,@(if (any (cute string=? <> (%current-system))
577 '("armhf-linux" "aarch64-linux"))
580 (invoke "meson" "test" "--timeout-multiplier" "5"))))
583 `(;; Required by gdk-pixbuf-2.0.pc
586 ;; Used for testing and required at runtime.
587 ("shared-mime-info" ,shared-mime-info)))
589 `(("libjpeg" ,libjpeg-turbo)
593 `(("pkg-config" ,pkg-config)
594 ("gettext" ,gettext-minimal)
595 ("glib" ,glib "bin") ; glib-mkenums, etc.
596 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
597 (synopsis "GNOME image loading and manipulation library")
599 "GdkPixbuf is a library for image loading and manipulation developed
600 in the GNOME project.")
601 (license license:lgpl2.0+)
602 (home-page "https://developer.gnome.org/gdk-pixbuf/")))
604 ;; To build gdk-pixbuf with SVG support, we need librsvg, and librsvg depends
605 ;; on gdk-pixbuf, so this new varibale. Also, librsvg adds 90MiB to the
607 (define-public gdk-pixbuf+svg
608 (package (inherit gdk-pixbuf)
609 (name "gdk-pixbuf+svg")
611 `(("librsvg" ,librsvg)
612 ,@(package-inputs gdk-pixbuf)))
614 '(#:configure-flags '("-Dinstalled-tests=false")
615 #:tests? #f ; tested by the gdk-pixbuf package already
617 (modify-phases %standard-phases
618 (add-after 'install 'register-svg-loader
619 (lambda* (#:key inputs outputs #:allow-other-keys)
620 (let* ((out (assoc-ref outputs "out"))
621 (librsvg (assoc-ref inputs "librsvg"))
624 (find-files out "^libpixbufloader-.*\\.so$")
625 (find-files librsvg "^libpixbufloader-.*\\.so$")))
626 (gdk-pixbuf-query-loaders
627 (string-append out "/bin/gdk-pixbuf-query-loaders")))
629 gdk-pixbuf-query-loaders
633 "GNOME image loading and manipulation library, with SVG support")))
635 (define-public at-spi2-core
637 (name "at-spi2-core")
641 (uri (string-append "mirror://gnome/sources/" name "/"
642 (version-major+minor version) "/"
643 name "-" version ".tar.xz"))
646 "1ihixwhh3c16q6253qj9gf69741rb2pi51822a4rylsfcyywsafn"))))
647 (build-system meson-build-system)
648 (outputs '("out" "doc"))
653 (modify-phases %standard-phases
654 (add-after 'unpack 'set-documentation-path
655 (lambda* (#:key outputs #:allow-other-keys)
656 ;; Ensure that the cross-references point to the "doc" output.
657 (substitute* "doc/libatspi/meson.build"
659 (string-append "docpath = '" (assoc-ref outputs "doc") "/share/gtk-doc/html'\n")))
661 (add-before 'install 'prepare-doc-directory
662 (lambda* (#:key outputs #:allow-other-keys)
663 (mkdir-p (string-append (assoc-ref outputs "doc") "/share"))
665 (add-after 'install 'move-documentation
666 (lambda* (#:key outputs #:allow-other-keys)
667 (let ((out (assoc-ref outputs "out"))
668 (doc (assoc-ref outputs "doc")))
670 (string-append out "/share/gtk-doc")
671 (string-append doc "/share/gtk-doc"))
672 (delete-file-recursively
673 (string-append out "/share/gtk-doc")))
675 (add-after 'install 'check
677 (setenv "HOME" (getenv "TMPDIR")) ; xfconfd requires a writable HOME
678 ;; Run test-suite under a dbus session.
679 (setenv "XDG_DATA_DIRS" ; for finding org.xfce.Xfconf.service
680 (string-append %output "/share"))
681 ;; Don't fail on missing '/etc/machine-id'.
682 (setenv "DBUS_FATAL_WARNINGS" "0") ;
683 (invoke "dbus-launch" "ninja" "test")))
686 ;; atspi-2.pc refers to all these.
690 ("libxtst" ,libxtst)))
692 `(("gettext" ,gettext-minimal)
693 ("gobject-introspection" ,gobject-introspection)
696 ("pkg-config" ,pkg-config)))
697 (synopsis "Assistive Technology Service Provider Interface, core components")
699 "The Assistive Technology Service Provider Interface, core components,
700 is part of the GNOME accessibility project.")
701 (license license:lgpl2.0+)
702 (home-page "https://projects.gnome.org/accessibility/")))
704 ;;; A minimal variant used to prevent a cycle with Inkscape.
705 (define at-spi2-core-minimal
707 (inherit at-spi2-core)
708 (name "at-spi2-core-minimal")
709 (outputs (delete "doc" (package-outputs at-spi2-core)))
711 (substitute-keyword-arguments (package-arguments at-spi2-core)
712 ((#:configure-flags configure-flags)
713 `(delete "-Ddocs=true" ,configure-flags))
715 `(modify-phases ,phases
716 (delete 'set-documentation-path)
717 (delete 'prepare-doc-directory)
718 (delete 'move-documentation)))))
720 (alist-delete "gtk-doc" (package-native-inputs at-spi2-core)))))
722 (define-public at-spi2-atk
728 (uri (string-append "mirror://gnome/sources/" name "/"
729 (version-major+minor version) "/"
730 name "-" version ".tar.xz"))
733 "05ncp7s5nddjinffs26mcvpbd63vk1m3cv5y530p3plgfhqgjvbp"))))
734 (build-system meson-build-system)
737 (modify-phases %standard-phases
739 ;; Run test-suite under a dbus session.
741 (setenv "DBUS_FATAL_WARNINGS" "0")
742 (invoke "dbus-launch" "meson" "test"))))))
744 ;; TODO: Replace by at-spi2-core-minimal in the next staging window, or
745 ;; when Inkscape 0.92 is upgraded to 1.0 to avoid a cycle.
746 `(("at-spi2-core" ,at-spi2-core))) ; required by atk-bridge-2.0.pc
750 `(("pkg-config" ,pkg-config)
753 ("libxml2" ,libxml2)))
754 (synopsis "Assistive Technology Service Provider Interface, ATK bindings")
756 "The Assistive Technology Service Provider Interface
757 is part of the GNOME accessibility project.")
758 (license license:lgpl2.0+)
759 (home-page "https://projects.gnome.org/accessibility/")))
761 (define-public gtk+-2
767 (uri (string-append "mirror://gnome/sources/" name "/"
768 (version-major+minor version) "/"
769 name "-" version ".tar.xz"))
772 "0bjq7ja9gwcv6n5q4qkvdjjx40wsdiikksz1zqxvxsm5vlyskj5n"))
773 (patches (search-patches "gtk2-respect-GUIX_GTK2_PATH.patch"
774 "gtk2-respect-GUIX_GTK2_IM_MODULE_FILE.patch"
775 "gtk2-theme-paths.patch"))))
776 (build-system gnu-build-system)
777 (outputs '("out" "bin" "doc"))
780 ("gdk-pixbuf" ,gdk-pixbuf+svg)
784 ("libxcomposite" ,libxcomposite)
785 ("libxcursor" ,libxcursor)
786 ("libxdamage" ,libxdamage)
788 ("libxinerama" ,libxinerama)
789 ("libxrandr" ,libxrandr)))
792 ("gettext" ,gettext-minimal)
794 ("gobject-introspection" ,gobject-introspection)
795 ("pkg-config" ,pkg-config)
796 ("python-wrapper" ,python-wrapper)))
799 (list "--with-xinput=yes"
800 (string-append "--with-html-dir="
801 (assoc-ref %outputs "doc")
802 "/share/gtk-doc/html"))
804 (modify-phases %standard-phases
805 (add-before 'configure 'disable-tests
807 ;; FIXME: re-enable tests requiring an X server
808 (substitute* "gtk/Makefile.in"
809 (("SUBDIRS = theme-bits . tests") "SUBDIRS = theme-bits ."))
811 (add-after 'install 'remove-cache
812 (lambda* (#:key outputs #:allow-other-keys)
815 (find-files (assoc-ref outputs "out") "immodules.cache"))
818 (list (search-path-specification
819 (variable "GUIX_GTK2_PATH")
820 (files '("lib/gtk-2.0")))))
821 (synopsis "Cross-platform toolkit for creating graphical user interfaces")
823 "GTK+, or the GIMP Toolkit, is a multi-platform toolkit for creating
824 graphical user interfaces. Offering a complete set of widgets, GTK+ is
825 suitable for projects ranging from small one-off tools to complete
826 application suites.")
827 (license license:lgpl2.0+)
828 (home-page "https://www.gtk.org/")))
831 (package (inherit gtk+-2)
836 (uri (string-append "mirror://gnome/sources/" name "/"
837 (version-major+minor version) "/"
838 name "-" version ".tar.xz"))
841 "1cg2vbwbcp7bc84ky0b69ipgdr9djhspnf5k8lajb8jphcj4v1jx"))
842 (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch"
843 "gtk3-respect-GUIX_GTK3_IM_MODULE_FILE.patch"))))
845 `(("at-spi2-atk" ,at-spi2-atk)
847 ("gdk-pixbuf" ,gdk-pixbuf+svg)
848 ("libepoxy" ,libepoxy)
849 ("libxcursor" ,libxcursor)
851 ("libxinerama" ,libxinerama)
852 ("libxkbcommon" ,libxkbcommon)
853 ("libxdamage" ,libxdamage)
854 ("libxrandr" ,libxrandr)
858 ("wayland-protocols" ,wayland-protocols)))
860 `(("libxml2" ,libxml2)
861 ;; XXX: colord depends on mozjs (through polkit), which fails on
862 ;; on non-intel systems now.
864 ("cups" ,cups) ;for printing support
865 ;; XXX: rest depends on p11-kit, which fails on mips64el now.
867 ("json-glib" ,json-glib)))
871 ("gettext" ,gettext-minimal)
872 ("pkg-config" ,pkg-config)
873 ("gobject-introspection" ,gobject-introspection)
874 ("python-wrapper" ,python-wrapper)
875 ;; By using a special xorg-server for GTK+'s tests, we reduce the impact
876 ;; of updating xorg-server directly on the master branch.
877 ("xorg-server" ,xorg-server-for-tests)))
879 `(#:disallowed-references (,xorg-server-for-tests)
880 ;; 47 MiB goes to "out" (24 of which is locale data!), and 26 MiB goes
882 #:configure-flags (list (string-append "--with-html-dir="
883 (assoc-ref %outputs "doc")
884 "/share/gtk-doc/html")
885 ;; The header file <gdk/gdkwayland.h> is required
886 ;; by gnome-control-center
887 "--enable-wayland-backend"
888 ;; This is necessary to build both backends.
889 "--enable-x11-backend"
890 ;; This enables the HTML5 websocket backend.
891 "--enable-broadway-backend")
892 #:phases (modify-phases %standard-phases
893 (add-before 'configure 'pre-configure
895 ;; Disable most tests, failing in the chroot with the message:
896 ;; D-Bus library appears to be incorrectly set up; failed to read
897 ;; machine uuid: Failed to open "/etc/machine-id": No such file or
899 ;; See the manual page for dbus-uuidgen to correct this issue.
900 (substitute* "testsuite/Makefile.in"
901 (("SUBDIRS = gdk gtk a11y css reftests")
904 (add-after 'install 'move-desktop-files
905 ;; Move desktop files into 'bin' to avoid cycle references.
906 (lambda* (#:key outputs #:allow-other-keys)
907 (let ((out (assoc-ref outputs "out"))
908 (bin (assoc-ref outputs "bin")))
909 (mkdir-p (string-append bin "/share"))
910 (rename-file (string-append out "/share/applications")
911 (string-append bin "/share/applications"))
914 (list (search-path-specification
915 (variable "GUIX_GTK3_PATH")
916 (files '("lib/gtk-3.0")))))))
922 (define-public guile-cairo
928 (uri (string-append "mirror://savannah/guile-cairo/guile-cairo-"
932 "1gc642r9ndsjhhmh9bl5cbd3dwvy4dpxwhr0zpsw43y9nmz37xpl"))
933 (modules '((guix build utils)))
937 ;; Install Scheme files in …/guile/site/X.Y.
938 (substitute* (find-files "." "^Makefile\\.in$")
939 (("^(.*)dir = (.*)/guile/site(.*)" _ name prefix suffix)
940 (string-append name "dir = " prefix
941 "/guile/site/@GUILE_EFFECTIVE_VERSION@"
944 ;; Guile 2.x <libguile.h> used to pull in <string.h> and
945 ;; other headers but this is no longer the case in 3.0.
946 (substitute* (find-files "." "\\.[ch]$")
947 (("^ *# *include.*libguile\\.h.*$")
948 "#include <libguile.h>\n#include <string.h>\n"))
950 (build-system gnu-build-system)
952 ;; Uses of 'scm_t_uint8' & co. are deprecated; don't stop the build
954 '(#:configure-flags '("--disable-Werror")
955 #:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
957 `(("guile-lib" ,guile-lib)
959 ("guile" ,guile-3.0)))
961 ;; The .pc file refers to 'cairo'.
964 `(("pkg-config" ,pkg-config)))
965 (home-page "https://www.nongnu.org/guile-cairo/")
966 (synopsis "Cairo bindings for GNU Guile")
968 "Guile-Cairo wraps the Cairo graphics library for Guile Scheme.
969 Guile-Cairo is complete, wrapping almost all of the Cairo API. It is API
970 stable, providing a firm base on which to do graphics work. Finally, and
971 importantly, it is pleasant to use. You get a powerful and well-maintained
972 graphics library with all of the benefits of Scheme: memory management,
973 exceptions, macros, and a dynamic programming environment.")
974 (license license:lgpl3+)))
976 (define-public guile2.2-cairo
978 (inherit guile-cairo)
979 (name "guile2.2-cairo")
981 `(("guile" ,guile-2.2)
982 ("guile-lib" ,guile2.2-lib)
983 ,@(fold alist-delete (package-inputs guile-cairo)
984 '("guile" "guile-lib"))))))
986 (define-public guile3.0-cairo
987 (deprecated-package "guile3.0-cairo" guile-cairo))
989 (define-public guile-rsvg
990 ;; Use a recent snapshot that supports Guile 2.2 and beyond.
991 (let ((commit "05c6a2fd67e4fea1a7c3ff776729dc931bae6678")
995 (version (string-append "2.18.1-" revision "."
996 (string-take commit 7)))
1000 (url "https://gitlab.com/wingo/guile-rsvg/")
1004 "0cnbl40df2sbhpc32cma6j6w312rfvcgbxxqaixgf0ymim3fb248"))
1005 (patches (search-patches "guile-rsvg-pkgconfig.patch"))
1006 (modules '((guix build utils)))
1009 (substitute* (find-files "." "Makefile\\.am")
1010 (("/share/guile/site")
1011 "/share/guile/site/@GUILE_EFFECTIVE_VERSION@"))
1013 (file-name (string-append name "-" version ".tar.gz"))))
1014 (build-system gnu-build-system)
1016 `(#:phases (modify-phases %standard-phases
1019 (invoke "autoreconf" "-vfi"))))))
1020 (native-inputs `(("pkg-config" ,pkg-config)
1021 ("autoconf" ,autoconf)
1022 ("automake" ,automake)
1023 ("libtool" ,libtool)
1024 ("texinfo" ,texinfo)))
1025 (inputs `(("guile" ,guile-3.0)
1026 ("librsvg" ,librsvg)
1027 ("guile-lib" ,guile-lib))) ;for (unit-test)
1028 (propagated-inputs `(("guile-cairo" ,guile-cairo)))
1029 (synopsis "Render SVG images using Cairo from Guile")
1031 "Guile-RSVG wraps the RSVG library for Guile, allowing you to render SVG
1032 images onto Cairo surfaces.")
1033 (home-page "https://wingolog.org/projects/guile-rsvg/")
1034 (license license:lgpl2.1+))))
1036 (define-public guile2.2-rsvg
1038 (inherit guile-rsvg)
1039 (name "guile2.2-rsvg")
1041 `(("guile" ,guile-2.2)
1042 ("guile-lib" ,guile2.2-lib)
1043 ,@(fold alist-delete (package-inputs guile-rsvg)
1044 '("guile" "guile-lib"))))
1045 (propagated-inputs `(("guile-cairo" ,guile2.2-cairo)))))
1047 (define-public guile3.0-rsvg
1048 (deprecated-package "guile3.0-rsvg" guile-rsvg))
1050 (define-public guile-present
1052 (name "guile-present")
1056 (uri (string-append "http://wingolog.org/pub/guile-present/"
1057 "guile-present-" version ".tar.gz"))
1060 "1qam447m05sxxv6x8dlzg7qnyfc4dh8apjw1idpfhpns671gfr6m"))
1061 (patches (search-patches "guile-present-coding.patch"))
1062 (modules '((guix build utils)))
1065 ;; Allow builds with Guile 3.0.
1066 (substitute* "configure"
1070 ;; Install .go files in the right place.
1071 (substitute* "Makefile.in"
1072 (("/ccache") "/site-ccache"))
1074 (build-system gnu-build-system)
1077 (modify-phases %standard-phases
1078 (add-after 'install 'post-install
1079 (lambda* (#:key inputs outputs #:allow-other-keys)
1080 (let* ((out (assoc-ref outputs "out"))
1081 (bin (string-append out "/bin"))
1082 (guile (assoc-ref inputs "guile"))
1084 ,(match (assoc "guile" (package-inputs this-package))
1086 (version-major+minor (package-version guile))))))
1087 (substitute* (find-files bin ".*")
1089 (string-append guile "/bin/guile -L "
1090 out "/share/guile/site/" version " -C "
1091 out "/lib/guile/" version "/site-ccache "))))
1093 (native-inputs `(("pkg-config" ,pkg-config)))
1094 (inputs `(("guile" ,guile-3.0)))
1096 ;; These are used by the (present …) modules.
1097 `(("guile-lib" ,guile-lib)
1098 ("guile-cairo" ,guile-cairo)
1099 ("guile-rsvg" ,guile-rsvg)))
1100 (home-page "https://wingolog.org/software/guile-present/")
1101 (synopsis "Create SVG or PDF presentations in Guile")
1103 "Guile-Present defines a declarative vocabulary for presentations,
1104 together with tools to render presentation documents as SVG or PDF.
1105 Guile-Present can be used to make presentations programmatically, but also
1106 includes a tools to generate PDF presentations out of Org mode and Texinfo
1108 (license license:lgpl3+)))
1110 (define-public guile2.2-present
1112 (inherit guile-present)
1113 (name "guile2.2-present")
1114 (inputs `(("guile" ,guile-2.2)))
1116 `(("guile-lib" ,guile2.2-lib)
1117 ("guile-cairo" ,guile2.2-cairo)
1118 ("guile-rsvg" ,guile2.2-rsvg)))))
1120 (define-public guile3.0-present
1121 (deprecated-package "guile3.0-present" guile-present))
1123 (define-public guile-gnome
1125 (name "guile-gnome")
1130 (string-append "mirror://gnu/" name
1131 "/guile-gnome-platform/guile-gnome-platform-"
1135 "1gnf3j96nip5kl99a268i0dy1hj7s1cfs66sps3zwysnkd7qr399"))))
1136 (build-system gnu-build-system)
1138 `(("pkg-config" ,pkg-config)
1140 ;;("corba" ,corba) ; not packaged yet
1142 ("gobject-introspection" ,gobject-introspection)
1143 ;;("gthread" ,gthread) ; not packaged yet
1144 ("gnome-vfs" ,gnome-vfs)
1145 ("gdk-pixbuf" ,gdk-pixbuf)
1147 ("libglade" ,libglade)
1148 ("libgnome" ,libgnome)
1149 ("libgnomecanvas" ,libgnomecanvas)
1150 ("libgnomeui" ,libgnomeui)
1154 (inputs `(("guile" ,guile-2.2)))
1156 `(("guile-cairo" ,guile2.2-cairo)
1158 ("guile-lib" ,guile2.2-lib)))
1160 `(#:tests? #f ;FIXME
1161 #:phases (modify-phases %standard-phases
1162 (add-before 'configure 'pre-configure
1163 (lambda* (#:key outputs #:allow-other-keys)
1164 (let ((out (assoc-ref outputs "out")))
1165 (substitute* (find-files "." "^Makefile.in$")
1166 (("guilesite :=.*guile/site" all)
1167 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
1169 (outputs '("out" "debug"))
1170 (synopsis "Guile interface for GTK+ programming for GNOME")
1172 "Includes guile-clutter, guile-gnome-gstreamer,
1173 guile-gnome-platform (GNOME developer libraries), and guile-gtksourceview.")
1174 (home-page "https://www.gnu.org/software/guile-gnome/")
1175 (license license:gpl2+)
1176 (properties '((upstream-name . "guile-gnome-platform")
1177 (ftp-directory . "/gnu/guile-gnome/guile-gnome-platform")))))
1183 (define-public cairomm
1189 (uri (string-append "https://www.cairographics.org/releases/"
1190 name "-" version ".tar.gz"))
1193 "16fmigxsaz85c3lgcls7biwyz8zy8c8h3jndfm54cxxas3a7zi25"))))
1194 (build-system gnu-build-system)
1196 ;; The examples lack -lcairo.
1197 '(#:make-flags '("LDFLAGS=-lcairo")))
1198 (native-inputs `(("pkg-config" ,pkg-config)))
1200 `(("libsigc++" ,libsigc++)
1201 ("freetype" ,freetype)
1202 ("fontconfig" ,fontconfig)
1204 (home-page "https://cairographics.org/")
1205 (synopsis "C++ bindings to the Cairo 2D graphics library")
1207 "Cairomm provides a C++ programming interface to the Cairo 2D graphics
1209 (license license:lgpl2.0+)))
1211 (define-public cairomm-1.13
1220 (string-append "https://www.cairographics.org/releases/"
1221 name "-" version ".tar.gz"))
1223 (base32 "1xlfl0fm5mgv53lr8xjv2kqsk3bz67qkk6qzvbrqmbvbvvbqp9wp"))))
1226 ("sigc++" ,libsigc++)))))
1228 (define-public pangomm
1234 (uri (string-append "mirror://gnome/sources/" name "/"
1235 (version-major+minor version) "/"
1236 name "-" version ".tar.xz"))
1239 "0mmzxp3wniaafkxr30sb22mq9x44xckb5d60h1bl99lkzxks0vfa"))))
1240 (build-system gnu-build-system)
1241 (native-inputs `(("pkg-config" ,pkg-config)))
1244 ("cairomm" ,cairomm)
1247 (home-page "https://pango.gnome.org//")
1248 (synopsis "C++ interface to the Pango text rendering library")
1250 "Pangomm provides a C++ programming interface to the Pango text rendering
1252 (license license:lgpl2.1+)))
1254 (define-public pangomm-2.42
1263 (string-append "mirror://gnome/sources/" name "/"
1264 (version-major+minor version) "/"
1265 name "-" version ".tar.xz"))
1267 (base32 "03zli5amizhv9bfklwfq7xyf0b5dagchx1lnz9f0v1rhk69h9gql"))))
1269 `(("cairomm" ,cairomm-1.13)
1270 ("glibmm" ,glibmm-2.64)
1271 ("pango" ,pango)))))
1273 (define-public atkmm
1279 (uri (string-append "mirror://gnome/sources/" name "/"
1280 (version-major+minor version) "/"
1281 name "-" version ".tar.xz"))
1284 "0fnxrspxkhhbrjphqrpvl3zjm66n50s4cywrrrwkhbflgy8zqk2c"))))
1285 (build-system gnu-build-system)
1286 (native-inputs `(("pkg-config" ,pkg-config)))
1288 `(("glibmm" ,glibmm) ("atk" ,atk)))
1289 (home-page "https://www.gtkmm.org")
1290 (synopsis "C++ interface to the ATK accessibility library")
1292 "ATKmm provides a C++ programming interface to the ATK accessibility
1294 (license license:lgpl2.1+)))
1296 (define-public gtkmm
1302 (uri (string-append "mirror://gnome/sources/" name "/"
1303 (version-major+minor version) "/"
1304 name "-" version ".tar.xz"))
1307 "1hxdnhavjyvbcpxhd5z17l9fj4182028s66lc0s16qqqrldhjwbd"))))
1308 (build-system gnu-build-system)
1309 (native-inputs `(("pkg-config" ,pkg-config)
1310 ("glib" ,glib "bin") ;for 'glib-compile-resources'
1311 ("xorg-server" ,xorg-server-for-tests)))
1313 `(("pangomm" ,pangomm)
1314 ("cairomm" ,cairomm)
1317 ("glibmm" ,glibmm)))
1319 `(#:disallowed-references (,xorg-server-for-tests)
1320 #:phases (modify-phases %standard-phases
1321 (add-before 'check 'run-xvfb
1322 (lambda* (#:key inputs #:allow-other-keys)
1323 (let ((xorg-server (assoc-ref inputs "xorg-server")))
1324 ;; Tests such as 'object_move/test' require a running
1326 (system (string-append xorg-server "/bin/Xvfb :1 &"))
1327 (setenv "DISPLAY" ":1")
1328 ;; Don't fail because of the missing /etc/machine-id.
1329 (setenv "DBUS_FATAL_WARNINGS" "0")
1331 (home-page "https://gtkmm.org/")
1333 "C++ interface to the GTK+ graphical user interface library")
1335 "gtkmm is the official C++ interface for the popular GUI library GTK+.
1336 Highlights include typesafe callbacks, and a comprehensive set of widgets that
1337 are easily extensible via inheritance. You can create user interfaces either
1338 in code or with the Glade User Interface designer, using libglademm. There's
1339 extensive documentation, including API reference and a tutorial.")
1340 (license license:lgpl2.1+)))
1343 (define-public gtkmm-2
1344 (package (inherit gtkmm)
1349 (uri (string-append "mirror://gnome/sources/" name "/"
1350 (version-major+minor version) "/"
1351 name "-" version ".tar.xz"))
1354 "0wkbzvsx4kgw16f6xjdc1dz7f77ldngdila4yi5lw2zrgcxsb006"))))
1356 (native-inputs `(("pkg-config" ,pkg-config)))
1358 `(("pangomm" ,pangomm)
1359 ("cairomm" ,cairomm)
1362 ("glibmm" ,glibmm)))))
1364 (define-public gtksourceviewmm
1366 (name "gtksourceviewmm")
1370 (uri (string-append "mirror://gnome/sources/" name "/"
1371 (version-major+minor version) "/"
1372 name "-" version ".tar.xz"))
1374 (base32 "0fgvmhm4h4qmxig87qvangs6ijw53mi40siz7pixlxbrsgiil22i"))))
1375 (build-system gnu-build-system)
1377 `(("pkg-config" ,pkg-config)))
1379 ;; In 'Requires' of gtksourceviewmm-3.0.pc.
1380 `(("glibmm" ,glibmm)
1382 ("gtksourceview" ,gtksourceview-3)))
1383 (synopsis "C++ interface to the GTK+ 'GtkTextView' widget")
1385 "gtksourceviewmm is a portable C++ library that extends the standard GTK+
1386 framework for multiline text editing with support for configurable syntax
1387 highlighting, unlimited undo/redo, search and replace, a completion framework,
1388 printing and other features typical of a source code editor.")
1389 (license license:lgpl2.1+)
1390 (home-page "https://developer.gnome.org/gtksourceview/")))
1393 ;;; Python bindings.
1396 (define-public python-pycairo
1398 (name "python-pycairo")
1403 (uri (string-append "https://github.com/pygobject/pycairo/releases/download/v"
1404 version "/pycairo-" version ".tar.gz"))
1407 "111fav9m1iagw3nh2ws2vzkjh34r97yl7rdlpvsngsqg521k251c"))))
1408 (build-system python-build-system)
1410 `(("pkg-config" ,pkg-config)
1411 ("python-pytest" ,python-pytest)))
1412 (propagated-inputs ;pycairo.pc references cairo
1413 `(("cairo" ,cairo)))
1414 (home-page "https://cairographics.org/pycairo/")
1415 (synopsis "Python bindings for cairo")
1417 "Pycairo is a set of Python bindings for the Cairo graphics library.")
1418 (license license:lgpl3+)
1419 (properties `((python2-variant . ,(delay python2-pycairo))))))
1421 ;; Pycairo no longer supports Python 2 since version 1.19.0, so we stick
1422 ;; with this older version here.
1423 (define-public python2-pycairo
1424 (let ((pycairo (package-with-python2
1425 (strip-python2-variant python-pycairo))))
1431 (uri (string-append "https://github.com/pygobject/pycairo/releases"
1432 "/download/v" version "/pycairo-" version ".tar.gz"))
1435 "0cb5n4r4nl0k1g90b1gz9iyk4lp7hi03db98i1p52a870bym7f6w"))))
1436 ;; Dual-licensed under LGPL 2.1 or Mozilla Public License 1.1
1437 (license (list license:lgpl2.1 license:mpl1.1)))))
1439 (define-public python2-pygtk
1441 (name "python2-pygtk")
1446 (uri (string-append "mirror://gnome/sources"
1447 "/pygtk/" (version-major+minor version)
1448 "/pygtk-" version ".tar.bz2"))
1451 "04k942gn8vl95kwf0qskkv6npclfm31d78ljkrkgyqxxcni1w76d"))))
1452 (build-system gnu-build-system)
1454 "doc")) ;13 MiB of gtk-doc HTML
1456 `(("pkg-config" ,pkg-config)))
1458 `(("python" ,python-2)
1460 ;; XXX: The package fails to build with the latest Pango (propagated
1461 ;; from GTK+2), so we provide it with this older version.
1462 ("pango" ,pango-1.42)
1464 ("libglade" ,libglade)
1467 `(("python-pycairo" ,python2-pycairo) ;loaded at runtime
1468 ("python-pygobject" ,python2-pygobject-2) ;referenced in pc file
1472 #:phases (modify-phases %standard-phases
1473 (add-before 'configure 'set-gtk-doc-directory
1474 (lambda* (#:key outputs #:allow-other-keys)
1475 ;; Install documentation to "doc".
1476 (let ((doc (assoc-ref outputs "doc")))
1477 (substitute* "docs/Makefile.in"
1478 (("TARGET_DIR = \\$\\(datadir\\)")
1479 (string-append "TARGET_DIR = " doc))))))
1480 (add-after 'configure 'fix-codegen
1481 (lambda* (#:key inputs #:allow-other-keys)
1482 (substitute* "pygtk-codegen-2.0"
1486 (assoc-ref inputs "python-pygobject") "\n")))))
1487 (add-after 'install 'install-pth
1488 (lambda* (#:key inputs outputs #:allow-other-keys)
1489 ;; pygtk's modules are stored in a subdirectory of
1490 ;; python's site-packages directory. Add a .pth file so
1491 ;; that python will add that subdirectory to its module
1493 (let* ((out (assoc-ref outputs "out"))
1494 (site (string-append out "/lib/python"
1495 ,(version-major+minor
1496 (package-version python-2))
1498 (call-with-output-file (string-append site "/pygtk.pth")
1500 (format port "gtk-2.0~%")))))))))
1501 (home-page "http://www.pygtk.org/")
1502 (synopsis "Python bindings for GTK+")
1504 "PyGTK allows you to write full featured GTK programs in Python. It is
1505 targeted at GTK 2.x, and can be used in conjunction with gnome-python to
1506 write GNOME applications.")
1507 (license license:lgpl2.1+)))
1509 (define-public perl-cairo
1516 "mirror://cpan/authors/id/X/XA/XAOC/Cairo-"
1520 "0sg1gf1f2pjq7pji0zsv4rbi3bzpsx82z98k7yqxafzrvlkf27ay"))))
1521 (build-system perl-build-system)
1523 `(("perl-extutils-depends" ,perl-extutils-depends)
1524 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1526 `(("cairo" ,cairo)))
1527 (home-page "https://metacpan.org/release/Cairo")
1528 (synopsis "Perl interface to the cairo 2d vector graphics library")
1529 (description "Cairo provides Perl bindings for the vector graphics library
1530 cairo. It supports multiple output targets, including PNG, PDF and SVG. Cairo
1531 produces identical output on all those targets.")
1532 (license license:lgpl2.1+)))
1534 (define-public perl-gtk2
1540 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Gtk2-"
1544 "0ry9jfvfgdwzalxcvwsgr7plhk3agx7p40l0fqdf3vrf7ds47i29"))))
1545 (build-system perl-build-system)
1547 `(("perl-extutils-depends" ,perl-extutils-depends)
1548 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1550 `(("gtk+" ,gtk+-2)))
1552 `(("perl-pango" ,perl-pango)))
1555 (modify-phases %standard-phases
1556 (add-before 'build 'remove-broken-test
1557 ;; See https://gitlab.gnome.org/GNOME/perl-gtk2/issues/3.
1559 (substitute* "t/GdkPixbuf.t"
1560 (("tests => 112") "tests => 111")
1561 (("ok \\(defined \\$pixbuf, \"Don't crash on partial pixmap data\"\\);")
1562 "# ok (defined $pixbuf, \"Don't crash on partial pixmap data\");")))))))
1563 (home-page "https://metacpan.org/release/Gtk2")
1564 (synopsis "Perl interface to the 2.x series of the Gimp Toolkit library")
1565 (description "Perl bindings to the 2.x series of the Gtk+ widget set.
1566 This module allows you to write graphical user interfaces in a Perlish and
1567 object-oriented way, freeing you from the casting and memory management in C,
1568 yet remaining very close in spirit to original API.")
1569 (license license:lgpl2.1+)))
1571 (define-public perl-pango
1577 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Pango-"
1581 "0wdcidnfnb6nm79fzfs39ivawj3x8m98a147fmcxgv1zvwia9c1l"))))
1582 (build-system perl-build-system)
1584 `(("perl-extutils-depends" ,perl-extutils-depends)
1585 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1587 `(("pango" ,pango)))
1589 `(("perl-cairo" ,perl-cairo)
1590 ("perl-glib" ,perl-glib)))
1591 (home-page "https://metacpan.org/release/Pango")
1592 (synopsis "Layout and render international text")
1593 (description "Pango is a library for laying out and rendering text, with an
1594 emphasis on internationalization. Pango can be used anywhere that text layout
1595 is needed, but using Pango in conjunction with Cairo and/or Gtk2 provides a
1596 complete solution with high quality text handling and graphics rendering.
1598 Dynamically loaded modules handle text layout for particular combinations of
1599 script and font backend. Pango provides a wide selection of modules, including
1600 modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts.
1601 Virtually all of the world's major scripts are supported.
1603 In addition to the low level layout rendering routines, Pango includes
1604 @code{Pango::Layout}, a high level driver for laying out entire blocks of text,
1605 and routines to assist in editing internationalized text.")
1606 (license license:lgpl2.1+)))
1608 (define-public girara
1616 (url "https://git.pwmt.org/pwmt/girara")
1618 (file-name (git-file-name name version))
1620 (base32 "08rpw9hkaprm4r853xy1d35i2af1pji8c3mzzl01mmwmyr9p0x8k"))))
1621 (native-inputs `(("pkg-config" ,pkg-config)
1622 ("check" ,check-0.14)
1623 ("gettext" ,gettext-minimal)
1624 ("glib:bin" ,glib "bin")
1625 ("xorg-server" ,xorg-server-for-tests)))
1626 ;; Listed in 'Requires.private' of 'girara.pc'.
1627 (propagated-inputs `(("gtk+" ,gtk+)))
1629 `(#:phases (modify-phases %standard-phases
1630 (add-before 'check 'start-xserver
1631 ;; Tests require a running X server.
1632 (lambda* (#:key inputs #:allow-other-keys)
1633 (let ((xorg-server (assoc-ref inputs "xorg-server"))
1635 (setenv "DISPLAY" display)
1637 ;; On busy machines, tests may take longer than
1638 ;; the default of four seconds.
1639 (setenv "CK_DEFAULT_TIMEOUT" "20")
1641 ;; Don't fail due to missing '/etc/machine-id'.
1642 (setenv "DBUS_FATAL_WARNINGS" "0")
1643 (zero? (system (string-append xorg-server "/bin/Xvfb "
1644 display " &")))))))))
1645 (build-system meson-build-system)
1646 (home-page "https://pwmt.org/projects/girara/")
1647 (synopsis "Library for minimalistic gtk+3 user interfaces")
1648 (description "Girara is a library that implements a user interface that
1649 focuses on simplicity and minimalism. Currently based on GTK+, a
1650 cross-platform widget toolkit, it provides an interface that focuses on three
1651 main components: a so-called view widget that represents the actual
1652 application, an input bar that is used to execute commands of the
1653 application and the status bar which provides the user with current
1655 (license license:zlib)))
1657 (define-public gtk-doc
1663 (uri (string-append "mirror://gnome/sources/" name "/"
1664 (version-major+minor version) "/"
1665 name "-" version ".tar.xz"))
1668 "05apmwibkmn1icx05l8aw241lhymcx01zvk5i499cb150bijj7li"))))
1669 (build-system gnu-build-system)
1671 `(#:parallel-tests? #f
1673 (modify-phases %standard-phases
1674 (add-after 'unpack 'patch-gtk-doc-scan
1675 (lambda* (#:key inputs #:allow-other-keys)
1676 (substitute* "gtk-doc.xsl"
1677 (("http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl")
1678 (string-append (assoc-ref inputs "docbook-xsl")
1679 "/xml/xsl/docbook-xsl-"
1680 ,(package-version docbook-xsl)
1682 (("http://docbook.sourceforge.net/release/xsl/current/common/en.xml")
1683 (string-append (assoc-ref inputs "docbook-xsl")
1684 "/xml/xsl/docbook-xsl-"
1685 ,(package-version docbook-xsl)
1688 (add-after 'patch-gtk-doc-scan 'patch-test-out
1690 ;; sanity.sh counts the number of status lines. Since our
1691 ;; texlive regenerates the fonts every time and the font
1692 ;; generator metafont outputs a lot of extra lines, this
1693 ;; test would always fail. Disable it for now.
1694 (substitute* "tests/Makefile.in"
1695 (("empty.sh sanity.sh") "empty.sh"))
1697 (add-before 'build 'set-HOME
1699 ;; FIXME: dblatex with texlive-union does not find the built
1700 ;; metafonts, so it tries to generate them in HOME.
1701 (setenv "HOME" "/tmp")
1703 (add-before 'configure 'fix-docbook
1704 (lambda* (#:key inputs #:allow-other-keys)
1705 (substitute* "configure"
1706 ;; The configure check is overzealous about making sure that
1707 ;; things are in place -- it uses the xmlcatalog tool to make
1708 ;; sure that docbook-xsl is available, but this tool can only
1709 ;; look in one catalog file, unlike the $XML_CATALOG_FILES
1710 ;; variable that Guix defines. Fool the test by using the
1711 ;; docbook-xsl catalog explicitly and get on with life.
1712 (("\"\\$XML_CATALOG_FILE\" \
1713 \"http://docbook.sourceforge.net/release/xsl/")
1714 (string-append (car (find-files (assoc-ref inputs "docbook-xsl")
1716 " \"http://docbook.sourceforge.net/release/xsl/")))
1718 (add-after 'install 'wrap-executables
1719 (lambda* (#:key outputs #:allow-other-keys)
1720 (let ((out (assoc-ref outputs "out")))
1721 (for-each (lambda (prog)
1723 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))))
1724 (find-files (string-append out "/bin")))
1727 (list (string-append "--with-xml-catalog="
1728 (assoc-ref %build-inputs "docbook-xml")
1729 "/xml/dtd/docbook/catalog.xml"))))
1731 `(("pkg-config" ,pkg-config)
1732 ("itstool" ,itstool)
1734 ("gettext" ,gettext-minimal)
1739 ("xsltproc" ,libxslt)
1740 ("dblatex" ,dblatex)
1741 ("docbook-xml" ,docbook-xml-4.3)
1742 ("docbook-xsl" ,docbook-xsl)
1743 ("source-highlight" ,source-highlight)
1745 ("python-six" ,python-six)))
1746 (home-page "https://www.gtk.org/gtk-doc/")
1747 (synopsis "Documentation generator from C source code")
1749 "GTK-Doc generates API documentation from comments added to C code. It is
1750 typically used to document the public API of GTK+ and GNOME libraries, but it
1751 can also be used to document application code.")
1752 (license license:gpl2+)))
1754 (define-public gtk-engines
1756 (name "gtk-engines")
1760 (uri (string-append "mirror://gnome/sources/" name "/"
1761 (version-major+minor version) "/"
1762 name "-" version ".tar.bz2"))
1765 "1db65pb0j0mijmswrvpgkdabilqd23x22d95hp5kwxvcramq1dhm"))))
1766 (build-system gnu-build-system)
1769 `("--enable-animation")))
1771 `(("pkg-config" ,pkg-config)
1772 ("intltool" ,intltool)))
1774 ;; Don't propagate GTK+ to reduce "profile pollution".
1775 `(("gtk+" ,gtk+-2))) ; required by gtk-engines-2.pc
1776 (home-page "https://live.gnome.org/GnomeArt")
1777 (synopsis "Theming engines for GTK+ 2.x")
1779 "This package contains the standard GTK+ 2.x theming engines including
1780 Clearlooks, Crux, High Contrast, Industrial, LighthouseBlue, Metal, Mist,
1781 Redmond95 and ThinIce.")
1782 (license (list license:gpl2+ license:lgpl2.1+))))
1784 (define-public murrine
1790 (uri (string-append "mirror://gnome/sources/" name "/"
1791 (version-major+minor version) "/"
1792 name "-" version ".tar.xz"))
1795 "129cs5bqw23i76h3nmc29c9mqkm9460iwc8vkl7hs4xr07h8mip9"))))
1796 (build-system gnu-build-system)
1799 `("--enable-animation"
1800 "--enable-animationrtl")))
1802 `(("pkg-config" ,pkg-config)
1803 ("intltool" ,intltool)))
1805 `(("gtk+" ,gtk+-2)))
1806 (home-page "https://live.gnome.org/GnomeArt")
1807 (synopsis "Cairo-based theming engine for GTK+ 2.x")
1809 "Murrine is a cairo-based GTK+ theming engine. It is named after the
1810 glass artworks done by Venicians glass blowers.")
1811 (license license:gpl2+)))
1813 (define-public gtkspell3
1819 (uri (string-append "mirror://sourceforge/gtkspell/"
1820 version "/" name "-" version ".tar.xz"))
1823 "0cjp6xdcnzh6kka42w9g0w2ihqjlq8yl8hjm9wsfnixk6qwgch5h"))))
1824 (build-system gnu-build-system)
1826 `(("intltool" ,intltool)
1827 ("pkg-config" ,pkg-config)
1830 `(("gobject-introspection" ,gobject-introspection)
1834 `(("enchant" ,enchant))) ; gtkspell3-3.0.pc refers to it
1835 (home-page "http://gtkspell.sourceforge.net")
1836 (synopsis "Spell-checking addon for GTK's TextView widget")
1838 "GtkSpell provides word-processor-style highlighting and replacement of
1839 misspelled words in a GtkTextView widget.")
1840 (license license:gpl2+)))
1842 (define-public clipit
1850 (url "https://github.com/CristianHenzel/ClipIt")
1851 (commit (string-append "v" version))))
1852 (file-name (git-file-name name version))
1854 (base32 "05xi29v2y0rvb33fmvrz7r9j4l858qj7ngwd7dp4pzpkkaybjln0"))))
1855 (build-system gnu-build-system)
1857 `(("autoconf" ,autoconf)
1858 ("automake" ,automake)
1859 ("intltool" ,intltool)
1860 ("pkg-config" ,pkg-config)))
1862 `(("gtk+" ,gtk+-2)))
1863 (home-page "https://github.com/CristianHenzel/ClipIt")
1864 (synopsis "Lightweight GTK+ clipboard manager")
1866 "ClipIt is a clipboard manager with features such as a history, search
1867 thereof, global hotkeys and clipboard item actions. It was forked from
1868 Parcellite and adds bugfixes and features.")
1869 (license license:gpl2+)))
1871 (define-public graphene
1880 (url "https://github.com/ebassi/graphene.git")
1882 (file-name (git-file-name name version))
1884 (base32 "14a0j1rvjlc7yhfdmhmckdmkzy4ch61qbzywdlw1xv58h23wx29p"))))
1885 (build-system meson-build-system)
1887 `(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
1890 "-Dinstalled_tests=false")))
1892 `(("git" ,git-minimal)
1893 ("gobject-introspection" ,gobject-introspection)
1895 ("pkg-config" ,pkg-config)))
1898 ("python" ,python)))
1899 (synopsis "Thin layer of graphic data types")
1900 (description "Graphene provides graphic types and their relative API; it
1901 does not deal with windowing system surfaces, drawing, scene graphs, or input.")
1902 (home-page "https://ebassi.github.io/graphene/")
1903 (license license:expat)))
1905 (define-public spread-sheet-widget
1907 (name "spread-sheet-widget")
1912 (uri (string-append "https://alpha.gnu.org/gnu/ssw/"
1913 "spread-sheet-widget-" version ".tar.gz"))
1915 (base32 "09rzgp7gabnzab460x874a1ibgyjiibpwzsz5srn9zs6jv2jdxjb"))))
1916 (build-system gnu-build-system)
1918 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
1919 ("pkg-config" ,pkg-config)))
1920 ;; In 'Requires' of spread-sheet-widget.pc.
1924 (home-page "https://www.gnu.org/software/ssw/")
1925 (synopsis "Gtk+ widget for dealing with 2-D tabular data")
1927 "GNU Spread Sheet Widget is a library for Gtk+ which provides a widget for
1928 viewing and manipulating 2 dimensional tabular data in a manner similar to many
1929 popular spread sheet programs.")
1930 (license license:gpl3+)))
1932 (define-public volumeicon
1939 (uri (string-append "http://nullwise.com/files/volumeicon/volumeicon-"
1942 (base32 "182xl2w8syv6ky2h2bc9imc6ap8pzh0p7rp63hh8nw0xm38c3f14"))))
1943 (build-system gnu-build-system)
1946 (list "--enable-notify"))) ; optional libnotify support
1948 `(("intltool" ,intltool)
1949 ("pkg-config" ,pkg-config)))
1951 `(("alsa-lib" ,alsa-lib)
1953 ("libnotify" ,libnotify)))
1954 (home-page "http://nullwise.com/volumeicon.html")
1955 (synopsis "System tray volume applet")
1957 "Volume Icon is a volume indicator and control applet for @acronym{the
1958 Advanced Linux Sound Architecture, ALSA}. It sits in the system tray,
1959 independent of your desktop environment, and supports global key bindings.")
1960 (license (list license:expat ; src/{bind.c,keybinder.h}
1961 license:isc ; src/alsa_volume_mapping.c
1962 license:gpl3)))) ; the rest & combined work
1972 (url "https://github.com/v1cont/yad")
1973 (commit (string-append "v" version))))
1974 (file-name (git-file-name name version))
1976 (base32 "07rd61hvilsxxrj7lf8c9k0a8glj07s48m7ya8d45030r90g3lvc"))))
1977 (build-system glib-or-gtk-build-system)
1980 ;; Passing --enable-foo will silently disable foo if prerequisite
1981 ;; inputs are missing, not abort the build as one might expect.
1982 ;; ‘--enable-html’ adds a huge webkitgtk dependency. It was never
1983 ;; present in the past and nobody complained.
1984 '("--enable-icon-browser"
1985 "--enable-spell") ; gspell checking support
1987 (modify-phases %standard-phases
1988 (add-after 'bootstrap 'intltoolize
1990 (invoke "intltoolize" "--force" "--automake"))))))
1992 `(("gspell" ,gspell)
1995 `(("autoconf" ,autoconf)
1996 ("automake" ,automake)
1997 ("intltool" ,intltool)
1998 ("pkg-config" ,pkg-config)))
1999 (home-page "https://sourceforge.net/projects/yad-dialog/")
2000 (synopsis "GTK+ dialog boxes for shell scripts")
2002 "This program allows you to display GTK+ dialog boxes from command line or
2003 shell scripts. Example of how to use @code{yad} can be consulted at
2004 @url{https://sourceforge.net/p/yad-dialog/wiki/browse_pages/}.")
2005 (license license:gpl3+)))
2007 (define-public libdbusmenu
2009 (name "libdbusmenu")
2014 (uri (string-append "https://launchpad.net/libdbusmenu/"
2015 (version-major+minor version) "/" version
2016 "/+download/libdbusmenu-" version ".tar.gz"))
2018 (base32 "12l7z8dhl917iy9h02sxmpclnhkdjryn08r8i4sr8l3lrlm4mk5r"))))
2019 (build-system gnu-build-system)
2022 '("--sysconfdir=/etc"
2023 "--localstatedir=/var"
2024 ;; The shebang of the generated test files should be patched before
2028 `(,(string-append "typelibdir=" (assoc-ref %outputs "out")
2029 "/lib/girepository-1.0"))
2031 (modify-phases %standard-phases
2032 (add-before 'configure 'do-not-treat-warnings-as-errors
2034 ;; Prevent the build from failing due to deprecation warnings
2035 ;; from newer GLib and GTK versions.
2036 (substitute* (find-files "." "^Makefile.in$")
2040 (add-before 'configure 'set-environment
2042 (setenv "HAVE_VALGRIND_TRUE" "")
2043 (setenv "HAVE_VALGRIND_FALSE" "#")
2048 ("gtk+-2" ,gtk+-2)))
2050 `(("glib:bin" ,glib "bin")
2051 ("gnome-doc-utils" ,gnome-doc-utils)
2052 ("gobject-introspection" ,gobject-introspection)
2053 ("intltool" ,intltool)
2054 ("json-glib" ,json-glib)
2055 ("pkg-config" ,pkg-config)
2056 ("python" ,python-2)
2058 (home-page "https://launchpad.net/libdbusmenu")
2059 (synopsis "Library for passing menus over DBus")
2060 (description "@code{libdbusmenu} passes a menu structure across DBus so
2061 that a program can create a menu simply without worrying about how it is
2062 displayed on the other side of the bus.")
2064 ;; Dual-licensed under either LGPLv2.1 or LGPLv3.
2065 (license (list license:lgpl2.1 license:lgpl3))))
2067 (define-public gtk-layer-shell
2069 (name "gtk-layer-shell")
2075 "https://github.com/wmww/gtk-layer-shell/releases/download/v"
2076 version "/gtk-layer-shell-" version ".tar.xz"))
2078 (base32 "0ncklk3z0fzlz6p76jdcrr1ykyp1f4ykjjch4x2hfp9bwsnl4a3m"))))
2079 (build-system meson-build-system)
2080 (native-inputs `(("pkg-config" ,pkg-config)
2081 ("gobject-introspection" ,gobject-introspection)))
2082 (inputs `(("wayland" ,wayland)
2084 (home-page "https://github.com/wmww/gtk-layer-shell")
2085 (synopsis "Library to create Wayland desktop components using the Layer
2087 (description "Layer Shell is a Wayland protocol for desktop shell
2088 components, such as panels, notifications and wallpapers. It can be used to
2089 anchor windows to a corner or edge of the output, or stretch them across the
2090 entire output. It supports all Layer Shell features including popups and
2092 (license license:expat)))
2094 (define-public goocanvas
2101 (uri (string-append "mirror://gnome/sources/goocanvas/"
2102 (version-major+minor version)
2103 "/goocanvas-" version ".tar.xz"))
2105 (base32 "141fm7mbqib0011zmkv3g8vxcjwa7hypmq71ahdyhnj2sjvy4a67"))))
2106 (build-system gnu-build-system)
2108 `(("gettext" ,gettext-minimal)
2109 ("glib-bin" ,glib "bin")
2110 ("gobject-introspection" ,gobject-introspection)
2111 ("gtk-doc" ,gtk-doc)
2112 ("pkg-config" ,pkg-config)
2113 ("python" ,python)))
2118 ("python-pygobject" ,python-pygobject)))
2120 `(#:configure-flags '("--disable-rebuilds"
2123 (modify-phases %standard-phases
2124 (add-after 'unpack 'fix-install-path
2125 (lambda* (#:key inputs outputs #:allow-other-keys)
2126 (substitute* "configure"
2127 (("\\(gi._overridesdir\\)")
2128 (string-append "((gi._overridesdir).replace(\\\""
2129 (assoc-ref inputs "python-pygobject")
2131 (assoc-ref outputs "out")
2134 (synopsis "Canvas widget for GTK+")
2135 (description "GooCanvas is a canvas widget for GTK+ that uses the cairo 2D
2136 library for drawing.")
2137 (home-page "https://wiki.gnome.org/GooCanvas")
2138 (license license:lgpl2.0)))
2140 (define-public gtksheet
2148 (url "https://github.com/fpaquet/gtksheet")
2149 (commit (string-append "V" version))))
2150 (file-name (git-file-name name version))
2153 "10qzmdkjkkvkcadxn019cbyhwaahxcfv1apv54lc711bqvh63v8r"))))
2154 (build-system gnu-build-system)
2156 `(#:configure-flags (list "--enable-glade"
2157 "--enable-introspection")
2159 (modify-phases %standard-phases
2160 ;; The "configure" script is present, but otherwise the project is
2161 ;; not bootstrapped properly. Delete configure so the bootstrap phase
2163 (add-after 'unpack 'delete-configure
2165 (delete-file "configure")
2167 ;; Fix glade install directories.
2168 (add-before 'bootstrap 'configure-glade-directories
2169 (lambda* (#:key outputs #:allow-other-keys)
2170 (substitute* "configure.ac"
2171 (("`\\$PKG_CONFIG --variable=catalogdir gladeui-2.0`")
2172 (string-append (assoc-ref outputs "out") "/share/glade/catalogs"))
2173 (("`\\$PKG_CONFIG --variable=moduledir gladeui-2.0`")
2174 (string-append (assoc-ref outputs "out") "/lib/glade/modules"))
2175 (("`\\$PKG_CONFIG --variable=pixmapdir gladeui-2.0`")
2176 (string-append (assoc-ref outputs "out") "/share/pixmaps")))
2178 ;; Fix incorrect typelib version. This is a known upstream bug. See
2179 ;; https://github.com/fpaquet/gtksheet/issues/23
2180 (add-after 'install 'fix-typelib-version
2181 (lambda* (#:key outputs #:allow-other-keys)
2182 (with-directory-excursion (string-append (assoc-ref outputs "out")
2183 "/lib/girepository-1.0")
2184 (rename-file "GtkSheet-4.0.typelib"
2185 (string-append "GtkSheet-" ,version ".typelib")))
2191 ("libxml2" ,libxml2)))
2193 `(("autoconf" ,autoconf)
2194 ("automake" ,automake)
2195 ("gobject-introspection" ,gobject-introspection)
2196 ("libtool" ,libtool)
2197 ("pkg-config" ,pkg-config)))
2198 (home-page "https://fpaquet.github.io/gtksheet/")
2199 (synopsis "Spreadsheet widget for GTK+")
2200 (description "GtkSheet is a matrix widget for GTK+. It consists of an
2201 scrollable grid of cells where you can allocate text. Cell contents can be
2202 edited interactively through a specially designed entry, GtkItemEntry. It is
2203 also a container subclass, allowing you to display buttons, images and any
2204 other widget in it. You can also set many attributes such as border,
2205 foreground and background colors, text justification and more.")
2206 (native-search-paths
2208 (search-path-specification
2209 (variable "GLADE_CATALOG_SEARCH_PATH")
2210 (files '("share/glade/catalogs")))
2211 (search-path-specification
2212 (variable "GLADE_MODULE_SEARCH_PATH")
2213 (files '("lib/glade/modules")))))
2214 (license license:lgpl2.0+)))