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>
16 ;;; This file is part of GNU Guix.
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.
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.
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/>.
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 rdf)
79 #:use-module (gnu packages scanner)
80 #:use-module (gnu packages tls)
81 #:use-module (gnu packages version-control)
82 #:use-module (gnu packages xml)
83 #:use-module (gnu packages xorg))
92 (uri (string-append "http://kohei.us/files/ixion/src/libixion-"
96 "14gdd6div4l22vnz3jn2qjxgjly98ck6p8c1v7386c41rx7kilba"))))
97 (build-system gnu-build-system)
99 `(("pkg-config" ,pkg-config)))
103 (home-page "https://gitlab.com/ixion/ixion")
104 (synopsis "General purpose formula parser and interpreter")
105 (description "Ixion is a library for calculating the results of formula
106 expressions stored in multiple named targets, or \"cells\". The cells can
107 be referenced from each other, and the library takes care of resolving
108 their dependencies automatically upon calculation.")
118 (uri (string-append "http://kohei.us/files/" name "/src/lib"
119 name "-" version ".tar.xz"))
122 "1ays13a1x15j81dsrq0d3697v1bbqd3bfz3ajn6kb9d61y2drlgj"))))
123 (build-system gnu-build-system)
125 `(("pkg-config" ,pkg-config)))
131 (home-page "https://gitlab.com/orcus/orcus")
132 (synopsis "File import filter library for spreadsheet documents")
133 (description "Orcus is a library that provides a collection of standalone
134 file processing filters. It is currently focused on providing filters for
135 spreadsheet documents. The library includes import filters for
136 Microsoft Excel 2007 XML, Microsoft Excel 2003 XML, Open Document Spreadsheet,
137 Plain Text, Gnumeric XML, Generic XML. It also includes low-level parsers for
141 (define-public librevenge
148 (uri (string-append "mirror://sourceforge/libwpd/" name "/" name "-"
149 version "/" name "-" version ".tar.xz"))
151 "1cj76cz4mqcy2mgv9l5xlc95bypyk8zbq0ls9cswqrs2y0lhfgwk"))))
152 (build-system gnu-build-system)
154 `(("cppunit" ,cppunit)
156 ("pkg-config" ,pkg-config)))
159 (propagated-inputs ; Referenced by .la files
162 ;; avoid triggering configure errors by simple inclusion of boost headers
163 `(#:configure-flags '("--disable-werror"
164 ;; Avoid undefined library references
165 "LDFLAGS=-lboost_system")))
166 (home-page "https://sourceforge.net/p/libwpd/wiki/librevenge/")
167 (synopsis "Document importer for office suites")
168 (description "Librevenge is a base library for writing document import
169 filters. It has interfaces for text documents, vector graphics,
170 spreadsheets and presentations.")
171 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
173 (define-public libwpd
180 (uri (string-append "mirror://sourceforge/libwpd/libwpd/"
181 "libwpd-" version "/libwpd-" version ".tar.xz"))
183 "02fx8bngslcj7i5g1gx2kiign4vp09wrmp5wpvix9igxcavb0r94"))))
184 (build-system gnu-build-system)
186 `(#:configure-flags '("--disable-werror")))
188 `(("doxygen" ,doxygen)
189 ("pkg-config" ,pkg-config)))
191 `(("librevenge" ,librevenge))) ; in Requires field of .pkg
194 (home-page "http://libwpd.sourceforge.net/")
195 (synopsis "Library for importing WordPerfect documents")
196 (description "Libwpd is a C++ library designed to help process
197 WordPerfect documents. It is most commonly used to import such documents
198 into other word processors.")
199 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
201 (define-public libe-book
208 (uri (string-append "mirror://sourceforge/libebook/libe-book-"
209 version "/libe-book-" version ".tar.xz"))
212 "1yg1vws1wggzhjw672bpgh2x541g5i9wryf67g51m0r79zrqz3by"))))
213 (build-system gnu-build-system)
215 `(("cppunit" ,cppunit)
217 ("pkg-config" ,pkg-config)))
218 (propagated-inputs ; in Requires or Requires.private field of .pkg
220 ("liblangtag" ,liblangtag)
221 ("librevenge" ,librevenge)
222 ("libxml2" ,libxml2)))
226 ;; avoid triggering configure errors by simple inclusion of boost headers
227 `(#:configure-flags '("--disable-werror")))
228 (home-page "http://libebook.sourceforge.net")
229 (synopsis "Library for import of reflowable e-book formats")
230 (description "Libe-book is a library and a set of tools for reading and
231 converting various reflowable e-book formats. Currently supported are:
232 Broad Band eBook, eReader .pdb, FictionBook v. 2 (including zipped files),
233 PalmDoc Ebook, Plucker .pdb, QiOO (mobile format, for java-enabled
234 cellphones), TCR (simple compressed text format), TealDoc, zTXT,
235 ZVR (simple compressed text format).")
238 (define-public libepubgen
245 (uri (string-append "mirror://sourceforge/libepubgen/libepubgen-"
246 version "/libepubgen-" version ".tar.xz"))
249 "1b8mc9zzrqypj1v9zdy3ybc48pw0rfr06cyi7n6grvybjjwq9q03"))))
250 (build-system gnu-build-system)
252 `(("cppunit" ,cppunit)
253 ("pkg-config" ,pkg-config)))
255 `(("libxml2" ,libxml2)
257 (propagated-inputs ; in Requires field of .pkg
258 `(("librevenge" ,librevenge)))
259 (home-page "https://sourceforge.net/projects/libepubgen/")
260 (synopsis "EPUB generator library for librevenge")
261 (description "libepubgen is an EPUB generator for librevenge. It supports
262 librevenge's text document interface and--currently in a very limited
263 way--presentation and vector drawing interfaces.")
266 (define-public libwpg
273 (uri (string-append "mirror://sourceforge/libwpg/libwpg/"
274 "libwpg-" version "/libwpg-" version ".tar.xz"))
276 "074x159immf139szkswv2zapnq75p7xk10dbha2p9193hgwggcwr"))))
277 (build-system gnu-build-system)
279 `(("doxygen" ,doxygen)
280 ("pkg-config" ,pkg-config)))
282 `(("libwpd" ,libwpd))) ; in Requires field of .pkg
286 (home-page "http://libwpg.sourceforge.net/")
287 (synopsis "Library and tools for the WordPerfect Graphics format")
288 (description "The libwpg project provides a library and tools for
289 working with graphics in the WPG (WordPerfect Graphics) format.")
290 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
292 (define-public libcmis
299 (uri (string-append "https://github.com/tdf/libcmis/releases/download/v"
300 version "/libcmis-" version ".tar.xz"))
303 "18h0a2gsfxvlv03nlcfvw9bzsflq5sin9agq6za103hr0ab8vcfp"))))
304 (build-system gnu-build-system)
306 `(("cppunit" ,cppunit)
307 ("pkg-config" ,pkg-config)))
308 (propagated-inputs ; in Requires field of .pkg
310 ("libxml2" ,libxml2)))
313 ("cyrus-sasl" ,cyrus-sasl)
314 ("openssl" ,openssl)))
318 ;; FIXME: Man pages generation requires docbook-to-man; reenable
319 ;; it once this is available.
321 ;; XXX: A configure test fails with GCC7 when including Boost headers.
323 ;; During configure, the boost headers are found, but linking
324 ;; fails without the following flag.
325 (string-append "--with-boost="
326 (assoc-ref %build-inputs "boost")))))
327 (home-page "https://github.com/tdf/libcmis")
328 (synopsis "CMIS client library")
329 (description "LibCMIS is a C++ client library for the CMIS interface. It
330 allows C++ applications to connect to any ECM behaving as a CMIS server such
331 as Alfresco or Nuxeo.")
332 (license (list mpl1.1 gpl2+ lgpl2.1+)))) ; triple license
334 (define-public libabw
341 (uri (string-append "https://dev-www.libreoffice.org/src/libabw/"
342 "libabw-" version ".tar.xz"))
344 "1vbfrmnvib3cym0yyyabnd8xpx4f7wp20vnn09s6dln347fajqz7"))))
345 (build-system gnu-build-system)
347 `(("doxygen" ,doxygen)
350 ("pkg-config" ,pkg-config)))
351 (propagated-inputs ; in Requires or Requires.private field of .pkg
352 `(("librevenge" ,librevenge)
353 ("libxml2" ,libxml2)))
356 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libabw")
357 (synopsis "Library for parsing the AbiWord format")
358 (description "Libabw is a library that parses the file format of
362 (define-public libcdr
369 (uri (string-append "https://dev-www.libreoffice.org/src/" name "/"
370 name "-" version ".tar.xz"))
372 "0qgqlw6i25zfq1gf7f6r5hrhawlrgh92sg238kjpf2839aq01k81"))))
373 (build-system gnu-build-system)
375 `(("cppunit" ,cppunit)
377 ("pkg-config" ,pkg-config)))
378 (propagated-inputs ; in Requires or Requires.private field of .pkg
381 ("librevenge" ,librevenge)
385 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libcdr")
386 (synopsis "Library for parsing the CorelDRAW format")
387 (description "Libcdr is a library that parses the file format of
388 CorelDRAW documents of all versions.")
391 (define-public libetonyek
398 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
399 name "-" version ".tar.xz"))
401 "0jhsbdimiyijdqriy0zzkjjgc4wi6fjimhdg4mdybrlwg7l7f5p6"))))
402 (build-system gnu-build-system)
404 `(#:configure-flags '("--with-mdds=1.4")))
406 `(("cppunit" ,cppunit)
409 ("pkg-config" ,pkg-config)))
410 (propagated-inputs ; in Requires or Requires.private field of .pkg
411 `(("liblangtag" ,liblangtag)
412 ("librevenge" ,librevenge)
419 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libetonyek")
420 (synopsis "Library for parsing the Apple Keynote format")
421 (description "Libetonyek is a library that parses the file format of
422 Apple Keynote documents. It currently supports Keynote versions 2 to 5.")
425 (define-public liblangtag
432 (uri (string-append "https://bitbucket.org/tagoh/liblangtag/downloads/"
433 name "-" version ".tar.bz2"))
436 "0bnm4hllr8cfrybm8rw7b8n0nlhzhnv73bkg1bxk452g6a82f96n"))))
437 (build-system gnu-build-system)
439 `(("libtool" ,libtool)
440 ("pkg-config" ,pkg-config)))
442 `(("libxml2" ,libxml2)))
443 ;; As of December 2017, tagoh.bitbucket.org redirects to a hosting advert.
444 (home-page "https://bitbucket.org/tagoh/liblangtag")
445 (synopsis "Library to access tags for identifying languages")
446 (description "Liblangtag implements an interface to work with tags
447 for identifying languages as described in RFC 5646. It supports the
448 extensions described in RFC6067 and RFC6497, and Extension T for
449 language/locale identifiers as described in the Unicode CLDR
451 (license (list lgpl3+ mpl2.0)))) ; dual license
453 (define-public libexttextcat
455 (name "libexttextcat")
460 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
461 name "-" version ".tar.xz"))
463 "1j6sjwkyhqvsgyw938bxxfwkzzi1mahk66g5342lv6j89jfvrz8k"))))
464 (build-system gnu-build-system)
465 (home-page "https://www.freedesktop.org/wiki/Software/libexttextcat/")
466 (synopsis "Text Categorization library")
467 (description "Libexttextcat is an N-Gram-Based Text Categorization
468 library primarily intended for language guessing.")
469 (license (non-copyleft "file://LICENSE"
470 "See LICENSE in the distribution."))))
472 (define-public libfreehand
479 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
480 name "-" version ".tar.xz"))
482 "1b1lvqh68rwij1yvmxy02hsmh7i74ma5767mk8mg5nx6chajshhf"))))
483 (build-system gnu-build-system)
485 `(("cppunit" ,cppunit)
489 ("pkg-config" ,pkg-config)))
493 (propagated-inputs ; in Requires or Requires.private field of .pkg
494 `(("librevenge" ,librevenge)
496 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libfreehand")
497 (synopsis "Library for parsing the FreeHand format")
498 (description "Libfreehand is a library that parses the file format of
499 Aldus/Macromedia/Adobe FreeHand documents.")
502 (define-public libmspub
509 (uri (string-append "https://dev-www.libreoffice.org/src/" name "/"
510 name "-" version ".tar.xz"))
512 "1fhkn013gzg59f4z7rldpbi0nj7lgdqzxanspsqa6axvmahw2dpg"))))
513 (build-system gnu-build-system)
515 `(("doxygen" ,doxygen)
516 ("pkg-config" ,pkg-config)))
517 (propagated-inputs ; in Requires or Requires.private field of .pkg
519 ("librevenge" ,librevenge)
523 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libmspub")
524 (synopsis "Library for parsing the Microsoft Publisher format")
525 (description "Libmspub is a library that parses the file format of
526 Microsoft Publisher documents of all versions.")
529 (define-public libnumbertext
531 (name "libnumbertext")
536 (uri (string-append "https://github.com/Numbertext/libnumbertext/"
537 "releases/download/" version
538 "/libnumbertext-" version ".tar.xz"))
540 (base32 "1xzlwhwwhvr76kfdsw5gvfjfdayz803z65h331gv5dpc9imhijg1"))))
541 (build-system gnu-build-system)
543 `(#:configure-flags '("--disable-static")))
544 (home-page "https://github.com/Numbertext/libnumbertext")
545 (synopsis "Language-neutral @code{NUMBERTEXT} and @code{MONEYTEXT} functions")
547 "The libnumbertext library provides language-neutral @code{NUMBERTEXT}
548 and @code{MONEYTEXT} functions for LibreOffice Calc, available for C++ and
550 (license (list lgpl3+ bsd-3))))
552 (define-public libpagemaker
554 (name "libpagemaker")
559 (uri (string-append "https://dev-www.libreoffice.org/src/libpagemaker/"
560 "libpagemaker-" version ".tar.xz"))
562 "17ai8ajffr0ixxmmcv3k5vgjlcsix38ldb4fw2arild70pbsrbb6"))))
563 (build-system gnu-build-system)
565 `(#:configure-flags '("--disable-werror")))
567 `(("doxygen" ,doxygen)
568 ("pkg-config" ,pkg-config)))
569 (propagated-inputs ; in Requires field of .pkg
570 `(("librevenge" ,librevenge)))
574 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker")
575 (synopsis "Library for parsing the PageMaker format")
576 (description "Libpagemaker is a library that parses the file format of
577 Aldus/Adobe PageMaker documents. Currently it only understands documents
578 created by PageMaker version 6.x and 7.")
581 (define-public libvisio
588 (uri (string-append "http://dev-www.libreoffice.org/src/libvisio/"
589 "libvisio-" version ".tar.xz"))
591 "0k7adcbbf27l7n453cca1m6s9yj6qvb5j6bsg2db09ybf3w8vbwg"))))
592 (build-system gnu-build-system)
594 `(("cppunit" ,cppunit)
598 ("pkg-config" ,pkg-config)))
599 (propagated-inputs ; in Requires or Requires.private field of .pkg
601 ("librevenge" ,librevenge)
602 ("libxml2" ,libxml2)))
605 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libvisio")
606 (synopsis "Library for parsing the Microsoft Visio format")
607 (description "Libvisio is a library that parses the file format of
608 Microsoft Visio documents of all versions.")
611 (define-public libodfgen
618 (uri (string-append "mirror://sourceforge/libwpd/libodfgen/"
619 "libodfgen-" version "/libodfgen-" version ".tar.xz"))
621 "0cdq48wlpp8m0qmndybv64r0m4vh0qsqx69cn6ms533cjlgljgij"))))
622 (build-system gnu-build-system)
624 `(("doxygen" ,doxygen)
625 ("pkg-config" ,pkg-config)))
626 (propagated-inputs ; in Requires field of .pkg
627 `(("librevenge" ,librevenge)))
632 ;; avoid triggering configure errors by simple inclusion of boost headers
633 `(#:configure-flags '("--disable-werror")))
634 (home-page "https://sourceforge.net/p/libwpd/wiki/libodfgen/")
635 (synopsis "ODF (Open Document Format) library")
636 (description "Libodfgen is a library for generating documents in the
637 Open Document Format (ODF). It provides generator implementations for all
638 document interfaces supported by librevenge:
639 text documents, vector drawings, presentations and spreadsheets.")
640 (license (list mpl2.0 lgpl2.1+)))) ; dual license
642 (define-public libmwaw
649 (uri (string-append "mirror://sourceforge/libmwaw/libmwaw/libmwaw-"
650 version "/libmwaw-" version ".tar.xz"))
652 "1cdhm9yhanyv3w4vr73zhgyynmkhhkp3dyld7m11jd2yy04vnh04"))))
653 (build-system gnu-build-system)
655 `(("doxygen" ,doxygen)
656 ("pkg-config" ,pkg-config)))
657 (propagated-inputs ; in Requires field of .pkg
658 `(("librevenge" ,librevenge)))
662 (home-page "https://sourceforge.net/p/libmwaw/wiki/Home/")
663 (synopsis "Import library for some old Macintosh text documents")
664 (description "Libmwaw contains some import filters for old Macintosh
665 text documents (MacWrite, ClarisWorks, ... ) and for some graphics and
666 spreadsheet documents.")
667 (license (list mpl2.0 lgpl2.1+)))) ; dual license
669 (define-public libstaroffice
671 (name "libstaroffice")
676 (uri (string-append "https://github.com/fosnola/libstaroffice/releases/download/"
677 version "/libstaroffice-" version ".tar.xz"))
679 "1i0ykl0c94lc1qzb5mbyf9jr7qw8p38ja424whmhgrllh7ny203b"))))
680 (build-system gnu-build-system)
682 `(("librevenge" ,librevenge)
685 `(("pkg-config" ,pkg-config)))
686 (home-page "https://github.com/fosnola/libstaroffice")
687 (synopsis "Provides LibreOffice support for old StarOffice documents")
688 (description "@code{libstaroffice} is an import filter for the document formats
689 from the old StarOffice (.sdc, .sdw, ...).")
690 (license (list mpl2.0 lgpl2.1+)))) ; dual license
692 (define-public libwps
699 (uri (string-append "mirror://sourceforge/" name "/" name "/"
700 name "-" version "/" name "-" version ".tar.xz"))
702 "1ji9zd4wxmas03g8jyx0ih0amrqfazm5874a2v9rd7va50sf088l"))))
703 (build-system gnu-build-system)
705 `(("doxygen" ,doxygen)
706 ("pkg-config" ,pkg-config)))
707 (propagated-inputs ; in Requires field of .pkg
708 `(("librevenge" ,librevenge)))
712 (home-page "http://libwps.sourceforge.net/")
713 (synopsis "Import library for Microsoft Works text documents")
714 (description "Libwps is a library for importing files in the Microsoft
715 Works word processor file format.")
716 (license (list mpl2.0 lgpl2.1+)))) ; dual license
718 (define-public libzmf
725 (uri (string-append "http://dev-www.libreoffice.org/src/libzmf/libzmf-"
728 "08mg5kmkjrmqrd8j5rkzw9vdqlvibhb1ynp6bmfxnzq5rcq1l197"))))
729 (build-system gnu-build-system)
731 ;; A harmless 'sign-compare' error pops up on i686 so disable '-Werror'.
732 '(#:configure-flags '("--disable-werror")))
737 ("librevenge" ,librevenge)
740 `(("cppunit" ,cppunit)
742 ("pkg-config" ,pkg-config)))
743 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libzmf")
744 (synopsis "Parses file format of Zoner Callisto/Draw documents")
745 (description "Libzmf is a library that parses the file format of Zoner
746 Callisto/Draw documents. Currently it only understands documents created by
747 Zoner Draw version 4 and 5.")
750 (define-public hunspell
758 (url "https://github.com/hunspell/hunspell")
759 (commit (string-append "v" version))))
760 (file-name (git-file-name name version))
763 "0qxlkd012r45ppd21kldbq9k5ac5nmxz290z6m2kch9l56v768k1"))))
764 (build-system gnu-build-system)
766 `(("autoconf" ,autoconf)
767 ("automake" ,automake)
768 ("libtool" ,libtool)))
771 (native-search-paths (list (search-path-specification
773 (files '("share/hunspell")))))
774 (home-page "https://hunspell.github.io/")
775 (synopsis "Spell checker")
776 (description "Hunspell is a spell checker and morphological analyzer
777 library and program designed for languages with rich morphology and complex
778 word compounding or character encoding.")
779 ;; Triple license, including "mpl1.1 or later".
780 (license (list mpl1.1 gpl2+ lgpl2.1+))))
782 (define (dicollecte-french-dictionary variant synopsis)
783 ;; Return a French dictionary package from dicollecte.org, for the given
787 ("classique" "hunspell-dict-fr")
788 (_ (string-append "hunspell-dict-fr-" variant))))
792 "http://www.dicollecte.org/download/fr/hunspell-french-dictionaries-v"
797 "139hfrn5p87sl8hqmgkf6sgvnxrk2mm8vd8xsm8sm98qjnwlg0f9"))))
798 (build-system trivial-build-system)
799 (native-inputs `(("unzip" ,unzip)))
801 `(#:modules ((guix build utils))
803 (use-modules (guix build utils)
806 (let* ((out (assoc-ref %outputs "out"))
807 (hunspell (string-append out "/share/hunspell"))
808 (myspell (string-append out "/share/myspell"))
809 (doc (string-append out "/share/doc/"
811 (unzip (assoc-ref %build-inputs "unzip")))
812 (invoke (string-append unzip "/bin/unzip")
813 (assoc-ref %build-inputs "source"))
814 (for-each (cut install-file <> hunspell)
816 ,(string-append variant
819 (symlink hunspell (string-append myspell "/dicts"))
820 (for-each (cut install-file <> doc)
821 (find-files "." "\\.(txt|org|md)$"))
825 "This package provides a dictionary for the Hunspell spell-checking
827 (home-page "https://www.dicollecte.org/home.php?prj=fr")
830 (define-syntax define-french-dictionary
831 (syntax-rules (synopsis)
832 ((_ name variant (synopsis text))
834 (dicollecte-french-dictionary variant text)))))
836 (define-french-dictionary hunspell-dict-fr-classique
838 ;; TRANSLATORS: In French, this is "Français classique".
839 (synopsis "Hunspell dictionary for ``classic'' French (recommended)"))
841 (define-french-dictionary hunspell-dict-fr-moderne
843 ;; TRANSLATORS: In French, this is "Français moderne".
844 (synopsis "Hunspell dictionary for ``modern'' French"))
846 (define-french-dictionary hunspell-dict-fr-réforme-1990
848 (synopsis "Hunspell dictionary for the post @dfn{1990 réforme} French"))
850 (define-french-dictionary hunspell-dict-fr-toutes-variantes
852 (synopsis "Hunspell dictionary for all variants of French"))
854 (define-public hyphen
861 (uri (string-append "mirror://sourceforge/hunspell/Hyphen/"
862 (version-major+minor version) "/"
863 name "-" version ".tar.gz"))
865 "01ap9pr6zzzbp4ky0vy7i1983fwyqy27pl0ld55s30fdxka3ciih"))))
866 (build-system gnu-build-system)
869 (home-page "http://hunspell.sourceforge.net/")
870 (synopsis "Hyphenation library")
871 (description "Hyphen is a hyphenation library using TeX hyphenation
872 patterns, which are pre-processed by a perl script.")
873 ;; triple license, including "mpl1.1 or later"
874 (license (list mpl1.1 mpl2.0 gpl2+ lgpl2.1+))))
876 (define-public mythes
883 (uri (string-append "mirror://sourceforge/hunspell/MyThes/" version "/"
884 name "-" version ".tar.gz"))
886 "0prh19wy1c74kmzkkavm9qslk99gz8h8wmjvwzjc6lf8v2az708y"))))
887 (build-system gnu-build-system)
889 `(("pkg-config" ,pkg-config)))
891 `(("hunspell" ,hunspell)
893 (home-page "http://hunspell.sourceforge.net/")
894 (synopsis "Thesaurus")
895 (description "MyThes is a simple thesaurus that uses a structured text
896 data file and an index file with binary search to look up words and phrases
897 and to return information on pronunciations, meanings and synonyms.")
898 (license (non-copyleft "file://COPYING"
899 "See COPYING in the distribution."))))
901 (define-public libqxp
907 (uri (string-append "https://dev-www.libreoffice.org/src/libqxp/"
908 "libqxp-" version ".tar.xz"))
911 "0p4lb84m05wqd8qr8ni9sp80ivlm83ffn0nxiv4m42hj22qvcdz1"))))
912 (build-system gnu-build-system)
918 `(("cppunit" ,cppunit)
919 ("pkg-config" ,pkg-config)))
921 `(("librevenge" ,librevenge))) ; mentioned in Requires field
922 (home-page "https://www.libreoffice.org")
923 (synopsis "Library and tools for the QuarkXPress file format")
924 (description "libqxp is a library and a set of tools for reading and
925 converting QuarkXPress file format. It supports versions 3.1 to 4.1.")
928 (define-public libreoffice
937 "https://download.documentfoundation.org/libreoffice/src/"
938 (version-prefix version 3) "/libreoffice-" version ".tar.xz"))
941 "1774vmf3lr5x24ikpn1z5vqcdwrhiwfkjy7sx09jqkvpm6d5awnb"))
942 (patches (search-patches "libreoffice-icu.patch"
943 "libreoffice-glm.patch"))
944 (modules '((guix build utils)))
947 (for-each (lambda (file)
948 ;; Adjust to renamed function in Poppler 0.72.
949 (substitute* file (("getCString") "c_str")))
950 (find-files "sdext/source/pdfimport/xpdfwrapper"))
952 (build-system glib-or-gtk-build-system)
957 ("pkg-config" ,pkg-config)
958 ("python" ,python-wrapper)
965 ("dbus-glib" ,dbus-glib)
966 ("fontconfig" ,fontconfig)
967 ("fontforge" ,fontforge)
972 ("gobject-introspection" ,gobject-introspection)
975 ("graphite2" ,graphite2)
976 ("gst-plugins-base" ,gst-plugins-base)
978 ("harfbuzz" ,harfbuzz)
979 ("hunspell" ,hunspell)
984 ("libjpeg-turbo" ,libjpeg-turbo)
985 ("libe-book" ,libe-book)
986 ("libepubgen" ,libepubgen)
987 ("libetonyek" ,libetonyek)
988 ("libexttextcat" ,libexttextcat)
989 ("libfreehand" ,libfreehand)
990 ("liblangtag" ,liblangtag)
991 ;; XXX: Perhaps this should be propagated from xmlsec.
993 ("libmspub" ,libmspub)
995 ("libnumbertext" ,libnumbertext)
996 ("libodfgen" ,libodfgen)
997 ("libpagemaker" ,libpagemaker)
999 ("libstaroffice" ,libstaroffice)
1000 ("libvisio" ,libvisio)
1003 ("libxrandr" ,libxrandr)
1004 ("libxrender" ,libxrender)
1005 ("libxslt" ,libxslt)
1008 ("lpsolve" ,lpsolve)
1009 ("mariadb" ,mariadb "dev")
1015 ("openldap" ,openldap)
1016 ("openssl" ,openssl)
1019 ("perl-archive-zip" ,perl-archive-zip)
1020 ("poppler" ,poppler)
1021 ("postgresql" ,postgresql)
1023 ("python-lxml" ,python-lxml)
1024 ("redland" ,redland)
1025 ("sane-backends" ,sane-backends)
1026 ("unixodbc" ,unixodbc)
1029 ("xdg-utils" ,xdg-utils)
1030 ("xmlsec" ,xmlsec-nss)
1033 `(#:tests? #f ; Building the tests already fails.
1034 #:make-flags '("build-nocheck") ; Do not build unit tests, which fails.
1036 (modify-phases %standard-phases
1037 (add-before 'configure 'prepare-src
1038 (lambda* (#:key inputs #:allow-other-keys)
1040 (list "sysui/CustomTarget_share.mk"
1041 "solenv/gbuild/gbuild.mk"
1042 "solenv/gbuild/platform/unxgcc.mk")
1043 (("/bin/sh") (which "sh")))
1045 ;; GPGME++ headers are installed in a gpgme++ subdirectory, but
1046 ;; files in "xmlsecurity/source/gpg/" and elsewhere expect to
1047 ;; find them on the include path without a prefix.
1048 (substitute* '("xmlsecurity/Library_xsec_xmlsec.mk"
1049 "comphelper/Library_comphelper.mk")
1050 (("\\$\\$\\(INCLUDE\\)")
1051 (string-append "$$(INCLUDE) -I"
1052 (assoc-ref inputs "gpgme")
1053 "/include/gpgme++")))
1055 ;; /usr/bin/xdg-open doesn't exist on Guix System.
1056 (substitute* '("shell/source/unix/exec/shellexec.cxx"
1057 "shell/source/unix/misc/senddoc.sh")
1058 (("/usr/bin/xdg-open")
1059 (string-append (assoc-ref inputs "xdg-utils")
1063 (add-after 'install 'bin-and-desktop-install
1064 ;; Create 'soffice' and 'libreoffice' symlinks to the executable
1066 (lambda* (#:key outputs #:allow-other-keys)
1067 (let ((out (assoc-ref outputs "out")))
1068 (define (symlink-output src dst)
1069 (mkdir-p (dirname (string-append out dst)))
1070 (symlink (string-append out src) (string-append out dst)))
1071 (define (install src dst)
1072 (let ((dst (string-append out dst)))
1073 (mkdir-p (dirname dst))
1074 (copy-file src dst)))
1075 (define (install-desktop-file app)
1076 (let ((src (string-append "/lib/libreoffice/share/xdg/"
1078 (dst (string-append "/share/applications/libreoffice-"
1080 (substitute* (string-append out src)
1081 (("Exec=libreoffice[0-9]+\\.[0-9]+ ")
1082 (string-append "Exec=" out "/bin/libreoffice "))
1083 (("Icon=libreoffice.*")
1084 (string-append "Icon=" app "\n"))
1085 (("LibreOffice [0-9]+\\.[0-9]+")
1087 (symlink-output src dst)))
1088 (define (install-appdata app)
1089 (install-file (string-append
1090 "sysui/desktop/appstream-appdata/"
1091 "libreoffice-" app ".appdata.xml")
1092 (string-append out "/share/appdata")))
1093 (symlink-output "/lib/libreoffice/program/soffice"
1095 (symlink-output "/lib/libreoffice/program/soffice"
1097 (install "workdir/CustomTarget/sysui/share/libreoffice/openoffice.keys"
1098 "/share/mime-info/libreoffice.keys")
1099 (install "workdir/CustomTarget/sysui/share/libreoffice/openoffice.mime"
1100 "/share/mime-info/libreoffice.mime")
1102 "workdir/CustomTarget/sysui/share/libreoffice/openoffice.org.xml"
1103 "/share/mime/packages/libreoffice.xml")
1104 (for-each install-desktop-file
1105 '("base" "calc" "draw" "impress" "writer"
1106 "math" "startcenter"))
1107 (for-each install-appdata
1108 '("base" "calc" "draw" "impress" "writer"))
1109 (mkdir-p (string-append out "/share/icons/hicolor"))
1110 (copy-recursively "sysui/desktop/icons/hicolor"
1111 (string-append out "/share/icons/hicolor")))
1115 "--enable-release-build"
1116 ;; Avoid using all cpu cores by default
1117 (format #f "--with-parallelism=~d" (parallel-job-count))
1118 "--disable-fetch-external" ; disable downloads
1119 "--with-system-libs" ; enable all --with-system-* flags
1120 (string-append "--with-boost-libdir="
1121 (assoc-ref %build-inputs "boost") "/lib")
1122 ;; Avoid undefined symbols required by boost::spirit
1123 "LDFLAGS=-lboost_system"
1124 ;; Avoid a dependency on ucpp.
1125 "--with-idlc-cpp=cpp"
1126 ;; The fonts require an external tarball (crosextrafonts).
1127 ;; They should not be needed when system fonts are available.
1129 ;; With java, the build fails since sac.jar is missing.
1131 ;; FIXME: Enable once the corresponding inputs are packaged.
1133 "--disable-firebird-sdbc" ; embedded firebird
1134 ;; XXX: PDFium support requires fetching an external tarball and
1135 ;; patching the build scripts to work with GCC5. Try enabling this
1136 ;; when our default compiler is >=GCC 6.
1138 "--disable-gtk" ; disable use of GTK+ 2
1140 "--enable-build-opensymbol")))
1141 (home-page "https://www.libreoffice.org/")
1142 (synopsis "Office suite")
1143 (description "LibreOffice is a comprehensive office suite. It contains
1144 a number of components: Writer, a word processor; Calc, a spreadsheet
1145 application; Impress, a presentation engine; Draw, a drawing and
1146 flowcharting application; Base, a database and database frontend;
1147 Math for editing mathematics.")