gnu: gtk+-2: Split binaries.
[jackhill/guix/guix.git] / gnu / packages / libreoffice.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014 John Darrington <jmd@gnu.org>
3 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
4 ;;; Copyright © 2016, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
5 ;;; Copyright © 2017 Alex Griffin <a@ajgrf.com>
6 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
7 ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
9 ;;; Copyright © 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
10 ;;; Copyright © 2017, 2018, 2019 Marius Bakke <mbakke@fastmail.com>
11 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
12 ;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
13 ;;; Copyright © 2018 Jonathan Brielmaier <jonathan.brielmaier@web.de>
14 ;;; Copyright © 2019 Chris Marusich <cmmarusich@gmail.com>
15 ;;;
16 ;;; This file is part of GNU Guix.
17 ;;;
18 ;;; GNU Guix is free software; you can redistribute it and/or modify it
19 ;;; under the terms of the GNU General Public License as published by
20 ;;; the Free Software Foundation; either version 3 of the License, or (at
21 ;;; your option) any later version.
22 ;;;
23 ;;; GNU Guix is distributed in the hope that it will be useful, but
24 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
25 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 ;;; GNU General Public License for more details.
27 ;;;
28 ;;; You should have received a copy of the GNU General Public License
29 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30
31 (define-module (gnu packages libreoffice)
32 #:use-module (guix build-system glib-or-gtk)
33 #:use-module (guix build-system gnu)
34 #:use-module (guix build-system trivial)
35 #:use-module (guix download)
36 #:use-module (guix git-download)
37 #:use-module ((guix licenses)
38 #:select (gpl2+ lgpl2.1+ lgpl3+ mpl1.1 mpl2.0
39 non-copyleft x11-style bsd-3))
40 #:use-module (guix packages)
41 #:use-module (guix utils)
42 #:use-module (ice-9 match)
43 #:use-module (gnu packages)
44 #:use-module (gnu packages autotools)
45 #:use-module (gnu packages base)
46 #:use-module (gnu packages bison)
47 #:use-module (gnu packages boost)
48 #:use-module (gnu packages check)
49 #:use-module (gnu packages compression)
50 #:use-module (gnu packages cups)
51 #:use-module (gnu packages curl)
52 #:use-module (gnu packages cyrus-sasl)
53 #:use-module (gnu packages databases)
54 #:use-module (gnu packages documentation)
55 #:use-module (gnu packages flex)
56 #:use-module (gnu packages fontutils)
57 #:use-module (gnu packages freedesktop)
58 #:use-module (gnu packages ghostscript)
59 #:use-module (gnu packages gl)
60 #:use-module (gnu packages glib)
61 #:use-module (gnu packages gnome)
62 #:use-module (gnu packages gperf)
63 #:use-module (gnu packages gnupg)
64 #:use-module (gnu packages gstreamer)
65 #:use-module (gnu packages gtk)
66 #:use-module (gnu packages icu4c)
67 #:use-module (gnu packages image)
68 #:use-module (gnu packages java)
69 #:use-module (gnu packages linux)
70 #:use-module (gnu packages maths)
71 #:use-module (gnu packages nss)
72 #:use-module (gnu packages openldap)
73 #:use-module (gnu packages pdf)
74 #:use-module (gnu packages perl)
75 #:use-module (gnu packages perl-compression)
76 #:use-module (gnu packages pkg-config)
77 #:use-module (gnu packages python)
78 #:use-module (gnu packages python-xyz)
79 #:use-module (gnu packages rdf)
80 #:use-module (gnu packages scanner)
81 #:use-module (gnu packages tls)
82 #:use-module (gnu packages version-control)
83 #:use-module (gnu packages xml)
84 #:use-module (gnu packages xorg))
85
86 (define-public ixion
87 (package
88 (name "ixion")
89 (version "0.14.1")
90 (source
91 (origin
92 (method url-fetch)
93 (uri (string-append "http://kohei.us/files/ixion/src/libixion-"
94 version ".tar.xz"))
95 (sha256
96 (base32
97 "14gdd6div4l22vnz3jn2qjxgjly98ck6p8c1v7386c41rx7kilba"))))
98 (build-system gnu-build-system)
99 (native-inputs
100 `(("pkg-config" ,pkg-config)))
101 (inputs
102 `(("mdds" ,mdds)
103 ("python" ,python)))
104 (home-page "https://gitlab.com/ixion/ixion")
105 (synopsis "General purpose formula parser and interpreter")
106 (description "Ixion is a library for calculating the results of formula
107 expressions stored in multiple named targets, or \"cells\". The cells can
108 be referenced from each other, and the library takes care of resolving
109 their dependencies automatically upon calculation.")
110 (license mpl2.0)))
111
112 (define-public orcus
113 (package
114 (name "orcus")
115 (version "0.14.1")
116 (source
117 (origin
118 (method url-fetch)
119 (uri (string-append "http://kohei.us/files/" name "/src/lib"
120 name "-" version ".tar.xz"))
121 (sha256
122 (base32
123 "1ays13a1x15j81dsrq0d3697v1bbqd3bfz3ajn6kb9d61y2drlgj"))))
124 (build-system gnu-build-system)
125 (native-inputs
126 `(("pkg-config" ,pkg-config)))
127 (inputs
128 `(("ixion" ,ixion)
129 ("mdds" ,mdds)
130 ("python" ,python)
131 ("zlib" ,zlib)))
132 (home-page "https://gitlab.com/orcus/orcus")
133 (synopsis "File import filter library for spreadsheet documents")
134 (description "Orcus is a library that provides a collection of standalone
135 file processing filters. It is currently focused on providing filters for
136 spreadsheet documents. The library includes import filters for
137 Microsoft Excel 2007 XML, Microsoft Excel 2003 XML, Open Document Spreadsheet,
138 Plain Text, Gnumeric XML, Generic XML. It also includes low-level parsers for
139 CSV, CSS and XML.")
140 (license mpl2.0)))
141
142 (define-public librevenge
143 (package
144 (name "librevenge")
145 (version "0.0.4")
146 (source
147 (origin
148 (method url-fetch)
149 (uri (string-append "mirror://sourceforge/libwpd/" name "/" name "-"
150 version "/" name "-" version ".tar.xz"))
151 (sha256 (base32
152 "1cj76cz4mqcy2mgv9l5xlc95bypyk8zbq0ls9cswqrs2y0lhfgwk"))))
153 (build-system gnu-build-system)
154 (native-inputs
155 `(("cppunit" ,cppunit)
156 ("doxygen" ,doxygen)
157 ("pkg-config" ,pkg-config)))
158 (inputs
159 `(("zlib" ,zlib)))
160 (propagated-inputs ; Referenced by .la files
161 `(("boost" ,boost)))
162 (arguments
163 ;; avoid triggering configure errors by simple inclusion of boost headers
164 `(#:configure-flags '("--disable-werror"
165 ;; Avoid undefined library references
166 "LDFLAGS=-lboost_system")))
167 (home-page "https://sourceforge.net/p/libwpd/wiki/librevenge/")
168 (synopsis "Document importer for office suites")
169 (description "Librevenge is a base library for writing document import
170 filters. It has interfaces for text documents, vector graphics,
171 spreadsheets and presentations.")
172 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
173
174 (define-public libwpd
175 (package
176 (name "libwpd")
177 (version "0.10.2")
178 (source
179 (origin
180 (method url-fetch)
181 (uri (string-append "mirror://sourceforge/libwpd/libwpd/"
182 "libwpd-" version "/libwpd-" version ".tar.xz"))
183 (sha256 (base32
184 "0436gnidx45a9vx114hhh216jrh57mqb9zyssyjfadagmyz6hgrj"))))
185 (build-system gnu-build-system)
186 (arguments
187 `(#:configure-flags '("--disable-werror")))
188 (native-inputs
189 `(("doxygen" ,doxygen)
190 ("pkg-config" ,pkg-config)))
191 (propagated-inputs
192 `(("librevenge" ,librevenge))) ; in Requires field of .pkg
193 (inputs
194 `(("zlib" ,zlib)))
195 (home-page "http://libwpd.sourceforge.net/")
196 (synopsis "Library for importing WordPerfect documents")
197 (description "Libwpd is a C++ library designed to help process
198 WordPerfect documents. It is most commonly used to import such documents
199 into other word processors.")
200 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
201
202 (define-public libe-book
203 (package
204 (name "libe-book")
205 (version "0.1.3")
206 (source
207 (origin
208 (method url-fetch)
209 (uri (string-append "mirror://sourceforge/libebook/libe-book-"
210 version "/libe-book-" version ".tar.xz"))
211 (sha256
212 (base32
213 "1yg1vws1wggzhjw672bpgh2x541g5i9wryf67g51m0r79zrqz3by"))))
214 (build-system gnu-build-system)
215 (native-inputs
216 `(("cppunit" ,cppunit)
217 ("gperf" ,gperf)
218 ("pkg-config" ,pkg-config)))
219 (propagated-inputs ; in Requires or Requires.private field of .pkg
220 `(("icu4c" ,icu4c)
221 ("liblangtag" ,liblangtag)
222 ("librevenge" ,librevenge)
223 ("libxml2" ,libxml2)))
224 (inputs
225 `(("boost" ,boost)))
226 (arguments
227 ;; avoid triggering configure errors by simple inclusion of boost headers
228 `(#:configure-flags '("--disable-werror")))
229 (home-page "http://libebook.sourceforge.net")
230 (synopsis "Library for import of reflowable e-book formats")
231 (description "Libe-book is a library and a set of tools for reading and
232 converting various reflowable e-book formats. Currently supported are:
233 Broad Band eBook, eReader .pdb, FictionBook v. 2 (including zipped files),
234 PalmDoc Ebook, Plucker .pdb, QiOO (mobile format, for java-enabled
235 cellphones), TCR (simple compressed text format), TealDoc, zTXT,
236 ZVR (simple compressed text format).")
237 (license mpl2.0)))
238
239 (define-public libepubgen
240 (package
241 (name "libepubgen")
242 (version "0.1.1")
243 (source
244 (origin
245 (method url-fetch)
246 (uri (string-append "mirror://sourceforge/libepubgen/libepubgen-"
247 version "/libepubgen-" version ".tar.xz"))
248 (sha256
249 (base32
250 "1b8mc9zzrqypj1v9zdy3ybc48pw0rfr06cyi7n6grvybjjwq9q03"))))
251 (build-system gnu-build-system)
252 (native-inputs
253 `(("cppunit" ,cppunit)
254 ("pkg-config" ,pkg-config)))
255 (inputs
256 `(("libxml2" ,libxml2)
257 ("boost" ,boost)))
258 (propagated-inputs ; in Requires field of .pkg
259 `(("librevenge" ,librevenge)))
260 (home-page "https://sourceforge.net/projects/libepubgen/")
261 (synopsis "EPUB generator library for librevenge")
262 (description "libepubgen is an EPUB generator for librevenge. It supports
263 librevenge's text document interface and--currently in a very limited
264 way--presentation and vector drawing interfaces.")
265 (license mpl2.0)))
266
267 (define-public libwpg
268 (package
269 (name "libwpg")
270 (version "0.3.3")
271 (source
272 (origin
273 (method url-fetch)
274 (uri (string-append "mirror://sourceforge/libwpg/libwpg/"
275 "libwpg-" version "/libwpg-" version ".tar.xz"))
276 (sha256 (base32
277 "074x159immf139szkswv2zapnq75p7xk10dbha2p9193hgwggcwr"))))
278 (build-system gnu-build-system)
279 (native-inputs
280 `(("doxygen" ,doxygen)
281 ("pkg-config" ,pkg-config)))
282 (propagated-inputs
283 `(("libwpd" ,libwpd))) ; in Requires field of .pkg
284 (inputs
285 `(("perl" ,perl)
286 ("zlib" ,zlib)))
287 (home-page "http://libwpg.sourceforge.net/")
288 (synopsis "Library and tools for the WordPerfect Graphics format")
289 (description "The libwpg project provides a library and tools for
290 working with graphics in the WPG (WordPerfect Graphics) format.")
291 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
292
293 (define-public libcmis
294 (package
295 (name "libcmis")
296 (version "0.5.2")
297 (source
298 (origin
299 (method url-fetch)
300 (uri (string-append "https://github.com/tdf/libcmis/releases/download/v"
301 version "/libcmis-" version ".tar.xz"))
302 (sha256
303 (base32
304 "18h0a2gsfxvlv03nlcfvw9bzsflq5sin9agq6za103hr0ab8vcfp"))))
305 (build-system gnu-build-system)
306 (native-inputs
307 `(("cppunit" ,cppunit)
308 ("pkg-config" ,pkg-config)))
309 (propagated-inputs ; in Requires field of .pkg
310 `(("curl" ,curl)
311 ("libxml2" ,libxml2)))
312 (inputs
313 `(("boost" ,boost)
314 ("cyrus-sasl" ,cyrus-sasl)
315 ("openssl" ,openssl)))
316 (arguments
317 `(#:configure-flags
318 (list
319 ;; FIXME: Man pages generation requires docbook-to-man; reenable
320 ;; it once this is available.
321 "--without-man"
322 ;; XXX: A configure test fails with GCC7 when including Boost headers.
323 "--disable-werror"
324 ;; During configure, the boost headers are found, but linking
325 ;; fails without the following flag.
326 (string-append "--with-boost="
327 (assoc-ref %build-inputs "boost")))))
328 (home-page "https://github.com/tdf/libcmis")
329 (synopsis "CMIS client library")
330 (description "LibCMIS is a C++ client library for the CMIS interface. It
331 allows C++ applications to connect to any ECM behaving as a CMIS server such
332 as Alfresco or Nuxeo.")
333 (license (list mpl1.1 gpl2+ lgpl2.1+)))) ; triple license
334
335 (define-public libabw
336 (package
337 (name "libabw")
338 (version "0.1.3")
339 (source
340 (origin
341 (method url-fetch)
342 (uri (string-append "https://dev-www.libreoffice.org/src/libabw/"
343 "libabw-" version ".tar.xz"))
344 (sha256 (base32
345 "1vbfrmnvib3cym0yyyabnd8xpx4f7wp20vnn09s6dln347fajqz7"))))
346 (build-system gnu-build-system)
347 (native-inputs
348 `(("doxygen" ,doxygen)
349 ("gperf" ,gperf)
350 ("perl" ,perl)
351 ("pkg-config" ,pkg-config)))
352 (propagated-inputs ; in Requires or Requires.private field of .pkg
353 `(("librevenge" ,librevenge)
354 ("libxml2" ,libxml2)))
355 (inputs
356 `(("boost" ,boost)))
357 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libabw")
358 (synopsis "Library for parsing the AbiWord format")
359 (description "Libabw is a library that parses the file format of
360 AbiWord documents.")
361 (license mpl2.0)))
362
363 (define-public libcdr
364 (package
365 (name "libcdr")
366 (version "0.1.5")
367 (source
368 (origin
369 (method url-fetch)
370 (uri (string-append "https://dev-www.libreoffice.org/src/" name "/"
371 name "-" version ".tar.xz"))
372 (sha256 (base32
373 "0j1skr11jwvafn0l6p37v3i4lqc8wcn489g8f7c4mqwbk94mrkka"))))
374 (build-system gnu-build-system)
375 (native-inputs
376 `(("cppunit" ,cppunit)
377 ("doxygen" ,doxygen)
378 ("pkg-config" ,pkg-config)))
379 (propagated-inputs ; in Requires or Requires.private field of .pkg
380 `(("icu4c" ,icu4c)
381 ("lcms" ,lcms)
382 ("librevenge" ,librevenge)
383 ("zlib" ,zlib)))
384 (inputs
385 `(("boost" ,boost)))
386 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libcdr")
387 (synopsis "Library for parsing the CorelDRAW format")
388 (description "Libcdr is a library that parses the file format of
389 CorelDRAW documents of all versions.")
390 (license mpl2.0)))
391
392 (define-public libetonyek
393 (package
394 (name "libetonyek")
395 (version "0.1.9")
396 (source
397 (origin
398 (method url-fetch)
399 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
400 name "-" version ".tar.xz"))
401 (sha256 (base32
402 "0jhsbdimiyijdqriy0zzkjjgc4wi6fjimhdg4mdybrlwg7l7f5p6"))))
403 (build-system gnu-build-system)
404 (arguments
405 `(#:configure-flags '("--with-mdds=1.4")))
406 (native-inputs
407 `(("cppunit" ,cppunit)
408 ("doxygen" ,doxygen)
409 ("gperf" ,gperf)
410 ("pkg-config" ,pkg-config)))
411 (propagated-inputs ; in Requires or Requires.private field of .pkg
412 `(("liblangtag" ,liblangtag)
413 ("librevenge" ,librevenge)
414 ("libxml2" ,libxml2)
415 ("zlib" ,zlib)))
416 (inputs
417 `(("boost" ,boost)
418 ("glm" ,glm)
419 ("mdds" ,mdds)))
420 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libetonyek")
421 (synopsis "Library for parsing the Apple Keynote format")
422 (description "Libetonyek is a library that parses the file format of
423 Apple Keynote documents. It currently supports Keynote versions 2 to 5.")
424 (license mpl2.0)))
425
426 (define-public liblangtag
427 (package
428 (name "liblangtag")
429 (version "0.6.2")
430 (source
431 (origin
432 (method url-fetch)
433 (uri (string-append "https://bitbucket.org/tagoh/liblangtag/downloads/"
434 name "-" version ".tar.bz2"))
435 (sha256
436 (base32
437 "0bnm4hllr8cfrybm8rw7b8n0nlhzhnv73bkg1bxk452g6a82f96n"))))
438 (build-system gnu-build-system)
439 (native-inputs
440 `(("libtool" ,libtool)
441 ("pkg-config" ,pkg-config)))
442 (inputs
443 `(("libxml2" ,libxml2)))
444 ;; As of December 2017, tagoh.bitbucket.org redirects to a hosting advert.
445 (home-page "https://bitbucket.org/tagoh/liblangtag")
446 (synopsis "Library to access tags for identifying languages")
447 (description "Liblangtag implements an interface to work with tags
448 for identifying languages as described in RFC 5646. It supports the
449 extensions described in RFC6067 and RFC6497, and Extension T for
450 language/locale identifiers as described in the Unicode CLDR
451 standard 21.0.2.")
452 (license (list lgpl3+ mpl2.0)))) ; dual license
453
454 (define-public libexttextcat
455 (package
456 (name "libexttextcat")
457 (version "3.4.5")
458 (source
459 (origin
460 (method url-fetch)
461 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
462 name "-" version ".tar.xz"))
463 (sha256 (base32
464 "1j6sjwkyhqvsgyw938bxxfwkzzi1mahk66g5342lv6j89jfvrz8k"))))
465 (build-system gnu-build-system)
466 (home-page "https://www.freedesktop.org/wiki/Software/libexttextcat/")
467 (synopsis "Text Categorization library")
468 (description "Libexttextcat is an N-Gram-Based Text Categorization
469 library primarily intended for language guessing.")
470 (license (non-copyleft "file://LICENSE"
471 "See LICENSE in the distribution."))))
472
473 (define-public libfreehand
474 (package
475 (name "libfreehand")
476 (version "0.1.2")
477 (source
478 (origin
479 (method url-fetch)
480 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
481 name "-" version ".tar.xz"))
482 (sha256 (base32
483 "1b1lvqh68rwij1yvmxy02hsmh7i74ma5767mk8mg5nx6chajshhf"))))
484 (build-system gnu-build-system)
485 (native-inputs
486 `(("cppunit" ,cppunit)
487 ("doxygen" ,doxygen)
488 ("gperf" ,gperf)
489 ("perl" ,perl)
490 ("pkg-config" ,pkg-config)))
491 (inputs
492 `(("icu4c" ,icu4c)
493 ("lcms" ,lcms)))
494 (propagated-inputs ; in Requires or Requires.private field of .pkg
495 `(("librevenge" ,librevenge)
496 ("zlib" ,zlib)))
497 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libfreehand")
498 (synopsis "Library for parsing the FreeHand format")
499 (description "Libfreehand is a library that parses the file format of
500 Aldus/Macromedia/Adobe FreeHand documents.")
501 (license mpl2.0)))
502
503 (define-public libmspub
504 (package
505 (name "libmspub")
506 (version "0.1.4")
507 (source
508 (origin
509 (method url-fetch)
510 (uri (string-append "https://dev-www.libreoffice.org/src/" name "/"
511 name "-" version ".tar.xz"))
512 (sha256 (base32
513 "1fhkn013gzg59f4z7rldpbi0nj7lgdqzxanspsqa6axvmahw2dpg"))))
514 (build-system gnu-build-system)
515 (native-inputs
516 `(("doxygen" ,doxygen)
517 ("pkg-config" ,pkg-config)))
518 (propagated-inputs ; in Requires or Requires.private field of .pkg
519 `(("icu4c" ,icu4c)
520 ("librevenge" ,librevenge)
521 ("zlib" ,zlib)))
522 (inputs
523 `(("boost" ,boost)))
524 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libmspub")
525 (synopsis "Library for parsing the Microsoft Publisher format")
526 (description "Libmspub is a library that parses the file format of
527 Microsoft Publisher documents of all versions.")
528 (license mpl2.0)))
529
530 (define-public libnumbertext
531 (package
532 (name "libnumbertext")
533 (version "1.0.5")
534 (source
535 (origin
536 (method url-fetch)
537 (uri (string-append "https://github.com/Numbertext/libnumbertext/"
538 "releases/download/" version
539 "/libnumbertext-" version ".tar.xz"))
540 (sha256
541 (base32 "1xzlwhwwhvr76kfdsw5gvfjfdayz803z65h331gv5dpc9imhijg1"))))
542 (build-system gnu-build-system)
543 (arguments
544 `(#:configure-flags '("--disable-static")))
545 (home-page "https://github.com/Numbertext/libnumbertext")
546 (synopsis "Language-neutral @code{NUMBERTEXT} and @code{MONEYTEXT} functions")
547 (description
548 "The libnumbertext library provides language-neutral @code{NUMBERTEXT}
549 and @code{MONEYTEXT} functions for LibreOffice Calc, available for C++ and
550 Java.")
551 (license (list lgpl3+ bsd-3))))
552
553 (define-public libpagemaker
554 (package
555 (name "libpagemaker")
556 (version "0.0.4")
557 (source
558 (origin
559 (method url-fetch)
560 (uri (string-append "https://dev-www.libreoffice.org/src/libpagemaker/"
561 "libpagemaker-" version ".tar.xz"))
562 (sha256 (base32
563 "17ai8ajffr0ixxmmcv3k5vgjlcsix38ldb4fw2arild70pbsrbb6"))))
564 (build-system gnu-build-system)
565 (arguments
566 `(#:configure-flags '("--disable-werror")))
567 (native-inputs
568 `(("doxygen" ,doxygen)
569 ("pkg-config" ,pkg-config)))
570 (propagated-inputs ; in Requires field of .pkg
571 `(("librevenge" ,librevenge)))
572 (inputs
573 `(("boost" ,boost)
574 ("zlib" ,zlib)))
575 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker")
576 (synopsis "Library for parsing the PageMaker format")
577 (description "Libpagemaker is a library that parses the file format of
578 Aldus/Adobe PageMaker documents. Currently it only understands documents
579 created by PageMaker version 6.x and 7.")
580 (license mpl2.0)))
581
582 (define-public libvisio
583 (package
584 (name "libvisio")
585 (version "0.1.7")
586 (source
587 (origin
588 (method url-fetch)
589 (uri (string-append "http://dev-www.libreoffice.org/src/libvisio/"
590 "libvisio-" version ".tar.xz"))
591 (sha256 (base32
592 "0k7adcbbf27l7n453cca1m6s9yj6qvb5j6bsg2db09ybf3w8vbwg"))))
593 (build-system gnu-build-system)
594 (native-inputs
595 `(("cppunit" ,cppunit)
596 ("doxygen" ,doxygen)
597 ("gperf" ,gperf)
598 ("perl" ,perl)
599 ("pkg-config" ,pkg-config)))
600 (propagated-inputs ; in Requires or Requires.private field of .pkg
601 `(("icu4c" ,icu4c)
602 ("librevenge" ,librevenge)
603 ("libxml2" ,libxml2)))
604 (inputs
605 `(("boost" ,boost)))
606 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libvisio")
607 (synopsis "Library for parsing the Microsoft Visio format")
608 (description "Libvisio is a library that parses the file format of
609 Microsoft Visio documents of all versions.")
610 (license mpl2.0)))
611
612 (define-public libodfgen
613 (package
614 (name "libodfgen")
615 (version "0.1.7")
616 (source
617 (origin
618 (method url-fetch)
619 (uri (string-append "mirror://sourceforge/libwpd/libodfgen/"
620 "libodfgen-" version "/libodfgen-" version ".tar.xz"))
621 (sha256 (base32
622 "0cdq48wlpp8m0qmndybv64r0m4vh0qsqx69cn6ms533cjlgljgij"))))
623 (build-system gnu-build-system)
624 (native-inputs
625 `(("doxygen" ,doxygen)
626 ("pkg-config" ,pkg-config)))
627 (propagated-inputs ; in Requires field of .pkg
628 `(("librevenge" ,librevenge)))
629 (inputs
630 `(("boost" ,boost)
631 ("zlib" ,zlib)))
632 (arguments
633 ;; avoid triggering configure errors by simple inclusion of boost headers
634 `(#:configure-flags '("--disable-werror")))
635 (home-page "https://sourceforge.net/p/libwpd/wiki/libodfgen/")
636 (synopsis "ODF (Open Document Format) library")
637 (description "Libodfgen is a library for generating documents in the
638 Open Document Format (ODF). It provides generator implementations for all
639 document interfaces supported by librevenge:
640 text documents, vector drawings, presentations and spreadsheets.")
641 (license (list mpl2.0 lgpl2.1+)))) ; dual license
642
643 (define-public libmwaw
644 (package
645 (name "libmwaw")
646 (version "0.3.15")
647 (source
648 (origin
649 (method url-fetch)
650 (uri (string-append "mirror://sourceforge/libmwaw/libmwaw/libmwaw-"
651 version "/libmwaw-" version ".tar.xz"))
652 (sha256 (base32
653 "1cdhm9yhanyv3w4vr73zhgyynmkhhkp3dyld7m11jd2yy04vnh04"))))
654 (build-system gnu-build-system)
655 (native-inputs
656 `(("doxygen" ,doxygen)
657 ("pkg-config" ,pkg-config)))
658 (propagated-inputs ; in Requires field of .pkg
659 `(("librevenge" ,librevenge)))
660 (inputs
661 `(("boost" ,boost)
662 ("zlib" ,zlib)))
663 (home-page "https://sourceforge.net/p/libmwaw/wiki/Home/")
664 (synopsis "Import library for some old Macintosh text documents")
665 (description "Libmwaw contains some import filters for old Macintosh
666 text documents (MacWrite, ClarisWorks, ... ) and for some graphics and
667 spreadsheet documents.")
668 (license (list mpl2.0 lgpl2.1+)))) ; dual license
669
670 (define-public libstaroffice
671 (package
672 (name "libstaroffice")
673 (version "0.0.6")
674 (source
675 (origin
676 (method url-fetch)
677 (uri (string-append "https://github.com/fosnola/libstaroffice/releases/download/"
678 version "/libstaroffice-" version ".tar.xz"))
679 (sha256 (base32
680 "1i0ykl0c94lc1qzb5mbyf9jr7qw8p38ja424whmhgrllh7ny203b"))))
681 (build-system gnu-build-system)
682 (inputs
683 `(("librevenge" ,librevenge)
684 ("zlib" ,zlib)))
685 (native-inputs
686 `(("pkg-config" ,pkg-config)))
687 (home-page "https://github.com/fosnola/libstaroffice")
688 (synopsis "Provides LibreOffice support for old StarOffice documents")
689 (description "@code{libstaroffice} is an import filter for the document formats
690 from the old StarOffice (.sdc, .sdw, ...).")
691 (license (list mpl2.0 lgpl2.1+)))) ; dual license
692
693 (define-public libwps
694 (package
695 (name "libwps")
696 (version "0.4.10")
697 (source
698 (origin
699 (method url-fetch)
700 (uri (string-append "mirror://sourceforge/" name "/" name "/"
701 name "-" version "/" name "-" version ".tar.xz"))
702 (sha256 (base32
703 "1ji9zd4wxmas03g8jyx0ih0amrqfazm5874a2v9rd7va50sf088l"))))
704 (build-system gnu-build-system)
705 (native-inputs
706 `(("doxygen" ,doxygen)
707 ("pkg-config" ,pkg-config)))
708 (propagated-inputs ; in Requires field of .pkg
709 `(("librevenge" ,librevenge)))
710 (inputs
711 `(("boost" ,boost)
712 ("zlib" ,zlib)))
713 (home-page "http://libwps.sourceforge.net/")
714 (synopsis "Import library for Microsoft Works text documents")
715 (description "Libwps is a library for importing files in the Microsoft
716 Works word processor file format.")
717 (license (list mpl2.0 lgpl2.1+)))) ; dual license
718
719 (define-public libzmf
720 (package
721 (name "libzmf")
722 (version "0.0.2")
723 (source
724 (origin
725 (method url-fetch)
726 (uri (string-append "http://dev-www.libreoffice.org/src/libzmf/libzmf-"
727 version ".tar.xz"))
728 (sha256 (base32
729 "08mg5kmkjrmqrd8j5rkzw9vdqlvibhb1ynp6bmfxnzq5rcq1l197"))))
730 (build-system gnu-build-system)
731 (arguments
732 ;; A harmless 'sign-compare' error pops up on i686 so disable '-Werror'.
733 '(#:configure-flags '("--disable-werror")))
734 (inputs
735 `(("boost" ,boost)
736 ("icu4c" ,icu4c)
737 ("libpng" ,libpng)
738 ("librevenge" ,librevenge)
739 ("zlib" ,zlib)))
740 (native-inputs
741 `(("cppunit" ,cppunit)
742 ("doxygen" ,doxygen)
743 ("pkg-config" ,pkg-config)))
744 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libzmf")
745 (synopsis "Parses file format of Zoner Callisto/Draw documents")
746 (description "Libzmf is a library that parses the file format of Zoner
747 Callisto/Draw documents. Currently it only understands documents created by
748 Zoner Draw version 4 and 5.")
749 (license mpl2.0)))
750
751 (define-public hunspell
752 (package
753 (name "hunspell")
754 (version "1.7.0")
755 (source
756 (origin
757 (method git-fetch)
758 (uri (git-reference
759 (url "https://github.com/hunspell/hunspell")
760 (commit (string-append "v" version))))
761 (file-name (git-file-name name version))
762 (sha256
763 (base32
764 "0qxlkd012r45ppd21kldbq9k5ac5nmxz290z6m2kch9l56v768k1"))))
765 (build-system gnu-build-system)
766 (native-inputs
767 `(("autoconf" ,autoconf)
768 ("automake" ,automake)
769 ("libtool" ,libtool)))
770 (inputs
771 `(("perl" ,perl)))
772 (native-search-paths (list (search-path-specification
773 (variable "DICPATH")
774 (files '("share/hunspell")))))
775 (home-page "https://hunspell.github.io/")
776 (synopsis "Spell checker")
777 (description "Hunspell is a spell checker and morphological analyzer
778 library and program designed for languages with rich morphology and complex
779 word compounding or character encoding.")
780 ;; Triple license, including "mpl1.1 or later".
781 (license (list mpl1.1 gpl2+ lgpl2.1+))))
782
783 (define (dicollecte-french-dictionary variant synopsis)
784 ;; Return a French dictionary package from dicollecte.org, for the given
785 ;; VARIANT.
786 (package
787 (name (match variant
788 ("classique" "hunspell-dict-fr")
789 (_ (string-append "hunspell-dict-fr-" variant))))
790 (version "6.2")
791 (source (origin
792 (uri (string-append
793 "http://www.dicollecte.org/download/fr/hunspell-french-dictionaries-v"
794 version ".zip"))
795 (method url-fetch)
796 (sha256
797 (base32
798 "139hfrn5p87sl8hqmgkf6sgvnxrk2mm8vd8xsm8sm98qjnwlg0f9"))))
799 (build-system trivial-build-system)
800 (native-inputs `(("unzip" ,unzip)))
801 (arguments
802 `(#:modules ((guix build utils))
803 #:builder (begin
804 (use-modules (guix build utils)
805 (srfi srfi-26))
806
807 (let* ((out (assoc-ref %outputs "out"))
808 (hunspell (string-append out "/share/hunspell"))
809 (myspell (string-append out "/share/myspell"))
810 (doc (string-append out "/share/doc/"
811 ,name))
812 (unzip (assoc-ref %build-inputs "unzip")))
813 (invoke (string-append unzip "/bin/unzip")
814 (assoc-ref %build-inputs "source"))
815 (for-each (cut install-file <> hunspell)
816 (find-files "."
817 ,(string-append variant
818 "\\.(dic|aff)$")))
819 (mkdir-p myspell)
820 (symlink hunspell (string-append myspell "/dicts"))
821 (for-each (cut install-file <> doc)
822 (find-files "." "\\.(txt|org|md)$"))
823 #t))))
824 (synopsis synopsis)
825 (description
826 "This package provides a dictionary for the Hunspell spell-checking
827 library.")
828 (home-page "https://www.dicollecte.org/home.php?prj=fr")
829 (license mpl2.0)))
830
831 (define-syntax define-french-dictionary
832 (syntax-rules (synopsis)
833 ((_ name variant (synopsis text))
834 (define-public name
835 (dicollecte-french-dictionary variant text)))))
836
837 (define-french-dictionary hunspell-dict-fr-classique
838 "classique"
839 ;; TRANSLATORS: In French, this is "Français classique".
840 (synopsis "Hunspell dictionary for ``classic'' French (recommended)"))
841
842 (define-french-dictionary hunspell-dict-fr-moderne
843 "moderne"
844 ;; TRANSLATORS: In French, this is "Français moderne".
845 (synopsis "Hunspell dictionary for ``modern'' French"))
846
847 (define-french-dictionary hunspell-dict-fr-réforme-1990
848 "reforme1990"
849 (synopsis "Hunspell dictionary for the post @dfn{1990 réforme} French"))
850
851 (define-french-dictionary hunspell-dict-fr-toutes-variantes
852 "toutesvariantes"
853 (synopsis "Hunspell dictionary for all variants of French"))
854
855 (define-public hyphen
856 (package
857 (name "hyphen")
858 (version "2.8.8")
859 (source
860 (origin
861 (method url-fetch)
862 (uri (string-append "mirror://sourceforge/hunspell/Hyphen/"
863 (version-major+minor version) "/"
864 name "-" version ".tar.gz"))
865 (sha256 (base32
866 "01ap9pr6zzzbp4ky0vy7i1983fwyqy27pl0ld55s30fdxka3ciih"))))
867 (build-system gnu-build-system)
868 (inputs
869 `(("perl" ,perl)))
870 (home-page "http://hunspell.sourceforge.net/")
871 (synopsis "Hyphenation library")
872 (description "Hyphen is a hyphenation library using TeX hyphenation
873 patterns, which are pre-processed by a perl script.")
874 ;; triple license, including "mpl1.1 or later"
875 (license (list mpl1.1 mpl2.0 gpl2+ lgpl2.1+))))
876
877 (define-public mythes
878 (package
879 (name "mythes")
880 (version "1.2.4")
881 (source
882 (origin
883 (method url-fetch)
884 (uri (string-append "mirror://sourceforge/hunspell/MyThes/" version "/"
885 name "-" version ".tar.gz"))
886 (sha256 (base32
887 "0prh19wy1c74kmzkkavm9qslk99gz8h8wmjvwzjc6lf8v2az708y"))))
888 (build-system gnu-build-system)
889 (native-inputs
890 `(("pkg-config" ,pkg-config)))
891 (inputs
892 `(("hunspell" ,hunspell)
893 ("perl" ,perl)))
894 (home-page "http://hunspell.sourceforge.net/")
895 (synopsis "Thesaurus")
896 (description "MyThes is a simple thesaurus that uses a structured text
897 data file and an index file with binary search to look up words and phrases
898 and to return information on pronunciations, meanings and synonyms.")
899 (license (non-copyleft "file://COPYING"
900 "See COPYING in the distribution."))))
901
902 (define-public libqxp
903 (package
904 (name "libqxp")
905 (version "0.0.2")
906 (source (origin
907 (method url-fetch)
908 (uri (string-append "https://dev-www.libreoffice.org/src/libqxp/"
909 "libqxp-" version ".tar.xz"))
910 (sha256
911 (base32
912 "0p4lb84m05wqd8qr8ni9sp80ivlm83ffn0nxiv4m42hj22qvcdz1"))))
913 (build-system gnu-build-system)
914 (inputs
915 `(("boost" ,boost)
916 ("icu4c" ,icu4c)
917 ("zlib" ,zlib)))
918 (native-inputs
919 `(("cppunit" ,cppunit)
920 ("pkg-config" ,pkg-config)))
921 (propagated-inputs
922 `(("librevenge" ,librevenge))) ; mentioned in Requires field
923 (home-page "https://www.libreoffice.org")
924 (synopsis "Library and tools for the QuarkXPress file format")
925 (description "libqxp is a library and a set of tools for reading and
926 converting QuarkXPress file format. It supports versions 3.1 to 4.1.")
927 (license mpl2.0)))
928
929 (define-public libreoffice
930 (package
931 (name "libreoffice")
932 (version "6.3.3.2")
933 (source
934 (origin
935 (method url-fetch)
936 (uri
937 (string-append
938 "https://download.documentfoundation.org/libreoffice/src/"
939 (version-prefix version 3) "/libreoffice-" version ".tar.xz"))
940 (sha256
941 (base32
942 "1kz5950vhjc33rx7pyl5sw9lxxm90hxrj7v8y86jy34skjrfa3nl"))
943 (patches (search-patches "libreoffice-icu.patch"
944 "libreoffice-glm.patch"))
945 (modules '((guix build utils)))
946 (snippet
947 '(begin
948 (for-each (lambda (file)
949 ;; Adjust to renamed function in Poppler 0.72.
950 (substitute* file (("getCString") "c_str")))
951 (find-files "sdext/source/pdfimport/xpdfwrapper"))
952 #t))))
953 (build-system glib-or-gtk-build-system)
954 (native-inputs
955 `(("bison" ,bison)
956 ("cppunit" ,cppunit)
957 ("flex" ,flex)
958 ("pkg-config" ,pkg-config)
959 ("python" ,python-wrapper)
960 ("which" ,which)))
961 (inputs
962 `(("bluez" ,bluez)
963 ("boost" ,boost)
964 ("clucene" ,clucene)
965 ("cups" ,cups)
966 ("dbus-glib" ,dbus-glib)
967 ("fontconfig" ,fontconfig)
968 ("fontforge" ,fontforge)
969 ("gconf" ,gconf)
970 ("glew" ,glew)
971 ("glm" ,glm)
972 ("gnupg" ,gnupg)
973 ("gobject-introspection" ,gobject-introspection)
974 ("gperf" ,gperf)
975 ("gpgme" ,gpgme)
976 ("graphite2" ,graphite2)
977 ("gst-plugins-base" ,gst-plugins-base)
978 ("gtk+" ,gtk+)
979 ("harfbuzz" ,harfbuzz)
980 ("hunspell" ,hunspell)
981 ("hyphen" ,hyphen)
982 ("libabw" ,libabw)
983 ("libcdr" ,libcdr)
984 ("libcmis" ,libcmis)
985 ("libjpeg-turbo" ,libjpeg-turbo)
986 ("libe-book" ,libe-book)
987 ("libepubgen" ,libepubgen)
988 ("libetonyek" ,libetonyek)
989 ("libexttextcat" ,libexttextcat)
990 ("libfreehand" ,libfreehand)
991 ("liblangtag" ,liblangtag)
992 ;; XXX: Perhaps this should be propagated from xmlsec.
993 ("libltdl" ,libltdl)
994 ("libmspub" ,libmspub)
995 ("libmwaw" ,libmwaw)
996 ("libnumbertext" ,libnumbertext)
997 ("libodfgen" ,libodfgen)
998 ("libpagemaker" ,libpagemaker)
999 ("libqxp" ,libqxp)
1000 ("libstaroffice" ,libstaroffice)
1001 ("libvisio" ,libvisio)
1002 ("libwpg" ,libwpg)
1003 ("libwps" ,libwps)
1004 ("libxrandr" ,libxrandr)
1005 ("libxrender" ,libxrender)
1006 ("libxslt" ,libxslt)
1007 ("libxt" ,libxt)
1008 ("libzmf" ,libzmf)
1009 ("lpsolve" ,lpsolve)
1010 ("mariadb" ,mariadb "dev")
1011 ("mdds" ,mdds)
1012 ("mythes" ,mythes)
1013 ("neon" ,neon)
1014 ("nspr" ,nspr)
1015 ("nss" ,nss)
1016 ("openldap" ,openldap)
1017 ("openssl" ,openssl)
1018 ("orcus" ,orcus)
1019 ("perl" ,perl)
1020 ("perl-archive-zip" ,perl-archive-zip)
1021 ("poppler" ,poppler)
1022 ("postgresql" ,postgresql)
1023 ("python" ,python)
1024 ("python-lxml" ,python-lxml)
1025 ("redland" ,redland)
1026 ("sane-backends" ,sane-backends)
1027 ("unixodbc" ,unixodbc)
1028 ("unzip" ,unzip)
1029 ("vigra" ,vigra)
1030 ("xdg-utils" ,xdg-utils)
1031 ("xmlsec" ,xmlsec-nss)
1032 ("zip" ,zip)))
1033 (arguments
1034 `(#:tests? #f ; Building the tests already fails.
1035 #:make-flags '("build-nocheck") ; Do not build unit tests, which fails.
1036 #:phases
1037 (modify-phases %standard-phases
1038 (add-before 'configure 'prepare-src
1039 (lambda* (#:key inputs #:allow-other-keys)
1040 (substitute*
1041 (list "sysui/CustomTarget_share.mk"
1042 "solenv/gbuild/gbuild.mk"
1043 "solenv/gbuild/platform/unxgcc.mk")
1044 (("/bin/sh") (which "sh")))
1045
1046 ;; GPGME++ headers are installed in a gpgme++ subdirectory, but
1047 ;; files in "xmlsecurity/source/gpg/" and elsewhere expect to
1048 ;; find them on the include path without a prefix.
1049 (substitute* '("xmlsecurity/Library_xsec_xmlsec.mk"
1050 "comphelper/Library_comphelper.mk")
1051 (("\\$\\$\\(INCLUDE\\)")
1052 (string-append "$$(INCLUDE) -I"
1053 (assoc-ref inputs "gpgme")
1054 "/include/gpgme++")))
1055
1056 ;; /usr/bin/xdg-open doesn't exist on Guix System.
1057 (substitute* '("shell/source/unix/exec/shellexec.cxx"
1058 "shell/source/unix/misc/senddoc.sh")
1059 (("/usr/bin/xdg-open")
1060 (string-append (assoc-ref inputs "xdg-utils")
1061 "/bin/xdg-open")))
1062
1063 #t))
1064 (add-after 'install 'bin-and-desktop-install
1065 ;; Create 'soffice' and 'libreoffice' symlinks to the executable
1066 ;; script.
1067 (lambda* (#:key outputs #:allow-other-keys)
1068 (let ((out (assoc-ref outputs "out")))
1069 (define (symlink-output src dst)
1070 (mkdir-p (dirname (string-append out dst)))
1071 (symlink (string-append out src) (string-append out dst)))
1072 (define (install src dst)
1073 (let ((dst (string-append out dst)))
1074 (mkdir-p (dirname dst))
1075 (copy-file src dst)))
1076 (define (install-desktop-file app)
1077 (let ((src (string-append "/lib/libreoffice/share/xdg/"
1078 app ".desktop"))
1079 (dst (string-append "/share/applications/libreoffice-"
1080 app ".desktop")))
1081 (substitute* (string-append out src)
1082 (("Exec=libreoffice[0-9]+\\.[0-9]+ ")
1083 (string-append "Exec=" out "/bin/libreoffice "))
1084 (("Icon=libreoffice.*")
1085 (string-append "Icon=" app "\n"))
1086 (("LibreOffice [0-9]+\\.[0-9]+")
1087 "LibreOffice"))
1088 (symlink-output src dst)))
1089 (define (install-appdata app)
1090 (install-file (string-append
1091 "sysui/desktop/appstream-appdata/"
1092 "libreoffice-" app ".appdata.xml")
1093 (string-append out "/share/appdata")))
1094 (symlink-output "/lib/libreoffice/program/soffice"
1095 "/bin/soffice")
1096 (symlink-output "/lib/libreoffice/program/soffice"
1097 "/bin/libreoffice")
1098 (install "workdir/CustomTarget/sysui/share/libreoffice/openoffice.keys"
1099 "/share/mime-info/libreoffice.keys")
1100 (install "workdir/CustomTarget/sysui/share/libreoffice/openoffice.mime"
1101 "/share/mime-info/libreoffice.mime")
1102 (install
1103 "workdir/CustomTarget/sysui/share/libreoffice/openoffice.org.xml"
1104 "/share/mime/packages/libreoffice.xml")
1105 (for-each install-desktop-file
1106 '("base" "calc" "draw" "impress" "writer"
1107 "math" "startcenter"))
1108 (for-each install-appdata
1109 '("base" "calc" "draw" "impress" "writer"))
1110 (mkdir-p (string-append out "/share/icons/hicolor"))
1111 (copy-recursively "sysui/desktop/icons/hicolor"
1112 (string-append out "/share/icons/hicolor")))
1113 #t)))
1114 #:configure-flags
1115 (list
1116 "--enable-release-build"
1117 ;; Avoid using all cpu cores by default
1118 (format #f "--with-parallelism=~d" (parallel-job-count))
1119 "--disable-fetch-external" ; disable downloads
1120 "--with-system-libs" ; enable all --with-system-* flags
1121 (string-append "--with-boost-libdir="
1122 (assoc-ref %build-inputs "boost") "/lib")
1123 ;; Avoid undefined symbols required by boost::spirit
1124 "LDFLAGS=-lboost_system"
1125 ;; Avoid a dependency on ucpp.
1126 "--with-idlc-cpp=cpp"
1127 ;; The fonts require an external tarball (crosextrafonts).
1128 ;; They should not be needed when system fonts are available.
1129 "--without-fonts"
1130 ;; With java, the build fails since sac.jar is missing.
1131 "--without-java"
1132 ;; FIXME: Enable once the corresponding inputs are packaged.
1133 "--disable-coinmp"
1134 "--disable-firebird-sdbc" ; embedded firebird
1135 ;; XXX: PDFium support requires fetching an external tarball and
1136 ;; patching the build scripts to work with GCC5. Try enabling this
1137 ;; when our default compiler is >=GCC 6.
1138 "--disable-pdfium"
1139 "--disable-gtk" ; disable use of GTK+ 2
1140 "--without-doxygen"
1141 "--enable-build-opensymbol")))
1142 (home-page "https://www.libreoffice.org/")
1143 (synopsis "Office suite")
1144 (description "LibreOffice is a comprehensive office suite. It contains
1145 a number of components: Writer, a word processor; Calc, a spreadsheet
1146 application; Impress, a presentation engine; Draw, a drawing and
1147 flowcharting application; Base, a database and database frontend;
1148 Math for editing mathematics.")
1149 (license mpl2.0)))