1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014, 2015, 2016, 2019 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
4 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
5 ;;; Copyright © 2014, 2015, 2016, 2017, 2018 Mark H Weaver <mhw@netris.org>
6 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
8 ;;; Copyright © 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2017 Petter <petter@mykolab.ch>
10 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
11 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
12 ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
13 ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
14 ;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com>
16 ;;; This file is part of GNU Guix.
18 ;;; GNU Guix is free software; you can redistribute it and/or modify it
19 ;;; under the terms of the GNU General Public License as published by
20 ;;; the Free Software Foundation; either version 3 of the License, or (at
21 ;;; your option) any later version.
23 ;;; GNU Guix is distributed in the hope that it will be useful, but
24 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
25 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 ;;; GNU General Public License for more details.
28 ;;; You should have received a copy of the GNU General Public License
29 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
31 (define-module (gnu packages glib)
32 #:use-module (gnu packages)
33 #:use-module (gnu packages backup)
34 #:use-module (gnu packages base)
35 #:use-module (gnu packages bison)
36 #:use-module (gnu packages check)
37 #:use-module (gnu packages compression)
38 #:use-module (gnu packages docbook)
39 #:use-module (gnu packages documentation)
40 #:use-module (gnu packages enlightenment)
41 #:use-module (gnu packages file)
42 #:use-module (gnu packages flex)
43 #:use-module (gnu packages gettext)
44 #:use-module (gnu packages gnome)
45 #:use-module (gnu packages gperf)
46 #:use-module (gnu packages gtk)
47 #:use-module (gnu packages libffi)
48 #:use-module (gnu packages linux)
49 #:use-module (gnu packages m4)
50 #:use-module (gnu packages nettle)
51 #:use-module (gnu packages pcre)
52 #:use-module (gnu packages package-management)
53 #:use-module (gnu packages perl)
54 #:use-module (gnu packages perl-check)
55 #:use-module (gnu packages pkg-config)
56 #:use-module (gnu packages python)
57 #:use-module (gnu packages selinux)
58 #:use-module (gnu packages web)
59 #:use-module (gnu packages xml)
60 #:use-module (gnu packages xorg)
61 #:use-module (guix build-system gnu)
62 #:use-module (guix build-system meson)
63 #:use-module (guix build-system perl)
64 #:use-module (guix build-system python)
65 #:use-module (guix download)
66 #:use-module ((guix licenses) #:prefix license:)
67 #:use-module (guix packages)
68 #:use-module (guix utils)
69 #:use-module (srfi srfi-1)
71 ;; Export variables up-front to allow circular dependency with the 'xorg'
92 "https://dbus.freedesktop.org/releases/dbus/dbus-"
96 "107ckxaff1cv4q6kmfdi2fb1nlsv03312a7kf6lb4biglhpjv8jl"))
97 (patches (search-patches "dbus-helper-search-path.patch"))))
98 (build-system gnu-build-system)
102 ;; Install the system bus socket under /var.
103 "--localstatedir=/var"
105 ;; Install the session bus socket under /tmp.
106 "--with-session-socket-dir=/tmp"
108 ;; Use /etc/dbus-1 for system-wide config.
109 ;; Look for configuration file under
110 ;; /etc/dbus-1. This is notably required by
111 ;; 'dbus-daemon-launch-helper', which looks for
112 ;; the 'system.conf' file in that place,
113 ;; regardless of what '--config-file' was
114 ;; passed to 'dbus-daemon' on the command line;
115 ;; see <https://bugs.freedesktop.org/show_bug.cgi?id=92458>.
118 (modify-phases %standard-phases
121 ;; Don't try to create /var and /etc.
123 "localstatedir=/tmp/dummy"
124 "sysconfdir=/tmp/dummy"
127 `(("pkg-config" ,pkg-config)
128 ;; Dependencies to generate the doc.
129 ("docbook-xml" ,docbook-xml-4.4)
130 ("docbook-xsl" ,docbook-xsl)
133 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
135 ("yelp-tools" ,yelp-tools)))
138 ;; Add a dependency on libx11 so that 'dbus-launch' has support for
141 (outputs '("out" "doc")) ;22 MiB of HTML doc
142 (home-page "https://www.freedesktop.org/wiki/Software/dbus/")
143 (synopsis "Message bus for inter-process communication (IPC)")
145 "D-Bus is a message bus system, a simple way for applications to
146 talk to one another. In addition to interprocess communication, D-Bus
147 helps coordinate process lifecycle; it makes it simple and reliable to
148 code a \"single instance\" application or daemon, and to launch
149 applications and daemons on demand when their services are needed.
151 D-Bus supplies both a system daemon (for events such as \"new hardware
152 device added\" or \"printer queue changed\") and a
153 per-user-login-session daemon (for general IPC needs among user
154 applications). Also, the message bus is built on top of a general
155 one-to-one message passing framework, which can be used by any two apps
156 to communicate directly (without going through the message bus
157 daemon). Currently the communicating applications are on one computer,
158 or through unencrypted TCP/IP suitable for use behind a firewall with
159 shared NFS home directories.")
160 (license license:gpl2+))) ; or Academic Free License 2.1
168 (uri (string-append "mirror://gnome/sources/"
169 name "/" (string-take version 4) "/"
170 name "-" version ".tar.xz"))
173 "0v7vpx2md1gn0wwiirn7g4bhf2csfvcr03y96q2zv97ain6sp3zz"))
174 (patches (search-patches "glib-tests-timer.patch"))
175 (modules '((guix build utils)))
178 (substitute* "tests/spawn-test.c"
181 (build-system meson-build-system)
182 (outputs '("out" ; everything
183 "bin")) ; glib-mkenums, gtester, etc.; depends on Python
185 `(("pcre" ,pcre) ; in the Requires.private field of glib-2.0.pc
186 ("libffi" ,libffi) ; in the Requires.private field of gobject-2.0.pc
187 ;; These are in the Requires.private field of gio-2.0.pc
188 ("util-linux" ,util-linux) ; for libmount
189 ("libselinux" ,libselinux)
192 `(("coreutils" ,coreutils)))
194 `(("gettext" ,gettext-minimal)
195 ("m4" ,m4) ; for installing m4 macros
196 ("dbus" ,dbus) ; for GDBus tests
197 ("pkg-config" ,pkg-config)
198 ("python" ,python-wrapper)
199 ("perl" ,perl) ; needed by GIO tests
200 ("tzdata" ,tzdata-for-tests))) ; for tests/gdatetime.c
202 `(;; TODO: Uncomment on the next rebuild cycle.
203 ;; #:disallowed-references (,tzdata-for-tests)
206 (modify-phases %standard-phases
207 (add-before 'build 'pre-build
208 (lambda* (#:key inputs outputs #:allow-other-keys)
209 ;; For tests/gdatetime.c.
211 (string-append (assoc-ref inputs "tzdata")
214 ;; Some tests want write access there.
215 (setenv "HOME" (getcwd))
216 (setenv "XDG_CACHE_HOME" (getcwd))
218 (add-after 'unpack 'disable-failing-tests
221 (lambda (test-file test-paths)
222 (define pattern+procs
223 (map (lambda (test-path)
225 ;; XXX: only works for single line statements.
226 (format #f "g_test_add_func.*\"~a\".*" test-path)
229 (substitute test-file pattern+procs)))
231 '(("glib/tests/thread.c"
232 (;; prlimit(2) returns ENOSYS on Linux 2.6.32-5-xen-amd64
233 ;; as found on hydra.gnu.org, and strace(1) doesn't
237 ;; This tries to find programs in FHS directories.
238 ("glib/tests/utils.c"
239 ("/utils/find-program"))
241 ;; This fails because "glib/tests/echo-script" cannot be
243 ("glib/tests/spawn-singlethread.c"
244 ("/gthread/spawn-script"))
246 ("glib/tests/timer.c"
247 (;; fails if compiler optimizations are enabled, which they
251 ("gio/tests/gapplication.c"
252 (;; XXX: proven to be unreliable. See:
253 ;; <https://bugs.debian.org/756273>
254 ;; <http://bugs.gnu.org/18445>
257 ;; XXX: fails randomly for unknown reason. See:
258 ;; <https://lists.gnu.org/archive/html/guix-devel/2016-04/msg00215.html>
259 "/gapplication/local-actions"))
261 ("gio/tests/contenttype.c"
262 (;; XXX: requires shared-mime-info.
264 "/contenttype/guess_svg_from_data"
265 "/contenttype/subtype"
268 "/contenttype/symbolic-icon"
269 "/contenttype/tree"))
271 ("gio/tests/appinfo.c"
272 (;; XXX: requires update-desktop-database.
273 "/appinfo/associations"))
275 ("gio/tests/desktop-app-info.c"
276 (;; XXX: requires update-desktop-database.
277 "/desktop-app-info/delete"
278 "/desktop-app-info/default"
279 "/desktop-app-info/fallback"
280 "/desktop-app-info/lastused"
281 "/desktop-app-info/search"))
283 ("gio/tests/gdbus-peer.c"
284 (;; Requires /etc/machine-id.
285 "/gdbus/codegen-peer-to-peer"))
287 ("gio/tests/gdbus-unix-addresses.c"
288 (;; Requires /etc/machine-id.
289 "/gdbus/x11-autolaunch"))
291 ("gio/tests/gsocketclient-slow.c"
292 (;; These tests tries to resolve "localhost", and fails.
293 "/socket-client/happy-eyeballs/slow"
294 "/socket-client/happy-eyeballs/cancellation/delayed"))
297 (for-each (lambda (x) (apply disable x)) failing-tests)
301 (setenv "MESON_TESTTHREADS"
302 (number->string (parallel-job-count)))
303 ;; Do not run tests marked as "flaky".
304 (invoke "meson" "test" "--no-suite" "flaky")))
305 ;; TODO: meson does not permit the bindir to be outside of prefix.
306 ;; See https://github.com/mesonbuild/meson/issues/2561
307 ;; We can remove this once meson is patched.
308 (add-after 'install 'move-executables
309 (lambda* (#:key outputs #:allow-other-keys)
310 (let ((out (assoc-ref outputs "out"))
311 (bin (assoc-ref outputs "bin")))
313 (rename-file (string-append out "/bin")
314 (string-append bin "/bin"))
315 ;; Do not refer to "bindir", which points to "${prefix}/bin".
316 ;; We don't patch "bindir" to point to "$bin/bin", because that
317 ;; would create a reference cycle between the "out" and "bin"
319 (substitute* (list (string-append out "/lib/pkgconfig/gio-2.0.pc")
320 (string-append out "/lib/pkgconfig/glib-2.0.pc"))
321 (("bindir=\\$\\{prefix\\}/bin") "")
322 (("=\\$\\{bindir\\}/") "="))
324 ;; TODO: see above for explanation.
325 ;; #:configure-flags (list (string-append "--bindir="
326 ;; (assoc-ref %outputs "bin")
330 ;; This variable is not really "owned" by GLib, but several related
331 ;; packages refer to it: gobject-introspection's tools use it as a search
332 ;; path for .gir files, and it's also a search path for schemas produced
333 ;; by 'glib-compile-schemas'.
334 (list (search-path-specification
335 (variable "XDG_DATA_DIRS")
337 ;; To load extra gio modules from glib-networking, etc.
338 (search-path-specification
339 (variable "GIO_EXTRA_MODULES")
340 (files '("lib/gio/modules")))))
341 (search-paths native-search-paths)
343 (synopsis "Thread-safe general utility library; basis of GTK+ and GNOME")
345 "GLib provides data structure handling for C, portability wrappers,
346 and interfaces for such runtime functionality as an event loop, threads,
347 dynamic loading, and an object system.")
348 (home-page "https://developer.gnome.org/glib/")
349 (license license:lgpl2.1+)))
351 (define gobject-introspection
353 (name "gobject-introspection")
357 (uri (string-append "mirror://gnome/sources/"
358 "gobject-introspection/" (version-major+minor version)
359 "/gobject-introspection-" version ".tar.xz"))
361 (base32 "172ymc1vbg2rclq1rszx4y32vm900nn1mc4qg1a4mqxjiwvf5pzz"))
362 (patches (search-patches
363 "gobject-introspection-cc.patch"
364 "gobject-introspection-girepository.patch"
365 "gobject-introspection-absolute-shlib-path.patch"))))
366 (build-system meson-build-system)
369 (modify-phases %standard-phases
370 (add-after 'unpack 'do-not-use-/usr/bin/env
372 (substitute* "tools/g-ir-tool-template.in"
374 (string-append "#!" (which "python3"))))
380 ("python" ,python-wrapper)
383 `(("glib" ,glib "bin")
384 ("pkg-config" ,pkg-config)))
386 `(;; In practice, GIR users will need libffi when using
387 ;; gobject-introspection.
390 (list (search-path-specification
391 (variable "GI_TYPELIB_PATH")
392 (files '("lib/girepository-1.0")))))
393 (search-paths native-search-paths)
394 (home-page "https://wiki.gnome.org/GObjectIntrospection")
395 (synopsis "Generate interface introspection data for GObject libraries")
397 "GObject introspection is a middleware layer between C libraries (using
398 GObject) and language bindings. The C library can be scanned at compile time
399 and generate a metadata file, in addition to the actual native C library. Then
400 at runtime, language bindings can read this metadata and automatically provide
401 bindings to call into the C library.")
402 ; Some bits are distributed under the LGPL2+, others under the GPL2+
403 (license license:gpl2+)))
411 (uri (string-append "https://launchpad.net/intltool/trunk/"
412 version "/+download/intltool-"
414 (patches (search-patches "intltool-perl-compatibility.patch"))
417 "1karx4sb7bnm2j67q0q74hspkfn6lqprpy5r99vkn5bb36a4viv7"))))
418 (build-system gnu-build-system)
422 `(;; Propagate gettext because users expect it to be there, and so does
423 ;; the `intltool-update' script.
424 ("gettext" ,gettext-minimal)
426 ("perl-xml-parser" ,perl-xml-parser)
430 (modify-phases %standard-phases
431 (add-after 'unpack 'patch-file-references
432 (lambda* (#:key inputs #:allow-other-keys)
433 (let ((file (assoc-ref inputs "file")))
434 (substitute* "intltool-update.in"
435 (("`file") (string-append "`" file "/bin/file")))
437 (home-page "https://launchpad.net/intltool/+download")
438 (synopsis "Tools to centralise translations of different file formats")
440 "Intltool is a set of tools to centralise translations of many different
441 file formats using GNU gettext-compatible PO files.
443 The intltool collection can be used to do these things:
445 Extract translatable strings from various source files (.xml.in,
446 glade, .desktop.in, .server.in, .oaf.in).
448 Collect the extracted strings together with messages from traditional
449 source files (.c, .h) in po/$(PACKAGE).pot.
451 Merge back the translations from .po files into .xml, .desktop and
452 oaf files. This merge step will happen at build resp. installation time.")
453 (license license:gpl2+)))
461 (uri (string-append "http://files.itstool.org/itstool/itstool-"
465 "1acjgf8zlyk7qckdk19iqaca4jcmywd7vxjbcs1mm6kaf8icqcv2"))))
466 (build-system gnu-build-system)
468 `(("libxml2" ,libxml2)
469 ("python-libxml2" ,python-libxml2)
473 (modify-phases %standard-phases
474 (add-after 'install 'wrap-program
475 (lambda* (#:key outputs #:allow-other-keys)
476 (let ((prog (string-append (assoc-ref outputs "out")
479 `("PYTHONPATH" = (,(getenv "PYTHONPATH"))))
481 (home-page "http://www.itstool.org")
482 (synopsis "Tool to translate XML documents with PO files")
484 "ITS Tool allows you to translate your XML documents with PO files, using
485 rules from the W3C Internationalization Tag Set (ITS) to determine what to
486 translate and how to separate it into PO file messages.
488 PO files are the standard translation format for GNU and other Unix-like
489 systems. They present translatable information as discrete messages, allowing
490 each message to be translated independently. In contrast to whole-page
491 translation, translating with a message-based format like PO means you can
492 easily track changes to the source document down to the paragraph. When new
493 strings are added or existing strings are modified, you only need to update the
494 corresponding messages.
496 ITS Tool is designed to make XML documents translatable through PO files by
497 applying standard ITS rules, as well as extension rules specific to ITS Tool.
498 ITS also provides an industry standard way for authors to override translation
499 information in their documents, such as whether a particular element should be
501 (license license:gpl3+)))
503 (define-public itstool/fixed
504 ;; This variant fixes a python-libxml2 crash when processing UTF-8
505 ;; sequences: <https://bugs.gnu.org/37468>. Since the issue is quite rare,
506 ;; create this variant here to avoid a full rebuild.
510 `(("python-libxml2" ,python-libxml2/fixed)
511 ,@(alist-delete "python-libxml2" (package-inputs itstool))))))
520 (string-append "https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-"
524 "0b307hw9j41npzr6niw1bs6ryp87m5yafg492gqwvsaj4dz0qd4z"))))
525 (build-system gnu-build-system)
526 (propagated-inputs ; according to dbus-glib-1.pc
532 `(("glib" ,glib "bin")
533 ("pkg-config" ,pkg-config)))
534 (home-page "https://dbus.freedesktop.org/doc/dbus-glib/")
535 (synopsis "D-Bus GLib bindings")
537 "GLib bindings for D-Bus. The package is obsolete and superseded
538 by GDBus included in Glib.")
539 (license license:gpl2))) ; or Academic Free License 2.1
547 (uri (string-append "mirror://gnome/sources/libsigc++/"
548 (version-major+minor version) "/"
549 name "-" version ".tar.xz"))
552 "163s14d1rqp82gc1vsm3q0wzsbdicb9q6307kz0zk5lm6x9h5jmi"))))
553 (build-system gnu-build-system)
554 (native-inputs `(("pkg-config" ,pkg-config)
556 (home-page "https://libsigcplusplus.github.io/libsigcplusplus/")
557 (synopsis "Type-safe callback system for standard C++")
559 "Libsigc++ implements a type-safe callback system for standard C++. It
560 allows you to define signals and to connect those signals to any callback
561 function, either global or a member function, regardless of whether it is
564 It also contains adaptor classes for connection of dissimilar callbacks and
565 has an ease of use unmatched by other C++ callback libraries.")
566 (license license:lgpl2.1+)))
574 (uri (string-append "mirror://gnome/sources/glibmm/"
575 (version-major+minor version)
576 "/glibmm-" version ".tar.xz"))
579 "1g7jxqd270dv2d83r7pf5893mwpz7d5xib0q01na2yalh34v38d3"))))
580 (build-system gnu-build-system)
583 (modify-phases %standard-phases
584 (add-before 'build 'pre-build
586 ;; This test uses /etc/fstab as an example file to read
587 ;; from; choose a better example.
588 (substitute* "tests/giomm_simple/main.cc"
590 (string-append (getcwd)
591 "/tests/giomm_simple/main.cc")))
593 ;; This test does a DNS lookup, and then expects to be able
594 ;; to open a TLS session; just skip it.
595 (substitute* "tests/giomm_tls_client/main.cc"
599 (native-inputs `(("pkg-config" ,pkg-config)
600 ("glib" ,glib "bin")))
602 `(("libsigc++" ,libsigc++)
604 (home-page "https://gtkmm.org/")
605 (synopsis "C++ interface to the GLib library")
607 "Glibmm provides a C++ programming interface to the part of GLib that are
609 (license license:lgpl2.1+)))
611 (define-public python2-pygobject-2
613 (name "python2-pygobject")
614 ;; This was the last version to declare the 2.0 platform number, i.e. its
615 ;; pkg-config files were named pygobject-2.0.pc
620 (uri (string-append "mirror://gnome/sources/pygobject/"
621 (version-major+minor version)
622 "/pygobject-" version ".tar.xz"))
625 "0nkam61rsn7y3wik3vw46wk5q2cjfh2iph57hl9m39rc8jijb7dv"))
626 (patches (search-patches
627 "python2-pygobject-2-gi-info-type-error-domain.patch"))))
628 (build-system gnu-build-system)
631 ("glib-bin" ,glib "bin") ;for tests: glib-compile-schemas
632 ("pkg-config" ,pkg-config)
633 ("dbus" ,dbus))) ;for tests
635 `(("python" ,python-2)
637 ("python2-pycairo" ,python2-pycairo)
638 ("gobject-introspection" ,gobject-introspection)))
640 `(("libffi" ,libffi))) ;mentioned in pygobject-2.0.pc
642 `(#:tests? #f ;segfaults during tests
643 #:configure-flags '("LIBS=-lcairo-gobject")))
644 (home-page "https://pypi.python.org/pypi/PyGObject")
645 (synopsis "Python bindings for GObject")
647 "Python bindings for GLib, GObject, and GIO.")
648 (license license:lgpl2.1+)))
650 (define-public python-pygobject
652 (name "python-pygobject")
657 (uri (string-append "mirror://gnome/sources/pygobject/"
658 (version-major+minor version)
659 "/pygobject-" version ".tar.xz"))
662 "1c6h3brzlyvzbpdsammnd957azmp6cbzqrd65r400vnh2l8f5lrx"))))
663 (build-system gnu-build-system)
666 (modify-phases %standard-phases
667 (add-after 'unpack 'delete-broken-tests
669 ;; FIXME: this test freezes and times out.
670 (delete-file "tests/test_mainloop.py")
671 ;; FIXME: this test fails with this kind of error:
672 ;; AssertionError: <Handlers.SIG_IGN: 1> != <built-in function default_int_handler
673 (delete-file "tests/test_ossig.py")
677 ;for tests: dbus-run-session and glib-compile-schemas
679 ("glib-bin" ,glib "bin")
680 ("pkg-config" ,pkg-config)
681 ("python-pytest" ,python-pytest)))
684 ("python-pycairo" ,python-pycairo)
685 ("gobject-introspection" ,gobject-introspection)))
687 ;; pygobject-3.0.pc refers to all these.
690 ;; For finding typelib files, since gobject-introscpetion isn't propagated.
691 (native-search-paths (package-native-search-paths gobject-introspection))
692 (home-page "https://live.gnome.org/PyGObject")
693 (synopsis "Python bindings for GObject")
695 "Python bindings for GLib, GObject, and GIO.")
696 (license license:lgpl2.1+)
697 (properties `((python2-variant . ,(delay python2-pygobject))))))
699 (define-public python2-pygobject
700 (package (inherit (strip-python2-variant python-pygobject))
701 (name "python2-pygobject")
703 `(("python" ,python-2)
704 ("python-pycairo" ,python2-pycairo)
705 ("gobject-introspection" ,gobject-introspection)))
708 ;for tests: dbus-run-session and glib-compile-schemas
710 ("glib-bin" ,glib "bin")
711 ("pkg-config" ,pkg-config)
712 ("python-pytest" ,python2-pytest)))))
714 ;; Newer version of this core-updates package, for Lollypop.
715 (define-public python-pygobject-3.34
722 (uri (string-append "mirror://gnome/sources/pygobject/"
723 (version-major+minor version)
724 "/pygobject-" version ".tar.xz"))
726 (base32 "06i7ynnbvgpz0gw09zsjbvhgcp5qz4yzdifw27qjwdazg2mckql7"))))
727 (build-system meson-build-system)
730 (modify-phases %standard-phases
731 (add-after 'unpack 'delete-broken-tests
733 (with-directory-excursion "tests"
736 ;; FIXME: these tests require Gdk and/or Gtk 4.
738 "test_overrides_gtk.py")))
741 (define-public perl-glib
748 "mirror://cpan/authors/id/X/XA/XAOC/Glib-"
752 "0whz5f87wvzq8zsva85h06mkfqim2ciq845ixlvmafwxggccv0xr"))))
753 (build-system perl-build-system)
755 `(("perl-extutils-depends" ,perl-extutils-depends)
756 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
759 (home-page "https://metacpan.org/release/Glib")
760 (synopsis "Perl wrappers for the GLib utility and Object libraries")
761 (description "This module provides perl access to GLib and GLib's GObject
762 libraries. GLib is a portability and utility library; GObject provides a
763 generic type system with inheritance and a powerful signal system. Together
764 these libraries are used as the foundation for many of the libraries that make
765 up the Gnome environment, and are used in many unrelated projects.")
766 (license license:lgpl2.1+)))
768 (define telepathy-glib
770 (name "telepathy-glib")
777 "https://telepathy.freedesktop.org/releases/telepathy-glib/"
778 "telepathy-glib-" version ".tar.gz"))
781 "1symyzbjmxvksn2ifdkk50lafjm2llf2sbmky062gq2pz3cg23cy"))
784 ;; Don't use the same test name for multiple tests.
785 ;; <https://bugs.freedesktop.org/show_bug.cgi?id=92245>
788 (uri "https://bugs.freedesktop.org/attachment.cgi?id=118608")
789 (file-name (string-append "telepathy-glib-duplicate-tests.patch"))
792 "0z261fwrszxb28ccg3hsg9rizig4s84zvwmx6y31a4pyv7bvs5w3")))))))
793 (build-system gnu-build-system)
795 '(#:configure-flags '("--enable-vala-bindings")
797 ;; '../tools/glib-*.py' generate files but the target dependencies are
798 ;; (presumably) not fully specified in the makefile, leading to
799 ;; parallel build errors like:
801 ;; EOFError: EOF read where object expected
802 ;; make[2]: *** [Makefile:1906: _gen/register-dbus-glib-marshallers-body.h] Error 1
803 #:parallel-build? #f))
805 `(("glib" ,glib "bin") ; uses glib-mkenums
806 ("gobject-introspection" ,gobject-introspection)
807 ("pkg-config" ,pkg-config)
810 ("xsltproc" ,libxslt)))
812 ;; There are all in the Requires.private field of telepathy-glib.pc.
814 ("dbus-glib" ,dbus-glib)
816 (home-page "https://telepathy.freedesktop.org/wiki/")
817 (synopsis "GLib Real-time communications framework over D-Bus")
818 (description "Telepathy is a flexible, modular communications framework
819 that enables real-time communication over D-Bus via pluggable protocol
820 backends. Telepathy is a communications service that can be accessed by
821 many applications simultaneously.
823 This package provides the library for GLib applications.")
824 (license license:lgpl2.1+)))
826 (define-public dbus-c++
834 "mirror://sourceforge/dbus-cplusplus/dbus-c%2B%2B/"
835 version "/libdbus-c%2B%2B-" version ".tar.gz"))
836 (file-name (string-append name "-" version ".tar.gz"))
837 (patches (search-patches "dbus-c++-gcc-compat.patch"
838 "dbus-c++-threading-mutex.patch"))
841 "0qafmy2i6dzx4n1dqp6pygyy6gjljnb7hwjcj2z11c1wgclsq4dw"))))
842 (build-system gnu-build-system)
844 `(("dbus" ,dbus))) ;mentioned in the pkg-config file
850 `(("pkg-config" ,pkg-config)))
852 `(;; The 'configure' machinery fails to detect that it needs -lpthread.
853 #:configure-flags (list "LDFLAGS=-lpthread")
855 (modify-phases %standard-phases
856 (add-before 'configure 'add-missing-header
858 (substitute* "include/dbus-c++/eventloop-integration.h"
859 (("#include <errno.h>")
860 "#include <errno.h>\n#include <unistd.h>"))
862 (synopsis "D-Bus API for C++")
863 (description "This package provides D-Bus client API bindings for the C++
864 programming language. It also contains the utility
865 @command{dbuscxx-xml2cpp}.")
866 (home-page "https://sourceforge.net/projects/dbus-cplusplus/")
867 (license license:lgpl2.1+)))
869 (define-public appstream-glib
871 (name "appstream-glib")
875 (uri (string-append "https://people.freedesktop.org/~hughsient/"
876 "appstream-glib/releases/"
877 "appstream-glib-" version ".tar.xz"))
880 "14jr1psx5kxywdprgbqn79w309yz8lrqlsq7288hfrf87gbr1wh4"))))
881 (build-system meson-build-system)
883 `(("gettext" ,gettext-minimal)
884 ("glib:bin" ,glib "bin") ; for glib-compile-resources
885 ("pkg-config" ,pkg-config)))
887 `(("gcab" ,gcab) ; for .pc file
888 ("gdk-pixbuf" ,gdk-pixbuf) ; for .pc file
889 ("util-linux" ,util-linux))) ; for .pc file
894 ("json-glib" ,json-glib)
895 ("libarchive" ,libarchive)
897 ("libyaml" ,libyaml)))
900 (list "-Ddep11=false"
901 "-Dintrospection=false" ; avoid g-ir-scanner dependency
905 (modify-phases %standard-phases
906 (add-after 'unpack 'patch-tests
908 (substitute* "libappstream-glib/as-self-test.c"
909 (("g_test_add_func.*as_test_store_local_appdata_func);") ""))
911 (home-page "https://github.com/hughsie/appstream-glib")
912 (synopsis "Library for reading and writing AppStream metadata")
913 (description "This library provides objects and helper methods to help
914 reading and writing @uref{https://www.freedesktop.org/wiki/Distributions/AppStream,AppStream}
916 (license license:lgpl2.1+)))
918 (define perl-net-dbus
920 (name "perl-net-dbus")
925 (uri (string-append "mirror://cpan/authors/id/D/DA/DANBERR/Net-DBus-"
929 "0sg2w147b9r9ykfzjs7y9qxry73xkjnhnk4qf95kfv79p5nnk4c3"))))
930 (build-system perl-build-system)
932 `(("pkg-config" ,pkg-config)
933 ("perl-test-pod" ,perl-test-pod)
934 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
938 `(("perl-xml-twig" ,perl-xml-twig)))
939 (home-page "https://metacpan.org/release/Net-DBus")
940 (synopsis "Extension for the DBus bindings")
941 (description "@code{Net::DBus} provides a Perl XS API to the DBus
942 inter-application messaging system. The Perl API covers the core base level
943 of the DBus APIs, not concerning itself yet with the GLib or QT wrappers.")
944 (license license:perl-license)))
946 (define perl-net-dbus-glib
948 (name "perl-net-dbus-glib")
953 (uri (string-append "mirror://cpan/authors/id/D/DA/DANBERR/"
954 "Net-DBus-GLib-" version ".tar.gz"))
957 "1z4mbv8z0rad604xahijpg5szzi8qak07hbahh230z4jf96fkxvj"))))
958 (build-system perl-build-system)
960 `(("pkg-config" ,pkg-config)))
962 `(("dbus-glib" ,dbus-glib)))
963 (home-page "https://metacpan.org/release/Net-DBus-GLib")
964 (synopsis "Perl extension for the DBus GLib bindings")
965 (description "This package provides an extension to the @code{Net::DBus}
966 module allowing integration with the GLib mainloop. To integrate with the
967 main loop, simply get a connection to the bus via the methods in
968 @code{Net::DBus::GLib} rather than the usual @code{Net::DBus} module. Every
969 other API remains the same.")
970 (license license:gpl2+)))
972 (define-public template-glib
974 (name "template-glib")
978 (uri (string-append "mirror://gnome/sources/" name "/"
979 (version-major+minor version) "/"
980 name "-" version ".tar.xz"))
983 "1g0zx0sxpw8kqp7p3sgl9kngaqrg9xl6cir24nrahks0vgsk98rr"))))
984 (build-system meson-build-system)
986 `(#:configure-flags '("-D" "enable_gtk_doc=true")))
988 `(("gettext" ,gettext-minimal)
990 ("gobject-introspection" ,gobject-introspection)))
994 ("glib:bin" ,glib "bin") ;; For glib-mkenums
996 ("pkg-config" ,pkg-config)
998 (home-page "https://gitlab.gnome.org/GNOME/template-glib")
999 (synopsis "Library for template expansion")
1001 "Template-GLib is a library to help you generate text based on a template and
1002 user defined state. Template-GLib does not use a language runtime, so it is
1003 safe to use from any GObject-Introspectable language.
1005 Template-GLib allows you to access properties on GObjects as well as call
1006 simple methods via GObject-Introspection.")
1007 (license license:lgpl2.1+)))
1009 (define-public xdg-dbus-proxy
1011 (name "xdg-dbus-proxy")
1015 (uri (string-append "https://github.com/flatpak/xdg-dbus-proxy"
1016 "/releases/download/" version
1017 "/xdg-dbus-proxy-" version ".tar.xz"))
1020 "03sj1h0c2l08xa8phw013fnxr4fgav7l2mkjhzf9xk3dykwxcj8p"))))
1021 (build-system gnu-build-system)
1023 `(("pkg-config" ,pkg-config)
1028 ;; These are required to build the manual.
1029 ("docbook-xml" ,docbook-xml-4.3)
1030 ("docbook-xsl" ,docbook-xsl)
1031 ("libxml2" ,libxml2)
1032 ("xsltproc" ,libxslt)))
1035 (home-page "https://github.com/flatpak/xdg-dbus-proxy")
1036 (synopsis "D-Bus connection proxy")
1038 "xdg-dbus-proxy is a filtering proxy for D-Bus connections. It can be
1039 used to create D-Bus sockets inside a Linux container that forwards requests
1040 to the host system, optionally with filters applied.")
1041 (license license:lgpl2.1+)))