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