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 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>
14 ;;; This file is part of GNU Guix.
16 ;;; GNU Guix is free software; you can redistribute it and/or modify it
17 ;;; under the terms of the GNU General Public License as published by
18 ;;; the Free Software Foundation; either version 3 of the License, or (at
19 ;;; your option) any later version.
21 ;;; GNU Guix is distributed in the hope that it will be useful, but
22 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
23 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 ;;; GNU General Public License for more details.
26 ;;; You should have received a copy of the GNU General Public License
27 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
29 (define-module (gnu packages glib)
30 #:use-module (gnu packages)
31 #:use-module (gnu packages backup)
32 #:use-module (gnu packages base)
33 #:use-module (gnu packages bison)
34 #:use-module (gnu packages check)
35 #:use-module (gnu packages compression)
36 #:use-module (gnu packages docbook)
37 #:use-module (gnu packages documentation)
38 #:use-module (gnu packages enlightenment)
39 #:use-module (gnu packages file)
40 #:use-module (gnu packages flex)
41 #:use-module (gnu packages gettext)
42 #:use-module (gnu packages gnome)
43 #:use-module (gnu packages gperf)
44 #:use-module (gnu packages gtk)
45 #:use-module (gnu packages libffi)
46 #:use-module (gnu packages linux)
47 #:use-module (gnu packages m4)
48 #:use-module (gnu packages nettle)
49 #:use-module (gnu packages pcre)
50 #:use-module (gnu packages package-management)
51 #:use-module (gnu packages perl)
52 #:use-module (gnu packages perl-check)
53 #:use-module (gnu packages pkg-config)
54 #:use-module (gnu packages python)
55 #:use-module (gnu packages selinux)
56 #:use-module (gnu packages web)
57 #:use-module (gnu packages xml)
58 #:use-module (gnu packages xorg)
59 #:use-module (guix build-system gnu)
60 #:use-module (guix build-system meson)
61 #:use-module (guix build-system perl)
62 #:use-module (guix build-system python)
63 #:use-module (guix download)
64 #:use-module ((guix licenses) #:prefix license:)
65 #:use-module (guix packages)
66 #:use-module (guix utils)
68 ;; Export variables up-front to allow circular dependency with the 'xorg'
89 "https://dbus.freedesktop.org/releases/dbus/dbus-"
93 "107ckxaff1cv4q6kmfdi2fb1nlsv03312a7kf6lb4biglhpjv8jl"))
94 (patches (search-patches "dbus-helper-search-path.patch"))))
95 (build-system gnu-build-system)
99 ;; Install the system bus socket under /var.
100 "--localstatedir=/var"
102 ;; Install the session bus socket under /tmp.
103 "--with-session-socket-dir=/tmp"
105 ;; Use /etc/dbus-1 for system-wide config.
106 ;; Look for configuration file under
107 ;; /etc/dbus-1. This is notably required by
108 ;; 'dbus-daemon-launch-helper', which looks for
109 ;; the 'system.conf' file in that place,
110 ;; regardless of what '--config-file' was
111 ;; passed to 'dbus-daemon' on the command line;
112 ;; see <https://bugs.freedesktop.org/show_bug.cgi?id=92458>.
115 (modify-phases %standard-phases
118 ;; Don't try to create /var and /etc.
120 "localstatedir=/tmp/dummy"
121 "sysconfdir=/tmp/dummy"
124 `(("pkg-config" ,pkg-config)
125 ;; Dependencies to generate the doc.
126 ("docbook-xml" ,docbook-xml-4.4)
127 ("docbook-xsl" ,docbook-xsl)
130 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
132 ("yelp-tools" ,yelp-tools)))
135 ;; Add a dependency on libx11 so that 'dbus-launch' has support for
138 (outputs '("out" "doc")) ;22 MiB of HTML doc
139 (home-page "https://www.freedesktop.org/wiki/Software/dbus/")
140 (synopsis "Message bus for inter-process communication (IPC)")
142 "D-Bus is a message bus system, a simple way for applications to
143 talk to one another. In addition to interprocess communication, D-Bus
144 helps coordinate process lifecycle; it makes it simple and reliable to
145 code a \"single instance\" application or daemon, and to launch
146 applications and daemons on demand when their services are needed.
148 D-Bus supplies both a system daemon (for events such as \"new hardware
149 device added\" or \"printer queue changed\") and a
150 per-user-login-session daemon (for general IPC needs among user
151 applications). Also, the message bus is built on top of a general
152 one-to-one message passing framework, which can be used by any two apps
153 to communicate directly (without going through the message bus
154 daemon). Currently the communicating applications are on one computer,
155 or through unencrypted TCP/IP suitable for use behind a firewall with
156 shared NFS home directories.")
157 (license license:gpl2+))) ; or Academic Free License 2.1
165 (uri (string-append "mirror://gnome/sources/"
166 name "/" (string-take version 4) "/"
167 name "-" version ".tar.xz"))
170 "0bk2l9mhvc44c0gfg442wrifwj2fci1w71dsp3nb50pffvsivpry"))
171 (patches (search-patches "glib-tests-timer.patch"
172 "glib-keyfile-arguments.patch"))
173 (modules '((guix build utils)))
176 (substitute* "tests/spawn-test.c"
179 (build-system meson-build-system)
180 (outputs '("out" ; everything
181 "bin")) ; glib-mkenums, gtester, etc.; depends on Python
183 `(("pcre" ,pcre) ; in the Requires.private field of glib-2.0.pc
184 ("libffi" ,libffi) ; in the Requires.private field of gobject-2.0.pc
185 ;; These are in the Requires.private field of gio-2.0.pc
186 ("util-linux" ,util-linux) ; for libmount
187 ("libselinux" ,libselinux)
190 `(("coreutils" ,coreutils)))
192 `(("gettext" ,gettext-minimal)
193 ("m4" ,m4) ; for installing m4 macros
194 ("dbus" ,dbus) ; for GDBus tests
195 ("pkg-config" ,pkg-config)
196 ("python" ,python-wrapper)
197 ("perl" ,perl) ; needed by GIO tests
198 ("tzdata" ,tzdata-for-tests))) ; for tests/gdatetime.c
201 (modify-phases %standard-phases
202 (add-before 'build 'pre-build
203 (lambda* (#:key inputs outputs #:allow-other-keys)
204 ;; For tests/gdatetime.c.
206 (string-append (assoc-ref inputs "tzdata")
209 ;; Some tests want write access there.
210 (setenv "HOME" (getcwd))
211 (setenv "XDG_CACHE_HOME" (getcwd))
213 (add-after 'unpack 'disable-failing-tests
216 (lambda (test-file test-paths)
217 (define pattern+procs
218 (map (lambda (test-path)
220 ;; XXX: only works for single line statements.
221 (format #f "g_test_add_func.*\"~a\".*" test-path)
224 (substitute test-file pattern+procs)))
226 '(("glib/tests/thread.c"
227 (;; prlimit(2) returns ENOSYS on Linux 2.6.32-5-xen-amd64
228 ;; as found on hydra.gnu.org, and strace(1) doesn't
232 ;; This tries to find programs in FHS directories.
233 ("glib/tests/utils.c"
234 ("/utils/find-program"))
236 ;; This fails because "glib/tests/echo-script" cannot be
238 ("glib/tests/spawn-singlethread.c"
239 ("/gthread/spawn-script"))
241 ("glib/tests/timer.c"
242 (;; fails if compiler optimizations are enabled, which they
246 ("gio/tests/gapplication.c"
247 (;; XXX: proven to be unreliable. See:
248 ;; <https://bugs.debian.org/756273>
249 ;; <http://bugs.gnu.org/18445>
252 ;; XXX: fails randomly for unknown reason. See:
253 ;; <https://lists.gnu.org/archive/html/guix-devel/2016-04/msg00215.html>
254 "/gapplication/local-actions"))
256 ("gio/tests/contenttype.c"
257 (;; XXX: requires shared-mime-info.
259 "/contenttype/guess_svg_from_data"
260 "/contenttype/subtype"
263 "/contenttype/symbolic-icon"
264 "/contenttype/tree"))
266 ("gio/tests/appinfo.c"
267 (;; XXX: requires update-desktop-database.
268 "/appinfo/associations"))
270 ("gio/tests/desktop-app-info.c"
271 (;; XXX: requires update-desktop-database.
272 "/desktop-app-info/delete"
273 "/desktop-app-info/default"
274 "/desktop-app-info/fallback"
275 "/desktop-app-info/lastused"
276 "/desktop-app-info/search"))
278 ("gio/tests/gdbus-peer.c"
279 (;; Requires /etc/machine-id.
280 "/gdbus/codegen-peer-to-peer"))
282 ("gio/tests/gdbus-unix-addresses.c"
283 (;; Requires /etc/machine-id.
284 "/gdbus/x11-autolaunch"))
286 ("gio/tests/gsocketclient-slow.c"
287 (;; These tests tries to resolve "localhost", and fails.
288 "/socket-client/happy-eyeballs/slow"
289 "/socket-client/happy-eyeballs/cancellation/delayed"))
292 (for-each (lambda (x) (apply disable x)) failing-tests)
296 (setenv "MESON_TESTTHREADS"
297 (number->string (parallel-job-count)))
298 ;; Do not run tests marked as "flaky".
299 (invoke "meson" "test" "--no-suite" "flaky")))
300 ;; TODO: meson does not permit the bindir to be outside of prefix.
301 ;; See https://github.com/mesonbuild/meson/issues/2561
302 ;; We can remove this once meson is patched.
303 (add-after 'install 'move-executables
304 (lambda* (#:key outputs #:allow-other-keys)
305 (let ((out (assoc-ref outputs "out"))
306 (bin (assoc-ref outputs "bin")))
308 (rename-file (string-append out "/bin")
309 (string-append bin "/bin"))
310 ;; Do not refer to "bindir", which points to "${prefix}/bin".
311 ;; We don't patch "bindir" to point to "$bin/bin", because that
312 ;; would create a reference cycle between the "out" and "bin"
314 (substitute* (list (string-append out "/lib/pkgconfig/gio-2.0.pc")
315 (string-append out "/lib/pkgconfig/glib-2.0.pc"))
316 (("bindir=\\$\\{prefix\\}/bin") "")
317 (("=\\$\\{bindir\\}/") "="))
319 ;; TODO: see above for explanation.
320 ;; #:configure-flags (list (string-append "--bindir="
321 ;; (assoc-ref %outputs "bin")
325 ;; This variable is not really "owned" by GLib, but several related
326 ;; packages refer to it: gobject-introspection's tools use it as a search
327 ;; path for .gir files, and it's also a search path for schemas produced
328 ;; by 'glib-compile-schemas'.
329 (list (search-path-specification
330 (variable "XDG_DATA_DIRS")
332 ;; To load extra gio modules from glib-networking, etc.
333 (search-path-specification
334 (variable "GIO_EXTRA_MODULES")
335 (files '("lib/gio/modules")))))
336 (search-paths native-search-paths)
338 (synopsis "Thread-safe general utility library; basis of GTK+ and GNOME")
340 "GLib provides data structure handling for C, portability wrappers,
341 and interfaces for such runtime functionality as an event loop, threads,
342 dynamic loading, and an object system.")
343 (home-page "https://developer.gnome.org/glib/")
344 (license license:lgpl2.1+)))
346 (define gobject-introspection
348 (name "gobject-introspection")
352 (uri (string-append "mirror://gnome/sources/"
353 "gobject-introspection/" (version-major+minor version)
354 "/gobject-introspection-" version ".tar.xz"))
356 (base32 "172ymc1vbg2rclq1rszx4y32vm900nn1mc4qg1a4mqxjiwvf5pzz"))
357 (patches (search-patches
358 "gobject-introspection-cc.patch"
359 "gobject-introspection-girepository.patch"
360 "gobject-introspection-absolute-shlib-path.patch"))))
361 (build-system meson-build-system)
364 (modify-phases %standard-phases
365 (add-after 'unpack 'do-not-use-/usr/bin/env
367 (substitute* "tools/g-ir-tool-template.in"
369 (string-append "#!" (which "python3"))))
375 ("python" ,python-wrapper)
378 `(("glib" ,glib "bin")
379 ("pkg-config" ,pkg-config)))
381 `(;; In practice, GIR users will need libffi when using
382 ;; gobject-introspection.
385 (list (search-path-specification
386 (variable "GI_TYPELIB_PATH")
387 (files '("lib/girepository-1.0")))))
388 (search-paths native-search-paths)
389 (home-page "https://wiki.gnome.org/GObjectIntrospection")
390 (synopsis "Generate interface introspection data for GObject libraries")
392 "GObject introspection is a middleware layer between C libraries (using
393 GObject) and language bindings. The C library can be scanned at compile time
394 and generate a metadata file, in addition to the actual native C library. Then
395 at runtime, language bindings can read this metadata and automatically provide
396 bindings to call into the C library.")
397 ; Some bits are distributed under the LGPL2+, others under the GPL2+
398 (license license:gpl2+)))
406 (uri (string-append "https://launchpad.net/intltool/trunk/"
407 version "/+download/intltool-"
409 (patches (search-patches "intltool-perl-compatibility.patch"))
412 "1karx4sb7bnm2j67q0q74hspkfn6lqprpy5r99vkn5bb36a4viv7"))))
413 (build-system gnu-build-system)
417 `(;; Propagate gettext because users expect it to be there, and so does
418 ;; the `intltool-update' script.
419 ("gettext" ,gettext-minimal)
421 ("perl-xml-parser" ,perl-xml-parser)
425 (modify-phases %standard-phases
426 (add-after 'unpack 'patch-file-references
427 (lambda* (#:key inputs #:allow-other-keys)
428 (let ((file (assoc-ref inputs "file")))
429 (substitute* "intltool-update.in"
430 (("`file") (string-append "`" file "/bin/file")))
432 (home-page "https://launchpad.net/intltool/+download")
433 (synopsis "Tools to centralise translations of different file formats")
435 "Intltool is a set of tools to centralise translations of many different
436 file formats using GNU gettext-compatible PO files.
438 The intltool collection can be used to do these things:
440 Extract translatable strings from various source files (.xml.in,
441 glade, .desktop.in, .server.in, .oaf.in).
443 Collect the extracted strings together with messages from traditional
444 source files (.c, .h) in po/$(PACKAGE).pot.
446 Merge back the translations from .po files into .xml, .desktop and
447 oaf files. This merge step will happen at build resp. installation time.")
448 (license license:gpl2+)))
456 (uri (string-append "http://files.itstool.org/itstool/itstool-"
460 "1acjgf8zlyk7qckdk19iqaca4jcmywd7vxjbcs1mm6kaf8icqcv2"))))
461 (build-system gnu-build-system)
463 `(("libxml2" ,libxml2)
464 ("python-libxml2" ,python-libxml2)
468 (modify-phases %standard-phases
469 (add-after 'install 'wrap-program
470 (lambda* (#:key outputs #:allow-other-keys)
471 (let ((prog (string-append (assoc-ref outputs "out")
474 `("PYTHONPATH" = (,(getenv "PYTHONPATH"))))
476 (home-page "http://www.itstool.org")
477 (synopsis "Tool to translate XML documents with PO files")
479 "ITS Tool allows you to translate your XML documents with PO files, using
480 rules from the W3C Internationalization Tag Set (ITS) to determine what to
481 translate and how to separate it into PO file messages.
483 PO files are the standard translation format for GNU and other Unix-like
484 systems. They present translatable information as discrete messages, allowing
485 each message to be translated independently. In contrast to whole-page
486 translation, translating with a message-based format like PO means you can
487 easily track changes to the source document down to the paragraph. When new
488 strings are added or existing strings are modified, you only need to update the
489 corresponding messages.
491 ITS Tool is designed to make XML documents translatable through PO files by
492 applying standard ITS rules, as well as extension rules specific to ITS Tool.
493 ITS also provides an industry standard way for authors to override translation
494 information in their documents, such as whether a particular element should be
496 (license license:gpl3+)))
505 (string-append "https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-"
509 "0b307hw9j41npzr6niw1bs6ryp87m5yafg492gqwvsaj4dz0qd4z"))))
510 (build-system gnu-build-system)
511 (propagated-inputs ; according to dbus-glib-1.pc
517 `(("glib" ,glib "bin")
518 ("pkg-config" ,pkg-config)))
519 (home-page "https://dbus.freedesktop.org/doc/dbus-glib/")
520 (synopsis "D-Bus GLib bindings")
522 "GLib bindings for D-Bus. The package is obsolete and superseded
523 by GDBus included in Glib.")
524 (license license:gpl2))) ; or Academic Free License 2.1
532 (uri (string-append "mirror://gnome/sources/libsigc++/"
533 (version-major+minor version) "/"
534 name "-" version ".tar.xz"))
537 "163s14d1rqp82gc1vsm3q0wzsbdicb9q6307kz0zk5lm6x9h5jmi"))))
538 (build-system gnu-build-system)
539 (native-inputs `(("pkg-config" ,pkg-config)
541 (home-page "http://libsigc.sourceforge.net/")
542 (synopsis "Type-safe callback system for standard C++")
544 "Libsigc++ implements a type-safe callback system for standard C++. It
545 allows you to define signals and to connect those signals to any callback
546 function, either global or a member function, regardless of whether it is
549 It also contains adaptor classes for connection of dissimilar callbacks and
550 has an ease of use unmatched by other C++ callback libraries.")
551 (license license:lgpl2.1+)))
559 (uri (string-append "mirror://gnome/sources/glibmm/"
560 (version-major+minor version)
561 "/glibmm-" version ".tar.xz"))
564 "1g7jxqd270dv2d83r7pf5893mwpz7d5xib0q01na2yalh34v38d3"))))
565 (build-system gnu-build-system)
568 (modify-phases %standard-phases
569 (add-before 'build 'pre-build
571 ;; This test uses /etc/fstab as an example file to read
572 ;; from; choose a better example.
573 (substitute* "tests/giomm_simple/main.cc"
575 (string-append (getcwd)
576 "/tests/giomm_simple/main.cc")))
578 ;; This test does a DNS lookup, and then expects to be able
579 ;; to open a TLS session; just skip it.
580 (substitute* "tests/giomm_tls_client/main.cc"
584 (native-inputs `(("pkg-config" ,pkg-config)
585 ("glib" ,glib "bin")))
587 `(("libsigc++" ,libsigc++)
589 (home-page "https://gtkmm.org/")
590 (synopsis "C++ interface to the GLib library")
592 "Glibmm provides a C++ programming interface to the part of GLib that are
594 (license license:lgpl2.1+)))
596 (define-public python2-pygobject-2
598 (name "python2-pygobject")
599 ;; This was the last version to declare the 2.0 platform number, i.e. its
600 ;; pkg-config files were named pygobject-2.0.pc
605 (uri (string-append "mirror://gnome/sources/pygobject/"
606 (version-major+minor version)
607 "/pygobject-" version ".tar.xz"))
610 "0nkam61rsn7y3wik3vw46wk5q2cjfh2iph57hl9m39rc8jijb7dv"))
611 (patches (search-patches
612 "python2-pygobject-2-gi-info-type-error-domain.patch"))))
613 (build-system gnu-build-system)
616 ("glib-bin" ,glib "bin") ;for tests: glib-compile-schemas
617 ("pkg-config" ,pkg-config)
618 ("dbus" ,dbus))) ;for tests
620 `(("python" ,python-2)
622 ("python2-pycairo" ,python2-pycairo)
623 ("gobject-introspection" ,gobject-introspection)))
625 `(("libffi" ,libffi))) ;mentioned in pygobject-2.0.pc
627 `(#:tests? #f ;segfaults during tests
628 #:configure-flags '("LIBS=-lcairo-gobject")))
629 (home-page "https://pypi.python.org/pypi/PyGObject")
630 (synopsis "Python bindings for GObject")
632 "Python bindings for GLib, GObject, and GIO.")
633 (license license:lgpl2.1+)))
635 (define-public python-pygobject
637 (name "python-pygobject")
642 (uri (string-append "mirror://gnome/sources/pygobject/"
643 (version-major+minor version)
644 "/pygobject-" version ".tar.xz"))
647 "1c6h3brzlyvzbpdsammnd957azmp6cbzqrd65r400vnh2l8f5lrx"))))
648 (build-system gnu-build-system)
651 (modify-phases %standard-phases
652 (add-after 'unpack 'delete-broken-tests
654 ;; FIXME: this test freezes and times out.
655 (delete-file "tests/test_mainloop.py")
656 ;; FIXME: this test fails with this kind of error:
657 ;; AssertionError: <Handlers.SIG_IGN: 1> != <built-in function default_int_handler
658 (delete-file "tests/test_ossig.py")
662 ;for tests: dbus-run-session and glib-compile-schemas
664 ("glib-bin" ,glib "bin")
665 ("pkg-config" ,pkg-config)
666 ("python-pytest" ,python-pytest)))
669 ("python-pycairo" ,python-pycairo)
670 ("gobject-introspection" ,gobject-introspection)))
672 ;; pygobject-3.0.pc refers to all these.
675 ;; For finding typelib files, since gobject-introscpetion isn't propagated.
676 (native-search-paths (package-native-search-paths gobject-introspection))
677 (home-page "https://live.gnome.org/PyGObject")
678 (synopsis "Python bindings for GObject")
680 "Python bindings for GLib, GObject, and GIO.")
681 (license license:lgpl2.1+)
682 (properties `((python2-variant . ,(delay python2-pygobject))))))
684 (define-public python2-pygobject
685 (package (inherit (strip-python2-variant python-pygobject))
686 (name "python2-pygobject")
688 `(("python" ,python-2)
689 ("python-pycairo" ,python2-pycairo)
690 ("gobject-introspection" ,gobject-introspection)))
693 ;for tests: dbus-run-session and glib-compile-schemas
695 ("glib-bin" ,glib "bin")
696 ("pkg-config" ,pkg-config)
697 ("python-pytest" ,python2-pytest)))))
699 (define-public perl-glib
706 "mirror://cpan/authors/id/X/XA/XAOC/Glib-"
710 "0d9ak0zknz81lv3cqkzr2mxdic6g5rrbb87skqc4jj48rz4f2k3v"))))
711 (build-system perl-build-system)
713 `(("perl-extutils-depends" ,perl-extutils-depends)
714 ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig)))
717 (home-page "https://metacpan.org/release/Glib")
718 (synopsis "Perl wrappers for the GLib utility and Object libraries")
719 (description "This module provides perl access to GLib and GLib's GObject
720 libraries. GLib is a portability and utility library; GObject provides a
721 generic type system with inheritance and a powerful signal system. Together
722 these libraries are used as the foundation for many of the libraries that make
723 up the Gnome environment, and are used in many unrelated projects.")
724 (license license:lgpl2.1+)))
726 (define telepathy-glib
728 (name "telepathy-glib")
735 "https://telepathy.freedesktop.org/releases/telepathy-glib/"
736 "telepathy-glib-" version ".tar.gz"))
739 "1symyzbjmxvksn2ifdkk50lafjm2llf2sbmky062gq2pz3cg23cy"))
742 ;; Don't use the same test name for multiple tests.
743 ;; <https://bugs.freedesktop.org/show_bug.cgi?id=92245>
746 (uri "https://bugs.freedesktop.org/attachment.cgi?id=118608")
747 (file-name (string-append "telepathy-glib-duplicate-tests.patch"))
750 "0z261fwrszxb28ccg3hsg9rizig4s84zvwmx6y31a4pyv7bvs5w3")))))))
751 (build-system gnu-build-system)
753 '(#:configure-flags '("--enable-vala-bindings")
755 ;; '../tools/glib-*.py' generate files but the target dependencies are
756 ;; (presumably) not fully specified in the makefile, leading to
757 ;; parallel build errors like:
759 ;; EOFError: EOF read where object expected
760 ;; make[2]: *** [Makefile:1906: _gen/register-dbus-glib-marshallers-body.h] Error 1
761 #:parallel-build? #f))
763 `(("glib" ,glib "bin") ; uses glib-mkenums
764 ("gobject-introspection" ,gobject-introspection)
765 ("pkg-config" ,pkg-config)
768 ("xsltproc" ,libxslt)))
770 ;; There are all in the Requires.private field of telepathy-glib.pc.
772 ("dbus-glib" ,dbus-glib)
774 (home-page "https://telepathy.freedesktop.org/wiki/")
775 (synopsis "GLib Real-time communications framework over D-Bus")
776 (description "Telepathy is a flexible, modular communications framework
777 that enables real-time communication over D-Bus via pluggable protocol
778 backends. Telepathy is a communications service that can be accessed by
779 many applications simultaneously.
781 This package provides the library for GLib applications.")
782 (license license:lgpl2.1+)))
784 (define-public dbus-c++
792 "mirror://sourceforge/dbus-cplusplus/dbus-c%2B%2B/"
793 version "/libdbus-c%2B%2B-" version ".tar.gz"))
794 (file-name (string-append name "-" version ".tar.gz"))
797 "0qafmy2i6dzx4n1dqp6pygyy6gjljnb7hwjcj2z11c1wgclsq4dw"))))
798 (build-system gnu-build-system)
800 `(("dbus" ,dbus))) ;mentioned in the pkg-config file
806 `(("pkg-config" ,pkg-config)))
808 `(;; The 'configure' machinery fails to detect that it needs -lpthread.
809 #:configure-flags (list "LDFLAGS=-lpthread")
811 (modify-phases %standard-phases
812 (add-before 'configure 'add-missing-header
814 (substitute* "include/dbus-c++/eventloop-integration.h"
815 (("#include <errno.h>")
816 "#include <errno.h>\n#include <unistd.h>")))))))
817 (synopsis "D-Bus API for C++")
818 (description "This package provides D-Bus client API bindings for the C++
819 programming language. It also contains the utility
820 @command{dbuscxx-xml2cpp}.")
821 (home-page "https://sourceforge.net/projects/dbus-cplusplus/")
822 (license license:lgpl2.1+)))
824 (define-public appstream-glib
826 (name "appstream-glib")
830 (uri (string-append "https://people.freedesktop.org/~hughsient/"
831 "appstream-glib/releases/"
832 "appstream-glib-" version ".tar.xz"))
835 "17ram4j3cvs78si0gi1labarr91pw68zn8kam41cqbvlwdyr89vy"))))
836 (build-system meson-build-system)
838 `(("gettext" ,gettext-minimal)
839 ("glib:bin" ,glib "bin") ; for glib-compile-resources
840 ("pkg-config" ,pkg-config)))
842 `(("gcab" ,gcab) ; for .pc file
843 ("gdk-pixbuf" ,gdk-pixbuf) ; for .pc file
844 ("util-linux" ,util-linux))) ; for .pc file
849 ("json-glib" ,json-glib)
850 ("libarchive" ,libarchive)
852 ("libyaml" ,libyaml)))
855 (list "-Ddep11=false"
856 "-Dintrospection=false" ; avoid g-ir-scanner dependency
860 (modify-phases %standard-phases
861 (add-after 'unpack 'patch-tests
863 (substitute* "libappstream-glib/as-self-test.c"
864 (("g_test_add_func.*as_test_store_local_appdata_func);") ""))
866 (home-page "https://github.com/hughsie/appstream-glib")
867 (synopsis "Library for reading and writing AppStream metadata")
868 (description "This library provides objects and helper methods to help
869 reading and writing @uref{https://www.freedesktop.org/wiki/Distributions/AppStream,AppStream}
871 (license license:lgpl2.1+)))
873 (define perl-net-dbus
875 (name "perl-net-dbus")
880 (uri (string-append "mirror://cpan/authors/id/D/DA/DANBERR/Net-DBus-"
884 "0sg2w147b9r9ykfzjs7y9qxry73xkjnhnk4qf95kfv79p5nnk4c3"))))
885 (build-system perl-build-system)
887 `(("pkg-config" ,pkg-config)
888 ("perl-test-pod" ,perl-test-pod)
889 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
893 `(("perl-xml-twig" ,perl-xml-twig)))
894 (home-page "https://metacpan.org/release/Net-DBus")
895 (synopsis "Extension for the DBus bindings")
896 (description "@code{Net::DBus} provides a Perl XS API to the DBus
897 inter-application messaging system. The Perl API covers the core base level
898 of the DBus APIs, not concerning itself yet with the GLib or QT wrappers.")
899 (license license:perl-license)))
901 (define perl-net-dbus-glib
903 (name "perl-net-dbus-glib")
908 (uri (string-append "mirror://cpan/authors/id/D/DA/DANBERR/"
909 "Net-DBus-GLib-" version ".tar.gz"))
912 "1z4mbv8z0rad604xahijpg5szzi8qak07hbahh230z4jf96fkxvj"))))
913 (build-system perl-build-system)
915 `(("pkg-config" ,pkg-config)))
917 `(("dbus-glib" ,dbus-glib)))
918 (home-page "https://metacpan.org/release/Net-DBus-GLib")
919 (synopsis "Perl extension for the DBus GLib bindings")
920 (description "This package provides an extension to the @code{Net::DBus}
921 module allowing integration with the GLib mainloop. To integrate with the
922 main loop, simply get a connection to the bus via the methods in
923 @code{Net::DBus::GLib} rather than the usual @code{Net::DBus} module. Every
924 other API remains the same.")
925 (license license:gpl2+)))