gnu: Add hunspell.
[jackhill/guix/guix.git] / gnu / packages / libreoffice.scm
CommitLineData
7b4570b4
AE
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
3;;; Copyright © 2014 John Darrington <jmd@gnu.org>
4;;;
5;;; This file is part of GNU Guix.
6;;;
7;;; GNU Guix is free software; you can redistribute it and/or modify it
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
12;;; GNU Guix is distributed in the hope that it will be useful, but
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20(define-module (gnu packages libreoffice)
21 #:use-module (guix packages)
22 #:use-module (guix download)
2a9a9441
AE
23 #:use-module ((guix licenses)
24 #:select (gpl2+ lgpl2.1+ mpl1.1 mpl2.0 non-copyleft))
7b4570b4
AE
25 #:use-module (guix build-system gnu)
26 #:use-module (gnu packages boost)
10ca4a1d 27 #:use-module (gnu packages check)
cfaf863f 28 #:use-module (gnu packages compression)
10ca4a1d 29 #:use-module (gnu packages doxygen)
9fe8a4ba 30 #:use-module (gnu packages ghostscript)
b4e5d8e7
AE
31 #:use-module (gnu packages gperf)
32 #:use-module (gnu packages icu4c)
2534fc04 33 #:use-module (gnu packages perl)
7b4570b4 34 #:use-module (gnu packages pkg-config)
b4e5d8e7
AE
35 #:use-module (gnu packages python)
36 #:use-module (gnu packages xml))
7b4570b4
AE
37
38(define-public ixion
39 (package
40 (name "ixion")
41 (version "0.9.1")
42 (source
43 (origin
44 (method url-fetch)
45 (uri (string-append "http://kohei.us/files/ixion/src/libixion-"
46 version ".tar.xz"))
47 (sha256 (base32
48 "18g3nk29ljiqbyi0ml49j2x3f3xrqckdm9i66sw5fxnj7hb5rqvp"))))
49 (build-system gnu-build-system)
50 (native-inputs
51 `(("pkg-config" ,pkg-config)))
52 (inputs
53 `(("mdds" ,mdds)
54 ("python" ,python-2))) ; looks for python.pc, not python3.pc
55 (home-page "https://gitlab.com/ixion/ixion")
56 (synopsis "General purpose formula parser and interpreter")
57 (description "Ixion is a library for calculating the results of formula
58expressions stored in multiple named targets, or \"cells\". The cells can
59be referenced from each other, and the library takes care of resolving
60their dependencies automatically upon calculation.")
61 (license mpl2.0)))
cfaf863f
AE
62
63(define-public orcus
64 (package
65 (name "orcus")
66 (version "0.7.1")
67 (source
68 (origin
69 (method url-fetch)
70 (uri (string-append "http://kohei.us/files/" name "/src/lib"
71 name "-" version ".tar.xz"))
72 (sha256 (base32
73 "0hva4qalg3dk6n1118ncr5fy8cqnj2f7fwldw7aa04124rj6p104"))))
74 (build-system gnu-build-system)
75 (native-inputs
76 `(("pkg-config" ,pkg-config)))
77 (inputs
78 `(("ixion" ,ixion)
79 ("mdds" ,mdds)
80 ("zlib" ,zlib)))
81 (home-page "https://gitlab.com/orcus/orcus")
82 (synopsis "File import filter library for spreadsheet documents")
83 (description "Orcus is a library that provides a collection of standalone
84file processing filters. It is currently focused on providing filters for
85spreadsheet documents. The library includes import filters for
86Microsoft Excel 2007 XML, Microsoft Excel 2003 XML, Open Document Spreadsheet,
87Plain Text, Gnumeric XML, Generic XML. It also includes low-level parsers for
88CSV, CSS and XML.")
89 (license mpl2.0)))
10ca4a1d
AE
90
91(define-public librevenge
92 (package
93 (name "librevenge")
94 (version "0.0.2")
95 (source
96 (origin
97 (method url-fetch)
98 (uri (string-append "mirror://sourceforge/libwpd/" name "/" name "-"
99 version ".tar.xz"))
100 (sha256 (base32
101 "03ygxyb0vfjv8raif5q62sl33b54wkr5rzgadb8slijm6k281wpn"))))
102 (build-system gnu-build-system)
103 (native-inputs
104 `(("boost" ,boost)
105 ("cppunit" ,cppunit)
106 ("doxygen" ,doxygen)
107 ("pkg-config" ,pkg-config)))
108 (inputs
109 `(("zlib" ,zlib)))
110 (arguments
111 ;; avoid triggering configure errors by simple inclusion of boost headers
112 `(#:configure-flags '("--disable-werror")))
113 (home-page "http://sourceforge.net/p/libwpd/wiki/librevenge/")
114 (synopsis "Document importer for office suites")
115 (description "Librevenge is a base library for writing document import
116filters. It has interfaces for text documents, vector graphics,
117spreadsheets and presentations.")
68267c63 118 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
fc15db2f
AE
119
120(define-public libwpd
121 (package
122 (name "libwpd")
123 (version "0.10.0")
124 (source
125 (origin
126 (method url-fetch)
127 (uri (string-append "mirror://sourceforge/libwpd/" name "/" name "-"
128 version ".tar.xz"))
129 (sha256 (base32
130 "0b6krzr6kxzm89g6bapn805kdayq70hn16n5b5wfs2lwrf0ag2wx"))))
131 (build-system gnu-build-system)
132 (native-inputs
133 `(("doxygen" ,doxygen)
134 ("pkg-config" ,pkg-config)))
135 (inputs
136 `(("librevenge" ,librevenge)
137 ("zlib" ,zlib)))
138 (home-page "http://libwpd.sourceforge.net/")
139 (synopsis "Library for importing WordPerfect documents")
140 (description "Libwpd is a C++ library designed to help process
141WordPerfect documents. It is most commonly used to import such documents
142into other word processors.")
68267c63 143 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
b4e5d8e7 144
b4e5d8e7
AE
145(define-public libe-book
146 (package
147 (name "libe-book")
148 (version "0.1.2")
149 (source
150 (origin
151 (method url-fetch)
152 (uri (string-append "mirror://sourceforge/libebook/libe-book-"
153 version "/libe-book-" version ".tar.xz"))
154 (sha256
155 (base32
156 "1v48pd32r2pfysr3a3igc4ivcf6vvb26jq4pdkcnq75p70alp2bz"))))
157 (build-system gnu-build-system)
158 (native-inputs
159 `(("cppunit" ,cppunit)
160 ("gperf" ,gperf)
161 ("pkg-config" ,pkg-config)))
162 (inputs `(("boost" ,boost)
163 ("icu4c" ,icu4c)
164 ("librevenge" ,librevenge)
165 ("libxml2" ,libxml2)))
166 (arguments
167 ;; avoid triggering configure errors by simple inclusion of boost headers
168 `(#:configure-flags '("--disable-werror")))
169 (home-page "http://libebook.sourceforge.net")
170 (synopsis "Library for import of reflowable e-book formats")
171 (description "Libe-book is a library and a set of tools for reading and
172converting various reflowable e-book formats. Currently supported are:
173Broad Band eBook, eReader .pdb, FictionBook v. 2 (including zipped files),
174PalmDoc Ebook, Plucker .pdb, QiOO (mobile format, for java-enabled
175cellphones), TCR (simple compressed text format), TealDoc, zTXT,
176ZVR (simple compressed text format).")
177 (license mpl2.0)))
2534fc04
AE
178
179(define-public libwpg
180 (package
181 (name "libwpg")
182 (version "0.3.0")
183 (source
184 (origin
185 (method url-fetch)
186 (uri (string-append "mirror://sourceforge/libwpg/" name "/" name "-"
187 version ".tar.xz"))
188 (sha256 (base32
189 "097jx8a638fwwfrzf6v29r1yhc34rq9526py7wf0ck2z4fcr2w3g"))))
190 (build-system gnu-build-system)
191 (native-inputs
192 `(("doxygen" ,doxygen)
193 ("pkg-config" ,pkg-config)))
194 (inputs
195 `(("librevenge" ,librevenge)
196 ("libwpd" ,libwpd)
197 ("perl" ,perl)
198 ("zlib" ,zlib)))
199 (home-page "http://libwpg.sourceforge.net/")
200 (synopsis "Library and tools for the WordPerfect Graphics format")
201 (description "The libwpg project provides a library and tools for
202working with graphics in the WPG (WordPerfect Graphics) format.")
68267c63 203 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
4cd369ed
AE
204
205(define-public libabw
206 (package
207 (name "libabw")
208 (version "0.1.1")
209 (source
210 (origin
211 (method url-fetch)
212 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
213 name "-" version ".tar.xz"))
214 (sha256 (base32
215 "0zi1zj4fpxgpglbbb5n1kg3dmhqq5rpf46lli89r5daavp19iing"))))
216 (build-system gnu-build-system)
217 (native-inputs
218 `(("doxygen" ,doxygen)
219 ("gperf" ,gperf)
220 ("perl" ,perl)
221 ("pkg-config" ,pkg-config)))
222 (inputs
223 `(("boost" ,boost)
224 ("librevenge" ,librevenge)
225 ("libxml2" ,libxml2)))
226 (arguments
227 ;; avoid triggering configure errors by simple inclusion of boost headers
228 `(#:configure-flags '("--disable-werror")))
229 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libabw")
230 (synopsis "Library for parsing the AbiWord format")
231 (description "Libabw is a library that parses the file format of
232AbiWord documents.")
233 (license mpl2.0)))
9fe8a4ba
AE
234
235(define-public libcdr
236 (package
237 (name "libcdr")
238 (version "0.1.1")
239 (source
240 (origin
241 (method url-fetch)
242 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
243 name "-" version ".tar.xz"))
244 (sha256 (base32
245 "07yzb1yr5kzv0binzj5swz3zzay2gw3xb0fbkc2zwdssgrkf19nh"))))
246 (build-system gnu-build-system)
247 (native-inputs
248 `(("doxygen" ,doxygen)
249 ("pkg-config" ,pkg-config)))
250 (inputs
251 `(("boost" ,boost)
252 ("icu4c" ,icu4c)
253 ("lcms" ,lcms)
254 ("librevenge" ,librevenge)
255 ("zlib" ,zlib)))
256 (arguments
257 ;; avoid triggering a build failure due to warnings
258 `(#:configure-flags '("--disable-werror")))
259 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libcdr")
260 (synopsis "Library for parsing the CorelDRAW format")
261 (description "Libcdr is a library that parses the file format of
262CorelDRAW documents of all versions.")
263 (license mpl2.0)))
3dc67e38
AE
264
265(define-public libetonyek
266 (package
267 (name "libetonyek")
268 (version "0.1.1")
269 (source
270 (origin
271 (method url-fetch)
272 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
273 name "-" version ".tar.xz"))
274 (sha256 (base32
275 "0gn8v24jb9r9kxppbws6xlc7knpd9mk2n9xjvziccv5f2l7mlslw"))))
276 (build-system gnu-build-system)
277 (native-inputs
278 `(("cppunit" ,cppunit)
279 ("doxygen" ,doxygen)
280 ("gperf" ,gperf)
281 ("pkg-config" ,pkg-config)))
282 (inputs
283 `(("boost" ,boost)
284 ("librevenge" ,librevenge)
285 ("libxml2" ,libxml2)))
286 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libetonyek")
287 (synopsis "Library for parsing the Apple Keynote format")
288 (description "Libetonyek is a library that parses the file format of
289Apple Keynote documents. It currently supports Keynote versions 2 to 5.")
290 (license mpl2.0)))
97aee2b6
AE
291
292(define-public libexttextcat
293 (package
294 (name "libexttextcat")
295 (version "3.4.4")
296 (source
297 (origin
298 (method url-fetch)
299 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
300 name "-" version ".tar.xz"))
301 (sha256 (base32
302 "14v2hkygnmf1zgahfm1fha47cr67iikrz2ymiqi28d2jydn0hk7j"))))
303 (build-system gnu-build-system)
304 (home-page "http://www.freedesktop.org/wiki/Software/libexttextcat/")
305 (synopsis "Text Categorization library")
306 (description "Libexttextcat is an N-Gram-Based Text Categorization
307library primarily intended for language guessing.")
308 (license (non-copyleft "file://LICENSE"
309 "See LICENSE in the distribution."))))
ef1c4148
AE
310
311(define-public libfreehand
312 (package
313 (name "libfreehand")
314 (version "0.1.0")
315 (source
316 (origin
317 (method url-fetch)
318 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
319 name "-" version ".tar.xz"))
320 (sha256 (base32
321 "01j7mxi4lmf72w1mv2r098p8l0csdd94w2gq0ncp93djn34al6ai"))))
322 (build-system gnu-build-system)
323 (native-inputs
324 `(("doxygen" ,doxygen)
325 ("gperf" ,gperf)
326 ("perl" ,perl)
327 ("pkg-config" ,pkg-config)))
328 (inputs
329 `(("librevenge" ,librevenge)
330 ("zlib" ,zlib)))
331 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libfreehand")
332 (synopsis "Library for parsing the FreeHand format")
333 (description "Libfreehand is a library that parses the file format of
334Aldus/Macromedia/Adobe FreeHand documents.")
335 (license mpl2.0)))
86e278fc
AE
336
337(define-public libmspub
338 (package
339 (name "libmspub")
340 (version "0.1.2")
341 (source
342 (origin
343 (method url-fetch)
344 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
345 name "-" version ".tar.xz"))
346 (sha256 (base32
347 "03sn6lxpr49sdq6j8q7fw7yjybyfahhs03z80388mh105pwapfmh"))))
348 (build-system gnu-build-system)
349 (native-inputs
350 `(("doxygen" ,doxygen)
351 ("pkg-config" ,pkg-config)))
352 (inputs
353 `(("boost" ,boost)
354 ("icu4c" ,icu4c)
355 ("librevenge" ,librevenge)
356 ("zlib" ,zlib)))
357 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libmspub")
358 (synopsis "Library for parsing the Microsoft Publisher format")
359 (description "Libmspub is a library that parses the file format of
360Microsoft Publisher documents of all versions.")
361 (license mpl2.0)))
f5d4a138
AE
362
363(define-public libpagemaker
364 (package
365 (name "libpagemaker")
366 (version "0.0.2")
367 (source
368 (origin
369 (method url-fetch)
370 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
371 name "-" version ".tar.xz"))
372 (sha256 (base32
373 "05zgj5ngg9z4b7dnrfs59nm0macm99lzyxv4mg53jcvp0mkgigfd"))))
374 (build-system gnu-build-system)
375 (native-inputs
376 `(("doxygen" ,doxygen)
377 ("pkg-config" ,pkg-config)))
378 (inputs
379 `(("boost" ,boost)
380 ("librevenge" ,librevenge)
381 ("zlib" ,zlib)))
382 (arguments
383 ;; avoid triggering a build failure due to warnings
384 `(#:configure-flags '("--disable-werror")))
385 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker")
386 (synopsis "Library for parsing the PageMaker format")
387 (description "Libpagemaker is a library that parses the file format of
388Aldus/Adobe PageMaker documents. Currently it only understands documents
389created by PageMaker version 6.x and 7.")
390 (license mpl2.0)))
56203284
AE
391
392(define-public libvisio
393 (package
394 (name "libvisio")
395 ;; FIXME: The newer version 0.1.1 fails its tests.
396 (version "0.1.0")
397 (source
398 (origin
399 (method url-fetch)
400 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
401 name "-" version ".tar.xz"))
402 (sha256 (base32
403 "0vvd2wyp4rw6s9xnj1dc9vgdpfvm45gnb5b9hhzif0fdnx4iskqf"))))
404 (build-system gnu-build-system)
405 (native-inputs
406 `(("cppunit" ,cppunit)
407 ("doxygen" ,doxygen)
408 ("gperf" ,gperf)
409 ("perl" ,perl)
410 ("pkg-config" ,pkg-config)))
411 (inputs
412 `(("boost" ,boost)
413 ("icu4c" ,icu4c)
414 ("librevenge" ,librevenge)
415 ("libxml2" ,libxml2)))
416 ;; FIXME: Not needed any more for newer version 0.1.1.
417 (arguments
418 ;; avoid triggering a build failure due to warnings
419 `(#:configure-flags '("--disable-werror")))
420 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libvisio")
421 (synopsis "Library for parsing the Microsoft Visio format")
422 (description "Libvisio is a library that parses the file format of
423Microsoft Visio documents of all versions.")
424 (license mpl2.0)))
74a63b11
AE
425
426(define-public libodfgen
427 (package
428 (name "libodfgen")
429 (version "0.1.3")
430 (source
431 (origin
432 (method url-fetch)
433 (uri (string-append "http://dev-www.libreoffice.org/src/"
434 name "-" version ".tar.bz2"))
435 (sha256 (base32
436 "074qsav86ixwi9zm1f77g9vxdf1ihm6n930vxjg8q3lwzd8g7lb6"))))
437 (build-system gnu-build-system)
438 (native-inputs
439 `(("doxygen" ,doxygen)
440 ("pkg-config" ,pkg-config)))
441 (inputs
442 `(("boost" ,boost)
443 ("librevenge" ,librevenge)
444 ("zlib" ,zlib)))
445 (arguments
446 ;; avoid triggering configure errors by simple inclusion of boost headers
447 `(#:configure-flags '("--disable-werror")))
448 (home-page "http://sourceforge.net/p/libwpd/wiki/libodfgen/")
449 (synopsis "ODF (Open Document Format) library")
450 (description "Libodfgen is a library for generating documents in the
451Open Document Format (ODF). It provides generator implementations for all
452document interfaces supported by librevenge:
453text documents, vector drawings, presentations and spreadsheets.")
454 (license (list mpl2.0 lgpl2.1+)))) ; dual license
1d59b83b
AE
455
456(define-public libmwaw
457 (package
458 (name "libmwaw")
459 (version "0.3.4")
460 (source
461 (origin
462 (method url-fetch)
463 (uri (string-append "mirror://sourceforge/" name "/" name "/"
464 name "-" version ".tar.xz"))
465 (sha256 (base32
466 "1sn95flxrh85qjsg1kk700c1ggxaaccr9j1nnw7x4daw8lky25ac"))))
467 (build-system gnu-build-system)
468 (native-inputs
469 `(("doxygen" ,doxygen)
470 ("pkg-config" ,pkg-config)))
471 (inputs
472 `(("boost" ,boost)
473 ("librevenge" ,librevenge)
474 ("zlib" ,zlib)))
475 (arguments
476 ;; avoid triggering configure errors by simple inclusion of boost headers
477 `(#:configure-flags '("--disable-werror")))
478 (home-page "http://sourceforge.net/p/libmwaw/wiki/Home/")
479 (synopsis "Import library for some old Macintosh text documents")
480 (description "Libmwaw contains some import filters for old Macintosh
481text documents (MacWrite, ClarisWorks, ... ) and for some graphics and
482spreadsheet documents.")
483 (license (list mpl2.0 lgpl2.1+)))) ; dual license
82741a8a
AE
484
485(define-public libwps
486 (package
487 (name "libwps")
488 (version "0.3.1")
489 (source
490 (origin
491 (method url-fetch)
492 (uri (string-append "mirror://sourceforge/" name "/" name "/"
493 name "-" version ".tar.xz"))
494 (sha256 (base32
495 "14wfhw1ahavhx4hrdzc4hdwxjlffrm939kswf2x1250jnmyjlb5v"))))
496 (build-system gnu-build-system)
497 (native-inputs
498 `(("doxygen" ,doxygen)
499 ("pkg-config" ,pkg-config)))
500 (inputs
501 `(("boost" ,boost)
502 ("librevenge" ,librevenge)
503 ("zlib" ,zlib)))
504 (arguments
505 ;; avoid triggering configure errors by simple inclusion of boost headers
506 `(#:configure-flags '("--disable-werror")))
507 (home-page "http://libwps.sourceforge.net/")
508 (synopsis "Import library for Microsoft Works text documents")
509 (description "Libwps is a library for importing files in the Microsoft
510Works word processor file format.")
511 (license (list mpl2.0 lgpl2.1+)))) ; dual license
2a9a9441
AE
512
513(define-public hunspell
514 (package
515 (name "hunspell")
516 (version "1.3.3")
517 (source
518 (origin
519 (method url-fetch)
520 (uri (string-append "mirror://sourceforge/" name "/"
521 name "-" version ".tar.gz"))
522 (sha256 (base32
523 "0v14ff9s37vkh45diaddndcrj0hmn67arh8xh8k79q9c1vgc1cm7"))))
524 (build-system gnu-build-system)
525 (home-page "http://hunspell.sourceforge.net/")
526 (synopsis "Spell checker")
527 (description "Hunspell is a spell checker and morphological analyzer
528library and program designed for languages with rich morphology and complex
529word compounding or character encoding.")
530 ;; triple license, including "mpl1.1 or later"
531 (license (list mpl1.1 gpl2+ lgpl2.1+))))