1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014, 2015, 2017, 2018 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 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 Nils Gillmann <ng0@n0.is>
17 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
18 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
19 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
20 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
21 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
23 ;;; This file is part of GNU Guix.
25 ;;; GNU Guix is free software; you can redistribute it and/or modify it
26 ;;; under the terms of the GNU General Public License as published by
27 ;;; the Free Software Foundation; either version 3 of the License, or (at
28 ;;; your option) any later version.
30 ;;; GNU Guix is distributed in the hope that it will be useful, but
31 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
32 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 ;;; GNU General Public License for more details.
35 ;;; You should have received a copy of the GNU General Public License
36 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
38 (define-module (gnu packages gtk)
39 #:use-module ((guix licenses) #:prefix license:)
40 #:use-module (guix utils)
41 #:use-module (guix packages)
42 #:use-module (guix download)
43 #:use-module (guix git-download)
44 #:use-module (guix build-system gnu)
45 #:use-module (guix build-system meson)
46 #:use-module (guix build-system perl)
47 #:use-module (guix build-system python)
48 #:use-module (guix build-system waf)
49 #:use-module (gnu packages)
50 #:use-module (gnu packages algebra)
51 #:use-module (gnu packages autotools)
52 #:use-module (gnu packages base)
53 #:use-module (gnu packages texinfo)
54 #:use-module (gnu packages check)
55 #:use-module (gnu packages compression)
56 #:use-module (gnu packages docbook)
57 #:use-module (gnu packages enchant)
58 #:use-module (gnu packages fontutils)
59 #:use-module (gnu packages freedesktop)
60 #:use-module (gnu packages fribidi)
61 #:use-module (gnu packages gettext)
62 #:use-module (gnu packages ghostscript)
63 #:use-module (gnu packages gl)
64 #:use-module (gnu packages glib)
65 #:use-module (gnu packages gnome)
66 #:use-module (gnu packages icu4c)
67 #:use-module (gnu packages image)
68 #:use-module (gnu packages libffi)
69 #:use-module (gnu packages pdf)
70 #:use-module (gnu packages perl)
71 #:use-module (gnu packages pkg-config)
72 #:use-module (gnu packages pretty-print)
73 #:use-module (gnu packages python)
74 #:use-module (gnu packages guile)
75 #:use-module (gnu packages cups)
76 #:use-module (gnu packages xml)
77 #:use-module (gnu packages xorg)
78 #:use-module (gnu packages xdisorg))
86 (uri (string-append "mirror://gnome/sources/" name "/"
87 (version-major+minor version) "/"
88 name "-" version ".tar.xz"))
91 "1z7laf6qwv5zsqcnj222dm5f43c6f3liil0cgx4s4s62xjk1wfnd"))))
92 (build-system gnu-build-system)
93 (outputs '("out" "doc"))
96 (list (string-append "--with-html-dir="
97 (assoc-ref %outputs "doc")
98 "/share/gtk-doc/html"))))
99 (propagated-inputs `(("glib" ,glib))) ; required by atk.pc
101 `(("pkg-config" ,pkg-config)
102 ("glib" ,glib "bin") ; glib-mkenums, etc.
103 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
104 (synopsis "GNOME accessibility toolkit")
106 "ATK provides the set of accessibility interfaces that are implemented
107 by other toolkits and applications. Using the ATK interfaces, accessibility
108 tools have full access to view and control running applications.")
109 (license license:lgpl2.0+)
110 (home-page "https://developer.gnome.org/atk/")))
118 (uri (string-append "https://cairographics.org/releases/cairo-"
122 "05mzyxkvsfc1annjw2dja8vka01ampp9pp93lg09j8hba06g144c"))
123 (patches (search-patches "cairo-CVE-2016-9082.patch"))))
124 (build-system gnu-build-system)
126 `(("fontconfig" ,fontconfig)
127 ("freetype" ,freetype)
132 ("libxrender" ,libxrender)
135 `(("ghostscript" ,ghostscript)
136 ("libspectre" ,libspectre)
138 ("xorgproto" ,xorgproto)
141 `(("pkg-config" ,pkg-config)
142 ("python" ,python-wrapper)))
144 `(#:tests? #f ; see http://lists.gnu.org/archive/html/bug-guix/2013-06/msg00085.html
145 #:configure-flags '("--enable-tee"))) ; needed for GNU Icecat
146 (synopsis "2D graphics library")
148 "Cairo is a 2D graphics library with support for multiple output devices.
149 Currently supported output targets include the X Window System (via both
150 Xlib and XCB), Quartz, Win32, image buffers, PostScript, PDF, and SVG file
151 output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB.
153 Cairo is designed to produce consistent output on all output media while
154 taking advantage of display hardware acceleration when available
155 eg. through the X Render Extension).
157 The cairo API provides operations similar to the drawing operators of
158 PostScript and PDF. Operations in cairo including stroking and filling cubic
159 Bézier splines, transforming and compositing translucent images, and
160 antialiased text rendering. All drawing operations can be transformed by any
161 affine transformation (scale, rotation, shear, etc.).")
162 (license license:lgpl2.1) ; or Mozilla Public License 1.1
163 (home-page "https://cairographics.org/")))
165 (define-public cairo-xcb
171 ,@(package-inputs cairo)))
175 '("--enable-xlib-xcb" "--enable-gl" "--enable-egl")))
176 (synopsis "2D graphics library (with X11 support)")))
178 (define-public harfbuzz
184 (uri (string-append "https://www.freedesktop.org/software/"
185 "harfbuzz/release/harfbuzz-"
189 "1ag3scnm1fcviqgx2p4858y433mr0ndqw6zccnccrqcr9mpcird8"))))
190 (build-system gnu-build-system)
192 "bin")) ; 160K, only hb-view depend on cairo
196 ;; There are all in the Requires or Requires.private field of '.pc'.
198 ("graphite2" ,graphite2)
201 `(("gobject-introspection" ,gobject-introspection)
202 ("pkg-config" ,pkg-config)
203 ("python" ,python-wrapper)
206 `(#:configure-flags `("--with-graphite2"
209 "--bindir=" (assoc-ref %outputs "bin") "/bin"))))
210 (synopsis "OpenType text shaping engine")
212 "HarfBuzz is an OpenType text shaping engine.")
213 (license (license:x11-style "file://COPYING"
214 "See 'COPYING' in the distribution."))
215 (home-page "https://www.freedesktop.org/wiki/Software/HarfBuzz/")))
223 (uri (string-append "mirror://gnome/sources/pango/"
224 (version-major+minor version) "/"
225 name "-" version ".tar.xz"))
228 "17bwb7dgbncrfsmchlib03k9n3xaalirb39g3yb43gg8cg6p8aqx"))))
229 (build-system gnu-build-system)
231 ;; These are all in Requires or Requires.private of the '.pc' files.
234 ("fontconfig" ,fontconfig)
235 ("freetype" ,freetype)
237 ("harfbuzz" ,harfbuzz)))
241 ;; Some packages, such as Openbox, expect Pango to be built with the
242 ;; optional libxft support.
245 `(("pkg-config" ,pkg-config)
246 ("glib" ,glib "bin") ; glib-mkenums, etc.
247 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
248 (synopsis "GNOME text and font handling library")
250 "Pango is the core text and font handling library used in GNOME
251 applications. It has extensive support for the different writing systems
252 used throughout the world.")
253 (license license:lgpl2.0+)
254 (home-page "https://developer.gnome.org/pango/")))
256 (define-public pangox-compat
258 (name "pangox-compat")
262 (uri (string-append "mirror://gnome/sources/" name "/"
263 (version-major+minor version) "/"
264 name "-" version ".tar.xz"))
267 "0ip0ziys6mrqqmz4n71ays0kf5cs1xflj1gfpvs4fgy2nsrr482m"))))
268 (build-system gnu-build-system)
273 `(("intltool" ,intltool)
274 ("pkg-config" ,pkg-config)))
275 (home-page "https://developer.gnome.org/pango")
276 (synopsis "Obsolete pango functions")
277 (description "Pangox was a X backend to pango. It is now obsolete and no
278 longer provided by recent pango releases. pangox-compat provides the
279 functions which were removed.")
280 (license license:lgpl2.0+)))
288 (uri (string-append "https://download.drobilla.net/ganv-"
292 "0g7s5mp14qgbfjdql0k1s8464r21g47ssn5dws6jazsnw6njhl0l"))))
293 (build-system waf-build-system)
296 (modify-phases %standard-phases
297 (add-before 'configure 'set-flags
298 (lambda* (#:key outputs #:allow-other-keys)
299 ;; Compile with C++11, required by gtkmm.
300 (setenv "CXXFLAGS" "-std=c++11")
301 ;; Allow 'bin/ganv_bench' to find libganv-1.so.
303 (string-append "-Wl,-rpath="
304 (assoc-ref outputs "out") "/lib"))
306 #:tests? #f)) ; no check target
311 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
312 ("pkg-config" ,pkg-config)))
313 (home-page "https://drobilla.net/software/ganv/")
314 (synopsis "GTK+ widget for interactive graph-like environments")
316 "Ganv is an interactive GTK+ widget for interactive “boxes and lines” or
317 graph-like environments, e.g. modular synths or finite state machine
319 (license license:gpl3+)))
321 (define-public ganv-devel
322 (let ((commit "12f7d6b0438c94dd87f773a92eee3453d971846e")
327 (version (string-append "1.5.4-" revision "."
328 (string-take commit 9)))
332 (url "https://git.drobilla.net/ganv.git")
334 (file-name (git-file-name name version))
337 "1cr8w02lr6bk9mkxa12j3imq721b2an2yn4bj5wnwmpm91ddn2gi")))))))
339 (define-public gtksourceview-2
341 (name "gtksourceview")
342 (version "2.10.5") ; This is the last version which builds against gtk+2
345 (uri (string-append "mirror://gnome/sources/" name "/"
346 (version-major+minor version) "/"
347 name "-" version ".tar.bz2"))
350 "07hrabhpl6n8ajz10s0d960jdwndxs87szxyn428mpxi8cvpg1f5"))))
351 (build-system gnu-build-system)
353 `(("intltool" ,intltool)
354 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
355 ("pkg-config" ,pkg-config)
357 ("xorg-server" ,xorg-server)
358 ("shared-mime-info" ,shared-mime-info)))
360 ;; As per the pkg-config file.
362 ("libxml2" ,libxml2)))
365 ;; Unfortunately, some of the tests in "make check" are highly dependent
366 ;; on the environment therefore, some black magic is required.
367 (modify-phases %standard-phases
368 (add-before 'check 'start-xserver
369 (lambda* (#:key inputs #:allow-other-keys)
370 (let ((xorg-server (assoc-ref inputs "xorg-server"))
371 (mime (assoc-ref inputs "shared-mime-info")))
373 ;; There must be a running X server and make check doesn't start one.
374 ;; Therefore we must do it.
375 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
376 (setenv "DISPLAY" ":1")
378 ;; The .lang files must be found in $XDG_DATA_HOME/gtksourceview-2.0
379 (system "ln -s gtksourceview gtksourceview-2.0")
380 (setenv "XDG_DATA_HOME" (getcwd))
382 ;; Finally, the mimetypes must be available.
383 (setenv "XDG_DATA_DIRS" (string-append mime "/share/")))
385 (synopsis "Widget that extends the standard GTK+ 2.x 'GtkTextView' widget")
387 "GtkSourceView is a portable C library that extends the standard GTK+
388 framework for multiline text editing with support for configurable syntax
389 highlighting, unlimited undo/redo, search and replace, a completion framework,
390 printing and other features typical of a source code editor.")
391 (license license:lgpl2.0+)
392 (home-page "https://developer.gnome.org/gtksourceview/")))
394 (define-public gtksourceview
396 (name "gtksourceview")
400 (uri (string-append "mirror://gnome/sources/" name "/"
401 (version-major+minor version) "/"
402 name "-" version ".tar.xz"))
405 "1zinqid62zjcsq7vy1y4mq1qh3hzd3zj7p8np7g0bdqd37zvi6qy"))))
406 (build-system gnu-build-system)
409 (modify-phases %standard-phases
412 (lambda* (#:key inputs #:allow-other-keys)
413 (let ((xorg-server (assoc-ref inputs "xorg-server")))
414 ;; Tests require a running X server.
415 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
416 (setenv "DISPLAY" ":1")
417 ;; For the missing /etc/machine-id.
418 (setenv "DBUS_FATAL_WARNINGS" "0")
421 `(("glib:bin" ,glib "bin") ; for glib-genmarshal, etc.
422 ("intltool" ,intltool)
424 ("gobject-introspection" ,gobject-introspection)
425 ("pkg-config" ,pkg-config)
428 ("xorg-server" ,xorg-server)
429 ("shared-mime-info" ,shared-mime-info)))
431 ;; gtksourceview-3.0.pc refers to all these.
434 ("libxml2" ,libxml2)))
435 (home-page "https://wiki.gnome.org/Projects/GtkSourceView")
436 (synopsis "GNOME source code widget")
437 (description "GtkSourceView is a text widget that extends the standard
438 GTK+ text widget GtkTextView. It improves GtkTextView by implementing syntax
439 highlighting and other features typical of a source code editor.")
440 (license license:lgpl2.1+)))
442 (define-public gdk-pixbuf
448 (uri (string-append "mirror://gnome/sources/" name "/"
449 (version-major+minor version) "/"
450 name "-" version ".tar.xz"))
453 "0d534ysa6n9prd17wwzisq7mj6qkhwh8wcf8qgin1ar3hbs5ry7z"))))
454 (build-system gnu-build-system)
456 '(#:configure-flags '("--with-x11")
458 (modify-phases %standard-phases
460 'unpack 'disable-failing-tests
462 (substitute* "tests/Makefile.in"
463 ;; XXX FIXME: This test fails on armhf machines with:
464 ;; SKIP Not enough memory to load bitmap image
465 ;; ERROR: cve-2015-4491 - too few tests run (expected 4, got 2)
466 (("cve-2015-4491\\$\\(EXEEXT\\) ") "")
467 ;; XXX FIXME: This test fails with:
468 ;; ERROR:pixbuf-jpeg.c:74:test_type9_rotation_exif_tag:
469 ;; assertion failed (error == NULL): Data differ
470 ;; (gdk-pixbuf-error-quark, 0)
471 (("pixbuf-jpeg\\$\\(EXEEXT\\) ") ""))
474 `(;; Required by gdk-pixbuf-2.0.pc
477 ;; Used for testing and required at runtime.
478 ("shared-mime-info" ,shared-mime-info)))
480 `(("libjpeg" ,libjpeg)
484 `(("pkg-config" ,pkg-config)
485 ("glib" ,glib "bin") ; glib-mkenums, etc.
486 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
487 (synopsis "GNOME image loading and manipulation library")
489 "GdkPixbuf is a library for image loading and manipulation developed
490 in the GNOME project.")
491 (license license:lgpl2.0+)
492 (home-page "https://developer.gnome.org/gdk-pixbuf/")))
494 ;; To build gdk-pixbuf with SVG support, we need librsvg, and librsvg depends
495 ;; on gdk-pixbuf, so this new varibale. Also, librsvg adds 90MiB to the
497 (define-public gdk-pixbuf+svg
498 (package (inherit gdk-pixbuf)
499 (name "gdk-pixbuf+svg")
501 `(("librsvg" ,librsvg)
502 ,@(package-inputs gdk-pixbuf)))
504 '(#:configure-flags '("--with-x11")
505 #:tests? #f ; tested by the gdk-pixbuf package already
507 (modify-phases %standard-phases
508 (add-after 'install 'register-svg-loader
509 (lambda* (#:key inputs outputs #:allow-other-keys)
510 (let* ((out (assoc-ref outputs "out"))
511 (librsvg (assoc-ref inputs "librsvg"))
514 (find-files out "^libpixbufloader-.*\\.so$")
515 (find-files librsvg "^libpixbufloader-.*\\.so$")))
516 (gdk-pixbuf-query-loaders
517 (string-append out "/bin/gdk-pixbuf-query-loaders")))
519 gdk-pixbuf-query-loaders
523 "GNOME image loading and manipulation library, with SVG support")))
525 (define-public at-spi2-core
527 (name "at-spi2-core")
531 (uri (string-append "mirror://gnome/sources/" name "/"
532 (version-major+minor version) "/"
533 name "-" version ".tar.xz"))
536 "0596ghkamkxgv08r4a1pdhm06qd5zzgcfqsv64038w9xbvghq3n8"))))
537 (build-system gnu-build-system)
538 (outputs '("out" "doc"))
541 (list (string-append "--with-html-dir="
542 (assoc-ref %outputs "doc")
543 "/share/gtk-doc/html"))
545 (modify-phases %standard-phases
547 ;; Run test-suite under a dbus session.
549 ;; Don't fail on missing '/etc/machine-id'.
550 (setenv "DBUS_FATAL_WARNINGS" "0")
551 (invoke "dbus-launch" "make" "check"))))))
553 ;; atspi-2.pc refers to all these.
558 ("libxtst" ,libxtst)))
560 `(("gobject-introspection" ,gobject-introspection)
561 ("intltool" ,intltool)
562 ("pkg-config" ,pkg-config)))
563 (synopsis "Assistive Technology Service Provider Interface, core components")
565 "The Assistive Technology Service Provider Interface, core components,
566 is part of the GNOME accessibility project.")
567 (license license:lgpl2.0+)
568 (home-page "https://projects.gnome.org/accessibility/")))
570 (define-public at-spi2-atk
576 (uri (string-append "mirror://gnome/sources/" name "/"
577 (version-major+minor version) "/"
578 name "-" version ".tar.xz"))
581 "0vkan52ab9vrkknnv8y4f1cspk8x7xd10qx92xk9ys71p851z2b1"))))
582 (build-system gnu-build-system)
585 (modify-phases %standard-phases
587 ;; Run test-suite under a dbus session.
589 (setenv "DBUS_FATAL_WARNINGS" "0")
590 (invoke "dbus-launch" "make" "check"))))))
592 `(("at-spi2-core" ,at-spi2-core))) ; required by atk-bridge-2.0.pc
596 `(("dbus" ,dbus) ; for testing
597 ("pkg-config" ,pkg-config)))
598 (synopsis "Assistive Technology Service Provider Interface, ATK bindings")
600 "The Assistive Technology Service Provider Interface
601 is part of the GNOME accessibility project.")
602 (license license:lgpl2.0+)
603 (home-page "https://projects.gnome.org/accessibility/")))
605 (define-public gtk+-2
611 (uri (string-append "mirror://gnome/sources/" name "/"
612 (version-major+minor version) "/"
613 name "-" version ".tar.xz"))
616 "0bjq7ja9gwcv6n5q4qkvdjjx40wsdiikksz1zqxvxsm5vlyskj5n"))
617 (patches (search-patches "gtk2-respect-GUIX_GTK2_PATH.patch"
618 "gtk2-respect-GUIX_GTK2_IM_MODULE_FILE.patch"
619 "gtk2-theme-paths.patch"))))
620 (build-system gnu-build-system)
621 (outputs '("out" "doc"))
624 ("gdk-pixbuf" ,gdk-pixbuf+svg)
628 ("libxcomposite" ,libxcomposite)
629 ("libxcursor" ,libxcursor)
630 ("libxdamage" ,libxdamage)
632 ("libxinerama" ,libxinerama)
633 ("libxrandr" ,libxrandr)))
636 ("gettext" ,gettext-minimal)
638 ("gobject-introspection" ,gobject-introspection)
639 ("pkg-config" ,pkg-config)
640 ("python-wrapper" ,python-wrapper)))
643 (list "--with-xinput=yes"
644 (string-append "--with-html-dir="
645 (assoc-ref %outputs "doc")
646 "/share/gtk-doc/html"))
649 'configure 'disable-tests
651 ;; FIXME: re-enable tests requiring an X server
652 (substitute* "gtk/Makefile.in"
653 (("SUBDIRS = theme-bits . tests") "SUBDIRS = theme-bits ."))
657 (list (search-path-specification
658 (variable "GUIX_GTK2_PATH")
659 (files '("lib/gtk-2.0")))))
660 (synopsis "Cross-platform toolkit for creating graphical user interfaces")
662 "GTK+, or the GIMP Toolkit, is a multi-platform toolkit for creating
663 graphical user interfaces. Offering a complete set of widgets, GTK+ is
664 suitable for projects ranging from small one-off tools to complete
665 application suites.")
666 (license license:lgpl2.0+)
667 (home-page "https://www.gtk.org/")))
670 (package (inherit gtk+-2)
672 ;; NOTE: When updating the version of 'gtk+', the hash of 'mate-themes' in
673 ;; mate.scm will also need to be updated.
677 (uri (string-append "mirror://gnome/sources/" name "/"
678 (version-major+minor version) "/"
679 name "-" version ".tar.xz"))
682 "0rv5k8fyi2i19k4zncai6vf429s6zy3kncr8vb6f3m034z0sb951"))
683 (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch"
684 "gtk3-respect-GUIX_GTK3_IM_MODULE_FILE.patch"))))
685 (outputs '("out" "bin" "doc"))
687 `(("at-spi2-atk" ,at-spi2-atk)
689 ("gdk-pixbuf" ,gdk-pixbuf+svg)
690 ("libepoxy" ,libepoxy)
691 ("libxcursor" ,libxcursor)
693 ("libxinerama" ,libxinerama)
694 ("libxkbcommon" ,libxkbcommon)
695 ("libxdamage" ,libxdamage)
699 ("wayland-protocols" ,wayland-protocols)))
701 `(("libxml2" ,libxml2)
702 ;; XXX: colord depends on mozjs (through polkit), which fails on
703 ;; on non-intel systems now.
705 ("cups" ,cups) ;for printing support
706 ;; XXX: rest depends on p11-kit, which fails on mips64el now.
708 ("json-glib" ,json-glib)))
712 ("gettext" ,gettext-minimal)
713 ("pkg-config" ,pkg-config)
714 ("gobject-introspection" ,gobject-introspection)
715 ("python-wrapper" ,python-wrapper)
716 ;; By using a special xorg-server for GTK+'s tests, we reduce the impact
717 ;; of updating xorg-server directly on the master branch.
718 ("xorg-server" ,xorg-server-1.19.3)))
720 `(#:disallowed-references (,xorg-server-1.19.3)
721 ;; 47 MiB goes to "out" (24 of which is locale data!), and 26 MiB goes
723 #:configure-flags (list (string-append "--with-html-dir="
724 (assoc-ref %outputs "doc")
725 "/share/gtk-doc/html")
726 ;; The header file <gdk/gdkwayland.h> is required
727 ;; by gnome-control-center
728 "--enable-wayland-backend"
729 ;; This is necessary to build both backends.
730 "--enable-x11-backend"
731 ;; This enables the HTML5 websocket backend.
732 "--enable-broadway-backend")
733 #:phases (modify-phases %standard-phases
734 (add-before 'configure 'pre-configure
736 ;; Disable most tests, failing in the chroot with the message:
737 ;; D-Bus library appears to be incorrectly set up; failed to read
738 ;; machine uuid: Failed to open "/etc/machine-id": No such file or
740 ;; See the manual page for dbus-uuidgen to correct this issue.
741 (substitute* "testsuite/Makefile.in"
742 (("SUBDIRS = gdk gtk a11y css reftests")
745 (add-after 'install 'move-desktop-files
746 ;; Move desktop files into 'bin' to avoid cycle references.
747 (lambda* (#:key outputs #:allow-other-keys)
748 (let ((out (assoc-ref outputs "out"))
749 (bin (assoc-ref outputs "bin")))
750 (mkdir-p (string-append bin "/share"))
751 (rename-file (string-append out "/share/applications")
752 (string-append bin "/share/applications"))
755 (list (search-path-specification
756 (variable "GUIX_GTK3_PATH")
757 (files '("lib/gtk-3.0")))))))
763 (define-public guile-cairo
770 "http://download.gna.org/guile-cairo/guile-cairo-"
775 "1f5nd9n46n6cwfl1byjml02q3y2hgn7nkx98km1czgwarxl7ws3x"))))
776 (build-system gnu-build-system)
778 '(#:modules ((guix build utils)
779 (guix build gnu-build-system)
783 #:phases (modify-phases %standard-phases
784 (add-before 'configure 'set-module-directory
785 (lambda* (#:key outputs #:allow-other-keys)
786 ;; Install modules under $out/share/guile/site/2.0.
787 (let ((out (assoc-ref outputs "out"))
790 (open-pipe* OPEN_READ "guile" "-c"
791 "(display (effective-version))"))))
792 (substitute* "Makefile.in"
793 (("scmdir = ([[:graph:]]+).*" _ value)
794 (string-append "scmdir = " value "/" effective "\n")))
795 (substitute* "cairo/Makefile.in"
796 (("moduledir = ([[:graph:]]+).*" _ value)
797 (string-append "moduledir = "
798 "$(prefix)/share/guile/site/"
799 effective "/cairo\n'")))
801 (add-after 'install 'install-missing-file
802 (lambda* (#:key outputs #:allow-other-keys)
803 ;; By default 'vector-types.scm' is not installed, so do
805 (let ((out (assoc-ref outputs "out"))
808 (open-pipe* OPEN_READ "guile" "-c"
809 "(display (effective-version))"))))
810 (install-file "cairo/vector-types.scm"
811 (string-append out "/share/guile/site/"
815 `(("guile-lib" ,guile-lib)
817 ("guile" ,guile-2.2)))
819 ;; The .pc file refers to 'cairo'.
822 `(("pkg-config" ,pkg-config)))
823 (home-page "https://www.nongnu.org/guile-cairo/")
824 (synopsis "Cairo bindings for GNU Guile")
826 "Guile-Cairo wraps the Cairo graphics library for Guile Scheme.
827 Guile-Cairo is complete, wrapping almost all of the Cairo API. It is API
828 stable, providing a firm base on which to do graphics work. Finally, and
829 importantly, it is pleasant to use. You get a powerful and well-maintained
830 graphics library with all of the benefits of Scheme: memory management,
831 exceptions, macros, and a dynamic programming environment.")
832 (license license:lgpl3+)))
834 (define-public guile-rsvg
835 ;; Use a recent snapshot that supports Guile 2.2 and beyond.
836 (let ((commit "05c6a2fd67e4fea1a7c3ff776729dc931bae6678")
840 (version (string-append "2.18.1-" revision "."
841 (string-take commit 7)))
844 (uri (string-append "https://gitlab.com/wingo/guile-rsvg/"
845 "repository/archive.tar.gz?ref="
849 "0vdzjx8l5nc4y2xjqs0g1rqn1zrwfsm30brh5gz00r1x41a2pvv2"))
850 (patches (search-patches "guile-rsvg-pkgconfig.patch"))
851 (modules '((guix build utils)))
854 (substitute* (find-files "." "Makefile\\.am")
855 (("/share/guile/site")
856 "/share/guile/site/@GUILE_EFFECTIVE_VERSION@"))
858 (file-name (string-append name "-" version ".tar.gz"))))
859 (build-system gnu-build-system)
861 `(#:phases (modify-phases %standard-phases
864 (invoke "autoreconf" "-vfi"))))))
865 (native-inputs `(("pkg-config" ,pkg-config)
866 ("autoconf" ,autoconf)
867 ("automake" ,automake)
869 ("texinfo" ,texinfo)))
870 (inputs `(("guile" ,guile-2.2)
872 ("guile-lib" ,guile-lib))) ;for (unit-test)
873 (propagated-inputs `(("guile-cairo" ,guile-cairo)))
874 (synopsis "Render SVG images using Cairo from Guile")
876 "Guile-RSVG wraps the RSVG library for Guile, allowing you to render SVG
877 images onto Cairo surfaces.")
878 (home-page "http://wingolog.org/projects/guile-rsvg/")
879 (license license:lgpl2.1+))))
881 (define-public guile-present
883 (name "guile-present")
887 (uri (string-append "http://wingolog.org/pub/guile-present/"
888 "guile-present-" version ".tar.gz"))
891 "1qam447m05sxxv6x8dlzg7qnyfc4dh8apjw1idpfhpns671gfr6m"))
892 (patches (search-patches "guile-present-coding.patch"))
893 (modules '((guix build utils)))
896 (substitute* "Makefile.in"
898 "godir = $(moddir)\n"))
900 (build-system gnu-build-system)
903 (modify-phases %standard-phases
904 (add-after 'install 'post-install
905 (lambda* (#:key inputs outputs #:allow-other-keys)
906 (let* ((out (assoc-ref outputs "out"))
907 (bin (string-append out "/bin"))
908 (guile (assoc-ref inputs "guile")))
909 (substitute* (find-files bin ".*")
911 (string-append guile "/bin/guile -L "
912 out "/share/guile/site/2.0 -C "
913 out "/share/guile/site/2.0 "))))
915 (native-inputs `(("pkg-config" ,pkg-config)))
916 (inputs `(("guile" ,guile-2.2)))
918 ;; These are used by the (present …) modules.
919 `(("guile-lib" ,guile-lib)
920 ("guile-cairo" ,guile-cairo)
921 ("guile-rsvg" ,guile-rsvg)))
922 (home-page "http://wingolog.org/software/guile-present/")
923 (synopsis "Create SVG or PDF presentations in Guile")
925 "Guile-Present defines a declarative vocabulary for presentations,
926 together with tools to render presentation documents as SVG or PDF.
927 Guile-Present can be used to make presentations programmatically, but also
928 includes a tools to generate PDF presentations out of Org mode and Texinfo
930 (license license:lgpl3+)))
932 (define-public guile-gnome
939 (string-append "mirror://gnu/" name
940 "/guile-gnome-platform/guile-gnome-platform-"
944 "1gnf3j96nip5kl99a268i0dy1hj7s1cfs66sps3zwysnkd7qr399"))))
945 (build-system gnu-build-system)
947 `(("pkg-config" ,pkg-config)
949 ;;("corba" ,corba) ; not packaged yet
951 ("gobject-introspection" ,gobject-introspection)
952 ;;("gthread" ,gthread) ; not packaged yet
953 ("gnome-vfs" ,gnome-vfs)
954 ("gdk-pixbuf" ,gdk-pixbuf)
956 ("libglade" ,libglade)
957 ("libgnome" ,libgnome)
958 ("libgnomecanvas" ,libgnomecanvas)
959 ("libgnomeui" ,libgnomeui)
963 (inputs `(("guile" ,guile-2.2)))
965 `(("guile-cairo" ,guile-cairo)
967 ("guile-lib" ,guile-lib)))
970 #:phases (modify-phases %standard-phases
971 (add-before 'configure 'pre-configure
972 (lambda* (#:key outputs #:allow-other-keys)
973 (let ((out (assoc-ref outputs "out")))
974 (substitute* (find-files "." "^Makefile.in$")
975 (("guilesite :=.*guile/site" all)
976 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
978 (outputs '("out" "debug"))
979 (synopsis "Guile interface for GTK+ programming for GNOME")
981 "Includes guile-clutter, guile-gnome-gstreamer,
982 guile-gnome-platform (GNOME developer libraries), and guile-gtksourceview.")
983 (home-page "https://www.gnu.org/software/guile-gnome/")
984 (license license:gpl2+)
985 (properties '((upstream-name . "guile-gnome-platform")
986 (ftp-directory . "/gnu/guile-gnome/guile-gnome-platform")))))
992 (define-public cairomm
998 (uri (string-append "https://www.cairographics.org/releases/"
999 name "-" version ".tar.gz"))
1002 "16fmigxsaz85c3lgcls7biwyz8zy8c8h3jndfm54cxxas3a7zi25"))))
1003 (build-system gnu-build-system)
1005 ;; The examples lack -lcairo.
1006 '(#:make-flags '("LDFLAGS=-lcairo")))
1007 (native-inputs `(("pkg-config" ,pkg-config)))
1009 `(("libsigc++" ,libsigc++)
1010 ("freetype" ,freetype)
1011 ("fontconfig" ,fontconfig)
1013 (home-page "https://cairographics.org/")
1014 (synopsis "C++ bindings to the Cairo 2D graphics library")
1016 "Cairomm provides a C++ programming interface to the Cairo 2D graphics
1018 (license license:lgpl2.0+)))
1020 (define-public pangomm
1026 (uri (string-append "mirror://gnome/sources/" name "/"
1027 (version-major+minor version) "/"
1028 name "-" version ".tar.xz"))
1031 "1bz3gciff23bpw9bqc4v2l3lkq9w7394v3a4jxkvx0ap5lmfwqlp"))))
1032 (build-system gnu-build-system)
1033 (native-inputs `(("pkg-config" ,pkg-config)))
1036 ("cairomm" ,cairomm)
1039 (home-page "http://www.pango.org/")
1040 (synopsis "C++ interface to the Pango text rendering library")
1042 "Pangomm provides a C++ programming interface to the Pango text rendering
1044 (license license:lgpl2.1+)))
1046 (define-public atkmm
1052 (uri (string-append "mirror://gnome/sources/" name "/"
1053 (version-major+minor version) "/"
1054 name "-" version ".tar.xz"))
1057 "1gaqwhviadsmy0fsr47686yglv1p4mpkamj0in127bz2b5bki5gz"))))
1058 (build-system gnu-build-system)
1059 (native-inputs `(("pkg-config" ,pkg-config)))
1061 `(("glibmm" ,glibmm) ("atk" ,atk)))
1062 (home-page "https://www.gtkmm.org")
1063 (synopsis "C++ interface to the ATK accessibility library")
1065 "ATKmm provides a C++ programming interface to the ATK accessibility
1067 (license license:lgpl2.1+)))
1069 (define-public gtkmm
1075 (uri (string-append "mirror://gnome/sources/" name "/"
1076 (version-major+minor version) "/"
1077 name "-" version ".tar.xz"))
1080 "1400535lhyya462pfx8bp11k3mg3jsbdghlpygskd5ai665dkbwi"))))
1081 (build-system gnu-build-system)
1082 (native-inputs `(("pkg-config" ,pkg-config)
1083 ("glib" ,glib "bin") ;for 'glib-compile-resources'
1084 ("xorg-server" ,xorg-server-1.19.3)))
1086 `(("pangomm" ,pangomm)
1087 ("cairomm" ,cairomm)
1090 ("glibmm" ,glibmm)))
1092 `(;; XXX: Tests require C++14 or later. Remove this when the default
1093 ;; compiler is >= GCC6.
1094 #:configure-flags '("CXXFLAGS=-std=gnu++14")
1095 #:disallowed-references (,xorg-server-1.19.3)
1096 #:phases (modify-phases %standard-phases
1097 (add-before 'check 'run-xvfb
1098 (lambda* (#:key inputs #:allow-other-keys)
1099 (let ((xorg-server (assoc-ref inputs "xorg-server")))
1100 ;; Tests such as 'object_move/test' require a running
1102 (system (string-append xorg-server "/bin/Xvfb :1 &"))
1103 (setenv "DISPLAY" ":1")
1104 ;; Don't fail because of the missing /etc/machine-id.
1105 (setenv "DBUS_FATAL_WARNINGS" "0")
1107 (home-page "https://gtkmm.org/")
1109 "C++ interface to the GTK+ graphical user interface library")
1111 "gtkmm is the official C++ interface for the popular GUI library GTK+.
1112 Highlights include typesafe callbacks, and a comprehensive set of widgets that
1113 are easily extensible via inheritance. You can create user interfaces either
1114 in code or with the Glade User Interface designer, using libglademm. There's
1115 extensive documentation, including API reference and a tutorial.")
1116 (license license:lgpl2.1+)))
1119 (define-public gtkmm-2
1120 (package (inherit gtkmm)
1125 (uri (string-append "mirror://gnome/sources/" name "/"
1126 (version-major+minor version) "/"
1127 name "-" version ".tar.xz"))
1130 "0wkbzvsx4kgw16f6xjdc1dz7f77ldngdila4yi5lw2zrgcxsb006"))))
1132 '(#:configure-flags '("CPPFLAGS=-std=c++11"))) ; required by libsigc++
1133 (native-inputs `(("pkg-config" ,pkg-config)))
1135 `(("pangomm" ,pangomm)
1136 ("cairomm" ,cairomm)
1139 ("glibmm" ,glibmm)))))
1141 (define-public gtksourceviewmm
1143 (name "gtksourceviewmm")
1147 (uri (string-append "mirror://gnome/sources/" name "/"
1148 (version-major+minor version) "/"
1149 name "-" version ".tar.xz"))
1151 (base32 "0fgvmhm4h4qmxig87qvangs6ijw53mi40siz7pixlxbrsgiil22i"))))
1152 (build-system gnu-build-system)
1154 `(("pkg-config" ,pkg-config)))
1156 ;; In 'Requires' of gtksourceviewmm-3.0.pc.
1157 `(("glibmm" ,glibmm)
1159 ("gtksourceview" ,gtksourceview)))
1160 (synopsis "C++ interface to the GTK+ 'GtkTextView' widget")
1162 "gtksourceviewmm is a portable C++ library that extends the standard GTK+
1163 framework for multiline text editing with support for configurable syntax
1164 highlighting, unlimited undo/redo, search and replace, a completion framework,
1165 printing and other features typical of a source code editor.")
1166 (license license:lgpl2.1+)
1167 (home-page "https://developer.gnome.org/gtksourceview/")))
1170 ;;; Python bindings.
1173 (define-public python-pycairo
1175 (name "python-pycairo")
1180 (uri (string-append "https://github.com/pygobject/pycairo/releases/download/v"
1181 version "/pycairo-" version ".tar.gz"))
1184 "1xq1bwhyi5imca5kvd28szh2rdzi8g0kaspwaqgsbczqskjj3csv"))))
1185 (build-system python-build-system)
1187 `(("pkg-config" ,pkg-config)
1188 ("python-pytest" ,python-pytest)))
1189 (propagated-inputs ;pycairo.pc references cairo
1190 `(("cairo" ,cairo)))
1191 (home-page "https://cairographics.org/pycairo/")
1192 (synopsis "Python bindings for cairo")
1194 "Pycairo is a set of Python bindings for the Cairo graphics library.")
1195 (license license:lgpl3+)
1196 (properties `((python2-variant . ,(delay python2-pycairo))))))
1198 (define-public python2-pycairo
1199 (let ((pycairo (package-with-python2
1200 (strip-python2-variant python-pycairo))))
1204 `(("python2-funcsigs" ,python2-funcsigs)
1205 ,@(package-propagated-inputs pycairo)))
1206 ;; Dual-licensed under LGPL 2.1 or Mozilla Public License 1.1
1207 (license (list license:lgpl2.1 license:mpl1.1)))))
1209 (define-public python2-pygtk
1211 (name "python2-pygtk")
1216 (uri (string-append "mirror://gnome/sources"
1217 "/pygtk/" (version-major+minor version)
1218 "/pygtk-" version ".tar.bz2"))
1221 "04k942gn8vl95kwf0qskkv6npclfm31d78ljkrkgyqxxcni1w76d"))))
1222 (build-system gnu-build-system)
1224 "doc")) ;13 MiB of gtk-doc HTML
1226 `(("pkg-config" ,pkg-config)))
1228 `(("python" ,python-2)
1229 ("libglade" ,libglade)
1232 `(("python-pycairo" ,python2-pycairo) ;loaded at runtime
1233 ("python-pygobject" ,python2-pygobject-2) ;referenced in pc file
1237 #:phases (modify-phases %standard-phases
1238 (add-before 'configure 'set-gtk-doc-directory
1239 (lambda* (#:key outputs #:allow-other-keys)
1240 ;; Install documentation to "doc".
1241 (let ((doc (assoc-ref outputs "doc")))
1242 (substitute* "docs/Makefile.in"
1243 (("TARGET_DIR = \\$\\(datadir\\)")
1244 (string-append "TARGET_DIR = " doc))))))
1245 (add-after 'configure 'fix-codegen
1246 (lambda* (#:key inputs #:allow-other-keys)
1247 (substitute* "pygtk-codegen-2.0"
1251 (assoc-ref inputs "python-pygobject") "\n")))))
1252 (add-after 'install 'install-pth
1253 (lambda* (#:key inputs outputs #:allow-other-keys)
1254 ;; pygtk's modules are stored in a subdirectory of
1255 ;; python's site-packages directory. Add a .pth file so
1256 ;; that python will add that subdirectory to its module
1258 (let* ((out (assoc-ref outputs "out"))
1259 (site (string-append out "/lib/python"
1260 ,(version-major+minor
1261 (package-version python-2))
1263 (call-with-output-file (string-append site "/pygtk.pth")
1265 (format port "gtk-2.0~%")))))))))
1266 (home-page "http://www.pygtk.org/")
1267 (synopsis "Python bindings for GTK+")
1269 "PyGTK allows you to write full featured GTK programs in Python. It is
1270 targeted at GTK 2.x, and can be used in conjunction with gnome-python to
1271 write GNOME applications.")
1272 (license license:lgpl2.1+)))
1274 (define-public perl-cairo
1281 "mirror://cpan/authors/id/X/XA/XAOC/Cairo-"
1285 "1i25kks408c54k2zxskvg54l5k3qadzm8n72ffga9jy7ic0h6j76"))))
1286 (build-system perl-build-system)
1288 `(("perl-extutils-depends" ,perl-extutils-depends)
1289 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1291 `(("cairo" ,cairo)))
1292 (home-page "https://metacpan.org/release/Cairo")
1293 (synopsis "Perl interface to the cairo 2d vector graphics library")
1294 (description "Cairo provides Perl bindings for the vector graphics library
1295 cairo. It supports multiple output targets, including PNG, PDF and SVG. Cairo
1296 produces identical output on all those targets.")
1297 (license license:lgpl2.1+)))
1299 (define-public perl-gtk2
1305 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Gtk2-"
1309 "1044rj3wbfmgaif2jb0k28m2aczli6ai2n5yvn6pr7zjyw16kvd2"))))
1310 (build-system perl-build-system)
1312 `(("perl-extutils-depends" ,perl-extutils-depends)
1313 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1315 `(("gtk+" ,gtk+-2)))
1317 `(("perl-pango" ,perl-pango)))
1318 (home-page "https://metacpan.org/release/Gtk2")
1319 (synopsis "Perl interface to the 2.x series of the Gimp Toolkit library")
1320 (description "Perl bindings to the 2.x series of the Gtk+ widget set.
1321 This module allows you to write graphical user interfaces in a Perlish and
1322 object-oriented way, freeing you from the casting and memory management in C,
1323 yet remaining very close in spirit to original API.")
1324 (license license:lgpl2.1+)))
1326 (define-public perl-pango
1332 (uri (string-append "mirror://cpan/authors/id/X/XA/XAOC/Pango-"
1336 "0wdcidnfnb6nm79fzfs39ivawj3x8m98a147fmcxgv1zvwia9c1l"))))
1337 (build-system perl-build-system)
1339 `(("perl-extutils-depends" ,perl-extutils-depends)
1340 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
1342 `(("pango" ,pango)))
1344 `(("perl-cairo" ,perl-cairo)
1345 ("perl-glib" ,perl-glib)))
1346 (home-page "https://metacpan.org/release/Pango")
1347 (synopsis "Layout and render international text")
1348 (description "Pango is a library for laying out and rendering text, with an
1349 emphasis on internationalization. Pango can be used anywhere that text layout
1350 is needed, but using Pango in conjunction with Cairo and/or Gtk2 provides a
1351 complete solution with high quality text handling and graphics rendering.
1353 Dynamically loaded modules handle text layout for particular combinations of
1354 script and font backend. Pango provides a wide selection of modules, including
1355 modules for Hebrew, Arabic, Hangul, Thai, and a number of Indic scripts.
1356 Virtually all of the world's major scripts are supported.
1358 In addition to the low level layout rendering routines, Pango includes
1359 @code{Pango::Layout}, a high level driver for laying out entire blocks of text,
1360 and routines to assist in editing internationalized text.")
1361 (license license:lgpl2.1+)))
1363 (define-public girara
1370 (string-append "https://pwmt.org/projects/girara/download/girara-"
1374 "0lkxrfna818wkkr2f6mdzf15y5z8xl1b9592ylmzjbqsqya3w7x8"))))
1375 (native-inputs `(("pkg-config" ,pkg-config)
1377 ("gettext" ,gettext-minimal)
1378 ("glib:bin" ,glib "bin")
1379 ("xorg-server" ,xorg-server-1.19.3)))
1380 ;; Listed in 'Requires.private' of 'girara.pc'.
1381 (propagated-inputs `(("gtk+" ,gtk+)))
1383 `(#:phases (modify-phases %standard-phases
1384 (add-before 'check 'start-xserver
1385 ;; Tests require a running X server.
1386 (lambda* (#:key inputs #:allow-other-keys)
1387 (let ((xorg-server (assoc-ref inputs "xorg-server"))
1389 (setenv "DISPLAY" display)
1391 ;; On busy machines, tests may take longer than
1392 ;; the default of four seconds.
1393 (setenv "CK_DEFAULT_TIMEOUT" "20")
1395 ;; Don't fail due to missing '/etc/machine-id'.
1396 (setenv "DBUS_FATAL_WARNINGS" "0")
1397 (zero? (system (string-append xorg-server "/bin/Xvfb "
1398 display " &")))))))))
1399 (build-system meson-build-system)
1400 (home-page "https://pwmt.org/projects/girara/")
1401 (synopsis "Library for minimalistic gtk+3 user interfaces")
1402 (description "Girara is a library that implements a user interface that
1403 focuses on simplicity and minimalism. Currently based on GTK+, a
1404 cross-platform widget toolkit, it provides an interface that focuses on three
1405 main components: a so-called view widget that represents the actual
1406 application, an input bar that is used to execute commands of the
1407 application and the status bar which provides the user with current
1409 (license license:zlib)))
1411 (define-public gtk-doc
1417 (uri (string-append "mirror://gnome/sources/" name "/"
1418 (version-major+minor version) "/"
1419 name "-" version ".tar.xz"))
1422 "0vwsdl61nvnmqswlz5j9m4hg7qirhazwcikcnqf9nx0c13vx6sz2"))))
1423 (build-system gnu-build-system)
1425 `(#:parallel-tests? #f
1427 (modify-phases %standard-phases
1428 (add-after 'unpack 'patch-gtk-doc-scan
1429 (lambda* (#:key inputs #:allow-other-keys)
1430 (substitute* "gtk-doc.xsl"
1431 (("http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl")
1432 (string-append (assoc-ref inputs "docbook-xsl")
1433 "/xml/xsl/docbook-xsl-"
1434 ,(package-version docbook-xsl)
1435 "/html/chunk.xsl")))
1437 (add-after 'patch-gtk-doc-scan 'patch-test-out
1439 ;; sanity.sh counts the number of status lines. Since our
1440 ;; texlive regenerates the fonts every time and the font
1441 ;; generator metafont outputs a lot of extra lines, this
1442 ;; test would always fail. Disable it for now.
1443 (substitute* "tests/Makefile.in"
1444 (("empty.sh sanity.sh") "empty.sh"))
1446 (add-before 'build 'set-HOME
1448 ;; FIXME: dblatex with texlive-union does not find the built
1449 ;; metafonts, so it tries to generate them in HOME.
1450 (setenv "HOME" "/tmp")
1452 (add-before 'configure 'fix-docbook
1453 (lambda* (#:key inputs #:allow-other-keys)
1454 (substitute* "configure"
1455 ;; The configure check is overzealous about making sure that
1456 ;; things are in place -- it uses the xmlcatalog tool to make
1457 ;; sure that docbook-xsl is available, but this tool can only
1458 ;; look in one catalog file, unlike the $XML_CATALOG_FILES
1459 ;; variable that Guix defines. Fool the test by using the
1460 ;; docbook-xsl catalog explicitly and get on with life.
1461 (("\"\\$XML_CATALOG_FILE\" \
1462 \"http://docbook.sourceforge.net/release/xsl/")
1463 (string-append (car (find-files (assoc-ref inputs "docbook-xsl")
1465 " \"http://docbook.sourceforge.net/release/xsl/")))
1467 (add-after 'install 'wrap-executables
1468 (lambda* (#:key outputs #:allow-other-keys)
1469 (let ((out (assoc-ref outputs "out")))
1470 (for-each (lambda (prog)
1472 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))))
1473 (find-files (string-append out "/bin")))
1476 (list (string-append "--with-xml-catalog="
1477 (assoc-ref %build-inputs "docbook-xml")
1478 "/xml/dtd/docbook/catalog.xml"))))
1480 `(("pkg-config" ,pkg-config)
1481 ("itstool" ,itstool)
1483 ("gettext" ,gettext-minimal)
1488 ("xsltproc" ,libxslt)
1489 ("dblatex" ,dblatex)
1490 ("docbook-xml" ,docbook-xml-4.3)
1491 ("docbook-xsl" ,docbook-xsl)
1492 ("source-highlight" ,source-highlight)
1494 ("python-six" ,python-six)))
1495 (home-page "https://www.gtk.org/gtk-doc/")
1496 (synopsis "Documentation generator from C source code")
1498 "GTK-Doc generates API documentation from comments added to C code. It is
1499 typically used to document the public API of GTK+ and GNOME libraries, but it
1500 can also be used to document application code.")
1501 (license license:gpl2+)))
1503 (define-public gtk-engines
1505 (name "gtk-engines")
1509 (uri (string-append "mirror://gnome/sources/" name "/"
1510 (version-major+minor version) "/"
1511 name "-" version ".tar.bz2"))
1514 "1db65pb0j0mijmswrvpgkdabilqd23x22d95hp5kwxvcramq1dhm"))))
1515 (build-system gnu-build-system)
1518 `("--enable-animation")))
1520 `(("pkg-config" ,pkg-config)
1521 ("intltool" ,intltool)))
1523 ;; Don't propagate GTK+ to reduce "profile pollution".
1524 `(("gtk+" ,gtk+-2))) ; required by gtk-engines-2.pc
1525 (home-page "https://live.gnome.org/GnomeArt")
1526 (synopsis "Theming engines for GTK+ 2.x")
1528 "This package contains the standard GTK+ 2.x theming engines including
1529 Clearlooks, Crux, High Contrast, Industrial, LighthouseBlue, Metal, Mist,
1530 Redmond95 and ThinIce.")
1531 (license (list license:gpl2+ license:lgpl2.1+))))
1533 (define-public murrine
1539 (uri (string-append "mirror://gnome/sources/" name "/"
1540 (version-major+minor version) "/"
1541 name "-" version ".tar.xz"))
1544 "129cs5bqw23i76h3nmc29c9mqkm9460iwc8vkl7hs4xr07h8mip9"))))
1545 (build-system gnu-build-system)
1548 `("--enable-animation"
1549 "--enable-animationrtl")))
1551 `(("pkg-config" ,pkg-config)
1552 ("intltool" ,intltool)))
1554 `(("gtk+" ,gtk+-2)))
1555 (home-page "https://live.gnome.org/GnomeArt")
1556 (synopsis "Cairo-based theming engine for GTK+ 2.x")
1558 "Murrine is a cairo-based GTK+ theming engine. It is named after the
1559 glass artworks done by Venicians glass blowers.")
1560 (license license:gpl2+)))
1562 (define-public gtkspell3
1568 (uri (string-append "mirror://sourceforge/gtkspell/"
1569 version "/" name "-" version ".tar.xz"))
1572 "09jdicmpipmj4v84gnkqwbmj4lh8v0i6pn967rb9jx4zg2ia9x54"))))
1573 (build-system gnu-build-system)
1575 `(("intltool" ,intltool)
1576 ("pkg-config" ,pkg-config)))
1578 `(("enchant" ,enchant)
1579 ("gobject-introspection" ,gobject-introspection)
1583 `(("enchant" ,enchant))) ; gtkspell3-3.0.pc refers to it.
1584 (home-page "http://gtkspell.sourceforge.net")
1585 (synopsis "Spell-checking addon for GTK's TextView widget")
1587 "GtkSpell provides word-processor-style highlighting and replacement of
1588 misspelled words in a GtkTextView widget.")
1589 (license license:gpl2+)))
1591 (define-public clipit
1598 "https://github.com/downloads/ClipIt/clipit-"
1602 "0jrwn8qfgb15rwspdp1p8hb1nc0ngmpvgr87d4k3lhlvqg2cfqva"))))
1603 (build-system gnu-build-system)
1605 `(("intltool" ,intltool)
1606 ("pkg-config" ,pkg-config)))
1608 `(("gtk+" ,gtk+-2)))
1609 (home-page "https://github.com/CristianHenzel/ClipIt")
1610 (synopsis "Lightweight GTK+ clipboard manager")
1612 "ClipIt is a clipboard manager with features such as a history, search
1613 thereof, global hotkeys and clipboard item actions. It was forked from
1614 Parcellite and adds bugfixes and features.")
1615 (license license:gpl2+)))
1617 (define-public graphene
1624 "https://github.com/ebassi/graphene/archive/"
1626 (file-name (string-append name "-" version ".tar.gz"))
1628 (base32 "1zd2daj7y590wnzn4jw0niyc4fnzgxrcl9i7nwhy8b25ks2hz5wq"))))
1629 (build-system gnu-build-system)
1631 `(#:configure-flags '("--enable-introspection=yes")
1633 (modify-phases %standard-phases
1634 (add-before 'configure 'autogen
1636 (zero? (system* "./autogen.sh")))))))
1638 `(("autoconf" ,autoconf)
1640 ("pkg-config" ,pkg-config)
1641 ("automake" ,automake)
1642 ("libtool" ,libtool)))
1644 `(("python" ,python)
1645 ("python-2" ,python-2)
1647 ("gobject-introspection" ,gobject-introspection)))
1648 (home-page "http://ebassi.github.io/graphene")
1649 (synopsis "Thin layer of graphic data types")
1650 (description "This library provides graphic types and their relative API;
1651 it does not deal with windowing system surfaces, drawing, scene graphs, or
1653 (license license:expat)))