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