Commit | Line | Data |
---|---|---|
3889a82e | 1 | ;;; GNU Guix --- Functional package management for GNU |
88c6b580 | 2 | ;;; Copyright © 2013, 2014, 2015 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> |
11163131 | 5 | ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> |
3889a82e NK |
6 | ;;; |
7 | ;;; This file is part of GNU Guix. | |
8 | ;;; | |
9 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
10 | ;;; under the terms of the GNU General Public License as published by | |
11 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
12 | ;;; your option) any later version. | |
13 | ;;; | |
14 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
15 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | ;;; GNU General Public License for more details. | |
18 | ;;; | |
19 | ;;; You should have received a copy of the GNU General Public License | |
20 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
21 | ||
943f33a3 | 22 | (define-module (gnu packages glib) |
b5b73a82 | 23 | #:use-module ((guix licenses) #:prefix license:) |
3889a82e NK |
24 | #:use-module (guix packages) |
25 | #:use-module (guix download) | |
a1de06b6 | 26 | #:use-module (guix utils) |
3889a82e | 27 | #:use-module (guix build-system gnu) |
943f33a3 LC |
28 | #:use-module (gnu packages) |
29 | #:use-module (gnu packages base) | |
9ceb630c | 30 | #:use-module (gnu packages bison) |
943f33a3 | 31 | #:use-module (gnu packages compression) |
9ceb630c | 32 | #:use-module (gnu packages flex) |
1dba6407 | 33 | #:use-module (gnu packages gettext) |
9ceb630c | 34 | #:use-module (gnu packages gtk) |
943f33a3 | 35 | #:use-module (gnu packages libffi) |
d6b8cb5c | 36 | #:use-module (gnu packages perl) |
943f33a3 LC |
37 | #:use-module (gnu packages pkg-config) |
38 | #:use-module (gnu packages python) | |
7bc5cc2b | 39 | #:use-module (gnu packages xml) |
5aa601a3 | 40 | #:use-module (gnu packages bash) |
80370441 | 41 | #:use-module (gnu packages file) |
a1de06b6 | 42 | #:use-module (gnu packages which) |
80370441 | 43 | #:use-module (gnu packages xorg) |
a5a7d374 | 44 | #:use-module (gnu packages m4) |
943f33a3 | 45 | |
80370441 LC |
46 | ;; Export variables up-front to allow circular dependency with the 'xorg' |
47 | ;; module. | |
48 | #:export (dbus | |
49 | glib | |
6ac6a6b9 | 50 | gobject-introspection |
80370441 LC |
51 | dbus-glib |
52 | intltool | |
a5a7d374 LC |
53 | itstool |
54 | libsigc++ | |
7873318d AE |
55 | glibmm |
56 | telepathy-glib)) | |
80370441 LC |
57 | |
58 | (define dbus | |
943f33a3 LC |
59 | (package |
60 | (name "dbus") | |
11163131 | 61 | (version "1.8.12") |
943f33a3 LC |
62 | (source (origin |
63 | (method url-fetch) | |
64 | (uri | |
65 | (string-append "http://dbus.freedesktop.org/releases/dbus/dbus-" | |
66 | version ".tar.gz")) | |
67 | (sha256 | |
68 | (base32 | |
11163131 | 69 | "07jhcalg00i2rx5zrgk73rg0vm7lzi5q5z2gscrbl999ipr2h569")) |
01eafd38 | 70 | (patches (list (search-patch "dbus-localstatedir.patch"))))) |
943f33a3 | 71 | (build-system gnu-build-system) |
8eaa8a3b LC |
72 | (arguments |
73 | '(#:configure-flags (list ;; Install the system bus socket under /var. | |
74 | "--localstatedir=/var" | |
75 | ||
76 | ;; XXX: Fix the following to allow system-wide | |
77 | ;; config. | |
78 | ;; "--sysconfdir=/etc" | |
79 | ||
8fa9ff20 LC |
80 | "--with-session-socket-dir=/tmp") |
81 | #:phases (alist-cons-after | |
82 | 'install 'post-install | |
83 | (lambda* (#:key outputs #:allow-other-keys) | |
84 | ;; 'dbus-launch' bails out if the 'session.d' directory | |
85 | ;; below is missing, so create it along with its companion. | |
86 | (let ((out (assoc-ref outputs "out"))) | |
87 | (mkdir (string-append out "/etc/dbus-1/session.d")) | |
88 | (mkdir (string-append out "/etc/dbus-1/system.d")) | |
89 | #t)) | |
90 | %standard-phases))) | |
708be46b LC |
91 | (native-inputs |
92 | `(("pkg-config" ,pkg-config))) | |
943f33a3 | 93 | (inputs |
d6b8cb5c | 94 | `(("expat" ,expat) |
80370441 LC |
95 | |
96 | ;; Add a dependency on libx11 so that 'dbus-launch' has support for | |
97 | ;; '--autolaunch'. | |
98 | ("libx11" ,libx11))) | |
99 | ||
943f33a3 LC |
100 | (home-page "http://dbus.freedesktop.org/") |
101 | (synopsis "Message bus for inter-process communication (IPC)") | |
102 | (description | |
103 | "D-Bus is a message bus system, a simple way for applications to | |
35b9e423 | 104 | talk to one another. In addition to interprocess communication, D-Bus |
943f33a3 LC |
105 | helps coordinate process lifecycle; it makes it simple and reliable to |
106 | code a \"single instance\" application or daemon, and to launch | |
107 | applications and daemons on demand when their services are needed. | |
108 | ||
109 | D-Bus supplies both a system daemon (for events such as \"new hardware | |
110 | device added\" or \"printer queue changed\") and a | |
111 | per-user-login-session daemon (for general IPC needs among user | |
35b9e423 | 112 | applications). Also, the message bus is built on top of a general |
943f33a3 LC |
113 | one-to-one message passing framework, which can be used by any two apps |
114 | to communicate directly (without going through the message bus | |
35b9e423 | 115 | daemon). Currently the communicating applications are on one computer, |
943f33a3 LC |
116 | or through unencrypted TCP/IP suitable for use behind a firewall with |
117 | shared NFS home directories.") | |
d6b8cb5c | 118 | (license license:gpl2+))) ; or Academic Free License 2.1 |
3889a82e | 119 | |
80370441 | 120 | (define glib |
3889a82e NK |
121 | (package |
122 | (name "glib") | |
ee28fc64 | 123 | (version "2.42.1") |
3889a82e NK |
124 | (source (origin |
125 | (method url-fetch) | |
785db4d8 | 126 | (uri (string-append "mirror://gnome/sources/" |
d274f499 | 127 | name "/" (string-take version 4) "/" |
943f33a3 | 128 | name "-" version ".tar.xz")) |
3889a82e | 129 | (sha256 |
f47f6761 | 130 | (base32 |
ee28fc64 | 131 | "16pqvikrps1fvwwqvk0qi4a13mfg7gw6w5qfhk7bhi8f51jhhgwg")) |
01eafd38 LC |
132 | (patches (list (search-patch "glib-tests-homedir.patch") |
133 | (search-patch "glib-tests-desktop.patch") | |
ca9ea1a8 | 134 | (search-patch "glib-tests-prlimit.patch") |
36d2a3af LC |
135 | (search-patch "glib-tests-timer.patch") |
136 | (search-patch "glib-tests-gapplication.patch"))))) | |
3889a82e | 137 | (build-system gnu-build-system) |
426adbe8 LC |
138 | (outputs '("out" ; everything |
139 | "bin" ; glib-mkenums, gtester, etc.; depends on Python | |
140 | "doc")) ; 20 MiB of GTK-Doc reference | |
3889a82e NK |
141 | (inputs |
142 | `(("coreutils" ,coreutils) | |
3889a82e | 143 | ("libffi" ,libffi) |
c4c4cc05 JD |
144 | ("zlib" ,zlib) |
145 | ("tzdata" ,tzdata))) ; for tests/gdatetime.c | |
146 | (native-inputs | |
59bad04f | 147 | `(("gettext" ,gnu-gettext) |
c4c4cc05 | 148 | ("dbus" ,dbus) ; for GDBus tests |
3889a82e | 149 | ("pkg-config" ,pkg-config) |
ee3e314b | 150 | ("python" ,python-wrapper) |
943f33a3 | 151 | ("perl" ,perl) ; needed by GIO tests |
c4c4cc05 | 152 | ("bash" ,bash))) |
943f33a3 | 153 | (arguments |
01eafd38 | 154 | '(#:phases (alist-cons-before |
943f33a3 LC |
155 | 'build 'pre-build |
156 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
7bc5cc2b LC |
157 | ;; For tests/gdatetime.c. |
158 | (setenv "TZDIR" | |
159 | (string-append (assoc-ref inputs "tzdata") | |
160 | "/share/zoneinfo")) | |
161 | ||
162 | ;; Some tests want write access there. | |
163 | (setenv "XDG_CACHE_HOME" (getcwd)) | |
164 | ||
943f33a3 LC |
165 | (substitute* '("glib/gspawn.c" |
166 | "glib/tests/utils.c" | |
167 | "tests/spawn-test.c") | |
7bc5cc2b | 168 | (("/bin/sh") |
ee28fc64 MW |
169 | (string-append (assoc-ref inputs "bash") "/bin/sh"))) |
170 | ||
171 | ;; Disable a test that requires dbus. | |
172 | (substitute* "gio/tests/gdbus-serialization.c" | |
173 | (("g_test_add_func \\(\"/gdbus/message-serialize/double-array\", test_double_array\\);" all) | |
174 | (string-append "/* " all " */")))) | |
943f33a3 LC |
175 | %standard-phases) |
176 | ||
177 | ;; Note: `--docdir' and `--htmldir' are not honored, so work around it. | |
178 | #:configure-flags (list (string-append "--with-html-dir=" | |
179 | (assoc-ref %outputs "doc") | |
00585a55 LC |
180 | "/share/gtk-doc")) |
181 | ||
182 | ;; In 'gio/tests', 'gdbus-test-codegen-generated.h' is #included in a | |
183 | ;; file that gets compiled possibly before it has been fully generated. | |
184 | #:parallel-tests? #f)) | |
ce2df078 LC |
185 | |
186 | (native-search-paths | |
187 | ;; This variable is not really "owned" by GLib, but several related | |
188 | ;; packages refer to it: gobject-introspection's tools use it as a search | |
189 | ;; path for .gir files, and it's also a search path for schemas produced | |
190 | ;; by 'glib-compile-schemas'. | |
191 | (list (search-path-specification | |
192 | (variable "XDG_DATA_DIRS") | |
af070955 | 193 | (files '("share"))))) |
ce2df078 LC |
194 | (search-paths native-search-paths) |
195 | ||
f50d2669 | 196 | (synopsis "Thread-safe general utility library; basis of GTK+ and GNOME") |
3889a82e NK |
197 | (description |
198 | "GLib provides data structure handling for C, portability wrappers, | |
199 | and interfaces for such runtime functionality as an event loop, threads, | |
200 | dynamic loading, and an object system.") | |
201 | (home-page "http://developer.gnome.org/glib/") | |
d6b8cb5c | 202 | (license license:lgpl2.0+))) ; some files are under lgpl2.1+ |
71eb5c10 | 203 | |
6ac6a6b9 | 204 | (define gobject-introspection |
9ceb630c CR |
205 | (package |
206 | (name "gobject-introspection") | |
2474b81d | 207 | (version "1.42.0") |
9ceb630c CR |
208 | (source (origin |
209 | (method url-fetch) | |
210 | (uri (string-append "http://ftp.gnome.org/pub/GNOME/sources/" | |
2474b81d FB |
211 | "gobject-introspection/" (version-major+minor version) |
212 | "/gobject-introspection-" version ".tar.xz")) | |
9ceb630c | 213 | (sha256 |
2474b81d FB |
214 | (base32 "1xwm7wmr9r9wp6xljb3bckx3a4siybavaq39w46ly7gpskxfv8iv")) |
215 | (patches (list | |
216 | (search-patch "gobject-introspection-cc.patch") | |
94987ebe FB |
217 | (search-patch |
218 | "gobject-introspection-girepository.patch") | |
2474b81d FB |
219 | (search-patch |
220 | "gobject-introspection-absolute-shlib-path.patch"))))) | |
9ceb630c CR |
221 | (build-system gnu-build-system) |
222 | (inputs | |
223 | `(("bison" ,bison) | |
224 | ("cairo" ,cairo) | |
225 | ("flex" ,flex) | |
226 | ("glib" ,glib) | |
9ceb630c CR |
227 | ("pkg-config" ,pkg-config) |
228 | ("python-2" ,python-2))) | |
426adbe8 LC |
229 | (native-inputs |
230 | `(("glib" ,glib "bin"))) | |
af949e8e CR |
231 | (propagated-inputs |
232 | `(;; In practice, GIR users will need libffi when using | |
233 | ;; gobject-introspection. | |
234 | ("libffi" ,libffi))) | |
5a4753a6 FB |
235 | (native-search-paths |
236 | (list (search-path-specification | |
237 | (variable "GI_TYPELIB_PATH") | |
af070955 | 238 | (files '("lib/girepository-1.0"))))) |
5a4753a6 | 239 | (search-paths native-search-paths) |
9ceb630c | 240 | (arguments |
2474b81d FB |
241 | `(;; The patch 'gobject-introspection-absolute-shlib-path.patch' causes |
242 | ;; some tests to fail. | |
243 | #:tests? #f | |
244 | #:phases | |
d4bf49b1 EB |
245 | (alist-cons-before |
246 | 'configure 'patch-paths | |
247 | (lambda _ | |
503c5f6d | 248 | (substitute* "giscanner/sourcescanner.py" |
d4bf49b1 | 249 | (("GUIX_GCC_PATH") (which "gcc")))) |
9ceb630c CR |
250 | %standard-phases))) |
251 | (home-page "https://wiki.gnome.org/GObjectIntrospection") | |
252 | (synopsis "Generate interface introspection data for GObject libraries") | |
253 | (description | |
254 | "GObject introspection is a middleware layer between C libraries (using | |
255 | GObject) and language bindings. The C library can be scanned at compile time | |
256 | and generate a metadata file, in addition to the actual native C library. Then | |
257 | at runtime, language bindings can read this metadata and automatically provide | |
258 | bindings to call into the C library.") | |
259 | ; Some bits are distributed under the LGPL2+, others under the GPL2+ | |
260 | (license license:gpl2+))) | |
261 | ||
80370441 | 262 | (define intltool |
71eb5c10 LC |
263 | (package |
264 | (name "intltool") | |
d6b8cb5c | 265 | (version "0.50.2") |
71eb5c10 LC |
266 | (source (origin |
267 | (method url-fetch) | |
d6b8cb5c AE |
268 | (uri (string-append "https://launchpad.net/intltool/trunk/" |
269 | version "/+download/intltool-" | |
270 | version ".tar.gz")) | |
71eb5c10 LC |
271 | (sha256 |
272 | (base32 | |
d6b8cb5c | 273 | "01j4yd7i84n9nk4ccs6yifg84pp68nr9by57jdbhj7dpdxf5rwk7")))) |
71eb5c10 | 274 | (build-system gnu-build-system) |
93882f0e EB |
275 | (inputs |
276 | `(("file" ,file))) | |
71eb5c10 | 277 | (propagated-inputs |
107b415e LC |
278 | `(;; Propagate gettext because users expect it to be there, and so does |
279 | ;; the `intltool-update' script. | |
1dba6407 | 280 | ("gettext" ,gnu-gettext) |
107b415e | 281 | |
e33d9d6f | 282 | ("perl-xml-parser" ,perl-xml-parser) |
107b415e | 283 | ("perl" ,perl))) |
93882f0e EB |
284 | (arguments |
285 | `(#:phases (alist-cons-after | |
286 | 'unpack 'patch-file-references | |
287 | (lambda* (#:key inputs #:allow-other-keys) | |
288 | (let ((file (assoc-ref inputs "file"))) | |
289 | (substitute* "intltool-update.in" | |
290 | (("`file") (string-append "`" file "/bin/file"))))) | |
291 | %standard-phases))) | |
d6b8cb5c AE |
292 | (home-page "https://launchpad.net/intltool/+download") |
293 | (synopsis "Tools to centralise translations of different file formats") | |
71eb5c10 | 294 | (description |
35b9e423 | 295 | "Intltool is a set of tools to centralise translations of many different |
71eb5c10 LC |
296 | file formats using GNU gettext-compatible PO files. |
297 | ||
298 | The intltool collection can be used to do these things: | |
299 | ||
300 | Extract translatable strings from various source files (.xml.in, | |
301 | glade, .desktop.in, .server.in, .oaf.in). | |
302 | ||
303 | Collect the extracted strings together with messages from traditional | |
304 | source files (.c, .h) in po/$(PACKAGE).pot. | |
305 | ||
306 | Merge back the translations from .po files into .xml, .desktop and | |
35b9e423 | 307 | oaf files. This merge step will happen at build resp. installation time.") |
d6b8cb5c | 308 | (license license:gpl2+))) |
24b5c463 | 309 | |
80370441 | 310 | (define itstool |
20a26ff5 CR |
311 | (package |
312 | (name "itstool") | |
313 | (version "1.2.0") | |
314 | (source (origin | |
315 | (method url-fetch) | |
316 | (uri (string-append "http://files.itstool.org/itstool/itstool-" | |
317 | version ".tar.bz2")) | |
318 | (sha256 | |
319 | (base32 | |
320 | "1akq75aflihm3y7js8biy7b5mw2g11vl8yq90gydnwlwp0zxdzj6")))) | |
321 | (build-system gnu-build-system) | |
f922fc42 AE |
322 | (propagated-inputs |
323 | `(("libxml2" ,libxml2) | |
324 | ("python-2" ,python-2))) | |
20a26ff5 CR |
325 | (home-page "http://www.itstool.org") |
326 | (synopsis "Tool to translate XML documents with PO files") | |
327 | (description | |
328 | "ITS Tool allows you to translate your XML documents with PO files, using | |
329 | rules from the W3C Internationalization Tag Set (ITS) to determine what to | |
330 | translate and how to separate it into PO file messages. | |
331 | ||
332 | PO files are the standard translation format for GNU and other Unix-like | |
333 | systems. They present translatable information as discrete messages, allowing | |
334 | each message to be translated independently. In contrast to whole-page | |
335 | translation, translating with a message-based format like PO means you can | |
336 | easily track changes to the source document down to the paragraph. When new | |
337 | strings are added or existing strings are modified, you only need to update the | |
338 | corresponding messages. | |
339 | ||
340 | ITS Tool is designed to make XML documents translatable through PO files by | |
341 | applying standard ITS rules, as well as extension rules specific to ITS Tool. | |
342 | ITS also provides an industry standard way for authors to override translation | |
343 | information in their documents, such as whether a particular element should be | |
344 | translated.") | |
a129e0d8 | 345 | (license license:gpl3+))) |
20a26ff5 | 346 | |
80370441 | 347 | (define dbus-glib |
24b5c463 AE |
348 | (package |
349 | (name "dbus-glib") | |
4b1b3877 | 350 | (version "0.102") |
24b5c463 AE |
351 | (source (origin |
352 | (method url-fetch) | |
353 | (uri | |
354 | (string-append "http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-" | |
355 | version ".tar.gz")) | |
356 | (sha256 | |
357 | (base32 | |
4b1b3877 | 358 | "177j5p2vrvpmzk2xrrj6akn73kvpbvnmsjvlmca9l55qbdcfsr39")))) |
24b5c463 AE |
359 | (build-system gnu-build-system) |
360 | (inputs | |
361 | `(("dbus" ,dbus) | |
362 | ("expat" ,expat) | |
44add1ce LC |
363 | ("glib" ,glib))) |
364 | (native-inputs | |
365 | `(("glib" ,glib "bin") | |
24b5c463 AE |
366 | ("pkg-config" ,pkg-config))) |
367 | (home-page "http://dbus.freedesktop.org/doc/dbus-glib/") | |
368 | (synopsis "D-Bus GLib bindings") | |
369 | (description | |
370 | "GLib bindings for D-Bus. The package is obsolete and superseded | |
371 | by GDBus included in Glib.") | |
372 | (license license:gpl2))) ; or Academic Free License 2.1 | |
a5a7d374 LC |
373 | |
374 | (define libsigc++ | |
375 | (package | |
376 | (name "libsigc++") | |
377 | (version "2.3.1") | |
378 | (source (origin | |
379 | (method url-fetch) | |
380 | (uri (string-append "mirror://gnome/sources/libsigc++/2.3/libsigc++-" | |
381 | version ".tar.xz")) | |
382 | (sha256 | |
383 | (base32 | |
384 | "14q3sq6d43f6wfcmwhw4v1aal4ba0h5x9v6wkxy2dnqznd95il37")))) | |
385 | (build-system gnu-build-system) | |
41eb1198 LC |
386 | (native-inputs `(("pkg-config" ,pkg-config) |
387 | ("m4" ,m4))) | |
a5a7d374 LC |
388 | (home-page "http://libsigc.sourceforge.net/") |
389 | (synopsis "Type-safe callback system for standard C++") | |
390 | (description | |
35b9e423 | 391 | "Libsigc++ implements a type-safe callback system for standard C++. It |
a5a7d374 LC |
392 | allows you to define signals and to connect those signals to any callback |
393 | function, either global or a member function, regardless of whether it is | |
394 | static or virtual. | |
395 | ||
396 | It also contains adaptor classes for connection of dissimilar callbacks and | |
397 | has an ease of use unmatched by other C++ callback libraries.") | |
398 | (license license:lgpl2.1+))) | |
399 | ||
400 | (define glibmm | |
401 | (package | |
402 | (name "glibmm") | |
3d6befa4 | 403 | (version "2.42.0") |
a5a7d374 LC |
404 | (source (origin |
405 | (method url-fetch) | |
3d6befa4 MW |
406 | (uri (string-append "mirror://gnome/sources/glibmm/" |
407 | (version-major+minor version) | |
408 | "/glibmm-" version ".tar.xz")) | |
a5a7d374 LC |
409 | (sha256 |
410 | (base32 | |
3d6befa4 | 411 | "15rk3az8jh3rdwlc3lxjljbnh60drj3ka9574zd39lkqfgcq6l4q")))) |
a5a7d374 LC |
412 | (build-system gnu-build-system) |
413 | (arguments | |
414 | `(#:phases (alist-cons-before | |
415 | 'build 'pre-build | |
416 | (lambda _ | |
417 | ;; This test uses /etc/fstab as an example file to read | |
418 | ;; from; choose a better example. | |
419 | (substitute* "tests/giomm_simple/main.cc" | |
420 | (("/etc/fstab") | |
421 | (string-append (getcwd) | |
422 | "/tests/giomm_simple/main.cc"))) | |
423 | ||
424 | ;; This test does a DNS lookup, and then expects to be able | |
425 | ;; to open a TLS session; just skip it. | |
426 | (substitute* "tests/giomm_tls_client/main.cc" | |
427 | (("Gio::init.*$") | |
428 | "return 77;\n"))) | |
429 | %standard-phases))) | |
41eb1198 LC |
430 | (native-inputs `(("pkg-config" ,pkg-config) |
431 | ("glib" ,glib "bin"))) | |
a5a7d374 LC |
432 | (propagated-inputs |
433 | `(("libsigc++" ,libsigc++) | |
434 | ("glib" ,glib))) | |
435 | (home-page "http://gtkmm.org/") | |
436 | (synopsis "C++ interface to the GLib library") | |
437 | (description | |
35b9e423 | 438 | "Glibmm provides a C++ programming interface to the part of GLib that are |
a5a7d374 LC |
439 | useful for C++.") |
440 | (license license:lgpl2.1+))) | |
a1de06b6 EB |
441 | |
442 | (define-public python2-pygobject-2 | |
443 | (package | |
444 | (name "python2-pygobject") | |
445 | ;; This was the last version to declare the 2.0 platform number, i.e. its | |
446 | ;; pkg-config files were named pygobject-2.0.pc | |
447 | (version "2.28.6") | |
448 | (source | |
449 | (origin | |
450 | (method url-fetch) | |
451 | (uri (string-append "mirror://gnome/sources/pygobject/" | |
452 | (version-major+minor version) | |
453 | "/pygobject-" version ".tar.xz")) | |
454 | (sha256 | |
455 | (base32 | |
456 | "1f5dfxjnil2glfwxnqr14d2cjfbkghsbsn8n04js2c2icr7iv2pv")) | |
457 | (patches | |
458 | (list (search-patch | |
459 | "python2-pygobject-2-gi-info-type-error-domain.patch"))))) | |
460 | (build-system gnu-build-system) | |
461 | (native-inputs | |
462 | `(("which" ,which) | |
463 | ("glib-bin" ,glib "bin") ;for tests: glib-compile-schemas | |
464 | ("pkg-config" ,pkg-config) | |
465 | ("dbus" ,dbus))) ;for tests | |
466 | (inputs | |
467 | `(("python" ,python-2) | |
468 | ("glib" ,glib) | |
469 | ("python2-py2cairo" ,python2-py2cairo) | |
470 | ("gobject-introspection" ,gobject-introspection))) | |
471 | (propagated-inputs | |
472 | `(("libffi" ,libffi))) ;mentioned in pygobject-2.0.pc | |
473 | (arguments | |
474 | `(#:tests? #f ;segfaults during tests | |
475 | #:configure-flags '("LIBS=-lcairo-gobject"))) | |
476 | (home-page "https://pypi.python.org/pypi/PyGObject") | |
477 | (synopsis "Python bindings for GObject") | |
478 | (description | |
479 | "Python bindings for GLib, GObject, and GIO.") | |
480 | (license license:lgpl2.1+))) | |
481 | ||
482 | (define-public python-pygobject | |
483 | (package | |
484 | (name "python-pygobject") | |
485 | (version "3.12.2") ;last version that works with | |
486 | ;gobject-introspection 1.38 | |
487 | (source | |
488 | (origin | |
489 | (method url-fetch) | |
490 | (uri (string-append "mirror://gnome/sources/pygobject/" | |
491 | (version-major+minor version) | |
492 | "/pygobject-" version ".tar.xz")) | |
493 | (sha256 | |
494 | (base32 | |
495 | "08m5yad1hjdax4g39w6lgjk4124mcwpa8fc5iyvb8nygk8s3syky")))) | |
496 | ;; 3.14.0: 0m1d75iwxa6k1xbkn6c6yq5r10pxnf7i5c2a5yvwsnab7ylzz7kp | |
497 | (build-system gnu-build-system) | |
498 | (native-inputs | |
499 | `(("which" ,which) | |
500 | ("glib-bin" ,glib "bin") ;for tests: glib-compile-schemas | |
501 | ("pkg-config" ,pkg-config))) | |
502 | (inputs | |
503 | `(("python" ,python) | |
504 | ("glib" ,glib) | |
505 | ("python-pycairo" ,python-pycairo) | |
506 | ("gobject-introspection" ,gobject-introspection) | |
507 | ("libffi" ,libffi))) | |
508 | (arguments | |
509 | ;; TODO: failing tests: test_native_calls_async | |
510 | ;; test_native_calls_async_errors test_native_calls_sync | |
511 | ;; test_native_calls_sync_errors test_python_calls_async | |
512 | ;; test_python_calls_async_error test_python_calls_async_error_result | |
513 | ;; test_python_calls_sync test_python_calls_sync_errors | |
514 | ;; test_python_calls_sync_noargs test_callback_user_data_middle_none | |
515 | ;; test_callback_user_data_middle_single | |
516 | ;; test_callback_user_data_middle_tuple | |
517 | '(#:tests? #f)) | |
518 | (home-page "https://pypi.python.org/pypi/PyGObject") | |
519 | (synopsis "Python bindings for GObject") | |
520 | (description | |
521 | "Python bindings for GLib, GObject, and GIO.") | |
522 | (license license:lgpl2.1+))) | |
7873318d AE |
523 | |
524 | (define telepathy-glib | |
525 | (package | |
526 | (name "telepathy-glib") | |
527 | (version "0.24.1") | |
528 | (source | |
529 | (origin | |
530 | (method url-fetch) | |
531 | (uri | |
532 | (string-append | |
533 | "http://telepathy.freedesktop.org/releases/telepathy-glib/" | |
534 | "telepathy-glib-" version ".tar.gz")) | |
535 | (sha256 | |
536 | (base32 | |
537 | "1symyzbjmxvksn2ifdkk50lafjm2llf2sbmky062gq2pz3cg23cy")))) | |
538 | (build-system gnu-build-system) | |
88c6b580 LC |
539 | (arguments |
540 | '(#:phases (alist-cons-before | |
541 | 'build 'set-cc | |
542 | (lambda _ | |
543 | ;; Set $CC so that g-ir-scanner works. | |
544 | (setenv "CC" "gcc") | |
545 | #t) | |
546 | %standard-phases))) | |
7873318d AE |
547 | (native-inputs |
548 | `(("glib" ,glib "bin") ; uses glib-mkenums | |
549 | ("pkg-config" ,pkg-config) | |
550 | ("python" ,python-2))) | |
551 | (inputs | |
552 | `(("dbus" ,dbus) | |
553 | ("dbus-glib" ,dbus-glib) | |
554 | ("glib" ,glib) | |
555 | ("gobject-introspection" ,gobject-introspection) | |
556 | ("libxslt" ,libxslt))) | |
557 | (home-page "http://telepathy.freedesktop.org/wiki/") | |
558 | (synopsis "GLib Real-time communications framework over D-Bus") | |
559 | (description "Telepathy is a flexible, modular communications framework | |
560 | that enables real-time communication over D-Bus via pluggable protocol | |
561 | backends. Telepathy is a communications service that can be accessed by | |
562 | many applications simultaneously. | |
563 | ||
564 | This package provides the library for GLib applications.") | |
565 | (license license:lgpl2.1+))) |