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 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 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
9 ;;; Copyright © 2017, 2018 Ludovic Courtès <ludo@gnu.org>
10 ;;; Copyright © 2017, 2018 Marius Bakke <mbakke@fastmail.com>
11 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
12 ;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
13 ;;; Copyright © 2018 Jonathan Brielmaier <jonathan.brielmaier@web.de>
15 ;;; This file is part of GNU Guix.
17 ;;; GNU Guix is free software; you can redistribute it and/or modify it
18 ;;; under the terms of the GNU General Public License as published by
19 ;;; the Free Software Foundation; either version 3 of the License, or (at
20 ;;; your option) any later version.
22 ;;; GNU Guix is distributed in the hope that it will be useful, but
23 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
24 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 ;;; GNU General Public License for more details.
27 ;;; You should have received a copy of the GNU General Public License
28 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30 (define-module (gnu packages libreoffice)
31 #:use-module (guix build-system glib-or-gtk)
32 #:use-module (guix build-system gnu)
33 #:use-module (guix build-system trivial)
34 #:use-module (guix download)
35 #:use-module ((guix licenses)
36 #:select (gpl2+ lgpl2.1+ lgpl3+ mpl1.1 mpl2.0
37 non-copyleft x11-style bsd-3))
38 #:use-module (guix packages)
39 #:use-module (guix utils)
40 #:use-module (ice-9 match)
41 #:use-module (gnu packages)
42 #:use-module (gnu packages autotools)
43 #:use-module (gnu packages base)
44 #:use-module (gnu packages bison)
45 #:use-module (gnu packages boost)
46 #:use-module (gnu packages check)
47 #:use-module (gnu packages compression)
48 #:use-module (gnu packages cups)
49 #:use-module (gnu packages curl)
50 #:use-module (gnu packages cyrus-sasl)
51 #:use-module (gnu packages databases)
52 #:use-module (gnu packages documentation)
53 #:use-module (gnu packages flex)
54 #:use-module (gnu packages fontutils)
55 #:use-module (gnu packages ghostscript)
56 #:use-module (gnu packages gl)
57 #:use-module (gnu packages glib)
58 #:use-module (gnu packages gnome)
59 #:use-module (gnu packages gperf)
60 #:use-module (gnu packages gnupg)
61 #:use-module (gnu packages gnuzilla)
62 #:use-module (gnu packages gstreamer)
63 #:use-module (gnu packages gtk)
64 #:use-module (gnu packages icu4c)
65 #:use-module (gnu packages image)
66 #:use-module (gnu packages java)
67 #:use-module (gnu packages linux)
68 #:use-module (gnu packages maths)
69 #:use-module (gnu packages openldap)
70 #:use-module (gnu packages pdf)
71 #:use-module (gnu packages perl)
72 #:use-module (gnu packages pkg-config)
73 #:use-module (gnu packages python)
74 #:use-module (gnu packages rdf)
75 #:use-module (gnu packages scanner)
76 #:use-module (gnu packages tls)
77 #:use-module (gnu packages version-control)
78 #:use-module (gnu packages xml)
79 #:use-module (gnu packages xorg))
88 (uri (string-append "http://kohei.us/files/ixion/src/libixion-"
92 "14gdd6div4l22vnz3jn2qjxgjly98ck6p8c1v7386c41rx7kilba"))))
93 (build-system gnu-build-system)
95 `(("pkg-config" ,pkg-config)))
99 (home-page "https://gitlab.com/ixion/ixion")
100 (synopsis "General purpose formula parser and interpreter")
101 (description "Ixion is a library for calculating the results of formula
102 expressions stored in multiple named targets, or \"cells\". The cells can
103 be referenced from each other, and the library takes care of resolving
104 their dependencies automatically upon calculation.")
114 (uri (string-append "http://kohei.us/files/" name "/src/lib"
115 name "-" version ".tar.xz"))
118 "1ays13a1x15j81dsrq0d3697v1bbqd3bfz3ajn6kb9d61y2drlgj"))))
119 (build-system gnu-build-system)
121 `(("pkg-config" ,pkg-config)))
127 (home-page "https://gitlab.com/orcus/orcus")
128 (synopsis "File import filter library for spreadsheet documents")
129 (description "Orcus is a library that provides a collection of standalone
130 file processing filters. It is currently focused on providing filters for
131 spreadsheet documents. The library includes import filters for
132 Microsoft Excel 2007 XML, Microsoft Excel 2003 XML, Open Document Spreadsheet,
133 Plain Text, Gnumeric XML, Generic XML. It also includes low-level parsers for
137 (define-public librevenge
144 (uri (string-append "mirror://sourceforge/libwpd/" name "/" name "-"
145 version "/" name "-" version ".tar.xz"))
147 "1cj76cz4mqcy2mgv9l5xlc95bypyk8zbq0ls9cswqrs2y0lhfgwk"))))
148 (build-system gnu-build-system)
150 `(("cppunit" ,cppunit)
152 ("pkg-config" ,pkg-config)))
155 (propagated-inputs ; Referenced by .la files
158 ;; avoid triggering configure errors by simple inclusion of boost headers
159 `(#:configure-flags '("--disable-werror"
160 ;; Avoid undefined library references
161 "LDFLAGS=-lboost_system")))
162 (home-page "https://sourceforge.net/p/libwpd/wiki/librevenge/")
163 (synopsis "Document importer for office suites")
164 (description "Librevenge is a base library for writing document import
165 filters. It has interfaces for text documents, vector graphics,
166 spreadsheets and presentations.")
167 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
169 (define-public libwpd
176 (uri (string-append "mirror://sourceforge/" name "/" name "/"
177 name "-" version "/" name "-" version ".tar.xz"))
179 "0436gnidx45a9vx114hhh216jrh57mqb9zyssyjfadagmyz6hgrj"))))
180 (build-system gnu-build-system)
182 `(("doxygen" ,doxygen)
183 ("pkg-config" ,pkg-config)))
185 `(("librevenge" ,librevenge))) ; in Requires field of .pkg
188 (home-page "http://libwpd.sourceforge.net/")
189 (synopsis "Library for importing WordPerfect documents")
190 (description "Libwpd is a C++ library designed to help process
191 WordPerfect documents. It is most commonly used to import such documents
192 into other word processors.")
193 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
195 (define-public libe-book
202 (uri (string-append "mirror://sourceforge/libebook/libe-book-"
203 version "/libe-book-" version ".tar.xz"))
206 "1yg1vws1wggzhjw672bpgh2x541g5i9wryf67g51m0r79zrqz3by"))))
207 (build-system gnu-build-system)
209 `(("cppunit" ,cppunit)
211 ("pkg-config" ,pkg-config)))
212 (propagated-inputs ; in Requires or Requires.private field of .pkg
214 ("liblangtag" ,liblangtag)
215 ("librevenge" ,librevenge)
216 ("libxml2" ,libxml2)))
220 ;; avoid triggering configure errors by simple inclusion of boost headers
221 `(#:configure-flags '("--disable-werror")))
222 (home-page "http://libebook.sourceforge.net")
223 (synopsis "Library for import of reflowable e-book formats")
224 (description "Libe-book is a library and a set of tools for reading and
225 converting various reflowable e-book formats. Currently supported are:
226 Broad Band eBook, eReader .pdb, FictionBook v. 2 (including zipped files),
227 PalmDoc Ebook, Plucker .pdb, QiOO (mobile format, for java-enabled
228 cellphones), TCR (simple compressed text format), TealDoc, zTXT,
229 ZVR (simple compressed text format).")
232 (define-public libepubgen
239 (uri (string-append "mirror://sourceforge/libepubgen/libepubgen-"
240 version "/libepubgen-" version ".tar.xz"))
243 "1b8mc9zzrqypj1v9zdy3ybc48pw0rfr06cyi7n6grvybjjwq9q03"))))
244 (build-system gnu-build-system)
246 `(("cppunit" ,cppunit)
247 ("pkg-config" ,pkg-config)))
249 `(("libxml2" ,libxml2)
251 (propagated-inputs ; in Requires field of .pkg
252 `(("librevenge" ,librevenge)))
253 (home-page "https://sourceforge.net/projects/libepubgen/")
254 (synopsis "EPUB generator library for librevenge")
255 (description "libepubgen is an EPUB generator for librevenge. It supports
256 librevenge's text document interface and--currently in a very limited
257 way--presentation and vector drawing interfaces.")
260 (define-public libwpg
267 (uri (string-append "mirror://sourceforge/" name "/" name "/"
268 name "-" version "/" name "-" version ".tar.xz"))
270 "0cwc5zkp210c661l0bvk6q21jg9ak5g8gmy578w5fgfnjymz3yjp"))))
271 (build-system gnu-build-system)
273 `(("doxygen" ,doxygen)
274 ("pkg-config" ,pkg-config)))
276 `(("libwpd" ,libwpd))) ; in Requires field of .pkg
280 (home-page "http://libwpg.sourceforge.net/")
281 (synopsis "Library and tools for the WordPerfect Graphics format")
282 (description "The libwpg project provides a library and tools for
283 working with graphics in the WPG (WordPerfect Graphics) format.")
284 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
286 (define-public libcmis
293 (uri (string-append "https://github.com/tdf/libcmis/releases/download/v"
294 version "/libcmis-" version ".tar.gz"))
297 "03kvl8ywsv5qrxblf0m6955mmvl5q2zpb6vj51vs7ayvxhidzjva"))))
298 (build-system gnu-build-system)
300 `(("cppunit" ,cppunit)
301 ("pkg-config" ,pkg-config)))
302 (propagated-inputs ; in Requires field of .pkg
304 ("libxml2" ,libxml2)))
307 ("cyrus-sasl" ,cyrus-sasl)
308 ("openssl" ,openssl)))
312 ;; FIXME: Man pages generation requires docbook-to-man; reenable
313 ;; it once this is available.
315 ;; avoid triggering configure errors by simple inclusion of
318 ;; During configure, the boost headers are found, but linking
319 ;; fails without the following flag.
320 (string-append "--with-boost="
321 (assoc-ref %build-inputs "boost")))
322 #:phases (modify-phases %standard-phases
323 (add-before 'build 'fix-boost-include
325 ;; This library moved in Boost and the compatibility
326 ;; redirect is no longer available since version 1.68.0.
327 (substitute* "src/libcmis/xml-utils.cxx"
328 (("boost/uuid/sha1.hpp")
329 "boost/uuid/detail/sha1.hpp"))
331 (home-page "https://github.com/tdf/libcmis")
332 (synopsis "CMIS client library")
333 (description "LibCMIS is a C++ client library for the CMIS interface. It
334 allows C++ applications to connect to any ECM behaving as a CMIS server such
335 as Alfresco or Nuxeo.")
336 (license (list mpl1.1 gpl2+ lgpl2.1+)))) ; triple license
338 (define-public libabw
345 (uri (string-append "https://dev-www.libreoffice.org/src/" name "/"
346 name "-" version ".tar.xz"))
348 "11949iscdb99f2jplxjd39282jxcrf2fw0sqbh5dl7gqb96r8whb"))))
349 (build-system gnu-build-system)
351 `(("doxygen" ,doxygen)
354 ("pkg-config" ,pkg-config)))
355 (propagated-inputs ; in Requires or Requires.private field of .pkg
356 `(("librevenge" ,librevenge)
357 ("libxml2" ,libxml2)))
361 ;; avoid triggering configure errors by simple inclusion of boost headers
362 `(#:configure-flags '("--disable-werror")))
363 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libabw")
364 (synopsis "Library for parsing the AbiWord format")
365 (description "Libabw is a library that parses the file format of
369 (define-public libcdr
376 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
377 name "-" version ".tar.xz"))
379 "0vd6likgk51j46llybkx4wq3674xzrhp0k82220pkx9x1aqfi9z7"))))
380 (build-system gnu-build-system)
382 `(("cppunit" ,cppunit)
384 ("pkg-config" ,pkg-config)))
385 (propagated-inputs ; in Requires or Requires.private field of .pkg
388 ("librevenge" ,librevenge)
393 ;; avoid triggering a build failure due to warnings
394 `(#:configure-flags '("--disable-werror")))
395 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libcdr")
396 (synopsis "Library for parsing the CorelDRAW format")
397 (description "Libcdr is a library that parses the file format of
398 CorelDRAW documents of all versions.")
401 (define-public libetonyek
408 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
409 name "-" version ".tar.xz"))
411 "0bfq9rwm040xhh7b3v0gsdavwvnrz4hkwnhpggarxk70mr3j7jcx"))))
412 (build-system gnu-build-system)
414 `(#:configure-flags '("--with-mdds=1.4")
415 #:phases (modify-phases %standard-phases
416 (add-before 'configure 'support-mdds-1.4
418 ;; This package already works fine with mdds 1.4, but the
419 ;; configure check is too strict. Taken from upstream.
420 (substitute* "configure"
421 (("mdds=1\\.2") "mdds=1.4")
422 (("mdds=\"1\\.2\"") "mdds=\"1.4\""))
425 `(("cppunit" ,cppunit)
429 ("liblangtag" ,liblangtag)
431 ("pkg-config" ,pkg-config)))
432 (propagated-inputs ; in Requires or Requires.private field of .pkg
433 `(("librevenge" ,librevenge)
434 ("libxml2" ,libxml2)))
437 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libetonyek")
438 (synopsis "Library for parsing the Apple Keynote format")
439 (description "Libetonyek is a library that parses the file format of
440 Apple Keynote documents. It currently supports Keynote versions 2 to 5.")
443 (define-public liblangtag
450 (uri (string-append "https://bitbucket.org/tagoh/liblangtag/downloads/"
451 name "-" version ".tar.bz2"))
454 "0bnm4hllr8cfrybm8rw7b8n0nlhzhnv73bkg1bxk452g6a82f96n"))))
455 (build-system gnu-build-system)
457 `(("libtool" ,libtool)
458 ("pkg-config" ,pkg-config)))
460 `(("libxml2" ,libxml2)))
461 ;; As of December 2017, tagoh.bitbucket.org redirects to a hosting advert.
462 (home-page "https://bitbucket.org/tagoh/liblangtag")
463 (synopsis "Library to access tags for identifying languages")
464 (description "Liblangtag implements an interface to work with tags
465 for identifying languages as described in RFC 5646. It supports the
466 extensions described in RFC6067 and RFC6497, and Extension T for
467 language/locale identifiers as described in the Unicode CLDR
469 (license (list lgpl3+ mpl2.0)))) ; dual license
471 (define-public libexttextcat
473 (name "libexttextcat")
478 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
479 name "-" version ".tar.xz"))
481 "1j6sjwkyhqvsgyw938bxxfwkzzi1mahk66g5342lv6j89jfvrz8k"))))
482 (build-system gnu-build-system)
483 (home-page "https://www.freedesktop.org/wiki/Software/libexttextcat/")
484 (synopsis "Text Categorization library")
485 (description "Libexttextcat is an N-Gram-Based Text Categorization
486 library primarily intended for language guessing.")
487 (license (non-copyleft "file://LICENSE"
488 "See LICENSE in the distribution."))))
490 (define-public libfreehand
497 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
498 name "-" version ".tar.xz"))
500 "1b1lvqh68rwij1yvmxy02hsmh7i74ma5767mk8mg5nx6chajshhf"))))
501 (build-system gnu-build-system)
503 `(("cppunit" ,cppunit)
507 ("pkg-config" ,pkg-config)))
511 (propagated-inputs ; in Requires or Requires.private field of .pkg
512 `(("librevenge" ,librevenge)
514 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libfreehand")
515 (synopsis "Library for parsing the FreeHand format")
516 (description "Libfreehand is a library that parses the file format of
517 Aldus/Macromedia/Adobe FreeHand documents.")
520 (define-public libmspub
527 (uri (string-append "https://dev-www.libreoffice.org/src/" name "/"
528 name "-" version ".tar.xz"))
530 "1fhkn013gzg59f4z7rldpbi0nj7lgdqzxanspsqa6axvmahw2dpg"))))
531 (build-system gnu-build-system)
533 `(("doxygen" ,doxygen)
534 ("pkg-config" ,pkg-config)))
535 (propagated-inputs ; in Requires or Requires.private field of .pkg
537 ("librevenge" ,librevenge)
541 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libmspub")
542 (synopsis "Library for parsing the Microsoft Publisher format")
543 (description "Libmspub is a library that parses the file format of
544 Microsoft Publisher documents of all versions.")
547 (define-public libnumbertext
549 (name "libnumbertext")
554 (uri (string-append "https://github.com/numbertext/" name
555 "/archive/" version ".tar.gz"))
558 "0wnsn4911fdd2na8jxkcvmk04a6xw6qlviic9w4qwg9fcym6866v"))
559 (file-name (string-append name "-" version ".tar.gz"))))
560 (build-system gnu-build-system)
562 `(#:configure-flags '("--disable-static")))
564 `(("autoconf" ,autoconf)
565 ("automake" ,automake)
567 ("pkg-config" ,pkg-config)))
568 (home-page "https://github.com/Numbertext/libnumbertext")
569 (synopsis "Language-neutral @code{NUMBERTEXT} and @code{MONEYTEXT} functions")
571 "The libnumbertext library provides language-neutral @code{NUMBERTEXT}
572 and @code{MONEYTEXT} functions for LibreOffice Calc, available for C++ and
574 (license (list lgpl3+ bsd-3))))
576 (define-public libpagemaker
578 (name "libpagemaker")
583 (uri (string-append "https://dev-www.libreoffice.org/src/" name "/"
584 name "-" version ".tar.xz"))
586 "17ai8ajffr0ixxmmcv3k5vgjlcsix38ldb4fw2arild70pbsrbb6"))))
587 (build-system gnu-build-system)
589 `(("doxygen" ,doxygen)
590 ("pkg-config" ,pkg-config)))
591 (propagated-inputs ; in Requires field of .pkg
592 `(("librevenge" ,librevenge)))
596 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker")
597 (synopsis "Library for parsing the PageMaker format")
598 (description "Libpagemaker is a library that parses the file format of
599 Aldus/Adobe PageMaker documents. Currently it only understands documents
600 created by PageMaker version 6.x and 7.")
603 (define-public libvisio
610 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
611 name "-" version ".tar.xz"))
613 "1yahpfl13qk6178irv8jn5ppxdn7isafqisyqsdw0lqxcz9h447y"))))
614 (build-system gnu-build-system)
616 `(("cppunit" ,cppunit)
620 ("pkg-config" ,pkg-config)))
621 (propagated-inputs ; in Requires or Requires.private field of .pkg
623 ("librevenge" ,librevenge)
624 ("libxml2" ,libxml2)))
627 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libvisio")
628 (synopsis "Library for parsing the Microsoft Visio format")
629 (description "Libvisio is a library that parses the file format of
630 Microsoft Visio documents of all versions.")
633 (define-public libodfgen
640 (uri (string-append "mirror://sourceforge/libwpd/" name "/"
641 name "-" version "/" name "-" version ".tar.xz"))
643 "0cdq48wlpp8m0qmndybv64r0m4vh0qsqx69cn6ms533cjlgljgij"))))
644 (build-system gnu-build-system)
646 `(("doxygen" ,doxygen)
647 ("pkg-config" ,pkg-config)))
648 (propagated-inputs ; in Requires field of .pkg
649 `(("librevenge" ,librevenge)))
654 ;; avoid triggering configure errors by simple inclusion of boost headers
655 `(#:configure-flags '("--disable-werror")))
656 (home-page "https://sourceforge.net/p/libwpd/wiki/libodfgen/")
657 (synopsis "ODF (Open Document Format) library")
658 (description "Libodfgen is a library for generating documents in the
659 Open Document Format (ODF). It provides generator implementations for all
660 document interfaces supported by librevenge:
661 text documents, vector drawings, presentations and spreadsheets.")
662 (license (list mpl2.0 lgpl2.1+)))) ; dual license
664 (define-public libmwaw
671 (uri (string-append "mirror://sourceforge/" name "/" name "/" name "-"
672 version "/" name "-" version ".tar.xz"))
674 "1s9wyf8pyh3fbazq2d2b6fgi7s7bid60viw2xbdkmn2ywlfbza5c"))))
675 (build-system gnu-build-system)
677 `(("doxygen" ,doxygen)
678 ("pkg-config" ,pkg-config)))
679 (propagated-inputs ; in Requires field of .pkg
680 `(("librevenge" ,librevenge)))
684 (home-page "https://sourceforge.net/p/libmwaw/wiki/Home/")
685 (synopsis "Import library for some old Macintosh text documents")
686 (description "Libmwaw contains some import filters for old Macintosh
687 text documents (MacWrite, ClarisWorks, ... ) and for some graphics and
688 spreadsheet documents.")
689 (license (list mpl2.0 lgpl2.1+)))) ; dual license
691 (define-public libstaroffice
693 (name "libstaroffice")
698 (uri (string-append "https://github.com/fosnola/libstaroffice/releases/download/"
699 version "/libstaroffice-" version ".tar.xz"))
701 "1i0ykl0c94lc1qzb5mbyf9jr7qw8p38ja424whmhgrllh7ny203b"))))
702 (build-system gnu-build-system)
704 `(("librevenge" ,librevenge)
707 `(("pkg-config" ,pkg-config)))
708 (home-page "https://github.com/fosnola/libstaroffice")
709 (synopsis "Provides LibreOffice support for old StarOffice documents")
710 (description "@code{libstaroffice} is an import filter for the document formats
711 from the old StarOffice (.sdc, .sdw, ...).")
712 (license (list mpl2.0 lgpl2.1+)))) ; dual license
714 (define-public libwps
721 (uri (string-append "mirror://sourceforge/" name "/" name "/"
722 name "-" version "/" name "-" version ".tar.xz"))
724 "1ji9zd4wxmas03g8jyx0ih0amrqfazm5874a2v9rd7va50sf088l"))))
725 (build-system gnu-build-system)
727 `(("doxygen" ,doxygen)
728 ("pkg-config" ,pkg-config)))
729 (propagated-inputs ; in Requires field of .pkg
730 `(("librevenge" ,librevenge)))
734 (home-page "http://libwps.sourceforge.net/")
735 (synopsis "Import library for Microsoft Works text documents")
736 (description "Libwps is a library for importing files in the Microsoft
737 Works word processor file format.")
738 (license (list mpl2.0 lgpl2.1+)))) ; dual license
740 (define-public libzmf
747 (uri (string-append "http://dev-www.libreoffice.org/src/libzmf/libzmf-"
750 "08mg5kmkjrmqrd8j5rkzw9vdqlvibhb1ynp6bmfxnzq5rcq1l197"))))
751 (build-system gnu-build-system)
753 ;; A harmless 'sign-compare' error pops up on i686 so disable '-Werror'.
754 '(#:configure-flags '("--disable-werror")))
759 ("librevenge" ,librevenge)
762 `(("cppunit" ,cppunit)
764 ("pkg-config" ,pkg-config)))
765 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libzmf")
766 (synopsis "Parses file format of Zoner Callisto/Draw documents")
767 (description "Libzmf is a library that parses the file format of Zoner
768 Callisto/Draw documents. Currently it only understands documents created by
769 Zoner Draw version 4 and 5.")
772 (define-public hunspell
779 (uri (string-append "https://github.com/hunspell/hunspell/archive/v"
782 "1i7lsv2cm0713ia3j5wjkcrhpfp3lqpjpwp4d3v18n7ycaqcxn9w"))
783 (file-name (string-append name "-" version ".tar.gz"))))
784 (build-system gnu-build-system)
786 `(("autoconf" ,autoconf)
787 ("automake" ,automake)
788 ("libtool" ,libtool)))
791 (native-search-paths (list (search-path-specification
793 (files '("share/hunspell")))))
794 (home-page "https://hunspell.github.io/")
795 (synopsis "Spell checker")
796 (description "Hunspell is a spell checker and morphological analyzer
797 library and program designed for languages with rich morphology and complex
798 word compounding or character encoding.")
799 ;; Triple license, including "mpl1.1 or later".
800 (license (list mpl1.1 gpl2+ lgpl2.1+))))
802 (define (dicollecte-french-dictionary variant synopsis)
803 ;; Return a French dictionary package from dicollecte.org, for the given
807 ("classique" "hunspell-dict-fr")
808 (_ (string-append "hunspell-dict-fr-" variant))))
812 "http://www.dicollecte.org/download/fr/hunspell-french-dictionaries-v"
817 "139hfrn5p87sl8hqmgkf6sgvnxrk2mm8vd8xsm8sm98qjnwlg0f9"))))
818 (build-system trivial-build-system)
819 (native-inputs `(("unzip" ,unzip)))
821 `(#:modules ((guix build utils))
823 (use-modules (guix build utils)
826 (let* ((out (assoc-ref %outputs "out"))
827 (hunspell (string-append out "/share/hunspell"))
828 (myspell (string-append out "/share/myspell"))
829 (doc (string-append out "/share/doc/"
831 (unzip (assoc-ref %build-inputs "unzip")))
832 (invoke (string-append unzip "/bin/unzip")
833 (assoc-ref %build-inputs "source"))
834 (for-each (cut install-file <> hunspell)
836 ,(string-append variant
839 (symlink hunspell (string-append myspell "/dicts"))
840 (for-each (cut install-file <> doc)
841 (find-files "." "\\.(txt|org|md)$"))
845 "This package provides a dictionary for the Hunspell spell-checking
847 (home-page "https://www.dicollecte.org/home.php?prj=fr")
850 (define-syntax define-french-dictionary
851 (syntax-rules (synopsis)
852 ((_ name variant (synopsis text))
854 (dicollecte-french-dictionary variant text)))))
856 (define-french-dictionary hunspell-dict-fr-classique
858 ;; TRANSLATORS: In French, this is "Français classique".
859 (synopsis "Hunspell dictionary for ``classic'' French (recommended)"))
861 (define-french-dictionary hunspell-dict-fr-moderne
863 ;; TRANSLATORS: In French, this is "Français moderne".
864 (synopsis "Hunspell dictionary for ``modern'' French"))
866 (define-french-dictionary hunspell-dict-fr-réforme-1990
868 (synopsis "Hunspell dictionary for the post @dfn{1990 réforme} French"))
870 (define-french-dictionary hunspell-dict-fr-toutes-variantes
872 (synopsis "Hunspell dictionary for all variants of French"))
874 (define-public hyphen
881 (uri (string-append "mirror://sourceforge/hunspell/Hyphen/"
882 (version-major+minor version) "/"
883 name "-" version ".tar.gz"))
885 "01ap9pr6zzzbp4ky0vy7i1983fwyqy27pl0ld55s30fdxka3ciih"))))
886 (build-system gnu-build-system)
889 (home-page "http://hunspell.sourceforge.net/")
890 (synopsis "Hyphenation library")
891 (description "Hyphen is a hyphenation library using TeX hyphenation
892 patterns, which are pre-processed by a perl script.")
893 ;; triple license, including "mpl1.1 or later"
894 (license (list mpl1.1 mpl2.0 gpl2+ lgpl2.1+))))
896 (define-public mythes
903 (uri (string-append "mirror://sourceforge/hunspell/MyThes/" version "/"
904 name "-" version ".tar.gz"))
906 "0prh19wy1c74kmzkkavm9qslk99gz8h8wmjvwzjc6lf8v2az708y"))))
907 (build-system gnu-build-system)
909 `(("pkg-config" ,pkg-config)))
911 `(("hunspell" ,hunspell)
913 (home-page "http://hunspell.sourceforge.net/")
914 (synopsis "Thesaurus")
915 (description "MyThes is a simple thesaurus that uses a structured text
916 data file and an index file with binary search to look up words and phrases
917 and to return information on pronunciations, meanings and synonyms.")
918 (license (non-copyleft "file://COPYING"
919 "See COPYING in the distribution."))))
921 (define-public libqxp
927 (uri (string-append "https://dev-www.libreoffice.org/src/libqxp/"
928 "libqxp-" version ".tar.xz"))
931 "0wswz49y0lqwqw2nj9j7jaj5ag88hapcz8czgkxax57zhihpy9cc"))))
932 (build-system gnu-build-system)
938 `(("cppunit" ,cppunit)
939 ("pkg-config" ,pkg-config)))
941 `(("librevenge" ,librevenge))) ; mentioned in Requires field
942 (home-page "https://www.libreoffice.org")
943 (synopsis "Library and tools for the QuarkXPress file format")
944 (description "libqxp is a library and a set of tools for reading and
945 converting QuarkXPress file format. It supports versions 3.1 to 4.1.")
948 (define-public libreoffice
957 "https://download.documentfoundation.org/libreoffice/src/"
958 (version-prefix version 3) "/libreoffice-" version ".tar.xz"))
961 "0i4gf3qi16fg7dxq2l4vhkwh4f5lx7xd1ilpzcw26vccqkv3hvyl"))
963 (append (list (origin
964 ;; Support newer versions of Orcus and MDDS. These patches
965 ;; are taken from upstream, but we use the patches from Arch
966 ;; because they are adapted for the release tarball.
967 ;; Note: remove the related substitutions below when these
968 ;; are no longer needed.
970 (uri (string-append "https://git.archlinux.org/svntogit"
971 "/packages.git/plain/trunk/"
972 "0001-Update-orcus-to-0.14.0.patch?&id="
973 "4002fa927f2a143bd2ec008a0c400b2ce9f2c8a7"))
974 (file-name "libreoffice-orcus.patch")
977 "0v1knblrmfzkb4g9pm5mdnrmjib59bznvca1ygbwlap2ln1h4mk0")))
980 (uri (string-append "https://git.archlinux.org/svntogit"
981 "/packages.git/plain/trunk/"
982 "0001-Update-mdds-to-1.4.1.patch?&id="
983 "4002fa927f2a143bd2ec008a0c400b2ce9f2c8a7"))
984 (file-name "libreoffice-mdds.patch")
987 "0apbmammmp4pk473xiv5vk50r4c5gjvqzf9jkficksvz58q6114f"))))
988 (search-patches "libreoffice-icu.patch"
989 "libreoffice-glm.patch")))))
990 (build-system glib-or-gtk-build-system)
993 ("cppunit" ,cppunit-1.14)
995 ("pkg-config" ,pkg-config)
996 ("python" ,python-wrapper)
1001 ("clucene" ,clucene)
1003 ("dbus-glib" ,dbus-glib)
1004 ("fontconfig" ,fontconfig)
1010 ("graphite2" ,graphite2)
1011 ("gst-plugins-base" ,gst-plugins-base)
1013 ("harfbuzz" ,harfbuzz)
1014 ("hunspell" ,hunspell)
1018 ("libcmis" ,libcmis)
1019 ("libjpeg-turbo" ,libjpeg-turbo)
1020 ("libe-book" ,libe-book)
1021 ("libepubgen" ,libepubgen)
1022 ("libetonyek" ,libetonyek)
1023 ("libexttextcat" ,libexttextcat)
1024 ("libfreehand" ,libfreehand)
1025 ("liblangtag" ,liblangtag)
1026 ;; XXX: Perhaps this should be propagated from xmlsec.
1027 ("libltdl" ,libltdl)
1028 ("libmspub" ,libmspub)
1029 ("libmwaw" ,libmwaw)
1030 ("libnumbertext" ,libnumbertext)
1031 ("libodfgen" ,libodfgen)
1032 ("libpagemaker" ,libpagemaker)
1034 ("libstaroffice" ,libstaroffice)
1035 ("libvisio" ,libvisio)
1038 ("libxrandr" ,libxrandr)
1039 ("libxrender" ,libxrender)
1040 ("libxslt" ,libxslt)
1043 ("lpsolve" ,lpsolve)
1049 ("openldap" ,openldap)
1050 ("openssl" ,openssl)
1053 ("perl-archive-zip" ,perl-archive-zip)
1054 ("poppler" ,poppler)
1055 ("postgresql" ,postgresql)
1057 ("python-lxml" ,python-lxml)
1058 ("redland" ,redland)
1059 ("sane-backends" ,sane-backends)
1060 ("unixodbc" ,unixodbc)
1063 ("xmlsec" ,xmlsec-nss)
1066 `(#:tests? #f ; Building the tests already fails.
1067 #:make-flags '("build-nocheck") ; Do not build unit tests, which fails.
1069 (modify-phases %standard-phases
1070 (add-before 'configure 'prepare-src
1071 (lambda* (#:key inputs #:allow-other-keys)
1073 (list "sysui/CustomTarget_share.mk"
1074 "solenv/gbuild/gbuild.mk"
1075 "solenv/gbuild/platform/unxgcc.mk")
1076 (("/bin/sh") (which "sh")))
1078 ;; XXX: Adjust the checks for MDDS and liborcus to avoid having
1079 ;; to re-bootstrap the whole thing. Remove this with the related
1081 (substitute* "configure"
1082 (("mdds-1.2 >= 1.2.3") "mdds-1.4 >= 1.4.1")
1083 (("liborcus-0.13 >= 0.13.3") "liborcus-0.14 >= 0.14.0"))
1085 ;; GPGME++ headers are installed in a gpgme++ subdirectory, but
1086 ;; files in "xmlsecurity/source/gpg/" and elsewhere expect to
1087 ;; find them on the include path without a prefix.
1088 (substitute* '("xmlsecurity/Library_xsec_xmlsec.mk"
1089 "comphelper/Library_comphelper.mk")
1090 (("\\$\\$\\(INCLUDE\\)")
1091 (string-append "$$(INCLUDE) -I"
1092 (assoc-ref inputs "gpgme")
1093 "/include/gpgme++")))
1096 (add-after 'install 'bin-and-desktop-install
1097 ;; Create 'soffice' and 'libreoffice' symlinks to the executable
1099 (lambda* (#:key outputs #:allow-other-keys)
1100 (let ((out (assoc-ref outputs "out")))
1101 (define (symlink-output src dst)
1102 (mkdir-p (dirname (string-append out dst)))
1103 (symlink (string-append out src) (string-append out dst)))
1104 (define (install src dst)
1105 (let ((dst (string-append out dst)))
1106 (mkdir-p (dirname dst))
1107 (copy-file src dst)))
1108 (define (install-desktop-file app)
1109 (let ((src (string-append "/lib/libreoffice/share/xdg/"
1111 (dst (string-append "/share/applications/libreoffice-"
1113 (substitute* (string-append out src)
1114 (("Exec=libreoffice[0-9]+\\.[0-9]+ ")
1115 (string-append "Exec=" out "/bin/libreoffice "))
1116 (("Icon=libreoffice.*")
1117 (string-append "Icon=" app "\n"))
1118 (("LibreOffice [0-9]+\\.[0-9]+")
1120 (symlink-output src dst)))
1121 (define (install-appdata app)
1122 (install-file (string-append
1123 "sysui/desktop/appstream-appdata/"
1124 "libreoffice-" app ".appdata.xml")
1125 (string-append out "/share/appdata")))
1126 (symlink-output "/lib/libreoffice/program/soffice"
1128 (symlink-output "/lib/libreoffice/program/soffice"
1130 (install "workdir/CustomTarget/sysui/share/libreoffice/openoffice.keys"
1131 "/share/mime-info/libreoffice.keys")
1132 (install "workdir/CustomTarget/sysui/share/libreoffice/openoffice.mime"
1133 "/share/mime-info/libreoffice.mime")
1135 "workdir/CustomTarget/sysui/share/libreoffice/openoffice.org.xml"
1136 "/share/mime/packages/libreoffice.xml")
1137 (for-each install-desktop-file
1138 '("base" "calc" "draw" "impress" "writer"
1139 "math" "startcenter"))
1140 (for-each install-appdata
1141 '("base" "calc" "draw" "impress" "writer"))
1142 (mkdir-p (string-append out "/share/icons/hicolor"))
1143 (copy-recursively "sysui/desktop/icons/hicolor"
1144 (string-append out "/share/icons/hicolor")))
1148 "--enable-release-build"
1150 ;; Avoid using all cpu cores by default
1151 (format #f "--with-parallelism=~d" (parallel-job-count))
1152 "--disable-fetch-external" ; disable downloads
1153 "--with-system-libs" ; enable all --with-system-* flags
1154 (string-append "--with-boost-libdir="
1155 (assoc-ref %build-inputs "boost") "/lib")
1156 ;; Avoid undefined symbols required by boost::spirit
1157 "LDFLAGS=-lboost_system"
1158 ;; Avoid a dependency on ucpp.
1159 "--with-idlc-cpp=cpp"
1160 ;; The fonts require an external tarball (crosextrafonts).
1161 ;; They should not be needed when system fonts are available.
1163 ;; With java, the build fails since sac.jar is missing.
1165 ;; FIXME: Enable once the corresponding inputs are packaged.
1166 "--without-system-npapi-headers"
1168 "--disable-firebird-sdbc" ; embedded firebird
1170 ;; XXX: PDFium support requires fetching an external tarball and
1171 ;; patching the build scripts to work with GCC5. Try enabling this
1172 ;; when our default compiler is >=GCC 6.
1174 "--disable-gtk" ; disable use of GTK+ 2
1175 "--without-doxygen")))
1176 (home-page "https://www.libreoffice.org/")
1177 (synopsis "Office suite")
1178 (description "LibreOffice is a comprehensive office suite. It contains
1179 a number of components: Writer, a word processor; Calc, a spreadsheet
1180 application; Impress, a presentation engine; Draw, a drawing and
1181 flowcharting application; Base, a database and database frontend;
1182 Math for editing mathematics.")