Commit | Line | Data |
---|---|---|
3889a82e | 1 | ;;; GNU Guix --- Functional package management for GNU |
df09e1d6 | 2 | ;;; Copyright © 2013, 2014, 2015, 2016, 2019 Ludovic Courtès <ludo@gnu.org> |
7873318d | 3 | ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr> |
d6b8cb5c | 4 | ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> |
95346874 | 5 | ;;; Copyright © 2014, 2015, 2016, 2017, 2018 Mark H Weaver <mhw@netris.org> |
22b0caa3 | 6 | ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> |
89eb7581 | 7 | ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org> |
3b3046db | 8 | ;;; Copyright © 2017, 2018 Ricardo Wurmus <rekado@elephly.net> |
a372c4da | 9 | ;;; Copyright © 2017 Petter <petter@mykolab.ch> |
93394133 | 10 | ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr> |
451f6e30 | 11 | ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com> |
cff1927f | 12 | ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com> |
3889a82e NK |
13 | ;;; |
14 | ;;; This file is part of GNU Guix. | |
15 | ;;; | |
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. | |
20 | ;;; | |
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. | |
25 | ;;; | |
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/>. | |
28 | ||
943f33a3 | 29 | (define-module (gnu packages glib) |
943f33a3 | 30 | #:use-module (gnu packages) |
7b83b695 | 31 | #:use-module (gnu packages backup) |
08a1e906 TGR |
32 | #:use-module (gnu packages base) |
33 | #:use-module (gnu packages bash) | |
9ceb630c | 34 | #:use-module (gnu packages bison) |
59f6dfe5 | 35 | #:use-module (gnu packages check) |
943f33a3 | 36 | #:use-module (gnu packages compression) |
cff1927f MC |
37 | #:use-module (gnu packages docbook) |
38 | #:use-module (gnu packages documentation) | |
89eb7581 | 39 | #:use-module (gnu packages enlightenment) |
08a1e906 | 40 | #:use-module (gnu packages file) |
9ceb630c | 41 | #:use-module (gnu packages flex) |
1dba6407 | 42 | #:use-module (gnu packages gettext) |
c73d4c59 | 43 | #:use-module (gnu packages gnome) |
318bc429 | 44 | #:use-module (gnu packages gperf) |
9ceb630c | 45 | #:use-module (gnu packages gtk) |
943f33a3 | 46 | #:use-module (gnu packages libffi) |
2b95aed4 | 47 | #:use-module (gnu packages linux) |
08a1e906 | 48 | #:use-module (gnu packages m4) |
7b83b695 | 49 | #:use-module (gnu packages nettle) |
6983ba56 | 50 | #:use-module (gnu packages pcre) |
318bc429 | 51 | #:use-module (gnu packages package-management) |
d6b8cb5c | 52 | #:use-module (gnu packages perl) |
5ccde207 | 53 | #:use-module (gnu packages perl-check) |
943f33a3 LC |
54 | #:use-module (gnu packages pkg-config) |
55 | #:use-module (gnu packages python) | |
6c237a2d | 56 | #:use-module (gnu packages selinux) |
318bc429 | 57 | #:use-module (gnu packages web) |
7bc5cc2b | 58 | #:use-module (gnu packages xml) |
80370441 | 59 | #:use-module (gnu packages xorg) |
08a1e906 | 60 | #:use-module (guix build-system gnu) |
318bc429 | 61 | #:use-module (guix build-system meson) |
08a1e906 TGR |
62 | #:use-module (guix build-system perl) |
63 | #:use-module (guix build-system python) | |
64 | #:use-module (guix download) | |
65 | #:use-module ((guix licenses) #:prefix license:) | |
66 | #:use-module (guix packages) | |
67 | #:use-module (guix utils) | |
943f33a3 | 68 | |
80370441 LC |
69 | ;; Export variables up-front to allow circular dependency with the 'xorg' |
70 | ;; module. | |
71 | #:export (dbus | |
72 | glib | |
6ac6a6b9 | 73 | gobject-introspection |
80370441 LC |
74 | dbus-glib |
75 | intltool | |
a5a7d374 LC |
76 | itstool |
77 | libsigc++ | |
7873318d | 78 | glibmm |
a372c4da | 79 | telepathy-glib |
fc4083c5 P |
80 | perl-net-dbus |
81 | perl-net-dbus-glib)) | |
80370441 LC |
82 | |
83 | (define dbus | |
943f33a3 LC |
84 | (package |
85 | (name "dbus") | |
a9a78d8b | 86 | (version "1.12.16") |
943f33a3 | 87 | (source (origin |
25087f60 SB |
88 | (method url-fetch) |
89 | (uri (string-append | |
7fb51d97 | 90 | "https://dbus.freedesktop.org/releases/dbus/dbus-" |
25087f60 SB |
91 | version ".tar.gz")) |
92 | (sha256 | |
93 | (base32 | |
a9a78d8b | 94 | "107ckxaff1cv4q6kmfdi2fb1nlsv03312a7kf6lb4biglhpjv8jl")) |
fc1adab1 | 95 | (patches (search-patches "dbus-helper-search-path.patch")))) |
943f33a3 | 96 | (build-system gnu-build-system) |
8eaa8a3b | 97 | (arguments |
25087f60 SB |
98 | '(#:configure-flags |
99 | (list | |
100 | ;; Install the system bus socket under /var. | |
101 | "--localstatedir=/var" | |
8eaa8a3b | 102 | |
25087f60 SB |
103 | ;; Install the session bus socket under /tmp. |
104 | "--with-session-socket-dir=/tmp" | |
8eaa8a3b | 105 | |
25087f60 SB |
106 | ;; Use /etc/dbus-1 for system-wide config. |
107 | ;; Look for configuration file under | |
108 | ;; /etc/dbus-1. This is notably required by | |
109 | ;; 'dbus-daemon-launch-helper', which looks for | |
110 | ;; the 'system.conf' file in that place, | |
111 | ;; regardless of what '--config-file' was | |
112 | ;; passed to 'dbus-daemon' on the command line; | |
113 | ;; see <https://bugs.freedesktop.org/show_bug.cgi?id=92458>. | |
114 | "--sysconfdir=/etc") | |
115 | #:phases | |
116 | (modify-phases %standard-phases | |
117 | (replace 'install | |
118 | (lambda _ | |
119 | ;; Don't try to create /var and /etc. | |
d009c44a MW |
120 | (invoke "make" |
121 | "localstatedir=/tmp/dummy" | |
122 | "sysconfdir=/tmp/dummy" | |
123 | "install")))))) | |
708be46b | 124 | (native-inputs |
cff1927f MC |
125 | `(("pkg-config" ,pkg-config) |
126 | ;; Dependencies to generate the doc. | |
127 | ("docbook-xml" ,docbook-xml-4.4) | |
128 | ("docbook-xsl" ,docbook-xsl) | |
129 | ("doxygen" ,doxygen) | |
130 | ("xmlto" ,xmlto) | |
131 | ("libxml2" ,libxml2) ;for XML_CATALOG_FILES | |
132 | ("libxslt" ,libxslt) | |
133 | ("yelp-tools" ,yelp-tools))) | |
943f33a3 | 134 | (inputs |
d6b8cb5c | 135 | `(("expat" ,expat) |
80370441 LC |
136 | ;; Add a dependency on libx11 so that 'dbus-launch' has support for |
137 | ;; '--autolaunch'. | |
138 | ("libx11" ,libx11))) | |
cff1927f | 139 | (outputs '("out" "doc")) ;22 MiB of HTML doc |
57e7d748 | 140 | (home-page "https://www.freedesktop.org/wiki/Software/dbus/") |
943f33a3 LC |
141 | (synopsis "Message bus for inter-process communication (IPC)") |
142 | (description | |
143 | "D-Bus is a message bus system, a simple way for applications to | |
35b9e423 | 144 | talk to one another. In addition to interprocess communication, D-Bus |
943f33a3 LC |
145 | helps coordinate process lifecycle; it makes it simple and reliable to |
146 | code a \"single instance\" application or daemon, and to launch | |
147 | applications and daemons on demand when their services are needed. | |
148 | ||
149 | D-Bus supplies both a system daemon (for events such as \"new hardware | |
150 | device added\" or \"printer queue changed\") and a | |
151 | per-user-login-session daemon (for general IPC needs among user | |
35b9e423 | 152 | applications). Also, the message bus is built on top of a general |
943f33a3 LC |
153 | one-to-one message passing framework, which can be used by any two apps |
154 | to communicate directly (without going through the message bus | |
35b9e423 | 155 | daemon). Currently the communicating applications are on one computer, |
943f33a3 LC |
156 | or through unencrypted TCP/IP suitable for use behind a firewall with |
157 | shared NFS home directories.") | |
d6b8cb5c | 158 | (license license:gpl2+))) ; or Academic Free License 2.1 |
3889a82e | 159 | |
80370441 | 160 | (define glib |
3889a82e NK |
161 | (package |
162 | (name "glib") | |
6898f5b4 | 163 | (version "2.60.4") |
3889a82e NK |
164 | (source (origin |
165 | (method url-fetch) | |
785db4d8 | 166 | (uri (string-append "mirror://gnome/sources/" |
d274f499 | 167 | name "/" (string-take version 4) "/" |
943f33a3 | 168 | name "-" version ".tar.xz")) |
3889a82e | 169 | (sha256 |
f47f6761 | 170 | (base32 |
6898f5b4 MB |
171 | "1p9k8z83272mkm4d4fhm5jhwhyw2basrwbz47yl5wbmrvk2ix51b")) |
172 | (patches (search-patches "glib-tests-timer.patch")) | |
173 | (modules '((guix build utils))) | |
174 | (snippet | |
175 | '(begin | |
176 | (substitute* "tests/spawn-test.c" | |
177 | (("/bin/sh") "sh")) | |
178 | #t)))) | |
6c237a2d | 179 | (build-system meson-build-system) |
426adbe8 | 180 | (outputs '("out" ; everything |
6c237a2d | 181 | "bin")) ; glib-mkenums, gtester, etc.; depends on Python |
6983ba56 | 182 | (propagated-inputs |
6c237a2d RW |
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 | |
2b95aed4 | 186 | ("util-linux" ,util-linux) ; for libmount |
6c237a2d | 187 | ("libselinux" ,libselinux) |
3ffaec13 | 188 | ("zlib" ,zlib))) |
6c237a2d RW |
189 | (inputs |
190 | `(("coreutils" ,coreutils))) | |
c4c4cc05 | 191 | (native-inputs |
b94a6ca0 | 192 | `(("gettext" ,gettext-minimal) |
220bcf6f | 193 | ("m4" ,m4) ; for installing m4 macros |
c4c4cc05 | 194 | ("dbus" ,dbus) ; for GDBus tests |
3889a82e | 195 | ("pkg-config" ,pkg-config) |
ee3e314b | 196 | ("python" ,python-wrapper) |
943f33a3 | 197 | ("perl" ,perl) ; needed by GIO tests |
3ffaec13 | 198 | ("bash" ,bash) |
f9c3bd2e | 199 | ("tzdata" ,tzdata-for-tests))) ; for tests/gdatetime.c |
943f33a3 | 200 | (arguments |
6c237a2d | 201 | `(#:phases |
6983ba56 | 202 | (modify-phases %standard-phases |
6c237a2d | 203 | (delete 'bootstrap) |
6983ba56 SB |
204 | (add-before 'build 'pre-build |
205 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
206 | ;; For tests/gdatetime.c. | |
207 | (setenv "TZDIR" | |
208 | (string-append (assoc-ref inputs "tzdata") | |
209 | "/share/zoneinfo")) | |
210 | ||
211 | ;; Some tests want write access there. | |
212 | (setenv "HOME" (getcwd)) | |
213 | (setenv "XDG_CACHE_HOME" (getcwd)) | |
81f6bf2d | 214 | #t)) |
6c237a2d | 215 | (add-after 'unpack 'disable-failing-tests |
6983ba56 SB |
216 | (lambda _ |
217 | (let ((disable | |
218 | (lambda (test-file test-paths) | |
219 | (define pattern+procs | |
220 | (map (lambda (test-path) | |
221 | (cons | |
222 | ;; XXX: only works for single line statements. | |
223 | (format #f "g_test_add_func.*\"~a\".*" test-path) | |
224 | (const ""))) | |
225 | test-paths)) | |
226 | (substitute test-file pattern+procs))) | |
227 | (failing-tests | |
228 | '(("glib/tests/thread.c" | |
229 | (;; prlimit(2) returns ENOSYS on Linux 2.6.32-5-xen-amd64 | |
230 | ;; as found on hydra.gnu.org, and strace(1) doesn't | |
231 | ;; recognize it. | |
232 | "/thread/thread4")) | |
233 | ||
6c237a2d RW |
234 | ;; This tries to find programs in FHS directories. |
235 | ("glib/tests/utils.c" | |
236 | ("/utils/find-program")) | |
237 | ||
238 | ;; This fails because "glib/tests/echo-script" cannot be | |
239 | ;; found. | |
240 | ("glib/tests/spawn-singlethread.c" | |
241 | ("/gthread/spawn-script")) | |
242 | ||
6983ba56 SB |
243 | ("glib/tests/timer.c" |
244 | (;; fails if compiler optimizations are enabled, which they | |
245 | ;; are by default. | |
246 | "/timer/stop")) | |
247 | ||
248 | ("gio/tests/gapplication.c" | |
249 | (;; XXX: proven to be unreliable. See: | |
250 | ;; <https://bugs.debian.org/756273> | |
251 | ;; <http://bugs.gnu.org/18445> | |
252 | "/gapplication/quit" | |
253 | ||
254 | ;; XXX: fails randomly for unknown reason. See: | |
255 | ;; <https://lists.gnu.org/archive/html/guix-devel/2016-04/msg00215.html> | |
256 | "/gapplication/local-actions")) | |
257 | ||
258 | ("gio/tests/contenttype.c" | |
259 | (;; XXX: requires shared-mime-info. | |
260 | "/contenttype/guess" | |
2f437b22 | 261 | "/contenttype/guess_svg_from_data" |
6983ba56 SB |
262 | "/contenttype/subtype" |
263 | "/contenttype/list" | |
264 | "/contenttype/icon" | |
265 | "/contenttype/symbolic-icon" | |
266 | "/contenttype/tree")) | |
267 | ||
268 | ("gio/tests/appinfo.c" | |
269 | (;; XXX: requires update-desktop-database. | |
270 | "/appinfo/associations")) | |
271 | ||
272 | ("gio/tests/desktop-app-info.c" | |
273 | (;; XXX: requires update-desktop-database. | |
274 | "/desktop-app-info/delete" | |
275 | "/desktop-app-info/default" | |
276 | "/desktop-app-info/fallback" | |
277 | "/desktop-app-info/lastused" | |
278 | "/desktop-app-info/search")) | |
279 | ||
280 | ("gio/tests/gdbus-peer.c" | |
281 | (;; Requires /etc/machine-id. | |
282 | "/gdbus/codegen-peer-to-peer")) | |
283 | ||
284 | ("gio/tests/gdbus-unix-addresses.c" | |
285 | (;; Requires /etc/machine-id. | |
6898f5b4 MB |
286 | "/gdbus/x11-autolaunch")) |
287 | ||
288 | ("gio/tests/gsocketclient-slow.c" | |
289 | (;; These tests tries to resolve "localhost", and fails. | |
290 | "/socket-client/happy-eyeballs/slow" | |
291 | "/socket-client/happy-eyeballs/cancellation/delayed")) | |
292 | ||
293 | ))) | |
81f6bf2d | 294 | (for-each (lambda (x) (apply disable x)) failing-tests) |
6c237a2d | 295 | #t))) |
6898f5b4 MB |
296 | (replace 'check |
297 | (lambda _ | |
298 | (setenv "MESON_TESTTHREADS" | |
299 | (number->string (parallel-job-count))) | |
300 | ;; Do not run tests marked as "flaky". | |
301 | (invoke "meson" "test" "--no-suite" "flaky"))) | |
6c237a2d RW |
302 | ;; TODO: meson does not permit the bindir to be outside of prefix. |
303 | ;; See https://github.com/mesonbuild/meson/issues/2561 | |
304 | ;; We can remove this once meson is patched. | |
305 | (add-after 'install 'move-executables | |
306 | (lambda* (#:key outputs #:allow-other-keys) | |
307 | (let ((out (assoc-ref outputs "out")) | |
308 | (bin (assoc-ref outputs "bin"))) | |
309 | (mkdir-p bin) | |
310 | (rename-file (string-append out "/bin") | |
311 | (string-append bin "/bin")) | |
312 | ;; Do not refer to "bindir", which points to "${prefix}/bin". | |
313 | ;; We don't patch "bindir" to point to "$bin/bin", because that | |
314 | ;; would create a reference cycle between the "out" and "bin" | |
315 | ;; outputs. | |
316 | (substitute* (list (string-append out "/lib/pkgconfig/gio-2.0.pc") | |
317 | (string-append out "/lib/pkgconfig/glib-2.0.pc")) | |
318 | (("bindir=\\$\\{prefix\\}/bin") "") | |
319 | (("=\\$\\{bindir\\}/") "=")) | |
6898f5b4 | 320 | #t)))))) |
6c237a2d RW |
321 | ;; TODO: see above for explanation. |
322 | ;; #:configure-flags (list (string-append "--bindir=" | |
323 | ;; (assoc-ref %outputs "bin") | |
324 | ;; "/bin")) | |
00585a55 | 325 | |
ce2df078 LC |
326 | (native-search-paths |
327 | ;; This variable is not really "owned" by GLib, but several related | |
328 | ;; packages refer to it: gobject-introspection's tools use it as a search | |
329 | ;; path for .gir files, and it's also a search path for schemas produced | |
330 | ;; by 'glib-compile-schemas'. | |
331 | (list (search-path-specification | |
332 | (variable "XDG_DATA_DIRS") | |
1b85e57f SB |
333 | (files '("share"))) |
334 | ;; To load extra gio modules from glib-networking, etc. | |
335 | (search-path-specification | |
336 | (variable "GIO_EXTRA_MODULES") | |
337 | (files '("lib/gio/modules"))))) | |
ce2df078 LC |
338 | (search-paths native-search-paths) |
339 | ||
f50d2669 | 340 | (synopsis "Thread-safe general utility library; basis of GTK+ and GNOME") |
3889a82e NK |
341 | (description |
342 | "GLib provides data structure handling for C, portability wrappers, | |
343 | and interfaces for such runtime functionality as an event loop, threads, | |
344 | dynamic loading, and an object system.") | |
f032d0be | 345 | (home-page "https://developer.gnome.org/glib/") |
c60ecc35 | 346 | (license license:lgpl2.1+))) |
71eb5c10 | 347 | |
6ac6a6b9 | 348 | (define gobject-introspection |
9ceb630c CR |
349 | (package |
350 | (name "gobject-introspection") | |
273c30be | 351 | (version "1.60.2") |
9ceb630c CR |
352 | (source (origin |
353 | (method url-fetch) | |
cc84b08c | 354 | (uri (string-append "mirror://gnome/sources/" |
2474b81d FB |
355 | "gobject-introspection/" (version-major+minor version) |
356 | "/gobject-introspection-" version ".tar.xz")) | |
9ceb630c | 357 | (sha256 |
273c30be | 358 | (base32 "172ymc1vbg2rclq1rszx4y32vm900nn1mc4qg1a4mqxjiwvf5pzz")) |
fc1adab1 AK |
359 | (patches (search-patches |
360 | "gobject-introspection-cc.patch" | |
361 | "gobject-introspection-girepository.patch" | |
362 | "gobject-introspection-absolute-shlib-path.patch")))) | |
f2a0f03b | 363 | (build-system meson-build-system) |
036c86be | 364 | (arguments |
f2a0f03b | 365 | `(#:phases |
036c86be RW |
366 | (modify-phases %standard-phases |
367 | (add-after 'unpack 'do-not-use-/usr/bin/env | |
368 | (lambda _ | |
369 | (substitute* "tools/g-ir-tool-template.in" | |
370 | (("#!@PYTHON_CMD@") | |
371 | (string-append "#!" (which "python3")))) | |
372 | #t))))) | |
9ceb630c CR |
373 | (inputs |
374 | `(("bison" ,bison) | |
9ceb630c CR |
375 | ("flex" ,flex) |
376 | ("glib" ,glib) | |
036c86be RW |
377 | ("python" ,python-wrapper) |
378 | ("zlib" ,zlib))) | |
426adbe8 | 379 | (native-inputs |
f2a0f03b | 380 | `(("glib" ,glib "bin") |
d7e92b87 | 381 | ("pkg-config" ,pkg-config))) |
af949e8e CR |
382 | (propagated-inputs |
383 | `(;; In practice, GIR users will need libffi when using | |
384 | ;; gobject-introspection. | |
385 | ("libffi" ,libffi))) | |
5a4753a6 FB |
386 | (native-search-paths |
387 | (list (search-path-specification | |
388 | (variable "GI_TYPELIB_PATH") | |
af070955 | 389 | (files '("lib/girepository-1.0"))))) |
5a4753a6 | 390 | (search-paths native-search-paths) |
9ceb630c CR |
391 | (home-page "https://wiki.gnome.org/GObjectIntrospection") |
392 | (synopsis "Generate interface introspection data for GObject libraries") | |
393 | (description | |
394 | "GObject introspection is a middleware layer between C libraries (using | |
395 | GObject) and language bindings. The C library can be scanned at compile time | |
396 | and generate a metadata file, in addition to the actual native C library. Then | |
397 | at runtime, language bindings can read this metadata and automatically provide | |
398 | bindings to call into the C library.") | |
399 | ; Some bits are distributed under the LGPL2+, others under the GPL2+ | |
400 | (license license:gpl2+))) | |
401 | ||
80370441 | 402 | (define intltool |
71eb5c10 LC |
403 | (package |
404 | (name "intltool") | |
fa09ebfa | 405 | (version "0.51.0") |
71eb5c10 LC |
406 | (source (origin |
407 | (method url-fetch) | |
d6b8cb5c AE |
408 | (uri (string-append "https://launchpad.net/intltool/trunk/" |
409 | version "/+download/intltool-" | |
410 | version ".tar.gz")) | |
92cb946b | 411 | (patches (search-patches "intltool-perl-compatibility.patch")) |
71eb5c10 LC |
412 | (sha256 |
413 | (base32 | |
fa09ebfa | 414 | "1karx4sb7bnm2j67q0q74hspkfn6lqprpy5r99vkn5bb36a4viv7")))) |
71eb5c10 | 415 | (build-system gnu-build-system) |
93882f0e EB |
416 | (inputs |
417 | `(("file" ,file))) | |
71eb5c10 | 418 | (propagated-inputs |
107b415e LC |
419 | `(;; Propagate gettext because users expect it to be there, and so does |
420 | ;; the `intltool-update' script. | |
b94a6ca0 | 421 | ("gettext" ,gettext-minimal) |
107b415e | 422 | |
e33d9d6f | 423 | ("perl-xml-parser" ,perl-xml-parser) |
107b415e | 424 | ("perl" ,perl))) |
93882f0e | 425 | (arguments |
e0f71c80 TGR |
426 | `(#:phases |
427 | (modify-phases %standard-phases | |
428 | (add-after 'unpack 'patch-file-references | |
429 | (lambda* (#:key inputs #:allow-other-keys) | |
430 | (let ((file (assoc-ref inputs "file"))) | |
431 | (substitute* "intltool-update.in" | |
432 | (("`file") (string-append "`" file "/bin/file"))) | |
433 | #t)))))) | |
d6b8cb5c AE |
434 | (home-page "https://launchpad.net/intltool/+download") |
435 | (synopsis "Tools to centralise translations of different file formats") | |
71eb5c10 | 436 | (description |
35b9e423 | 437 | "Intltool is a set of tools to centralise translations of many different |
71eb5c10 LC |
438 | file formats using GNU gettext-compatible PO files. |
439 | ||
440 | The intltool collection can be used to do these things: | |
441 | ||
442 | Extract translatable strings from various source files (.xml.in, | |
443 | glade, .desktop.in, .server.in, .oaf.in). | |
444 | ||
445 | Collect the extracted strings together with messages from traditional | |
446 | source files (.c, .h) in po/$(PACKAGE).pot. | |
447 | ||
448 | Merge back the translations from .po files into .xml, .desktop and | |
35b9e423 | 449 | oaf files. This merge step will happen at build resp. installation time.") |
d6b8cb5c | 450 | (license license:gpl2+))) |
24b5c463 | 451 | |
80370441 | 452 | (define itstool |
20a26ff5 CR |
453 | (package |
454 | (name "itstool") | |
ada53b1d | 455 | (version "2.0.2") |
20a26ff5 CR |
456 | (source (origin |
457 | (method url-fetch) | |
458 | (uri (string-append "http://files.itstool.org/itstool/itstool-" | |
459 | version ".tar.bz2")) | |
460 | (sha256 | |
461 | (base32 | |
ada53b1d | 462 | "0fh34wi52i0qikgvlmrcpf1vx6gc1xqdad4539l4d9hikfsrz45z")))) |
20a26ff5 | 463 | (build-system gnu-build-system) |
4b58d88b | 464 | (inputs |
f922fc42 | 465 | `(("libxml2" ,libxml2) |
ada53b1d MB |
466 | ("python2-libxml2" ,python2-libxml2) |
467 | ("python-2" ,python-2))) | |
4b58d88b SB |
468 | (arguments |
469 | '(#:phases | |
470 | (modify-phases %standard-phases | |
13fbd174 KK |
471 | (add-after 'install 'wrap-program |
472 | (lambda* (#:key outputs #:allow-other-keys) | |
473 | (let ((prog (string-append (assoc-ref outputs "out") | |
474 | "/bin/itstool"))) | |
475 | (wrap-program prog | |
bca24131 MW |
476 | `("PYTHONPATH" = (,(getenv "PYTHONPATH")))) |
477 | #t)))))) | |
20a26ff5 CR |
478 | (home-page "http://www.itstool.org") |
479 | (synopsis "Tool to translate XML documents with PO files") | |
480 | (description | |
481 | "ITS Tool allows you to translate your XML documents with PO files, using | |
482 | rules from the W3C Internationalization Tag Set (ITS) to determine what to | |
483 | translate and how to separate it into PO file messages. | |
484 | ||
485 | PO files are the standard translation format for GNU and other Unix-like | |
486 | systems. They present translatable information as discrete messages, allowing | |
487 | each message to be translated independently. In contrast to whole-page | |
488 | translation, translating with a message-based format like PO means you can | |
489 | easily track changes to the source document down to the paragraph. When new | |
490 | strings are added or existing strings are modified, you only need to update the | |
491 | corresponding messages. | |
492 | ||
493 | ITS Tool is designed to make XML documents translatable through PO files by | |
494 | applying standard ITS rules, as well as extension rules specific to ITS Tool. | |
495 | ITS also provides an industry standard way for authors to override translation | |
496 | information in their documents, such as whether a particular element should be | |
497 | translated.") | |
a129e0d8 | 498 | (license license:gpl3+))) |
20a26ff5 | 499 | |
80370441 | 500 | (define dbus-glib |
24b5c463 AE |
501 | (package |
502 | (name "dbus-glib") | |
919fc6aa | 503 | (version "0.108") |
24b5c463 AE |
504 | (source (origin |
505 | (method url-fetch) | |
506 | (uri | |
5cc3096c | 507 | (string-append "https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-" |
24b5c463 AE |
508 | version ".tar.gz")) |
509 | (sha256 | |
510 | (base32 | |
919fc6aa | 511 | "0b307hw9j41npzr6niw1bs6ryp87m5yafg492gqwvsaj4dz0qd4z")))) |
24b5c463 | 512 | (build-system gnu-build-system) |
2e88d113 | 513 | (propagated-inputs ; according to dbus-glib-1.pc |
24b5c463 | 514 | `(("dbus" ,dbus) |
44add1ce | 515 | ("glib" ,glib))) |
2e88d113 AE |
516 | (inputs |
517 | `(("expat" ,expat))) | |
44add1ce LC |
518 | (native-inputs |
519 | `(("glib" ,glib "bin") | |
24b5c463 | 520 | ("pkg-config" ,pkg-config))) |
57e7d748 | 521 | (home-page "https://dbus.freedesktop.org/doc/dbus-glib/") |
24b5c463 AE |
522 | (synopsis "D-Bus GLib bindings") |
523 | (description | |
524 | "GLib bindings for D-Bus. The package is obsolete and superseded | |
525 | by GDBus included in Glib.") | |
526 | (license license:gpl2))) ; or Academic Free License 2.1 | |
a5a7d374 LC |
527 | |
528 | (define libsigc++ | |
529 | (package | |
530 | (name "libsigc++") | |
14b53192 | 531 | (version "2.10.2") |
a5a7d374 LC |
532 | (source (origin |
533 | (method url-fetch) | |
e7a720e6 SB |
534 | (uri (string-append "mirror://gnome/sources/libsigc++/" |
535 | (version-major+minor version) "/" | |
536 | name "-" version ".tar.xz")) | |
a5a7d374 LC |
537 | (sha256 |
538 | (base32 | |
14b53192 | 539 | "163s14d1rqp82gc1vsm3q0wzsbdicb9q6307kz0zk5lm6x9h5jmi")))) |
a5a7d374 | 540 | (build-system gnu-build-system) |
41eb1198 LC |
541 | (native-inputs `(("pkg-config" ,pkg-config) |
542 | ("m4" ,m4))) | |
a5a7d374 LC |
543 | (home-page "http://libsigc.sourceforge.net/") |
544 | (synopsis "Type-safe callback system for standard C++") | |
545 | (description | |
35b9e423 | 546 | "Libsigc++ implements a type-safe callback system for standard C++. It |
a5a7d374 LC |
547 | allows you to define signals and to connect those signals to any callback |
548 | function, either global or a member function, regardless of whether it is | |
549 | static or virtual. | |
550 | ||
551 | It also contains adaptor classes for connection of dissimilar callbacks and | |
552 | has an ease of use unmatched by other C++ callback libraries.") | |
553 | (license license:lgpl2.1+))) | |
554 | ||
555 | (define glibmm | |
556 | (package | |
557 | (name "glibmm") | |
8a9ac047 | 558 | (version "2.58.0") |
a5a7d374 LC |
559 | (source (origin |
560 | (method url-fetch) | |
3d6befa4 MW |
561 | (uri (string-append "mirror://gnome/sources/glibmm/" |
562 | (version-major+minor version) | |
563 | "/glibmm-" version ".tar.xz")) | |
a5a7d374 LC |
564 | (sha256 |
565 | (base32 | |
8a9ac047 | 566 | "0idnaii4h3mdym2a55gkavipyxigwvbgfmzmwql85s4rgciqjhfk")))) |
a5a7d374 LC |
567 | (build-system gnu-build-system) |
568 | (arguments | |
7700c6ca MB |
569 | `(;; XXX: Some tests uses C++14 features. Remove this when the default |
570 | ;; compiler is >= GCC6. | |
571 | #:configure-flags '("CXXFLAGS=-std=gnu++14") | |
572 | #:phases | |
dc1d3cde KK |
573 | (modify-phases %standard-phases |
574 | (add-before 'build 'pre-build | |
575 | (lambda _ | |
576 | ;; This test uses /etc/fstab as an example file to read | |
577 | ;; from; choose a better example. | |
578 | (substitute* "tests/giomm_simple/main.cc" | |
579 | (("/etc/fstab") | |
580 | (string-append (getcwd) | |
581 | "/tests/giomm_simple/main.cc"))) | |
582 | ||
583 | ;; This test does a DNS lookup, and then expects to be able | |
584 | ;; to open a TLS session; just skip it. | |
585 | (substitute* "tests/giomm_tls_client/main.cc" | |
586 | (("Gio::init.*$") | |
587 | "return 77;\n")) | |
588 | #t))))) | |
41eb1198 LC |
589 | (native-inputs `(("pkg-config" ,pkg-config) |
590 | ("glib" ,glib "bin"))) | |
a5a7d374 LC |
591 | (propagated-inputs |
592 | `(("libsigc++" ,libsigc++) | |
593 | ("glib" ,glib))) | |
8e933cb3 | 594 | (home-page "https://gtkmm.org/") |
a5a7d374 LC |
595 | (synopsis "C++ interface to the GLib library") |
596 | (description | |
35b9e423 | 597 | "Glibmm provides a C++ programming interface to the part of GLib that are |
a5a7d374 LC |
598 | useful for C++.") |
599 | (license license:lgpl2.1+))) | |
a1de06b6 EB |
600 | |
601 | (define-public python2-pygobject-2 | |
602 | (package | |
603 | (name "python2-pygobject") | |
604 | ;; This was the last version to declare the 2.0 platform number, i.e. its | |
605 | ;; pkg-config files were named pygobject-2.0.pc | |
30e43e81 | 606 | (version "2.28.7") |
a1de06b6 EB |
607 | (source |
608 | (origin | |
609 | (method url-fetch) | |
610 | (uri (string-append "mirror://gnome/sources/pygobject/" | |
611 | (version-major+minor version) | |
612 | "/pygobject-" version ".tar.xz")) | |
613 | (sha256 | |
614 | (base32 | |
30e43e81 | 615 | "0nkam61rsn7y3wik3vw46wk5q2cjfh2iph57hl9m39rc8jijb7dv")) |
fc1adab1 AK |
616 | (patches (search-patches |
617 | "python2-pygobject-2-gi-info-type-error-domain.patch")))) | |
a1de06b6 EB |
618 | (build-system gnu-build-system) |
619 | (native-inputs | |
620 | `(("which" ,which) | |
621 | ("glib-bin" ,glib "bin") ;for tests: glib-compile-schemas | |
622 | ("pkg-config" ,pkg-config) | |
623 | ("dbus" ,dbus))) ;for tests | |
624 | (inputs | |
625 | `(("python" ,python-2) | |
626 | ("glib" ,glib) | |
7ca0dbc3 | 627 | ("python2-pycairo" ,python2-pycairo) |
a1de06b6 EB |
628 | ("gobject-introspection" ,gobject-introspection))) |
629 | (propagated-inputs | |
630 | `(("libffi" ,libffi))) ;mentioned in pygobject-2.0.pc | |
631 | (arguments | |
632 | `(#:tests? #f ;segfaults during tests | |
633 | #:configure-flags '("LIBS=-lcairo-gobject"))) | |
634 | (home-page "https://pypi.python.org/pypi/PyGObject") | |
635 | (synopsis "Python bindings for GObject") | |
636 | (description | |
637 | "Python bindings for GLib, GObject, and GIO.") | |
638 | (license license:lgpl2.1+))) | |
639 | ||
640 | (define-public python-pygobject | |
641 | (package | |
642 | (name "python-pygobject") | |
74f3fdbd | 643 | (version "3.28.3") |
a1de06b6 EB |
644 | (source |
645 | (origin | |
646 | (method url-fetch) | |
647 | (uri (string-append "mirror://gnome/sources/pygobject/" | |
648 | (version-major+minor version) | |
649 | "/pygobject-" version ".tar.xz")) | |
650 | (sha256 | |
651 | (base32 | |
74f3fdbd | 652 | "1c6h3brzlyvzbpdsammnd957azmp6cbzqrd65r400vnh2l8f5lrx")))) |
a1de06b6 | 653 | (build-system gnu-build-system) |
d2e1da18 RW |
654 | (arguments |
655 | `(#:phases | |
656 | (modify-phases %standard-phases | |
657 | (add-after 'unpack 'delete-broken-tests | |
658 | (lambda _ | |
659 | ;; FIXME: this test freezes and times out. | |
660 | (delete-file "tests/test_mainloop.py") | |
661 | ;; FIXME: this test fails with this kind of error: | |
662 | ;; AssertionError: <Handlers.SIG_IGN: 1> != <built-in function default_int_handler | |
663 | (delete-file "tests/test_ossig.py") | |
664 | #t))))) | |
a1de06b6 | 665 | (native-inputs |
8a831c6f | 666 | `(("which" ,which) |
ae40e02c KK |
667 | ;for tests: dbus-run-session and glib-compile-schemas |
668 | ("dbus" ,dbus) | |
669 | ("glib-bin" ,glib "bin") | |
59f6dfe5 RW |
670 | ("pkg-config" ,pkg-config) |
671 | ("python-pytest" ,python-pytest))) | |
a1de06b6 EB |
672 | (inputs |
673 | `(("python" ,python) | |
a1de06b6 | 674 | ("python-pycairo" ,python-pycairo) |
fa7cf82e SB |
675 | ("gobject-introspection" ,gobject-introspection))) |
676 | (propagated-inputs | |
677 | ;; pygobject-3.0.pc refers to all these. | |
678 | `(("glib" ,glib) | |
a1de06b6 | 679 | ("libffi" ,libffi))) |
e28f95a9 SB |
680 | ;; For finding typelib files, since gobject-introscpetion isn't propagated. |
681 | (native-search-paths (package-native-search-paths gobject-introspection)) | |
594a362b | 682 | (home-page "https://live.gnome.org/PyGObject") |
a1de06b6 EB |
683 | (synopsis "Python bindings for GObject") |
684 | (description | |
685 | "Python bindings for GLib, GObject, and GIO.") | |
00f2bf34 LC |
686 | (license license:lgpl2.1+) |
687 | (properties `((python2-variant . ,(delay python2-pygobject)))))) | |
7873318d | 688 | |
0f49d7ba | 689 | (define-public python2-pygobject |
00f2bf34 | 690 | (package (inherit (strip-python2-variant python-pygobject)) |
0f49d7ba RW |
691 | (name "python2-pygobject") |
692 | (inputs | |
693 | `(("python" ,python-2) | |
0f49d7ba | 694 | ("python-pycairo" ,python2-pycairo) |
1b043aeb RW |
695 | ("gobject-introspection" ,gobject-introspection))) |
696 | (native-inputs | |
8a831c6f | 697 | `(("which" ,which) |
1b043aeb RW |
698 | ;for tests: dbus-run-session and glib-compile-schemas |
699 | ("dbus" ,dbus) | |
700 | ("glib-bin" ,glib "bin") | |
701 | ("pkg-config" ,pkg-config) | |
702 | ("python-pytest" ,python2-pytest))))) | |
0f49d7ba | 703 | |
451f6e30 AV |
704 | (define-public perl-glib |
705 | (package | |
706 | (name "perl-glib") | |
93394133 | 707 | (version "1.329") |
451f6e30 AV |
708 | (source (origin |
709 | (method url-fetch) | |
710 | (uri (string-append | |
711 | "mirror://cpan/authors/id/X/XA/XAOC/Glib-" | |
712 | version ".tar.gz")) | |
713 | (sha256 | |
714 | (base32 | |
93394133 | 715 | "0d9ak0zknz81lv3cqkzr2mxdic6g5rrbb87skqc4jj48rz4f2k3v")))) |
451f6e30 AV |
716 | (build-system perl-build-system) |
717 | (native-inputs | |
718 | `(("perl-extutils-depends" ,perl-extutils-depends) | |
719 | ("perl-extutils-pkgconfig" ,perl-extutils-pkgconfig))) | |
720 | (inputs | |
721 | `(("glib" ,glib))) | |
9aba9b12 | 722 | (home-page "https://metacpan.org/release/Glib") |
451f6e30 AV |
723 | (synopsis "Perl wrappers for the GLib utility and Object libraries") |
724 | (description "This module provides perl access to GLib and GLib's GObject | |
725 | libraries. GLib is a portability and utility library; GObject provides a | |
726 | generic type system with inheritance and a powerful signal system. Together | |
727 | these libraries are used as the foundation for many of the libraries that make | |
728 | up the Gnome environment, and are used in many unrelated projects.") | |
729 | (license license:lgpl2.1+))) | |
730 | ||
7873318d AE |
731 | (define telepathy-glib |
732 | (package | |
733 | (name "telepathy-glib") | |
734 | (version "0.24.1") | |
735 | (source | |
736 | (origin | |
737 | (method url-fetch) | |
738 | (uri | |
739 | (string-append | |
5cc3096c | 740 | "https://telepathy.freedesktop.org/releases/telepathy-glib/" |
7873318d AE |
741 | "telepathy-glib-" version ".tar.gz")) |
742 | (sha256 | |
743 | (base32 | |
7f48be41 SB |
744 | "1symyzbjmxvksn2ifdkk50lafjm2llf2sbmky062gq2pz3cg23cy")) |
745 | (patches | |
746 | (list | |
747 | ;; Don't use the same test name for multiple tests. | |
748 | ;; <https://bugs.freedesktop.org/show_bug.cgi?id=92245> | |
749 | (origin | |
750 | (method url-fetch) | |
751 | (uri "https://bugs.freedesktop.org/attachment.cgi?id=118608") | |
752 | (file-name (string-append "telepathy-glib-duplicate-tests.patch")) | |
753 | (sha256 | |
754 | (base32 | |
755 | "0z261fwrszxb28ccg3hsg9rizig4s84zvwmx6y31a4pyv7bvs5w3"))))))) | |
7873318d | 756 | (build-system gnu-build-system) |
c73d4c59 | 757 | (arguments |
df09e1d6 LC |
758 | '(#:configure-flags '("--enable-vala-bindings") |
759 | ||
760 | ;; '../tools/glib-*.py' generate files but the target dependencies are | |
761 | ;; (presumably) not fully specified in the makefile, leading to | |
762 | ;; parallel build errors like: | |
763 | ;; | |
764 | ;; EOFError: EOF read where object expected | |
765 | ;; make[2]: *** [Makefile:1906: _gen/register-dbus-glib-marshallers-body.h] Error 1 | |
766 | #:parallel-build? #f)) | |
7873318d AE |
767 | (native-inputs |
768 | `(("glib" ,glib "bin") ; uses glib-mkenums | |
d2ab0e90 | 769 | ("gobject-introspection" ,gobject-introspection) |
7873318d | 770 | ("pkg-config" ,pkg-config) |
d2ab0e90 | 771 | ("python" ,python-2) |
c73d4c59 | 772 | ("vala" ,vala) |
d2ab0e90 SB |
773 | ("xsltproc" ,libxslt))) |
774 | (propagated-inputs | |
775 | ;; There are all in the Requires.private field of telepathy-glib.pc. | |
7873318d AE |
776 | `(("dbus" ,dbus) |
777 | ("dbus-glib" ,dbus-glib) | |
d2ab0e90 | 778 | ("glib" ,glib))) |
57e7d748 | 779 | (home-page "https://telepathy.freedesktop.org/wiki/") |
7873318d AE |
780 | (synopsis "GLib Real-time communications framework over D-Bus") |
781 | (description "Telepathy is a flexible, modular communications framework | |
782 | that enables real-time communication over D-Bus via pluggable protocol | |
783 | backends. Telepathy is a communications service that can be accessed by | |
784 | many applications simultaneously. | |
785 | ||
786 | This package provides the library for GLib applications.") | |
787 | (license license:lgpl2.1+))) | |
89eb7581 | 788 | |
89eb7581 LG |
789 | (define-public dbus-c++ |
790 | (package | |
791 | (name "dbus-c++") | |
792 | (version "0.9.0") | |
793 | (source (origin | |
794 | (method url-fetch) | |
795 | (uri | |
796 | (string-append | |
797 | "mirror://sourceforge/dbus-cplusplus/dbus-c%2B%2B/" | |
798 | version "/libdbus-c%2B%2B-" version ".tar.gz")) | |
799 | (file-name (string-append name "-" version ".tar.gz")) | |
800 | (sha256 | |
801 | (base32 | |
802 | "0qafmy2i6dzx4n1dqp6pygyy6gjljnb7hwjcj2z11c1wgclsq4dw")))) | |
803 | (build-system gnu-build-system) | |
804 | (propagated-inputs | |
805 | `(("dbus" ,dbus))) ;mentioned in the pkg-config file | |
806 | (inputs | |
807 | `(("efl" ,efl) | |
808 | ("expat" ,expat) | |
809 | ("glib" ,glib))) | |
810 | (native-inputs | |
811 | `(("pkg-config" ,pkg-config))) | |
812 | (arguments | |
813 | `(;; The 'configure' machinery fails to detect that it needs -lpthread. | |
814 | #:configure-flags (list "LDFLAGS=-lpthread") | |
815 | #:phases | |
816 | (modify-phases %standard-phases | |
817 | (add-before 'configure 'add-missing-header | |
818 | (lambda _ | |
819 | (substitute* "include/dbus-c++/eventloop-integration.h" | |
820 | (("#include <errno.h>") | |
821 | "#include <errno.h>\n#include <unistd.h>"))))))) | |
822 | (synopsis "D-Bus API for C++") | |
823 | (description "This package provides D-Bus client API bindings for the C++ | |
add43093 | 824 | programming language. It also contains the utility |
89eb7581 LG |
825 | @command{dbuscxx-xml2cpp}.") |
826 | (home-page "https://sourceforge.net/projects/dbus-cplusplus/") | |
d06ce046 | 827 | (license license:lgpl2.1+))) |
7b83b695 DC |
828 | |
829 | (define-public appstream-glib | |
830 | (package | |
831 | (name "appstream-glib") | |
0d6f2ea1 | 832 | (version "0.7.15") |
7b83b695 DC |
833 | (source (origin |
834 | (method url-fetch) | |
835 | (uri (string-append "https://people.freedesktop.org/~hughsient/" | |
836 | "appstream-glib/releases/" | |
837 | "appstream-glib-" version ".tar.xz")) | |
838 | (sha256 | |
839 | (base32 | |
0d6f2ea1 | 840 | "17ram4j3cvs78si0gi1labarr91pw68zn8kam41cqbvlwdyr89vy")))) |
318bc429 | 841 | (build-system meson-build-system) |
7b83b695 | 842 | (native-inputs |
318bc429 TGR |
843 | `(("gettext" ,gettext-minimal) |
844 | ("glib:bin" ,glib "bin") ; for glib-compile-resources | |
845 | ("pkg-config" ,pkg-config))) | |
a48b877e DM |
846 | (propagated-inputs |
847 | `(("gcab" ,gcab) ; for .pc file | |
848 | ("gdk-pixbuf" ,gdk-pixbuf) ; for .pc file | |
849 | ("util-linux" ,util-linux))) ; for .pc file | |
7b83b695 | 850 | (inputs |
a48b877e | 851 | `(("glib" ,glib) |
318bc429 | 852 | ("gperf" ,gperf) |
7b83b695 DC |
853 | ("gtk+" ,gtk+) |
854 | ("json-glib" ,json-glib) | |
855 | ("libarchive" ,libarchive) | |
856 | ("libsoup" ,libsoup) | |
a48b877e | 857 | ("libyaml" ,libyaml))) |
7b83b695 DC |
858 | (arguments |
859 | `(#:configure-flags | |
b1de6129 TGR |
860 | (list "-Ddep11=false" |
861 | "-Dintrospection=false" ; avoid g-ir-scanner dependency | |
862 | "-Drpm=false" | |
863 | "-Dstemmer=false") | |
7b83b695 DC |
864 | #:phases |
865 | (modify-phases %standard-phases | |
866 | (add-after 'unpack 'patch-tests | |
867 | (lambda _ | |
868 | (substitute* "libappstream-glib/as-self-test.c" | |
318bc429 | 869 | (("g_test_add_func.*as_test_store_local_appdata_func);") "")) |
7b83b695 DC |
870 | #t))))) |
871 | (home-page "https://github.com/hughsie/appstream-glib") | |
872 | (synopsis "Library for reading and writing AppStream metadata") | |
873 | (description "This library provides objects and helper methods to help | |
874 | reading and writing @uref{https://www.freedesktop.org/wiki/Distributions/AppStream,AppStream} | |
875 | metadata.") | |
876 | (license license:lgpl2.1+))) | |
a372c4da P |
877 | |
878 | (define perl-net-dbus | |
879 | (package | |
880 | (name "perl-net-dbus") | |
881 | (version "1.1.0") | |
882 | (source | |
883 | (origin | |
884 | (method url-fetch) | |
885 | (uri (string-append "mirror://cpan/authors/id/D/DA/DANBERR/Net-DBus-" | |
886 | version ".tar.gz")) | |
887 | (sha256 | |
888 | (base32 | |
889 | "0sg2w147b9r9ykfzjs7y9qxry73xkjnhnk4qf95kfv79p5nnk4c3")))) | |
890 | (build-system perl-build-system) | |
891 | (native-inputs | |
892 | `(("pkg-config" ,pkg-config) | |
893 | ("perl-test-pod" ,perl-test-pod) | |
894 | ("perl-test-pod-coverage" ,perl-test-pod-coverage))) | |
895 | (inputs | |
896 | `(("dbus" ,dbus))) | |
897 | (propagated-inputs | |
898 | `(("perl-xml-twig" ,perl-xml-twig))) | |
9aba9b12 | 899 | (home-page "https://metacpan.org/release/Net-DBus") |
a372c4da P |
900 | (synopsis "Extension for the DBus bindings") |
901 | (description "@code{Net::DBus} provides a Perl XS API to the DBus | |
902 | inter-application messaging system. The Perl API covers the core base level | |
903 | of the DBus APIs, not concerning itself yet with the GLib or QT wrappers.") | |
904 | (license license:perl-license))) | |
fc4083c5 P |
905 | |
906 | (define perl-net-dbus-glib | |
907 | (package | |
908 | (name "perl-net-dbus-glib") | |
909 | (version "0.33.0") | |
910 | (source | |
911 | (origin | |
912 | (method url-fetch) | |
913 | (uri (string-append "mirror://cpan/authors/id/D/DA/DANBERR/" | |
914 | "Net-DBus-GLib-" version ".tar.gz")) | |
915 | (sha256 | |
916 | (base32 | |
917 | "1z4mbv8z0rad604xahijpg5szzi8qak07hbahh230z4jf96fkxvj")))) | |
918 | (build-system perl-build-system) | |
919 | (native-inputs | |
920 | `(("pkg-config" ,pkg-config))) | |
921 | (inputs | |
922 | `(("dbus-glib" ,dbus-glib))) | |
9aba9b12 | 923 | (home-page "https://metacpan.org/release/Net-DBus-GLib") |
fc4083c5 P |
924 | (synopsis "Perl extension for the DBus GLib bindings") |
925 | (description "This package provides an extension to the @code{Net::DBus} | |
926 | module allowing integration with the GLib mainloop. To integrate with the | |
927 | main loop, simply get a connection to the bus via the methods in | |
928 | @code{Net::DBus::GLib} rather than the usual @code{Net::DBus} module. Every | |
929 | other API remains the same.") | |
930 | (license license:gpl2+))) |