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>
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 git-download)
36 #:use-module ((guix licenses)
37 #:select (gpl2+ lgpl2.1+ lgpl3+ mpl1.1 mpl2.0
38 non-copyleft x11-style bsd-3))
39 #:use-module (guix packages)
40 #:use-module (guix utils)
41 #:use-module (ice-9 match)
42 #:use-module (gnu packages)
43 #:use-module (gnu packages autotools)
44 #:use-module (gnu packages base)
45 #:use-module (gnu packages bison)
46 #:use-module (gnu packages boost)
47 #:use-module (gnu packages check)
48 #:use-module (gnu packages compression)
49 #:use-module (gnu packages cups)
50 #:use-module (gnu packages curl)
51 #:use-module (gnu packages cyrus-sasl)
52 #:use-module (gnu packages databases)
53 #:use-module (gnu packages documentation)
54 #:use-module (gnu packages flex)
55 #:use-module (gnu packages fontutils)
56 #:use-module (gnu packages ghostscript)
57 #:use-module (gnu packages gl)
58 #:use-module (gnu packages glib)
59 #:use-module (gnu packages gnome)
60 #:use-module (gnu packages gperf)
61 #:use-module (gnu packages gnupg)
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 nss)
70 #:use-module (gnu packages openldap)
71 #:use-module (gnu packages pdf)
72 #:use-module (gnu packages perl)
73 #:use-module (gnu packages perl-compression)
74 #:use-module (gnu packages pkg-config)
75 #:use-module (gnu packages python)
76 #:use-module (gnu packages python-xyz)
77 #:use-module (gnu packages rdf)
78 #:use-module (gnu packages scanner)
79 #:use-module (gnu packages tls)
80 #:use-module (gnu packages version-control)
81 #:use-module (gnu packages xml)
82 #:use-module (gnu packages xorg))
91 (uri (string-append "http://kohei.us/files/ixion/src/libixion-"
95 "14gdd6div4l22vnz3jn2qjxgjly98ck6p8c1v7386c41rx7kilba"))))
96 (build-system gnu-build-system)
98 `(("pkg-config" ,pkg-config)))
102 (home-page "https://gitlab.com/ixion/ixion")
103 (synopsis "General purpose formula parser and interpreter")
104 (description "Ixion is a library for calculating the results of formula
105 expressions stored in multiple named targets, or \"cells\". The cells can
106 be referenced from each other, and the library takes care of resolving
107 their dependencies automatically upon calculation.")
117 (uri (string-append "http://kohei.us/files/" name "/src/lib"
118 name "-" version ".tar.xz"))
121 "1ays13a1x15j81dsrq0d3697v1bbqd3bfz3ajn6kb9d61y2drlgj"))))
122 (build-system gnu-build-system)
124 `(("pkg-config" ,pkg-config)))
130 (home-page "https://gitlab.com/orcus/orcus")
131 (synopsis "File import filter library for spreadsheet documents")
132 (description "Orcus is a library that provides a collection of standalone
133 file processing filters. It is currently focused on providing filters for
134 spreadsheet documents. The library includes import filters for
135 Microsoft Excel 2007 XML, Microsoft Excel 2003 XML, Open Document Spreadsheet,
136 Plain Text, Gnumeric XML, Generic XML. It also includes low-level parsers for
140 (define-public librevenge
147 (uri (string-append "mirror://sourceforge/libwpd/" name "/" name "-"
148 version "/" name "-" version ".tar.xz"))
150 "1cj76cz4mqcy2mgv9l5xlc95bypyk8zbq0ls9cswqrs2y0lhfgwk"))))
151 (build-system gnu-build-system)
153 `(("cppunit" ,cppunit)
155 ("pkg-config" ,pkg-config)))
158 (propagated-inputs ; Referenced by .la files
161 ;; avoid triggering configure errors by simple inclusion of boost headers
162 `(#:configure-flags '("--disable-werror"
163 ;; Avoid undefined library references
164 "LDFLAGS=-lboost_system")))
165 (home-page "https://sourceforge.net/p/libwpd/wiki/librevenge/")
166 (synopsis "Document importer for office suites")
167 (description "Librevenge is a base library for writing document import
168 filters. It has interfaces for text documents, vector graphics,
169 spreadsheets and presentations.")
170 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
172 (define-public libwpd
179 (uri (string-append "mirror://sourceforge/libwpd/libwpd/"
180 "libwpd-" version "/libwpd-" version ".tar.xz"))
182 "0436gnidx45a9vx114hhh216jrh57mqb9zyssyjfadagmyz6hgrj"))))
183 (build-system gnu-build-system)
185 `(("doxygen" ,doxygen)
186 ("pkg-config" ,pkg-config)))
188 `(("librevenge" ,librevenge))) ; in Requires field of .pkg
191 (home-page "http://libwpd.sourceforge.net/")
192 (synopsis "Library for importing WordPerfect documents")
193 (description "Libwpd is a C++ library designed to help process
194 WordPerfect documents. It is most commonly used to import such documents
195 into other word processors.")
196 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
198 (define-public libe-book
205 (uri (string-append "mirror://sourceforge/libebook/libe-book-"
206 version "/libe-book-" version ".tar.xz"))
209 "1yg1vws1wggzhjw672bpgh2x541g5i9wryf67g51m0r79zrqz3by"))))
210 (build-system gnu-build-system)
212 `(("cppunit" ,cppunit)
214 ("pkg-config" ,pkg-config)))
215 (propagated-inputs ; in Requires or Requires.private field of .pkg
217 ("liblangtag" ,liblangtag)
218 ("librevenge" ,librevenge)
219 ("libxml2" ,libxml2)))
223 ;; avoid triggering configure errors by simple inclusion of boost headers
224 `(#:configure-flags '("--disable-werror")))
225 (home-page "http://libebook.sourceforge.net")
226 (synopsis "Library for import of reflowable e-book formats")
227 (description "Libe-book is a library and a set of tools for reading and
228 converting various reflowable e-book formats. Currently supported are:
229 Broad Band eBook, eReader .pdb, FictionBook v. 2 (including zipped files),
230 PalmDoc Ebook, Plucker .pdb, QiOO (mobile format, for java-enabled
231 cellphones), TCR (simple compressed text format), TealDoc, zTXT,
232 ZVR (simple compressed text format).")
235 (define-public libepubgen
242 (uri (string-append "mirror://sourceforge/libepubgen/libepubgen-"
243 version "/libepubgen-" version ".tar.xz"))
246 "1b8mc9zzrqypj1v9zdy3ybc48pw0rfr06cyi7n6grvybjjwq9q03"))))
247 (build-system gnu-build-system)
249 `(("cppunit" ,cppunit)
250 ("pkg-config" ,pkg-config)))
252 `(("libxml2" ,libxml2)
254 (propagated-inputs ; in Requires field of .pkg
255 `(("librevenge" ,librevenge)))
256 (home-page "https://sourceforge.net/projects/libepubgen/")
257 (synopsis "EPUB generator library for librevenge")
258 (description "libepubgen is an EPUB generator for librevenge. It supports
259 librevenge's text document interface and--currently in a very limited
260 way--presentation and vector drawing interfaces.")
263 (define-public libwpg
270 (uri (string-append "mirror://sourceforge/libwpg/libwpg/"
271 "libwpg-" version "/libwpg-" version ".tar.xz"))
273 "074x159immf139szkswv2zapnq75p7xk10dbha2p9193hgwggcwr"))))
274 (build-system gnu-build-system)
276 `(("doxygen" ,doxygen)
277 ("pkg-config" ,pkg-config)))
279 `(("libwpd" ,libwpd))) ; in Requires field of .pkg
283 (home-page "http://libwpg.sourceforge.net/")
284 (synopsis "Library and tools for the WordPerfect Graphics format")
285 (description "The libwpg project provides a library and tools for
286 working with graphics in the WPG (WordPerfect Graphics) format.")
287 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
289 (define-public libcmis
296 (uri (string-append "https://github.com/tdf/libcmis/releases/download/v"
297 version "/libcmis-" version ".tar.xz"))
300 "18h0a2gsfxvlv03nlcfvw9bzsflq5sin9agq6za103hr0ab8vcfp"))))
301 (build-system gnu-build-system)
303 `(("cppunit" ,cppunit)
304 ("pkg-config" ,pkg-config)))
305 (propagated-inputs ; in Requires field of .pkg
307 ("libxml2" ,libxml2)))
310 ("cyrus-sasl" ,cyrus-sasl)
311 ("openssl" ,openssl)))
315 ;; FIXME: Man pages generation requires docbook-to-man; reenable
316 ;; it once this is available.
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 (home-page "https://github.com/tdf/libcmis")
323 (synopsis "CMIS client library")
324 (description "LibCMIS is a C++ client library for the CMIS interface. It
325 allows C++ applications to connect to any ECM behaving as a CMIS server such
326 as Alfresco or Nuxeo.")
327 (license (list mpl1.1 gpl2+ lgpl2.1+)))) ; triple license
329 (define-public libabw
336 (uri (string-append "https://dev-www.libreoffice.org/src/" name "/"
337 name "-" version ".tar.xz"))
339 "11949iscdb99f2jplxjd39282jxcrf2fw0sqbh5dl7gqb96r8whb"))))
340 (build-system gnu-build-system)
342 `(("doxygen" ,doxygen)
345 ("pkg-config" ,pkg-config)))
346 (propagated-inputs ; in Requires or Requires.private field of .pkg
347 `(("librevenge" ,librevenge)
348 ("libxml2" ,libxml2)))
352 ;; avoid triggering configure errors by simple inclusion of boost headers
353 `(#:configure-flags '("--disable-werror")))
354 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libabw")
355 (synopsis "Library for parsing the AbiWord format")
356 (description "Libabw is a library that parses the file format of
360 (define-public libcdr
367 (uri (string-append "https://dev-www.libreoffice.org/src/" name "/"
368 name "-" version ".tar.xz"))
370 "0j1skr11jwvafn0l6p37v3i4lqc8wcn489g8f7c4mqwbk94mrkka"))))
371 (build-system gnu-build-system)
373 `(("cppunit" ,cppunit)
375 ("pkg-config" ,pkg-config)))
376 (propagated-inputs ; in Requires or Requires.private field of .pkg
379 ("librevenge" ,librevenge)
383 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libcdr")
384 (synopsis "Library for parsing the CorelDRAW format")
385 (description "Libcdr is a library that parses the file format of
386 CorelDRAW documents of all versions.")
389 (define-public libetonyek
396 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
397 name "-" version ".tar.xz"))
399 "0jhsbdimiyijdqriy0zzkjjgc4wi6fjimhdg4mdybrlwg7l7f5p6"))))
400 (build-system gnu-build-system)
402 `(#:configure-flags '("--with-mdds=1.4")))
404 `(("cppunit" ,cppunit)
407 ("pkg-config" ,pkg-config)))
408 (propagated-inputs ; in Requires or Requires.private field of .pkg
409 `(("liblangtag" ,liblangtag)
410 ("librevenge" ,librevenge)
417 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libetonyek")
418 (synopsis "Library for parsing the Apple Keynote format")
419 (description "Libetonyek is a library that parses the file format of
420 Apple Keynote documents. It currently supports Keynote versions 2 to 5.")
423 (define-public liblangtag
430 (uri (string-append "https://bitbucket.org/tagoh/liblangtag/downloads/"
431 name "-" version ".tar.bz2"))
434 "0bnm4hllr8cfrybm8rw7b8n0nlhzhnv73bkg1bxk452g6a82f96n"))))
435 (build-system gnu-build-system)
437 `(("libtool" ,libtool)
438 ("pkg-config" ,pkg-config)))
440 `(("libxml2" ,libxml2)))
441 ;; As of December 2017, tagoh.bitbucket.org redirects to a hosting advert.
442 (home-page "https://bitbucket.org/tagoh/liblangtag")
443 (synopsis "Library to access tags for identifying languages")
444 (description "Liblangtag implements an interface to work with tags
445 for identifying languages as described in RFC 5646. It supports the
446 extensions described in RFC6067 and RFC6497, and Extension T for
447 language/locale identifiers as described in the Unicode CLDR
449 (license (list lgpl3+ mpl2.0)))) ; dual license
451 (define-public libexttextcat
453 (name "libexttextcat")
458 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
459 name "-" version ".tar.xz"))
461 "1j6sjwkyhqvsgyw938bxxfwkzzi1mahk66g5342lv6j89jfvrz8k"))))
462 (build-system gnu-build-system)
463 (home-page "https://www.freedesktop.org/wiki/Software/libexttextcat/")
464 (synopsis "Text Categorization library")
465 (description "Libexttextcat is an N-Gram-Based Text Categorization
466 library primarily intended for language guessing.")
467 (license (non-copyleft "file://LICENSE"
468 "See LICENSE in the distribution."))))
470 (define-public libfreehand
477 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
478 name "-" version ".tar.xz"))
480 "1b1lvqh68rwij1yvmxy02hsmh7i74ma5767mk8mg5nx6chajshhf"))))
481 (build-system gnu-build-system)
483 `(("cppunit" ,cppunit)
487 ("pkg-config" ,pkg-config)))
491 (propagated-inputs ; in Requires or Requires.private field of .pkg
492 `(("librevenge" ,librevenge)
494 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libfreehand")
495 (synopsis "Library for parsing the FreeHand format")
496 (description "Libfreehand is a library that parses the file format of
497 Aldus/Macromedia/Adobe FreeHand documents.")
500 (define-public libmspub
507 (uri (string-append "https://dev-www.libreoffice.org/src/" name "/"
508 name "-" version ".tar.xz"))
510 "1fhkn013gzg59f4z7rldpbi0nj7lgdqzxanspsqa6axvmahw2dpg"))))
511 (build-system gnu-build-system)
513 `(("doxygen" ,doxygen)
514 ("pkg-config" ,pkg-config)))
515 (propagated-inputs ; in Requires or Requires.private field of .pkg
517 ("librevenge" ,librevenge)
521 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libmspub")
522 (synopsis "Library for parsing the Microsoft Publisher format")
523 (description "Libmspub is a library that parses the file format of
524 Microsoft Publisher documents of all versions.")
527 (define-public libnumbertext
529 (name "libnumbertext")
534 (uri (string-append "https://github.com/Numbertext/libnumbertext/"
535 "releases/download/" version
536 "/libnumbertext-" version ".tar.xz"))
538 (base32 "1xzlwhwwhvr76kfdsw5gvfjfdayz803z65h331gv5dpc9imhijg1"))))
539 (build-system gnu-build-system)
541 `(#:configure-flags '("--disable-static")))
542 (home-page "https://github.com/Numbertext/libnumbertext")
543 (synopsis "Language-neutral @code{NUMBERTEXT} and @code{MONEYTEXT} functions")
545 "The libnumbertext library provides language-neutral @code{NUMBERTEXT}
546 and @code{MONEYTEXT} functions for LibreOffice Calc, available for C++ and
548 (license (list lgpl3+ bsd-3))))
550 (define-public libpagemaker
552 (name "libpagemaker")
557 (uri (string-append "https://dev-www.libreoffice.org/src/libpagemaker/"
558 "libpagemaker-" version ".tar.xz"))
560 "17ai8ajffr0ixxmmcv3k5vgjlcsix38ldb4fw2arild70pbsrbb6"))))
561 (build-system gnu-build-system)
563 `(("doxygen" ,doxygen)
564 ("pkg-config" ,pkg-config)))
565 (propagated-inputs ; in Requires field of .pkg
566 `(("librevenge" ,librevenge)))
570 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker")
571 (synopsis "Library for parsing the PageMaker format")
572 (description "Libpagemaker is a library that parses the file format of
573 Aldus/Adobe PageMaker documents. Currently it only understands documents
574 created by PageMaker version 6.x and 7.")
577 (define-public libvisio
584 (uri (string-append "http://dev-www.libreoffice.org/src/libvisio/"
585 "libvisio-" version ".tar.xz"))
587 "1yahpfl13qk6178irv8jn5ppxdn7isafqisyqsdw0lqxcz9h447y"))))
588 (build-system gnu-build-system)
590 `(("cppunit" ,cppunit)
594 ("pkg-config" ,pkg-config)))
595 (propagated-inputs ; in Requires or Requires.private field of .pkg
597 ("librevenge" ,librevenge)
598 ("libxml2" ,libxml2)))
601 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libvisio")
602 (synopsis "Library for parsing the Microsoft Visio format")
603 (description "Libvisio is a library that parses the file format of
604 Microsoft Visio documents of all versions.")
607 (define-public libodfgen
614 (uri (string-append "mirror://sourceforge/libwpd/libodfgen/"
615 "libodfgen-" version "/libodfgen-" version ".tar.xz"))
617 "0cdq48wlpp8m0qmndybv64r0m4vh0qsqx69cn6ms533cjlgljgij"))))
618 (build-system gnu-build-system)
620 `(("doxygen" ,doxygen)
621 ("pkg-config" ,pkg-config)))
622 (propagated-inputs ; in Requires field of .pkg
623 `(("librevenge" ,librevenge)))
628 ;; avoid triggering configure errors by simple inclusion of boost headers
629 `(#:configure-flags '("--disable-werror")))
630 (home-page "https://sourceforge.net/p/libwpd/wiki/libodfgen/")
631 (synopsis "ODF (Open Document Format) library")
632 (description "Libodfgen is a library for generating documents in the
633 Open Document Format (ODF). It provides generator implementations for all
634 document interfaces supported by librevenge:
635 text documents, vector drawings, presentations and spreadsheets.")
636 (license (list mpl2.0 lgpl2.1+)))) ; dual license
638 (define-public libmwaw
645 (uri (string-append "mirror://sourceforge/libmwaw/libmwaw/libmwaw-"
646 version "/libmwaw-" version ".tar.xz"))
648 "1cdhm9yhanyv3w4vr73zhgyynmkhhkp3dyld7m11jd2yy04vnh04"))))
649 (build-system gnu-build-system)
651 `(("doxygen" ,doxygen)
652 ("pkg-config" ,pkg-config)))
653 (propagated-inputs ; in Requires field of .pkg
654 `(("librevenge" ,librevenge)))
658 (home-page "https://sourceforge.net/p/libmwaw/wiki/Home/")
659 (synopsis "Import library for some old Macintosh text documents")
660 (description "Libmwaw contains some import filters for old Macintosh
661 text documents (MacWrite, ClarisWorks, ... ) and for some graphics and
662 spreadsheet documents.")
663 (license (list mpl2.0 lgpl2.1+)))) ; dual license
665 (define-public libstaroffice
667 (name "libstaroffice")
672 (uri (string-append "https://github.com/fosnola/libstaroffice/releases/download/"
673 version "/libstaroffice-" version ".tar.xz"))
675 "1i0ykl0c94lc1qzb5mbyf9jr7qw8p38ja424whmhgrllh7ny203b"))))
676 (build-system gnu-build-system)
678 `(("librevenge" ,librevenge)
681 `(("pkg-config" ,pkg-config)))
682 (home-page "https://github.com/fosnola/libstaroffice")
683 (synopsis "Provides LibreOffice support for old StarOffice documents")
684 (description "@code{libstaroffice} is an import filter for the document formats
685 from the old StarOffice (.sdc, .sdw, ...).")
686 (license (list mpl2.0 lgpl2.1+)))) ; dual license
688 (define-public libwps
695 (uri (string-append "mirror://sourceforge/" name "/" name "/"
696 name "-" version "/" name "-" version ".tar.xz"))
698 "1ji9zd4wxmas03g8jyx0ih0amrqfazm5874a2v9rd7va50sf088l"))))
699 (build-system gnu-build-system)
701 `(("doxygen" ,doxygen)
702 ("pkg-config" ,pkg-config)))
703 (propagated-inputs ; in Requires field of .pkg
704 `(("librevenge" ,librevenge)))
708 (home-page "http://libwps.sourceforge.net/")
709 (synopsis "Import library for Microsoft Works text documents")
710 (description "Libwps is a library for importing files in the Microsoft
711 Works word processor file format.")
712 (license (list mpl2.0 lgpl2.1+)))) ; dual license
714 (define-public libzmf
721 (uri (string-append "http://dev-www.libreoffice.org/src/libzmf/libzmf-"
724 "08mg5kmkjrmqrd8j5rkzw9vdqlvibhb1ynp6bmfxnzq5rcq1l197"))))
725 (build-system gnu-build-system)
727 ;; A harmless 'sign-compare' error pops up on i686 so disable '-Werror'.
728 '(#:configure-flags '("--disable-werror")))
733 ("librevenge" ,librevenge)
736 `(("cppunit" ,cppunit)
738 ("pkg-config" ,pkg-config)))
739 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libzmf")
740 (synopsis "Parses file format of Zoner Callisto/Draw documents")
741 (description "Libzmf is a library that parses the file format of Zoner
742 Callisto/Draw documents. Currently it only understands documents created by
743 Zoner Draw version 4 and 5.")
746 (define-public hunspell
754 (url "https://github.com/hunspell/hunspell")
755 (commit (string-append "v" version))))
756 (file-name (git-file-name name version))
759 "0qxlkd012r45ppd21kldbq9k5ac5nmxz290z6m2kch9l56v768k1"))))
760 (build-system gnu-build-system)
762 `(("autoconf" ,autoconf)
763 ("automake" ,automake)
764 ("libtool" ,libtool)))
767 (native-search-paths (list (search-path-specification
769 (files '("share/hunspell")))))
770 (home-page "https://hunspell.github.io/")
771 (synopsis "Spell checker")
772 (description "Hunspell is a spell checker and morphological analyzer
773 library and program designed for languages with rich morphology and complex
774 word compounding or character encoding.")
775 ;; Triple license, including "mpl1.1 or later".
776 (license (list mpl1.1 gpl2+ lgpl2.1+))))
778 (define (dicollecte-french-dictionary variant synopsis)
779 ;; Return a French dictionary package from dicollecte.org, for the given
783 ("classique" "hunspell-dict-fr")
784 (_ (string-append "hunspell-dict-fr-" variant))))
788 "http://www.dicollecte.org/download/fr/hunspell-french-dictionaries-v"
793 "139hfrn5p87sl8hqmgkf6sgvnxrk2mm8vd8xsm8sm98qjnwlg0f9"))))
794 (build-system trivial-build-system)
795 (native-inputs `(("unzip" ,unzip)))
797 `(#:modules ((guix build utils))
799 (use-modules (guix build utils)
802 (let* ((out (assoc-ref %outputs "out"))
803 (hunspell (string-append out "/share/hunspell"))
804 (myspell (string-append out "/share/myspell"))
805 (doc (string-append out "/share/doc/"
807 (unzip (assoc-ref %build-inputs "unzip")))
808 (invoke (string-append unzip "/bin/unzip")
809 (assoc-ref %build-inputs "source"))
810 (for-each (cut install-file <> hunspell)
812 ,(string-append variant
815 (symlink hunspell (string-append myspell "/dicts"))
816 (for-each (cut install-file <> doc)
817 (find-files "." "\\.(txt|org|md)$"))
821 "This package provides a dictionary for the Hunspell spell-checking
823 (home-page "https://www.dicollecte.org/home.php?prj=fr")
826 (define-syntax define-french-dictionary
827 (syntax-rules (synopsis)
828 ((_ name variant (synopsis text))
830 (dicollecte-french-dictionary variant text)))))
832 (define-french-dictionary hunspell-dict-fr-classique
834 ;; TRANSLATORS: In French, this is "Français classique".
835 (synopsis "Hunspell dictionary for ``classic'' French (recommended)"))
837 (define-french-dictionary hunspell-dict-fr-moderne
839 ;; TRANSLATORS: In French, this is "Français moderne".
840 (synopsis "Hunspell dictionary for ``modern'' French"))
842 (define-french-dictionary hunspell-dict-fr-réforme-1990
844 (synopsis "Hunspell dictionary for the post @dfn{1990 réforme} French"))
846 (define-french-dictionary hunspell-dict-fr-toutes-variantes
848 (synopsis "Hunspell dictionary for all variants of French"))
850 (define-public hyphen
857 (uri (string-append "mirror://sourceforge/hunspell/Hyphen/"
858 (version-major+minor version) "/"
859 name "-" version ".tar.gz"))
861 "01ap9pr6zzzbp4ky0vy7i1983fwyqy27pl0ld55s30fdxka3ciih"))))
862 (build-system gnu-build-system)
865 (home-page "http://hunspell.sourceforge.net/")
866 (synopsis "Hyphenation library")
867 (description "Hyphen is a hyphenation library using TeX hyphenation
868 patterns, which are pre-processed by a perl script.")
869 ;; triple license, including "mpl1.1 or later"
870 (license (list mpl1.1 mpl2.0 gpl2+ lgpl2.1+))))
872 (define-public mythes
879 (uri (string-append "mirror://sourceforge/hunspell/MyThes/" version "/"
880 name "-" version ".tar.gz"))
882 "0prh19wy1c74kmzkkavm9qslk99gz8h8wmjvwzjc6lf8v2az708y"))))
883 (build-system gnu-build-system)
885 `(("pkg-config" ,pkg-config)))
887 `(("hunspell" ,hunspell)
889 (home-page "http://hunspell.sourceforge.net/")
890 (synopsis "Thesaurus")
891 (description "MyThes is a simple thesaurus that uses a structured text
892 data file and an index file with binary search to look up words and phrases
893 and to return information on pronunciations, meanings and synonyms.")
894 (license (non-copyleft "file://COPYING"
895 "See COPYING in the distribution."))))
897 (define-public libqxp
903 (uri (string-append "https://dev-www.libreoffice.org/src/libqxp/"
904 "libqxp-" version ".tar.xz"))
907 "0p4lb84m05wqd8qr8ni9sp80ivlm83ffn0nxiv4m42hj22qvcdz1"))))
908 (build-system gnu-build-system)
914 `(("cppunit" ,cppunit)
915 ("pkg-config" ,pkg-config)))
917 `(("librevenge" ,librevenge))) ; mentioned in Requires field
918 (home-page "https://www.libreoffice.org")
919 (synopsis "Library and tools for the QuarkXPress file format")
920 (description "libqxp is a library and a set of tools for reading and
921 converting QuarkXPress file format. It supports versions 3.1 to 4.1.")
924 (define-public libreoffice
933 "https://download.documentfoundation.org/libreoffice/src/"
934 (version-prefix version 3) "/libreoffice-" version ".tar.xz"))
937 "1wh8qhqkmb89nmfcb0w6iwpdzxwqr7c5kzxgpk4gy60xin6gwjgb"))
939 (append (list (origin
940 ;; Support newer versions of Orcus and MDDS. These patches
941 ;; are taken from upstream, but we use the patches from Arch
942 ;; because they are adapted for the release tarball.
943 ;; Note: remove the related substitutions below when these
944 ;; are no longer needed.
946 (uri (string-append "https://git.archlinux.org/svntogit"
947 "/packages.git/plain/trunk/"
948 "0001-Update-orcus-to-0.14.0.patch?&id="
949 "4002fa927f2a143bd2ec008a0c400b2ce9f2c8a7"))
950 (file-name "libreoffice-orcus.patch")
953 "0v1knblrmfzkb4g9pm5mdnrmjib59bznvca1ygbwlap2ln1h4mk0")))
956 (uri (string-append "https://git.archlinux.org/svntogit"
957 "/packages.git/plain/trunk/"
958 "0001-Update-mdds-to-1.4.1.patch?&id="
959 "4002fa927f2a143bd2ec008a0c400b2ce9f2c8a7"))
960 (file-name "libreoffice-mdds.patch")
963 "0apbmammmp4pk473xiv5vk50r4c5gjvqzf9jkficksvz58q6114f"))))
964 (search-patches "libreoffice-boost.patch"
965 "libreoffice-icu.patch"
966 "libreoffice-glm.patch")))
967 (modules '((guix build utils)))
970 (for-each (lambda (file)
971 ;; Adjust to renamed function in Poppler 0.72.
972 (substitute* file (("getCString") "c_str")))
973 (find-files "sdext/source/pdfimport/xpdfwrapper"))
975 (build-system glib-or-gtk-build-system)
978 ("cppunit" ,cppunit-1.14)
980 ("pkg-config" ,pkg-config)
981 ("python" ,python-wrapper)
988 ("dbus-glib" ,dbus-glib)
989 ("fontconfig" ,fontconfig)
995 ("graphite2" ,graphite2)
996 ("gst-plugins-base" ,gst-plugins-base)
998 ("harfbuzz" ,harfbuzz)
999 ("hunspell" ,hunspell)
1003 ("libcmis" ,libcmis)
1004 ("libjpeg-turbo" ,libjpeg-turbo)
1005 ("libe-book" ,libe-book)
1006 ("libepubgen" ,libepubgen)
1007 ("libetonyek" ,libetonyek)
1008 ("libexttextcat" ,libexttextcat)
1009 ("libfreehand" ,libfreehand)
1010 ("liblangtag" ,liblangtag)
1011 ;; XXX: Perhaps this should be propagated from xmlsec.
1012 ("libltdl" ,libltdl)
1013 ("libmspub" ,libmspub)
1014 ("libmwaw" ,libmwaw)
1015 ("libnumbertext" ,libnumbertext)
1016 ("libodfgen" ,libodfgen)
1017 ("libpagemaker" ,libpagemaker)
1019 ("libstaroffice" ,libstaroffice)
1020 ("libvisio" ,libvisio)
1023 ("libxrandr" ,libxrandr)
1024 ("libxrender" ,libxrender)
1025 ("libxslt" ,libxslt)
1028 ("lpsolve" ,lpsolve)
1034 ("openldap" ,openldap)
1035 ("openssl" ,openssl)
1038 ("perl-archive-zip" ,perl-archive-zip)
1039 ("poppler" ,poppler)
1040 ("postgresql" ,postgresql)
1042 ("python-lxml" ,python-lxml)
1043 ("redland" ,redland)
1044 ("sane-backends" ,sane-backends)
1045 ("unixodbc" ,unixodbc)
1048 ("xmlsec" ,xmlsec-nss)
1051 `(#:tests? #f ; Building the tests already fails.
1052 #:make-flags '("build-nocheck") ; Do not build unit tests, which fails.
1054 (modify-phases %standard-phases
1055 (add-before 'configure 'prepare-src
1056 (lambda* (#:key inputs #:allow-other-keys)
1058 (list "sysui/CustomTarget_share.mk"
1059 "solenv/gbuild/gbuild.mk"
1060 "solenv/gbuild/platform/unxgcc.mk")
1061 (("/bin/sh") (which "sh")))
1063 ;; XXX: Adjust the checks for MDDS and liborcus to avoid having
1064 ;; to re-bootstrap the whole thing. Remove this with the related
1066 (substitute* "configure"
1067 (("mdds-1.2 >= 1.2.3") "mdds-1.4 >= 1.4.1")
1068 (("liborcus-0.13 >= 0.13.3") "liborcus-0.14 >= 0.14.0"))
1070 ;; GPGME++ headers are installed in a gpgme++ subdirectory, but
1071 ;; files in "xmlsecurity/source/gpg/" and elsewhere expect to
1072 ;; find them on the include path without a prefix.
1073 (substitute* '("xmlsecurity/Library_xsec_xmlsec.mk"
1074 "comphelper/Library_comphelper.mk")
1075 (("\\$\\$\\(INCLUDE\\)")
1076 (string-append "$$(INCLUDE) -I"
1077 (assoc-ref inputs "gpgme")
1078 "/include/gpgme++")))
1081 (add-after 'install 'bin-and-desktop-install
1082 ;; Create 'soffice' and 'libreoffice' symlinks to the executable
1084 (lambda* (#:key outputs #:allow-other-keys)
1085 (let ((out (assoc-ref outputs "out")))
1086 (define (symlink-output src dst)
1087 (mkdir-p (dirname (string-append out dst)))
1088 (symlink (string-append out src) (string-append out dst)))
1089 (define (install src dst)
1090 (let ((dst (string-append out dst)))
1091 (mkdir-p (dirname dst))
1092 (copy-file src dst)))
1093 (define (install-desktop-file app)
1094 (let ((src (string-append "/lib/libreoffice/share/xdg/"
1096 (dst (string-append "/share/applications/libreoffice-"
1098 (substitute* (string-append out src)
1099 (("Exec=libreoffice[0-9]+\\.[0-9]+ ")
1100 (string-append "Exec=" out "/bin/libreoffice "))
1101 (("Icon=libreoffice.*")
1102 (string-append "Icon=" app "\n"))
1103 (("LibreOffice [0-9]+\\.[0-9]+")
1105 (symlink-output src dst)))
1106 (define (install-appdata app)
1107 (install-file (string-append
1108 "sysui/desktop/appstream-appdata/"
1109 "libreoffice-" app ".appdata.xml")
1110 (string-append out "/share/appdata")))
1111 (symlink-output "/lib/libreoffice/program/soffice"
1113 (symlink-output "/lib/libreoffice/program/soffice"
1115 (install "workdir/CustomTarget/sysui/share/libreoffice/openoffice.keys"
1116 "/share/mime-info/libreoffice.keys")
1117 (install "workdir/CustomTarget/sysui/share/libreoffice/openoffice.mime"
1118 "/share/mime-info/libreoffice.mime")
1120 "workdir/CustomTarget/sysui/share/libreoffice/openoffice.org.xml"
1121 "/share/mime/packages/libreoffice.xml")
1122 (for-each install-desktop-file
1123 '("base" "calc" "draw" "impress" "writer"
1124 "math" "startcenter"))
1125 (for-each install-appdata
1126 '("base" "calc" "draw" "impress" "writer"))
1127 (mkdir-p (string-append out "/share/icons/hicolor"))
1128 (copy-recursively "sysui/desktop/icons/hicolor"
1129 (string-append out "/share/icons/hicolor")))
1133 "--enable-release-build"
1135 ;; Avoid using all cpu cores by default
1136 (format #f "--with-parallelism=~d" (parallel-job-count))
1137 "--disable-fetch-external" ; disable downloads
1138 "--with-system-libs" ; enable all --with-system-* flags
1139 (string-append "--with-boost-libdir="
1140 (assoc-ref %build-inputs "boost") "/lib")
1141 ;; Avoid undefined symbols required by boost::spirit
1142 "LDFLAGS=-lboost_system"
1143 ;; Avoid a dependency on ucpp.
1144 "--with-idlc-cpp=cpp"
1145 ;; The fonts require an external tarball (crosextrafonts).
1146 ;; They should not be needed when system fonts are available.
1148 ;; With java, the build fails since sac.jar is missing.
1150 ;; FIXME: Enable once the corresponding inputs are packaged.
1151 "--without-system-npapi-headers"
1153 "--disable-firebird-sdbc" ; embedded firebird
1155 ;; XXX: PDFium support requires fetching an external tarball and
1156 ;; patching the build scripts to work with GCC5. Try enabling this
1157 ;; when our default compiler is >=GCC 6.
1159 "--disable-gtk" ; disable use of GTK+ 2
1160 "--without-doxygen")))
1161 (home-page "https://www.libreoffice.org/")
1162 (synopsis "Office suite")
1163 (description "LibreOffice is a comprehensive office suite. It contains
1164 a number of components: Writer, a word processor; Calc, a spreadsheet
1165 application; Impress, a presentation engine; Draw, a drawing and
1166 flowcharting application; Base, a database and database frontend;
1167 Math for editing mathematics.")