gnu: librsvg: Generate complete loaders.cache including support for SVG.
[jackhill/guix/guix.git] / gnu / packages / gnome.scm
CommitLineData
995b7261
AE
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
1dd26275 3;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
29a7c98a 4;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
b38e45d8 5;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
995b7261
AE
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
22(define-module (gnu packages gnome)
b5b73a82 23 #:use-module ((guix licenses) #:prefix license:)
995b7261
AE
24 #:use-module (guix packages)
25 #:use-module (guix download)
29a7c98a 26 #:use-module (guix utils)
995b7261 27 #:use-module (guix build-system gnu)
ed19903d 28 #:use-module (gnu packages)
5698b8b8
JD
29 #:use-module (gnu packages bison)
30 #:use-module (gnu packages flex)
b4ce6300 31 #:use-module (gnu packages docbook)
995b7261 32 #:use-module (gnu packages glib)
c1354b90 33 #:use-module (gnu packages gnupg)
85f5dc19 34 #:use-module (gnu packages gstreamer)
d9c1a22b 35 #:use-module (gnu packages gtk)
c1354b90 36 #:use-module (gnu packages pdf)
5698b8b8 37 #:use-module (gnu packages popt)
c1354b90 38 #:use-module (gnu packages ghostscript)
9cc98f8a 39 #:use-module (gnu packages iso-codes)
85f5dc19 40 #:use-module (gnu packages libcanberra)
e55354b8 41 #:use-module (gnu packages image)
27477d2d 42 #:use-module (gnu packages perl)
995b7261
AE
43 #:use-module (gnu packages pkg-config)
44 #:use-module (gnu packages python)
85f5dc19 45 #:use-module (gnu packages xml)
200726ed 46 #:use-module (gnu packages gl)
1dd26275 47 #:use-module (gnu packages compression)
29a7c98a 48 #:use-module (gnu packages xorg))
85f5dc19
AE
49
50(define-public brasero
51 (package
52 (name "brasero")
53 (version "3.8.0")
54 (source (origin
55 (method url-fetch)
56 (uri (string-append "mirror://gnome/sources/brasero/3.8/brasero-"
57 version ".tar.xz"))
58 (sha256
59 (base32
60 "1r5wjsrm47amdaf862ymkdlwlb636c45wg14x20hdr99c653d2nr"))))
61 (build-system gnu-build-system)
62 (propagated-inputs
63 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
9cc98f8a
CR
64 (native-inputs
65 `(("intltool" ,intltool)
426adbe8 66 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
9cc98f8a 67 ("pkg-config" ,pkg-config)))
85f5dc19
AE
68 (inputs
69 `(("glib" ,glib)
70 ("gnome-doc-utils" ,gnome-doc-utils)
71 ("gstreamer" ,gstreamer)
72 ("gst-plugins-base" ,gst-plugins-base)
73 ("gtk+" ,gtk+)
85f5dc19
AE
74 ("itstool" ,itstool)
75 ("libcanberra" ,libcanberra)
76 ("libice" ,libice)
77 ("libnotify" ,libnotify)
78 ("libsm" ,libsm)
c4c4cc05 79 ("libxml2" ,libxml2)))
85f5dc19
AE
80 (home-page "https://projects.gnome.org/brasero/")
81 (synopsis "CD/DVD burning tool for Gnome")
82 (description "Brasero is an application to burn CD/DVD for the Gnome
83Desktop. It is designed to be as simple as possible and has some unique
84features to enable users to create their discs easily and quickly.")
1dd26275 85 (license license:gpl2+)))
995b7261 86
9cc98f8a
CR
87(define-public gnome-desktop
88 (package
89 (name "gnome-desktop")
90 (version "3.10.0")
91 (source
92 (origin
93 (method url-fetch)
b38e45d8
EB
94 (uri (string-append "mirror://gnome/sources/" name "/"
95 (version-major+minor version) "/"
9cc98f8a
CR
96 name "-" version ".tar.xz"))
97 (sha256
98 (base32
99 "0p5p6wvmy5zvcdnmp5h2biz7rjrcw99chq5kkwcnb68flcmkb1ry"))))
100 (build-system gnu-build-system)
101 (native-inputs
102 `(("intltool" ,intltool)
103 ("pkg-config" ,pkg-config)))
104 (inputs
105 `(("gdk-pixbuf" ,gdk-pixbuf)
106 ("glib" ,glib)
107 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
108 ("gtk+" ,gtk+)
109 ("iso-codes" ,iso-codes)
110 ("itstool" ,itstool)
111 ("libx11" ,libx11)
112 ("libxext" ,libxext)
113 ("libxkbfile" ,libxkbfile)
114 ("libxrandr" ,libxrandr)
115 ("xkeyboard-config" ,xkeyboard-config)))
116 (home-page "https://www.gnome.org/")
117 (synopsis
35b9e423 118 "Libgnome-desktop, gnome-about, and desktop-wide documents")
9cc98f8a
CR
119 (description
120 "The libgnome-desktop library provides API shared by several applications
35b9e423
EB
121on the desktop, but that cannot live in the platform for various reasons.
122There is no API or ABI guarantee, although we are doing our best to provide
123stability. Documentation for the API is available with gtk-doc.
9cc98f8a
CR
124
125The gnome-about program helps find which version of GNOME is installed.")
126 ; Some bits under the LGPL.
1dd26275 127 (license license:gpl2+)))
9cc98f8a 128
995b7261
AE
129(define-public gnome-doc-utils
130 (package
131 (name "gnome-doc-utils")
132 (version "0.20.10")
133 (source
134 (origin
135 (method url-fetch)
b38e45d8
EB
136 (uri (string-append "mirror://gnome/sources/" name "/"
137 (version-major+minor version) "/"
995b7261
AE
138 name "-" version ".tar.xz"))
139 (sha256
140 (base32
141 "19n4x25ndzngaciiyd8dd6s2mf9gv6nv3wv27ggns2smm7zkj1nb"))))
142 (build-system gnu-build-system)
b4ce6300
JD
143 (arguments
144 `(#:phases
145 (alist-cons-before
146 'check 'pre-check
147 (lambda* (#:key inputs #:allow-other-keys #:rest args)
148 ;; This is needed, because without it, xmlint etc tries
149 ;; to download docbookx.dtd from the net
150 (setenv "XML_CATALOG_FILES"
151 (string-append (assoc-ref inputs "docbook-xml")
152 "/xml/dtd/docbook/catalog.xml")))
153 %standard-phases)))
c4c4cc05 154 (native-inputs
995b7261 155 `(("intltool" ,intltool)
b4ce6300 156 ("docbook-xml" ,docbook-xml-4.4)
995b7261
AE
157 ("libxml2" ,libxml2)
158 ("libxslt" ,libxslt)
159 ("pkg-config" ,pkg-config)
160 ("python-2" ,python-2)))
995b7261
AE
161 (home-page "https://wiki.gnome.org/GnomeDocUtils")
162 (synopsis
163 "Documentation utilities for the Gnome project")
164 (description
165 "Gnome-doc-utils is a collection of documentation utilities for the
166Gnome project. It includes xml2po tool which makes it easier to translate
167and keep up to date translations of documentation.")
1dd26275 168 (license license:gpl2+))) ; xslt under lgpl
d9c1a22b 169
c1354b90
LC
170(define-public libgnome-keyring
171 (package
172 (name "libgnome-keyring")
173 (version "3.6.0")
174 (source (origin
175 (method url-fetch)
b38e45d8
EB
176 (uri (string-append "mirror://gnome/sources/" name "/"
177 (version-major+minor version) "/"
178 name "-" version ".tar.xz"))
c1354b90
LC
179 (sha256
180 (base32
181 "0c4qrjpmv1hqga3xv6wsq2z10x2n78qgw7q3k3s01y1pggxkgjkd"))))
182 (build-system gnu-build-system)
c1354b90 183 (inputs
c4c4cc05 184 `(("libgcrypt" ,libgcrypt)
c1354b90 185 ("dbus" ,dbus)))
c4c4cc05
JD
186 (native-inputs
187 `(("pkg-config" ,pkg-config)
426adbe8 188 ("glib" ,glib "bin")
c4c4cc05 189 ("intltool" ,intltool)))
c1354b90
LC
190 (propagated-inputs
191 ;; Referred to in .h files and .pc.
192 `(("glib" ,glib)))
193 (home-page "http://www.gnome.org")
194 (synopsis "Accessing passwords from the GNOME keyring")
195 (description
196 "Client library to access passwords from the GNOME keyring.")
197
198 ;; Though a couple of files are LGPLv2.1+.
1dd26275 199 (license license:lgpl2.0+)))
c1354b90
LC
200
201(define-public evince
202 (package
203 (name "evince")
204 (version "3.6.1")
205 (source (origin
206 (method url-fetch)
b38e45d8
EB
207 (uri (string-append "mirror://gnome/sources/" name "/"
208 (version-major+minor version) "/"
209 name "-" version ".tar.xz"))
c1354b90
LC
210 (sha256
211 (base32
212 "1da1pij030dh8mb0pr0jnyszgsbjnh8lc17rj5ii52j3kmbv51qv"))))
213 (build-system gnu-build-system)
214 (arguments
215 `(#:configure-flags '("--disable-nautilus")
216
217 ;; FIXME: Tests fail with:
218 ;; ImportError: No module named gi.repository
219 ;; Where should that module come from?
96e42467
LC
220 #:tests? #f
221
222 #:phases (alist-cons-after
223 'install 'set-mime-search-path
224 (lambda* (#:key inputs outputs #:allow-other-keys)
225 ;; Wrap 'evince' so that it knows where MIME info is.
226 (let ((out (assoc-ref outputs "out"))
227 (mime (assoc-ref inputs "shared-mime-info")))
228 (wrap-program (string-append out "/bin/evince")
229 `("XDG_DATA_DIRS" ":" prefix
230 ,(list (string-append mime "/share")
231 (string-append out "/share"))))))
232 %standard-phases)))
c1354b90
LC
233 (inputs
234 `(("libspectre" ,libspectre)
235 ;; ("djvulibre" ,djvulibre)
236 ("ghostscript" ,ghostscript)
237 ("poppler" ,poppler)
238 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
239 ("libgnome-keyring" ,libgnome-keyring)
240 ("gnome-icon-theme" ,gnome-icon-theme)
241 ("itstool" ,itstool)
242 ("gdk-pixbuf" ,gdk-pixbuf)
243 ("atk" ,atk)
244 ("pango" ,pango)
245 ("gtk+" ,gtk+)
246 ("glib" ,glib)
247 ("libxml2" ,libxml2)
c1354b90
LC
248 ("libsm" ,libsm)
249 ("libice" ,libice)
96e42467 250 ("shared-mime-info" ,shared-mime-info)
c1354b90
LC
251
252 ;; For tests.
253 ("dogtail" ,python2-dogtail)))
96e42467 254 (native-inputs
c4c4cc05 255 `(("intltool" ,intltool)
426adbe8 256 ("glib" ,glib "bin")
c4c4cc05 257 ("pkg-config" ,pkg-config)))
c1354b90
LC
258 (home-page
259 "http://www.gnome.org/projects/evince/")
260 (synopsis "GNOME's document viewer")
261 (description
262 "Evince is a document viewer for multiple document formats. It
263currently supports PDF, PostScript, DjVu, TIFF and DVI. The goal
264of Evince is to replace the multiple document viewers that exist
96e42467 265on the GNOME Desktop with a single simple application.")
1dd26275 266 (license license:gpl2+)))
c1354b90 267
22e32e69
AE
268(define-public gsettings-desktop-schemas
269 (package
270 (name "gsettings-desktop-schemas")
271 (version "3.10.0")
272 (source
273 (origin
274 (method url-fetch)
275 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 276 (version-major+minor version) "/"
22e32e69
AE
277 name "-" version ".tar.xz"))
278 (sha256
279 (base32
280 "1km8qxwrzvravmg8j680qv64bwnwbdgrmy8bqmhs0dgxn2b1as6a"))))
281 (build-system gnu-build-system)
282 (inputs
c4c4cc05
JD
283 `(("glib" ,glib)))
284 (native-inputs
285 `(("intltool" ,intltool)
426adbe8 286 ("glib" ,glib "bin") ; glib-compile-schemas, etc.
22e32e69
AE
287 ("pkg-config" ,pkg-config)))
288 (home-page "https://launchpad.net/gsettings-desktop-schemas")
289 (synopsis
290 "GNOME settings for various desktop components")
291 (description
292 "Gsettings-desktop-schemas contains a collection of GSettings schemas
293for settings shared by various components of the GNOME desktop.")
1dd26275 294 (license license:lgpl2.1+)))
22e32e69 295
27477d2d
AE
296(define-public icon-naming-utils
297 (package
298 (name "icon-naming-utils")
299 (version "0.8.90")
300 (source
301 (origin
302 (method url-fetch)
303 (uri (string-append "http://tango.freedesktop.org/releases/icon-naming-utils-"
304 version ".tar.bz2"))
305 (sha256
306 (base32
307 "1mc3v28fdfqanx3lqx233vcr4glb4c2376k0kx2v91a4vxwqcdxi"))))
308 (build-system gnu-build-system)
309 (inputs
310 `(("perl" ,perl)
311 ("perl-xml-simple" ,perl-xml-simple)))
312 (home-page "http://tango.freedesktop.org/Standard_Icon_Naming_Specification")
313 (synopsis
314 "Utility to implement the Freedesktop Icon Naming Specification")
315 (description
316 "To help with the transition to the Freedesktop Icon Naming
317Specification, the icon naming utility maps the icon names used by the
318GNOME and KDE desktops to the icon names proposed in the specification.")
1dd26275 319 (license license:lgpl2.1+)))
27477d2d 320
7d3f3651
AE
321(define-public gnome-icon-theme
322 (package
323 (name "gnome-icon-theme")
324 (version "3.10.0")
325 (source
326 (origin
327 (method url-fetch)
328 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 329 (version-major+minor version) "/"
7d3f3651
AE
330 name "-" version ".tar.xz"))
331 (sha256
332 (base32
333 "1xinbgkkvlhazj887ajcl13i7kdc1wcca02jwxzvjrvchjsp4m66"))))
334 (build-system gnu-build-system)
335 (inputs
336 `(("gtk+" ,gtk+)
c4c4cc05
JD
337 ("icon-naming-utils" ,icon-naming-utils)))
338 (native-inputs
339 `(("intltool" ,intltool)
340 ("pkg-config" ,pkg-config)))
7d3f3651
AE
341 (home-page "http://art.gnome.org/")
342 (synopsis
343 "GNOME icon theme")
344 (description
345 "Icons for the GNOME desktop.")
1dd26275 346 (license license:lgpl3))) ; or Creative Commons BY-SA 3.0
7d3f3651 347
9167f8e6
LC
348(define-public shared-mime-info
349 (package
350 (name "shared-mime-info")
351 (version "1.2")
352 (source (origin
353 (method url-fetch)
b38e45d8
EB
354 (uri (string-append "http://freedesktop.org/~hadess/"
355 "shared-mime-info-" version ".tar.xz"))
9167f8e6
LC
356 (sha256
357 (base32
358 "0y5vi0vr6rbhvfzcfg57cfskn362bpvcpca9cy598nmr87i6lld5"))))
359 (build-system gnu-build-system)
360 (arguments
361 ;; The build system appears not to be parallel-safe.
362 '(#:parallel-build? #f))
363 (inputs
364 `(("glib" ,glib)
c4c4cc05 365 ("libxml2" ,libxml2)))
9167f8e6 366 (native-inputs
c4c4cc05
JD
367 `(("intltool" ,intltool)
368 ("pkg-config" ,pkg-config)))
9167f8e6
LC
369 (home-page "http://freedesktop.org/wiki/Software/shared-mime-info")
370 (synopsis "Database of common MIME types")
371 (description
372 "The shared-mime-info package contains the core database of common types
373and the update-mime-database command used to extend it. It requires glib2 to
374be installed for building the update command. Additionally, it uses intltool
375for translations, though this is only a dependency for the maintainers. This
376database is translated at Transifex.")
1dd26275 377 (license license:gpl2+)))
9167f8e6 378
bef4dd92
AE
379(define-public hicolor-icon-theme
380 (package
381 (name "hicolor-icon-theme")
382 (version "0.12")
383 (source
384 (origin
385 (method url-fetch)
b38e45d8
EB
386 (uri (string-append "http://icon-theme.freedesktop.org/releases/"
387 "hicolor-icon-theme-" version ".tar.gz"))
bef4dd92
AE
388 (sha256
389 (base32
390 "0wzc7g4ldb2l8zc0x2785ck808c03i857jji942ikakyc68adp4y"))))
391 (build-system gnu-build-system)
392 (arguments
393 `(#:tests? #f)) ; no check target
394 (home-page "http://icon-theme.freedesktop.org/releases/")
395 (synopsis
396 "Freedesktop icon theme")
397 (description
398 "Freedesktop icon theme.")
1dd26275 399 (license license:gpl2)))
bef4dd92 400
d9c1a22b
AE
401(define-public libnotify
402 (package
403 (name "libnotify")
404 (version "0.7.6")
405 (source
406 (origin
407 (method url-fetch)
408 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 409 (version-major+minor version) "/"
d9c1a22b
AE
410 name "-" version ".tar.xz"))
411 (sha256
412 (base32
413 "0dyq8zgjnnzcah31axnx6afb21kl7bks1gvrg4hjh3nk02j1rxhf"))))
414 (build-system gnu-build-system)
415 (inputs
416 `(("gdk-pixbuf" ,gdk-pixbuf)
417 ("glib" ,glib)
418 ("gtk+" ,gtk+)
c4c4cc05
JD
419 ("libpng" ,libpng)))
420 (native-inputs
426adbe8
LC
421 `(("pkg-config" ,pkg-config)
422 ("glib" ,glib "bin")))
d9c1a22b
AE
423 (home-page "https://developer-next.gnome.org/libnotify/")
424 (synopsis
425 "GNOME desktop notification library")
426 (description
427 "Libnotify is a library that sends desktop notifications to a
35b9e423 428notification daemon, as defined in the Desktop Notifications spec. These
d9c1a22b
AE
429notifications can be used to inform the user about an event or display
430some form of information without getting in the user's way.")
1dd26275 431 (license license:lgpl2.1+)))
7a8605ce
CR
432
433(define-public libpeas
434 (package
435 (name "libpeas")
436 (version "1.9.0")
437 (source
438 (origin
439 (method url-fetch)
440 (uri (string-append "mirror://gnome/sources/" name "/"
b38e45d8 441 (version-major+minor version) "/"
7a8605ce
CR
442 name "-" version ".tar.xz"))
443 (sha256
444 (base32
445 "13fzyzv6c0cfdj83z1s16lv8k997wpnzyzr0wfwcfkcmvz64g1q0"))))
446 (build-system gnu-build-system)
7a8605ce
CR
447 (inputs
448 `(("atk" ,atk)
449 ("gdk-pixbuf" ,gdk-pixbuf)
450 ("glib" ,glib)
7a8605ce 451 ("gtk+" ,gtk+)
141aed80
LC
452 ("pango" ,pango)))
453 (native-inputs
454 `(("pkg-config" ,pkg-config)
93622993 455 ("glib:bin" ,glib "bin")
141aed80
LC
456 ("gobject-introspection" ,gobject-introspection)
457 ("intltool" ,intltool)))
7a8605ce
CR
458 (home-page "https://wiki.gnome.org/Libpeas")
459 (synopsis "GObject plugin system")
460 (description
35b9e423 461 "Libpeas is a gobject-based plugins engine, and is targetted at giving
7a8605ce
CR
462every application the chance to assume its own extensibility. It also has a
463set of features including, but not limited to: multiple extension points; on
464demand (lazy) programming language support for C, Python and JS; simplicity of
465the API")
466
1dd26275 467 (license license:lgpl2.0+)))
ed19903d
JD
468
469(define-public gtkglext
470 (package
471 (name "gtkglext")
472 (version "1.2.0")
473 (source (origin
474 (method url-fetch)
475 (uri (string-append "mirror://sourceforge/project/gtkglext/gtkglext/"
476 version "/gtkglext-" version ".tar.gz"))
477 (sha256
478 (base32 "1ya4d2j2aacr9ii5zj4ac95fjpdvlm2rg79mgnk7yvl1dcy3y1z5"))
479 (patches (list
ed19903d
JD
480 (search-patch "gtkglext-disable-disable-deprecated.patch")))))
481 (build-system gnu-build-system)
482 (inputs `(("gtk+" ,gtk+-2)
483 ("mesa" ,mesa)
484 ("libx11" ,libx11)
485 ("libxt" ,libxt)))
426adbe8
LC
486 (native-inputs `(("pkg-config" ,pkg-config)
487 ("glib" ,glib "bin")))
a83b6a06 488 (propagated-inputs `(("pangox-compat" ,pangox-compat)))
ed19903d 489 (home-page "https://projects.gnome.org/gtkglext")
9e771e3b 490 (synopsis "OpenGL extension to GTK+")
35b9e423 491 (description "GtkGLExt is an OpenGL extension to GTK+. It provides
ed19903d
JD
492additional GDK objects which support OpenGL rendering in GTK+ and GtkWidget
493API add-ons to make GTK+ widgets OpenGL-capable.")
1dd26275 494 (license license:lgpl2.1+)))
3600420e
JD
495
496(define-public glade3
497 (package
498 (name "glade")
499 (version "3.8.4")
b38e45d8
EB
500 (source (origin
501 (method url-fetch)
502 (uri (string-append "mirror://gnome/sources/" name "/"
503 (version-major+minor version) "/"
504 name "3-" version ".tar.xz"))
3600420e
JD
505 (sha256
506 (base32 "021xgq2l18w3rvwms9aq2idm0fk66vwb4f777gs0qh3ap5shgbn7"))))
507 (build-system gnu-build-system)
508 (inputs
509 `(("gtk+" ,gtk+-2)
510 ("libxml2" ,libxml2)))
511 (native-inputs
512 `(("intltool" ,intltool)
513 ("python" ,python)
514 ("pkg-config" ,pkg-config)))
515 (home-page "https://glade.gnome.org")
516 (synopsis "GTK+ rapid application development tool")
517 (description "Glade is a rapid application development (RAD) tool to
518enable quick & easy development of user interfaces for the GTK+ toolkit and
519the GNOME desktop environment.")
1dd26275
LC
520 (license license:lgpl2.0+)))
521
522(define-public libcroco
523 (package
524 (name "libcroco")
525 (version "0.6.8")
526 (source (origin
527 (method url-fetch)
b38e45d8
EB
528 (uri (string-append "mirror://gnome/sources/" name "/"
529 (version-major+minor version) "/"
530 name "-" version ".tar.xz"))
1dd26275
LC
531 (sha256
532 (base32
533 "0w453f3nnkbkrly7spx5lx5pf6mwynzmd5qhszprq8amij2invpa"))))
534 (build-system gnu-build-system)
535 (native-inputs
536 `(("pkg-config" ,pkg-config)))
537 (inputs
538 `(("glib" ,glib)
539 ("libxml2" ,libxml2)
540 ("zlib" ,zlib)))
541 (home-page "https://github.com/GNOME/libcroco")
542 (synopsis "CSS2 parsing and manipulation library")
543 (description
544 "Libcroco is a standalone CSS2 parsing and manipulation library.
545The parser provides a low level event driven SAC-like API and a CSS object
546model like API. Libcroco provides a CSS2 selection engine and an experimental
547XML/CSS rendering engine.")
548
549 ;; LGPLv2.1-only.
550 (license license:lgpl2.1)))
25178594
LC
551
552(define-public libgsf
553 (package
554 (name "libgsf")
555 (version "1.14.30")
556 (source (origin
557 (method url-fetch)
b38e45d8
EB
558 (uri (string-append "mirror://gnome/sources/" name "/"
559 (version-major+minor version) "/"
560 name "-" version ".tar.xz"))
25178594
LC
561 (sha256
562 (base32
563 "0w2v1a9sxsymd1mcy4mwsz4r6za9iwq69rj86nb939p41d4c6j6b"))))
564 (build-system gnu-build-system)
565 (native-inputs
566 `(("intltool" ,intltool)
567 ("pkg-config" ,pkg-config)))
568 (inputs
569 `(("python" ,python)
570 ("zlib" ,zlib)
571 ("bzip2" ,bzip2)))
572 (propagated-inputs
573 `(("gdk-pixbuf" ,gdk-pixbuf)
574 ("glib" ,glib)
575 ("libxml2" ,libxml2)))
576 (home-page "http://www.gnome.org/projects/libgsf")
577 (synopsis "GNOME's Structured File Library")
578 (description
579 "Libgsf aims to provide an efficient extensible I/O abstraction for
580dealing with different structured file formats.")
581
582 ;; LGPLv2.1-only.
583 (license license:lgpl2.1)))
63016e7c
LC
584
585(define-public librsvg
586 (package
587 (name "librsvg")
588 (version "2.40.2")
589 (source (origin
590 (method url-fetch)
b38e45d8
EB
591 (uri (string-append "mirror://gnome/sources/" name "/"
592 (version-major+minor version) "/"
593 name "-" version ".tar.xz"))
63016e7c
LC
594 (sha256
595 (base32
596 "071959yjb2i1bja7ciy4bmpnd6fn2is9jjqsvvvnsqwl69j9n128"))))
597 (build-system gnu-build-system)
598 (arguments
ce2df078 599 `(#:phases
63016e7c
LC
600 (alist-cons-before
601 'configure 'augment-gir-search-path
602 (lambda* (#:key inputs #:allow-other-keys)
63016e7c
LC
603 (substitute* "gdk-pixbuf-loader/Makefile.in"
604 ;; By default the gdk-pixbuf loader is installed under
605 ;; gdk-pixbuf's prefix. Work around that.
606 (("gdk_pixbuf_moduledir = .*$")
607 (string-append "gdk_pixbuf_moduledir = "
608 "$(prefix)/lib/gdk-pixbuf-2.0/2.0.10/"
609 "loaders\n"))
610 ;; Likewise, create a separate 'loaders.cache' file.
611 (("gdk_pixbuf_cache_file = .*$")
612 "gdk_pixbuf_cache_file = $(gdk_pixbuf_moduledir).cache\n")))
cd14b5e3
FB
613 (alist-cons-after
614 'install 'generate-full-cache
615 (lambda* (#:key inputs outputs #:allow-other-keys)
616 (let ((loaders-directory
617 (string-append (assoc-ref outputs "out")
618 "/lib/gdk-pixbuf-2.0/2.0.10/loaders")))
619 (zero?
620 (system
621 (string-append
622 "gdk-pixbuf-query-loaders "
623 loaders-directory "/libpixbufloader-svg.so "
624 (string-join (find-files (assoc-ref inputs "gdk-pixbuf")
625 "libpixbufloader-.*\\.so") " ")
626 "> " loaders-directory ".cache")))))
627 %standard-phases))))
63016e7c
LC
628 (native-inputs
629 `(("pkg-config" ,pkg-config)
44add1ce 630 ("glib" ,glib "bin") ; glib-mkenums, etc.
63016e7c
LC
631 ("gobject-introspection" ,gobject-introspection))) ; g-ir-compiler, etc.
632 (inputs
633 `(("pango" ,pango)
634 ("libcroco" ,libcroco)
635 ("bzip2" ,bzip2)
636 ("libgsf" ,libgsf)
637 ("libxml2" ,libxml2)))
638 (propagated-inputs
639 ;; librsvg-2.0.pc refers to all of that.
640 `(("cairo" ,cairo)
641 ("gdk-pixbuf" ,gdk-pixbuf)
642 ("glib" ,glib)))
643 (home-page "https://wiki.gnome.org/LibRsvg")
644 (synopsis "Render SVG files using Cairo")
645 (description
35b9e423 646 "Librsvg is a C library to render SVG files using the Cairo 2D graphics
63016e7c
LC
647library.")
648 (license license:lgpl2.0+)))
5698b8b8
JD
649
650(define-public libidl
651 (package
652 (name "libidl")
653 (version "0.8.14")
654 (source (origin
655 (method url-fetch)
656 (uri (let ((upstream-name "libIDL"))
b38e45d8
EB
657 (string-append "mirror://gnome/sources/" upstream-name "/"
658 (version-major+minor version) "/"
659 upstream-name "-" version ".tar.bz2")))
5698b8b8
JD
660 (sha256
661 (base32
662 "08129my8s9fbrk0vqvnmx6ph4nid744g5vbwphzkaik51664vln5"))))
663 (build-system gnu-build-system)
664 (inputs `(("glib" ,glib)))
665 (native-inputs
666 `(("pkg-config" ,pkg-config)
667 ("flex", flex)
668 ("bison" ,bison)))
669 (home-page "http://freecode.com/projects/libidl")
670 (synopsis "Create trees of CORBA Interface Definition Language files")
35b9e423 671 (description "Libidl is a library for creating trees of CORBA Interface
5698b8b8
JD
672Definition Language (idl) files, which is a specification for defining
673portable interfaces. libidl was initially written for orbit (the orb from the
35b9e423 674GNOME project, and the primary means of libidl distribution). However, the
5698b8b8
JD
675functionality was designed to be as reusable and portable as possible.")
676 (license license:lgpl2.0+)))
677
678
679(define-public orbit2
680 (package
681 (name "orbit2")
682 (version "2.14.19")
683 (source (origin
684 (method url-fetch)
685 (uri (let ((upstream-name "ORBit2"))
b38e45d8
EB
686 (string-append "mirror://gnome/sources/" upstream-name "/"
687 (version-major+minor version) "/"
688 upstream-name "-" version ".tar.bz2")))
5698b8b8
JD
689 (sha256
690 (base32 "0l3mhpyym9m5iz09fz0rgiqxl2ym6kpkwpsp1xrr4aa80nlh1jam"))))
691 (build-system gnu-build-system)
692 (arguments
693 ;; The programmer kindly gives us a hook to turn off deprecation warnings ...
694 `(#:configure-flags '("DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
695 ;; ... which they then completly ignore !!
696 #:phases
697 (alist-cons-before
698 'configure 'ignore-deprecations
699 (lambda _
700 (substitute* "linc2/src/Makefile.in"
701 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS")))
702 %standard-phases)))
703 (inputs `(("glib" ,glib)
704 ("libidl" ,libidl)))
705 (native-inputs
706 `(("pkg-config" ,pkg-config)))
707 (home-page "https://projects.gnome.org/orbit2/")
708 (synopsis "CORBA 2.4-compliant Object Request Broker")
35b9e423 709 (description "ORBit2 is a CORBA 2.4-compliant Object Request Broker (orb)
5698b8b8
JD
710featuring mature C, C++ and Python bindings.")
711 ;; Licence notice is unclear. The Web page simply say "GPL" without giving a version.
712 ;; SOME of the code files have licence notices for GPLv2+
713 ;; The tarball contains files of the text of GPLv2 and LGPLv2
714 (license license:gpl2+)))
715
716
717(define-public libbonobo
718 (package
719 (name "libbonobo")
720 (version "2.32.1")
721 (source (origin
722 (method url-fetch)
5becd025 723 (uri (string-append "mirror://gnome/sources/" name "/"
29a7c98a 724 (version-major+minor version)
5becd025 725 "/" name "-" version ".tar.bz2"))
5698b8b8 726 (sha256
f1fc45a9
EB
727 (base32 "0swp4kk6x7hy1rvd1f9jba31lvfc6qvafkvbpg9h0r34fzrd8q4i"))
728 (patches (list (search-patch "libbonobo-activation-test-race.patch")))))
5698b8b8
JD
729 (build-system gnu-build-system)
730 (arguments
731 ;; The programmer kindly gives us a hook to turn off deprecation warnings ...
5becd025
EB
732 `(#:configure-flags
733 '("DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
734 ;; ... which they then completly ignore !!
735 #:phases
736 (alist-cons-before
737 'configure 'ignore-deprecations
738 (lambda _
739 (substitute* "activation-server/Makefile.in"
740 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS")))
741 %standard-phases)))
5698b8b8
JD
742 (inputs `(("popt" ,popt)
743 ("libxml2" ,libxml2)))
744 ;; The following are Required by the .pc file
44add1ce 745 (propagated-inputs
5698b8b8
JD
746 `(("glib" ,glib)
747 ("orbit2" ,orbit2)))
748 (native-inputs
749 `(("intltool" ,intltool)
750 ("pkg-config" ,pkg-config)
221ed17a 751 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
752 ("flex" ,flex)
753 ("bison" ,bison)))
754 (home-page "https://developer.gnome.org/libbonobo/")
755 (synopsis "Framework for creating reusable components for use in GNOME applications")
756 (description "Bonobo is a framework for creating reusable components for
757use in GNOME applications, built on top of CORBA.")
758 ;; Licence not explicitly stated. Source files contain no licence notices.
759 ;; Tarball contains text of both GPLv2 and LGPLv2
760 ;; GPLv2 covers both conditions
761 (license license:gpl2+)))
762
763
764(define-public gconf
765 (package
766 (name "gconf")
767 (version "3.2.6")
768 (source (origin
769 (method url-fetch)
770 (uri
771 (let ((upstream-name "GConf"))
b38e45d8
EB
772 (string-append "mirror://gnome/sources/" upstream-name "/"
773 (version-major+minor version) "/"
774 upstream-name "-" version ".tar.xz")))
5698b8b8
JD
775 (sha256
776 (base32 "0k3q9nh53yhc9qxf1zaicz4sk8p3kzq4ndjdsgpaa2db0ccbj4hr"))))
777 (build-system gnu-build-system)
778 (inputs `(("glib" ,glib)
779 ("dbus" ,dbus)
780 ("dbus-glib" ,dbus-glib)
781 ("libxml2" ,libxml2)))
782 (propagated-inputs `(("orbit2" ,orbit2))) ; referred to in the .pc file
783 (native-inputs
784 `(("intltool" ,intltool)
221ed17a 785 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
786 ("pkg-config" ,pkg-config)))
787 (home-page "https://projects.gnome.org/gconf/")
35b9e423
EB
788 (synopsis "Store application preferences")
789 (description "Gconf is a system for storing application preferences. It
790is intended for user preferences; not arbitrary data storage.")
5698b8b8
JD
791 (license license:lgpl2.0+)))
792
793
794(define-public gnome-mime-data
795 (package
796 (name "gnome-mime-data")
797 (version "2.18.0")
798 (source (origin
799 (method url-fetch)
b38e45d8
EB
800 (uri (string-append "mirror://gnome/sources/" name "/"
801 (version-major+minor version) "/"
802 name "-" version ".tar.bz2"))
5698b8b8
JD
803 (sha256
804 (base32
805 "1mvg8glb2a40yilmyabmb7fkbzlqd3i3d31kbkabqnq86xdnn69p"))))
806 (build-system gnu-build-system)
807 (native-inputs
808 `(("perl" ,perl)
809 ("intltool" ,intltool)))
810 (home-page "http://www.gnome.org")
35b9e423 811 (synopsis "Base MIME and Application database for GNOME")
5698b8b8
JD
812 (description "GNOME Mime Data is a module which contains the base MIME
813and Application database for GNOME. The data stored by this module is
814designed to be accessed through the MIME functions in GnomeVFS.")
815 (license license:gpl2+)))
816
817
818(define-public gnome-vfs
819 (package
820 (name "gnome-vfs")
821 (version "2.24.4")
822 (source (origin
823 (method url-fetch)
b38e45d8
EB
824 (uri (string-append "mirror://gnome/sources/" name "/"
825 (version-major+minor version) "/"
826 name "-" version ".tar.bz2"))
5698b8b8
JD
827 (sha256
828 (base32 "1ajg8jb8k3snxc7rrgczlh8daxkjidmcv3zr9w809sq4p2sn9pk2"))))
829 (build-system gnu-build-system)
830 (arguments
831 ;; The programmer kindly gives us a hook to turn off deprecation warnings ...
832 `(#:configure-flags '("DISABLE_DEPRECATED_CFLAGS=-DGLIB_DISABLE_DEPRECATION_WARNINGS")
833 ;; ... which they then completly ignore !!
834 #:phases
835 (alist-cons-before
836 'configure 'ignore-deprecations
837 (lambda _
838 (begin
839 (substitute* "libgnomevfs/Makefile.in"
840 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))
841 (substitute* "daemon/Makefile.in"
842 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS"))))
843 %standard-phases)))
844 (inputs `(("glib" ,glib)
845 ("libxml2" ,libxml2)
846 ("dbus-glib" ,dbus-glib)
847 ("dbus" ,dbus)
848 ("gconf" ,gconf)
849 ("gnome-mime-data" ,gnome-mime-data)
850 ("zlib" ,zlib)))
851 (native-inputs
221ed17a
EB
852 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
853 ("intltool" ,intltool)
5698b8b8
JD
854 ("pkg-config" ,pkg-config)))
855 (home-page "https://developer.gnome.org/gnome-vfs/")
35b9e423 856 (synopsis "Access files and folders in GNOME applications")
5698b8b8 857 (description "GnomeVFS is the core library used to access files and
35b9e423 858folders in GNOME applications. It provides a file system abstraction which
5698b8b8
JD
859allows applications to access local and remote files with a single consistent API.")
860 (license license:lgpl2.0+)))
861
862
863
864(define-public libgnome
865 (package
866 (name "libgnome")
867 (version "2.32.1")
868 (source (origin
869 (method url-fetch)
b38e45d8
EB
870 (uri (string-append "mirror://gnome/sources/" name "/"
871 (version-major+minor version) "/"
872 name "-" version ".tar.bz2"))
5698b8b8
JD
873 (sha256
874 (base32
875 "197pnq8y0knqjhm2fg4j6hbqqm3qfzfnd0irhwxpk1b4hqb3kimj"))))
876 (build-system gnu-build-system)
877 (arguments
878 `(#:phases
879 (alist-cons-before
880 'configure 'enable-deprecated
881 (lambda _
882 (substitute* "libgnome/Makefile.in"
883 (("-DG_DISABLE_DEPRECATED") "-DGLIB_DISABLE_DEPRECATION_WARNINGS")))
884 %standard-phases)))
885 (inputs `(("popt" ,popt)
886 ("libxml2" ,libxml2)))
887 (native-inputs
221ed17a
EB
888 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
889 ("intltool" ,intltool)
5698b8b8
JD
890 ("pkg-config" ,pkg-config)))
891 ;; The following are listed as Required in the .pc file
892 ;; (except for libcanberra -- which seems to be oversight on the part
893 ;; of the upstream developers -- anything that links against libgnome,
894 ;; must also link against libcanberra
895 (propagated-inputs
896 `(("libcanberra" ,libcanberra)
897 ("libbonobo" ,libbonobo)
898 ("gconf" ,gconf)
899 ("gnome-vfs" ,gnome-vfs)
900 ("glib" ,glib)))
901 (home-page "https://developer.gnome.org/libgnome/")
902 (synopsis "Useful routines for building applications")
903 (description "The libgnome library provides a number of useful routines
904for building modern applications, including session management, activation of
905files and URIs, and displaying help.")
906 (license license:lgpl2.0+)))
907
908
909(define-public libart-lgpl
910 (package
911 (name "libart-lgpl")
76c9b6aa 912 (version "2.3.21")
5698b8b8
JD
913 (source (origin
914 (method url-fetch)
915 (uri (let ((upstream-name "libart_lgpl"))
b38e45d8
EB
916 (string-append "mirror://gnome/sources/" upstream-name "/"
917 (version-major+minor version) "/"
918 upstream-name "-" version ".tar.bz2")))
5698b8b8
JD
919 (sha256
920 (base32
76c9b6aa 921 "1yknfkyzgz9s616is0l9gp5aray0f2ry4dw533jgzj8gq5s1xhgx"))))
5698b8b8
JD
922 (build-system gnu-build-system)
923 (native-inputs
924 `(("pkg-config" ,pkg-config)))
925 (home-page "https://people.gnome.org/~mathieu/libart")
926 (synopsis "2D drawing library")
927 (description "Libart is a 2D drawing library intended as a
928high-quality vector-based 2D library with antialiasing and alpha composition.")
929 (license license:lgpl2.0+)))
930
931
932
933(define-public libgnomecanvas
934 (package
935 (name "libgnomecanvas")
936 (version "2.30.3")
937 (source (origin
938 (method url-fetch)
b38e45d8
EB
939 (uri (string-append "mirror://gnome/sources/" name "/"
940 (version-major+minor version) "/"
941 name "-" version ".tar.gz"))
5698b8b8
JD
942 (sha256
943 (base32
944 "1nhnq4lfkk8ljkdafscwaggx0h95mq0rxnd7zgqyq0xb6kkqbjm8"))))
945 (build-system gnu-build-system)
946 ;; Mentioned as Required in the .pc file
947 (propagated-inputs `(("libart-lgpl" ,libart-lgpl)
948 ("gtk+" ,gtk+-2)))
949 (native-inputs
950 `(("intltool" ,intltool)
221ed17a 951 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
952 ("pkg-config" ,pkg-config)))
953 (home-page "https://developer.gnome.org/libgnomecanvas/")
954 (synopsis "Flexible widget for creating interactive structured graphics")
955 (description "The GnomeCanvas widget provides a flexible widget for
956creating interactive structured graphics.")
957 (license license:lgpl2.0+)))
958
959(define-public libgnomeui
960 (package
961 (name "libgnomeui")
962 (version "2.24.5")
963 (source (origin
964 (method url-fetch)
b38e45d8
EB
965 (uri (string-append "mirror://gnome/sources/" name "/"
966 (version-major+minor version) "/"
967 name "-" version ".tar.bz2"))
5698b8b8
JD
968 (sha256
969 (base32
970 "03rwbli76crkjl6gp422wrc9lqpl174k56cp9i96b7l8jlj2yddf"))))
971 (build-system gnu-build-system)
972 ;; Mentioned as Required in the .pc file
973 (propagated-inputs `(("libgnome" ,libgnome)
974 ("libgnome-keyring" ,libgnome-keyring)))
975 (inputs `(("libgnomecanvas" ,libgnomecanvas)
976 ("libbonoboui" ,libbonoboui)
977 ("libjpeg" ,libjpeg)
978 ("popt" ,popt)
979 ("libbonobo" ,libbonobo)
980 ("libxml2" ,libxml2)
981 ("libglade" ,libglade)))
982 (native-inputs
221ed17a
EB
983 `(("glib" ,glib "bin") ; for glib-mkenums, etc.
984 ("intltool" ,intltool)
5698b8b8
JD
985 ("pkg-config" ,pkg-config)))
986 (home-page "https://developer.gnome.org/libgnomeui/")
987 (synopsis "Additional widgets for applications")
35b9e423
EB
988 (description "The libgnomeui library provides additional widgets for
989applications. Many of the widgets from libgnomeui have already been ported to GTK+.")
5698b8b8
JD
990 (license license:lgpl2.0+)))
991
992(define-public libglade
993 (package
994 (name "libglade")
995 (version "2.6.4")
996 (source (origin
997 (method url-fetch)
b38e45d8
EB
998 (uri (string-append "mirror://gnome/sources/" name "/"
999 (version-major+minor version) "/"
1000 name "-" version ".tar.bz2"))
5698b8b8
JD
1001 (sha256
1002 (base32
1003 "1v2x2s04jry4gpabws92i0wq2ghd47yr5n9nhgnkd7c38xv1wdk4"))))
1004 (build-system gnu-build-system)
1005 (inputs
1006 `(("gtk+-2" ,gtk+-2)
1007 ("libxml2" ,libxml2)
1008 ("python" ,python))) ;; needed for the optional libglade-convert program
1009 (native-inputs
1010 `(("pkg-config" ,pkg-config)))
1011 (home-page "https://developer.gnome.org/libglade")
35b9e423
EB
1012 (synopsis "Load glade interfaces and access the glade built widgets")
1013 (description "Libglade is a library that provides interfaces for loading
5698b8b8
JD
1014graphical interfaces described in glade files and for accessing the
1015widgets built in the loading process.")
1016 (license license:gpl2+))) ; This is correct. GPL not LGPL
1017
1018(define-public libgnomeprint
1019 (package
1020 (name "libgnomeprint")
1021 (version "2.8.2")
1022 (source (origin
1023 (method url-fetch)
b38e45d8
EB
1024 (uri (string-append "mirror://gnome/sources/" name "/"
1025 (version-major+minor version) "/"
1026 name "-" version ".tar.bz2"))
5698b8b8
JD
1027 (sha256
1028 (base32
1029 "129ka3nn8gx9dlfry17ib79azxk45wzfv5rgqzw6dwx2b5ns8phm"))))
1030 (build-system gnu-build-system)
1031 (inputs
1032 `(("popt" ,popt)
1033 ("libart-lgpl" ,libart-lgpl)
1034 ("gtk+" ,gtk+-2)
44add1ce 1035 ("libxml2" ,libxml2)))
5698b8b8
JD
1036 (native-inputs
1037 `(("intltool" ,intltool)
221ed17a 1038 ("glib" ,glib "bin") ; for glib-genmarshal, etc.
5698b8b8
JD
1039 ("pkg-config" ,pkg-config)))
1040 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
35b9e423
EB
1041 (synopsis "Printing framework for GNOME")
1042 (description "Gnome-print is a high-quality printing framework for GNOME.")
5698b8b8
JD
1043 (license license:lgpl2.0+)))
1044
1045
1046(define-public libgnomeprintui
1047 (package
1048 (name "libgnomeprintui")
1049 (version "2.8.2")
1050 (source (origin
1051 (method url-fetch)
b38e45d8
EB
1052 (uri (string-append "mirror://gnome/sources/" name "/"
1053 (version-major+minor version) "/"
1054 name "-" version ".tar.bz2"))
5698b8b8
JD
1055 (sha256
1056 (base32
1057 "1ivipk7r61rg90p9kp889j28xlyyj6466ypvwa4jvnrcllnaajsw"))))
1058 (build-system gnu-build-system)
1059 ;; Mentioned as Required in the .pc file
1060 (propagated-inputs `(("libgnomeprint" ,libgnomeprint)))
1061 (inputs `(("gtk+" ,gtk+-2)
1062 ("glib" ,glib)
1063 ("gnome-icon-theme" ,gnome-icon-theme)
1064 ("libgnomecanvas" ,libgnomecanvas)
1065 ("libxml2" ,libxml2)))
1066 (native-inputs
1067 `(("intltool" ,intltool)
1068 ("pkg-config" ,pkg-config)))
1069 (home-page "https://projects.gnome.org/gnome-print/home/faq.html")
1070 (synopsis "Printing framework for GNOME")
1071 (description "Gnome-print is a high-quality printing framework for GNOME.")
1072 (license license:lgpl2.0+)))
1073
1074
1075(define-public libbonoboui
1076 (package
1077 (name "libbonoboui")
1078 (version "2.24.5")
1079 (source (origin
1080 (method url-fetch)
b38e45d8
EB
1081 (uri (string-append "mirror://gnome/sources/" name "/"
1082 (version-major+minor version) "/"
1083 name "-" version ".tar.bz2"))
5698b8b8
JD
1084 (sha256
1085 (base32
1086 "1kbgqh7bw0fdx4f1a1aqwpff7gp5mwhbaz60c6c98bc4djng5dgs"))))
1087 (build-system gnu-build-system)
1088 (arguments
1089 `(#:phases
1090 (alist-cons-before
1091 'check 'start-xserver
1092 (lambda* (#:key inputs #:allow-other-keys)
1093 (let ((xorg-server (assoc-ref inputs "xorg-server"))
1094 (disp ":1"))
1095
1096 (setenv "HOME" (getcwd))
1097 (setenv "DISPLAY" disp)
1098 ;; There must be a running X server and make check doesn't start one.
1099 ;; Therefore we must do it.
1100 (zero? (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp)))))
1101 %standard-phases)))
1102 ;; Mentioned as Required by the .pc file
1103 (propagated-inputs `(("libxml2" ,libxml2)))
1104 (inputs
1105 `(("popt" ,popt)
1106 ("pangox-compat" ,pangox-compat)
1107 ("libgnome" ,libgnome)
1108 ("libgnomecanvas" ,libgnomecanvas)
1109 ("libglade" ,libglade)))
1110 (native-inputs
221ed17a
EB
1111 `(("glib" ,glib "bin") ; for glib-genmarshal, etc.
1112 ("intltool" ,intltool)
5698b8b8
JD
1113 ("xorg-server" ,xorg-server) ; For running the tests
1114 ("pkg-config" ,pkg-config)))
1115 (home-page "https://developer.gnome.org/libbonoboui/")
1116 (synopsis "Some user interface controls using Bonobo")
1117 (description "The Bonobo UI library provides a number of user interface
1118controls using the Bonobo component framework.")
1119 (license license:lgpl2.0+)))
1120
b804c61e
JD
1121
1122(define-public goffice
1123 (package
1124 (name "goffice")
1125 (version "0.10.14")
1126 (source (origin
1127 (method url-fetch)
b38e45d8
EB
1128 (uri (string-append "mirror://gnome/sources/" name "/"
1129 (version-major+minor version) "/"
1130 name "-" version ".tar.xz"))
b804c61e
JD
1131 (sha256
1132 (base32 "0kj0iwng6w4axm7yv2zy7myn5dhw5ilrlq2pzrjlm9i852ikqy60"))))
1133 (build-system gnu-build-system)
1134 (inputs
1135 `(("gtk+" ,gtk+)
1136 ("libgsf" ,libgsf)
1137 ("librsvg" ,librsvg)
1138 ("libxslt" ,libxslt)
1139 ("libxml2" ,libxml2)))
1140 (native-inputs
1141 `(("intltool" ,intltool)
f280cdb1 1142 ("glib" ,glib "bin")
b804c61e
JD
1143 ("pkg-config" ,pkg-config)))
1144 (home-page "https://developer.gnome.org/goffice/")
1145 (synopsis "Document-centric objects and utilities")
1146 (description "A GLib/GTK+ set of document-centric objects and utilities.")
1147 (license
1148 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
1149 ;; Note: NOT LGPL
1150 (list license:gpl2 license:gpl3))))
1151
1152(define-public gnumeric
1153 (package
1154 (name "gnumeric")
1155 (version "1.12.17")
1156 (source (origin
1157 (method url-fetch)
b38e45d8
EB
1158 (uri (string-append "mirror://gnome/sources/" name "/"
1159 (version-major+minor version) "/"
1160 name "-" version ".tar.xz"))
b804c61e
JD
1161 (sha256
1162 (base32
1163 "18bvc3phghr4p5440fp8hm6gvp53d3mqs9cyc637zpmk0b6bcp7c"))))
1164 (build-system gnu-build-system)
1165 (arguments
1166 `(;; The gnumeric developers don't worry much about failing tests.
1167 ;; See https://bugzilla.gnome.org/show_bug.cgi?id=732387
1168 #:tests? #f
1169 #:phases
1170 (alist-cons-before
1171 'configure 'pre-conf
1172 (lambda* (#:key outputs #:allow-other-keys)
1173 ;; Make install tries to write into the directory of goffice
1174 ;; I am informed that this only affects the possibility to embed a
1175 ;; spreadsheet inside an Abiword document. So presumably when we
1176 ;; package Abiword we'll have to refer it to this directory.
1177 (substitute* "configure"
1178 (("^GOFFICE_PLUGINS_DIR=.*")
1179 (string-append "GOFFICE_PLUGINS_DIR="
1180 (assoc-ref outputs "out") "/goffice/plugins"))))
1181 %standard-phases)))
1182 (inputs
1183 `(("glib" ,glib)
1184 ("gtk+" ,gtk+)
1185 ("goffice" ,goffice)
1186 ("libgsf" ,libgsf)
1187 ("libxml2" ,libxml2)
1188 ("zlib" ,zlib)))
1189 (native-inputs
1190 `(("intltool" ,intltool)
b9663471 1191 ("glib:bin" ,glib "bin")
b804c61e
JD
1192 ("pkg-config" ,pkg-config)))
1193 (home-page "http://www.gnumeric.org")
66672a45
LC
1194 (synopsis "Spreadsheet application")
1195 (description
1196 "GNUmeric is a GNU spreadsheet application, running under GNOME. It is
1197interoperable with other spreadsheet applications. It has a vast array of
1198features beyond typical spreadsheet functionality, such as support for linear
1199and non-linear solvers, statistical analysis, and telecommunication
1200engineering.")
1201 (license
b804c61e
JD
1202 ;; Dual licensed under GPLv2 or GPLv3 (both without "or later")
1203 (list license:gpl2 license:gpl3))))