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 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 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
9 ;;; Copyright © 2017 Ludovic Courtès <ludo@gnu.org>
10 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
11 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
13 ;;; This file is part of GNU Guix.
15 ;;; GNU Guix is free software; you can redistribute it and/or modify it
16 ;;; under the terms of the GNU General Public License as published by
17 ;;; the Free Software Foundation; either version 3 of the License, or (at
18 ;;; your option) any later version.
20 ;;; GNU Guix is distributed in the hope that it will be useful, but
21 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
22 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 ;;; GNU General Public License for more details.
25 ;;; You should have received a copy of the GNU General Public License
26 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
28 (define-module (gnu packages libreoffice)
29 #:use-module (guix build-system gnu)
30 #:use-module (guix build-system trivial)
31 #:use-module (guix download)
32 #:use-module ((guix licenses)
33 #:select (gpl2+ lgpl2.1+ lgpl3+ mpl1.1 mpl2.0
34 non-copyleft x11-style))
35 #:use-module (guix packages)
36 #:use-module (guix utils)
37 #:use-module (ice-9 match)
38 #:use-module (gnu packages)
39 #:use-module (gnu packages autotools)
40 #:use-module (gnu packages base)
41 #:use-module (gnu packages bison)
42 #:use-module (gnu packages boost)
43 #:use-module (gnu packages check)
44 #:use-module (gnu packages compression)
45 #:use-module (gnu packages cups)
46 #:use-module (gnu packages curl)
47 #:use-module (gnu packages cyrus-sasl)
48 #:use-module (gnu packages databases)
49 #:use-module (gnu packages documentation)
50 #:use-module (gnu packages flex)
51 #:use-module (gnu packages fontutils)
52 #:use-module (gnu packages ghostscript)
53 #:use-module (gnu packages gl)
54 #:use-module (gnu packages glib)
55 #:use-module (gnu packages gnome)
56 #:use-module (gnu packages gperf)
57 #:use-module (gnu packages gnuzilla)
58 #:use-module (gnu packages gstreamer)
59 #:use-module (gnu packages gtk)
60 #:use-module (gnu packages icu4c)
61 #:use-module (gnu packages image)
62 #:use-module (gnu packages java)
63 #:use-module (gnu packages linux)
64 #:use-module (gnu packages maths)
65 #:use-module (gnu packages openldap)
66 #:use-module (gnu packages pdf)
67 #:use-module (gnu packages perl)
68 #:use-module (gnu packages pkg-config)
69 #:use-module (gnu packages python)
70 #:use-module (gnu packages rdf)
71 #:use-module (gnu packages scanner)
72 #:use-module (gnu packages tls)
73 #:use-module (gnu packages version-control)
74 #:use-module (gnu packages xml)
75 #:use-module (gnu packages xorg))
84 (uri (string-append "http://kohei.us/files/ixion/src/libixion-"
87 "1bnsqbxpbijwbg42rrqq6mz06wvcxjpl0gjdzwyilkmv6s400i4b"))))
88 (build-system gnu-build-system)
90 `(("pkg-config" ,pkg-config)))
94 (home-page "https://gitlab.com/ixion/ixion")
95 (synopsis "General purpose formula parser and interpreter")
96 (description "Ixion is a library for calculating the results of formula
97 expressions stored in multiple named targets, or \"cells\". The cells can
98 be referenced from each other, and the library takes care of resolving
99 their dependencies automatically upon calculation.")
109 (uri (string-append "http://kohei.us/files/" name "/src/lib"
110 name "-" version ".tar.xz"))
112 "171bmqa9hkk4xygz20qda5900rs4kq9fgl424ldkxlj4d733dffi"))))
113 (build-system gnu-build-system)
115 `(("pkg-config" ,pkg-config)))
121 (home-page "https://gitlab.com/orcus/orcus")
122 (synopsis "File import filter library for spreadsheet documents")
123 (description "Orcus is a library that provides a collection of standalone
124 file processing filters. It is currently focused on providing filters for
125 spreadsheet documents. The library includes import filters for
126 Microsoft Excel 2007 XML, Microsoft Excel 2003 XML, Open Document Spreadsheet,
127 Plain Text, Gnumeric XML, Generic XML. It also includes low-level parsers for
131 (define-public librevenge
138 (uri (string-append "mirror://sourceforge/libwpd/" name "/" name "-"
139 version "/" name "-" version ".tar.xz"))
141 "1cj76cz4mqcy2mgv9l5xlc95bypyk8zbq0ls9cswqrs2y0lhfgwk"))))
142 (build-system gnu-build-system)
144 `(("cppunit" ,cppunit)
146 ("pkg-config" ,pkg-config)))
149 (propagated-inputs ; Referenced by .la files
152 ;; avoid triggering configure errors by simple inclusion of boost headers
153 `(#:configure-flags '("--disable-werror"
154 ;; Avoid undefined library references
155 "LDFLAGS=-lboost_system")))
156 (home-page "https://sourceforge.net/p/libwpd/wiki/librevenge/")
157 (synopsis "Document importer for office suites")
158 (description "Librevenge is a base library for writing document import
159 filters. It has interfaces for text documents, vector graphics,
160 spreadsheets and presentations.")
161 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
163 (define-public libwpd
170 (uri (string-append "mirror://sourceforge/" name "/" name "/"
171 name "-" version "/" name "-" version ".tar.xz"))
173 "0436gnidx45a9vx114hhh216jrh57mqb9zyssyjfadagmyz6hgrj"))))
174 (build-system gnu-build-system)
176 `(("doxygen" ,doxygen)
177 ("pkg-config" ,pkg-config)))
179 `(("librevenge" ,librevenge))) ; in Requires field of .pkg
182 (home-page "http://libwpd.sourceforge.net/")
183 (synopsis "Library for importing WordPerfect documents")
184 (description "Libwpd is a C++ library designed to help process
185 WordPerfect documents. It is most commonly used to import such documents
186 into other word processors.")
187 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
189 (define-public libe-book
196 (uri (string-append "mirror://sourceforge/libebook/libe-book-"
197 version "/libe-book-" version ".tar.xz"))
200 "1v48pd32r2pfysr3a3igc4ivcf6vvb26jq4pdkcnq75p70alp2bz"))))
201 (build-system gnu-build-system)
203 `(("cppunit" ,cppunit)
205 ("pkg-config" ,pkg-config)))
206 (propagated-inputs ; in Requires or Requires.private field of .pkg
208 ("librevenge" ,librevenge)
209 ("libxml2" ,libxml2)))
213 ;; avoid triggering configure errors by simple inclusion of boost headers
214 `(#:configure-flags '("--disable-werror")))
215 (home-page "http://libebook.sourceforge.net")
216 (synopsis "Library for import of reflowable e-book formats")
217 (description "Libe-book is a library and a set of tools for reading and
218 converting various reflowable e-book formats. Currently supported are:
219 Broad Band eBook, eReader .pdb, FictionBook v. 2 (including zipped files),
220 PalmDoc Ebook, Plucker .pdb, QiOO (mobile format, for java-enabled
221 cellphones), TCR (simple compressed text format), TealDoc, zTXT,
222 ZVR (simple compressed text format).")
225 (define-public libwpg
232 (uri (string-append "mirror://sourceforge/" name "/" name "/"
233 name "-" version "/" name "-" version ".tar.xz"))
235 "0cwc5zkp210c661l0bvk6q21jg9ak5g8gmy578w5fgfnjymz3yjp"))))
236 (build-system gnu-build-system)
238 `(("doxygen" ,doxygen)
239 ("pkg-config" ,pkg-config)))
241 `(("libwpd" ,libwpd))) ; in Requires field of .pkg
245 (home-page "http://libwpg.sourceforge.net/")
246 (synopsis "Library and tools for the WordPerfect Graphics format")
247 (description "The libwpg project provides a library and tools for
248 working with graphics in the WPG (WordPerfect Graphics) format.")
249 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
251 (define-public libcmis
258 (uri (string-append "https://github.com/tdf/libcmis/releases/download/v"
259 version "/libcmis-" version ".tar.gz"))
262 "03kvl8ywsv5qrxblf0m6955mmvl5q2zpb6vj51vs7ayvxhidzjva"))))
263 (build-system gnu-build-system)
265 `(("cppunit" ,cppunit)
266 ("pkg-config" ,pkg-config)))
267 (propagated-inputs ; in Requires field of .pkg
269 ("libxml2" ,libxml2)))
272 ("cyrus-sasl" ,cyrus-sasl)
273 ("openssl" ,openssl)))
277 ;; FIXME: Man pages generation requires docbook-to-man; reenable
278 ;; it once this is available.
280 ;; avoid triggering configure errors by simple inclusion of
283 ;; During configure, the boost headers are found, but linking
284 ;; fails without the following flag.
285 (string-append "--with-boost="
286 (assoc-ref %build-inputs "boost")))))
287 (home-page "https://github.com/tdf/libcmis")
288 (synopsis "CMIS client library")
289 (description "LibCMIS is a C++ client library for the CMIS interface. It
290 allows C++ applications to connect to any ECM behaving as a CMIS server such
291 as Alfresco or Nuxeo.")
292 (license (list mpl1.1 gpl2+ lgpl2.1+)))) ; triple license
294 (define-public libabw
301 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
302 name "-" version ".tar.xz"))
304 "0zi1zj4fpxgpglbbb5n1kg3dmhqq5rpf46lli89r5daavp19iing"))))
305 (build-system gnu-build-system)
307 `(("doxygen" ,doxygen)
310 ("pkg-config" ,pkg-config)))
311 (propagated-inputs ; in Requires or Requires.private field of .pkg
312 `(("librevenge" ,librevenge)
313 ("libxml2" ,libxml2)))
317 ;; avoid triggering configure errors by simple inclusion of boost headers
318 `(#:configure-flags '("--disable-werror")))
319 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libabw")
320 (synopsis "Library for parsing the AbiWord format")
321 (description "Libabw is a library that parses the file format of
325 (define-public libcdr
332 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
333 name "-" version ".tar.xz"))
335 "0vd6likgk51j46llybkx4wq3674xzrhp0k82220pkx9x1aqfi9z7"))))
336 (build-system gnu-build-system)
338 `(("cppunit" ,cppunit)
340 ("pkg-config" ,pkg-config)))
341 (propagated-inputs ; in Requires or Requires.private field of .pkg
344 ("librevenge" ,librevenge)
349 ;; avoid triggering a build failure due to warnings
350 `(#:configure-flags '("--disable-werror")))
351 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libcdr")
352 (synopsis "Library for parsing the CorelDRAW format")
353 (description "Libcdr is a library that parses the file format of
354 CorelDRAW documents of all versions.")
357 (define-public libetonyek
364 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
365 name "-" version ".tar.xz"))
367 "1b1lqy6g7flximlv0bp8jbsivyhdp679yj0d0q4jzm968h6y3nv9"))))
368 (build-system gnu-build-system)
370 `(#:configure-flags '("--with-mdds=1.2")))
372 `(("cppunit" ,cppunit)
376 ("liblangtag" ,liblangtag)
378 ("pkg-config" ,pkg-config)))
379 (propagated-inputs ; in Requires or Requires.private field of .pkg
380 `(("librevenge" ,librevenge)
381 ("libxml2" ,libxml2)))
384 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libetonyek")
385 (synopsis "Library for parsing the Apple Keynote format")
386 (description "Libetonyek is a library that parses the file format of
387 Apple Keynote documents. It currently supports Keynote versions 2 to 5.")
390 (define-public liblangtag
397 (uri (string-append "https://bitbucket.org/tagoh/liblangtag/downloads/"
398 name "-" version ".tar.bz2"))
401 "0bnm4hllr8cfrybm8rw7b8n0nlhzhnv73bkg1bxk452g6a82f96n"))))
402 (build-system gnu-build-system)
404 `(("libtool" ,libtool)
405 ("pkg-config" ,pkg-config)))
407 `(("libxml2" ,libxml2)))
408 ;; As of December 2017, tagoh.bitbucket.org redirects to a hosting advert.
409 (home-page "https://bitbucket.org/tagoh/liblangtag")
410 (synopsis "Library to access tags for identifying languages")
411 (description "Liblangtag implements an interface to work with tags
412 for identifying languages as described in RFC 5646. It supports the
413 extensions described in RFC6067 and RFC6497, and Extension T for
414 language/locale identifiers as described in the Unicode CLDR
416 (license (list lgpl3+ mpl2.0)))) ; dual license
418 (define-public libexttextcat
420 (name "libexttextcat")
425 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
426 name "-" version ".tar.xz"))
428 "1j6sjwkyhqvsgyw938bxxfwkzzi1mahk66g5342lv6j89jfvrz8k"))))
429 (build-system gnu-build-system)
430 (home-page "http://www.freedesktop.org/wiki/Software/libexttextcat/")
431 (synopsis "Text Categorization library")
432 (description "Libexttextcat is an N-Gram-Based Text Categorization
433 library primarily intended for language guessing.")
434 (license (non-copyleft "file://LICENSE"
435 "See LICENSE in the distribution."))))
437 (define-public libfreehand
444 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
445 name "-" version ".tar.xz"))
447 "1b1lvqh68rwij1yvmxy02hsmh7i74ma5767mk8mg5nx6chajshhf"))))
448 (build-system gnu-build-system)
450 `(("cppunit" ,cppunit)
454 ("pkg-config" ,pkg-config)))
458 (propagated-inputs ; in Requires or Requires.private field of .pkg
459 `(("librevenge" ,librevenge)
461 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libfreehand")
462 (synopsis "Library for parsing the FreeHand format")
463 (description "Libfreehand is a library that parses the file format of
464 Aldus/Macromedia/Adobe FreeHand documents.")
467 (define-public libmspub
474 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
475 name "-" version ".tar.xz"))
477 "03sn6lxpr49sdq6j8q7fw7yjybyfahhs03z80388mh105pwapfmh"))))
478 (build-system gnu-build-system)
480 `(("doxygen" ,doxygen)
481 ("pkg-config" ,pkg-config)))
482 (propagated-inputs ; in Requires or Requires.private field of .pkg
484 ("librevenge" ,librevenge)
488 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libmspub")
489 (synopsis "Library for parsing the Microsoft Publisher format")
490 (description "Libmspub is a library that parses the file format of
491 Microsoft Publisher documents of all versions.")
494 (define-public libpagemaker
496 (name "libpagemaker")
501 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
502 name "-" version ".tar.xz"))
504 "1minj0q14d44qfas81a8lkpgj288h5xlkjp084sfx17xv9axr5nq"))))
505 (build-system gnu-build-system)
507 `(("doxygen" ,doxygen)
508 ("pkg-config" ,pkg-config)))
509 (propagated-inputs ; in Requires field of .pkg
510 `(("librevenge" ,librevenge)))
514 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker")
515 (synopsis "Library for parsing the PageMaker format")
516 (description "Libpagemaker is a library that parses the file format of
517 Aldus/Adobe PageMaker documents. Currently it only understands documents
518 created by PageMaker version 6.x and 7.")
521 (define-public libvisio
528 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
529 name "-" version ".tar.xz"))
531 "1yahpfl13qk6178irv8jn5ppxdn7isafqisyqsdw0lqxcz9h447y"))))
532 (build-system gnu-build-system)
534 `(("cppunit" ,cppunit)
538 ("pkg-config" ,pkg-config)))
539 (propagated-inputs ; in Requires or Requires.private field of .pkg
541 ("librevenge" ,librevenge)
542 ("libxml2" ,libxml2)))
545 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libvisio")
546 (synopsis "Library for parsing the Microsoft Visio format")
547 (description "Libvisio is a library that parses the file format of
548 Microsoft Visio documents of all versions.")
551 (define-public libodfgen
558 (uri (string-append "http://dev-www.libreoffice.org/src/"
559 name "-" version ".tar.bz2"))
561 "1hn91bm6dni7n3frh7lpbj3mjqmdrpn12ipq8rswd9445y4j2yrc"))))
562 (build-system gnu-build-system)
564 `(("doxygen" ,doxygen)
565 ("pkg-config" ,pkg-config)))
566 (propagated-inputs ; in Requires field of .pkg
567 `(("librevenge" ,librevenge)))
572 ;; avoid triggering configure errors by simple inclusion of boost headers
573 `(#:configure-flags '("--disable-werror")))
574 (home-page "https://sourceforge.net/p/libwpd/wiki/libodfgen/")
575 (synopsis "ODF (Open Document Format) library")
576 (description "Libodfgen is a library for generating documents in the
577 Open Document Format (ODF). It provides generator implementations for all
578 document interfaces supported by librevenge:
579 text documents, vector drawings, presentations and spreadsheets.")
580 (license (list mpl2.0 lgpl2.1+)))) ; dual license
582 (define-public libmwaw
589 (uri (string-append "mirror://sourceforge/" name "/" name "/" name "-"
590 version "/" name "-" version ".tar.xz"))
592 "1ryi1v38lgy5kv84fzjqkawidrg30y4hlqrz1v262792wzkad4bn"))))
593 (build-system gnu-build-system)
595 `(("doxygen" ,doxygen)
596 ("pkg-config" ,pkg-config)))
597 (propagated-inputs ; in Requires field of .pkg
598 `(("librevenge" ,librevenge)))
602 (home-page "https://sourceforge.net/p/libmwaw/wiki/Home/")
603 (synopsis "Import library for some old Macintosh text documents")
604 (description "Libmwaw contains some import filters for old Macintosh
605 text documents (MacWrite, ClarisWorks, ... ) and for some graphics and
606 spreadsheet documents.")
607 (license (list mpl2.0 lgpl2.1+)))) ; dual license
609 (define-public libstaroffice
611 (name "libstaroffice")
616 (uri (string-append "https://github.com/fosnola/libstaroffice/releases/download/"
617 version "/libstaroffice-" version ".tar.xz"))
619 "10m9imcgqf7kdhn1a5ara62fdayidwm7qzj3binsls40snnhfm9i"))))
620 (build-system gnu-build-system)
622 `(("librevenge" ,librevenge)
625 `(("pkg-config" ,pkg-config)))
626 (home-page "https://github.com/fosnola/libstaroffice")
627 (synopsis "Provides LibreOffice support for old StarOffice documents")
628 (description "@code{libstaroffice} is an import filter for the document formats
629 from the old StarOffice (.sdc, .sdw, ...).")
630 (license (list mpl2.0 lgpl2.1+)))) ; dual license
632 (define-public libwps
639 (uri (string-append "mirror://sourceforge/" name "/" name "/"
640 name "-" version "/" name "-" version ".tar.xz"))
642 "05xjb35y5ha9grgjqs3viaglq7ydsry1hzdvkm7y5b6f1disnb1g"))))
643 (build-system gnu-build-system)
645 `(("doxygen" ,doxygen)
646 ("pkg-config" ,pkg-config)))
647 (propagated-inputs ; in Requires field of .pkg
648 `(("librevenge" ,librevenge)))
652 (home-page "http://libwps.sourceforge.net/")
653 (synopsis "Import library for Microsoft Works text documents")
654 (description "Libwps is a library for importing files in the Microsoft
655 Works word processor file format.")
656 (license (list mpl2.0 lgpl2.1+)))) ; dual license
658 (define-public libzmf
665 (uri (string-append "http://dev-www.libreoffice.org/src/libzmf/libzmf-"
668 "08mg5kmkjrmqrd8j5rkzw9vdqlvibhb1ynp6bmfxnzq5rcq1l197"))))
669 (build-system gnu-build-system)
674 ("librevenge" ,librevenge)
677 `(("cppunit" ,cppunit)
679 ("pkg-config" ,pkg-config)))
680 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libzmf")
681 (synopsis "Parses file format of Zoner Callisto/Draw documents")
682 (description "Libzmf is a library that parses the file format of Zoner
683 Callisto/Draw documents. Currently it only understands documents created by
684 Zoner Draw version 4 and 5.")
687 (define-public hunspell
694 (uri (string-append "https://github.com/hunspell/hunspell/archive/v"
697 "0j9c20sj7bgd6f77193g1ihy8w905byk2gdhdc0r9dsh7irr7x9h"))
698 (file-name (string-append name "-" version ".tar.gz"))))
699 (build-system gnu-build-system)
701 `(("autoconf" ,autoconf)
702 ("automake" ,automake)
703 ("libtool" ,libtool)))
708 (modify-phases %standard-phases
709 (add-after 'unpack 'bootstrap
711 (zero? (system* "autoreconf" "-vfi")))))))
712 (native-search-paths (list (search-path-specification
714 (files '("share/hunspell")))))
715 (home-page "https://hunspell.github.io/")
716 (synopsis "Spell checker")
717 (description "Hunspell is a spell checker and morphological analyzer
718 library and program designed for languages with rich morphology and complex
719 word compounding or character encoding.")
720 ;; Triple license, including "mpl1.1 or later".
721 (license (list mpl1.1 gpl2+ lgpl2.1+))))
723 (define (dicollecte-french-dictionary variant synopsis)
724 ;; Return a French dictionary package from dicollecte.org, for the given
728 ("classique" "hunspell-dict-fr")
729 (_ (string-append "hunspell-dict-fr-" variant))))
733 "http://www.dicollecte.org/download/fr/hunspell-french-dictionaries-v"
738 "0w2hzh36wj3lsj2yd4mh7z7547dg452sywj79vnzx27csclwqshc"))))
739 (build-system trivial-build-system)
740 (native-inputs `(("unzip" ,unzip)))
742 `(#:modules ((guix build utils))
744 (use-modules (guix build utils)
747 (let* ((out (assoc-ref %outputs "out"))
748 (hunspell (string-append out "/share/hunspell"))
749 (myspell (string-append out "/share/myspell"))
750 (doc (string-append out "/share/doc/"
752 (unzip (assoc-ref %build-inputs "unzip")))
753 (system* (string-append unzip "/bin/unzip")
754 (assoc-ref %build-inputs "source"))
755 (for-each (cut install-file <> hunspell)
757 ,(string-append variant
760 (symlink hunspell (string-append myspell "/dicts"))
761 (for-each (cut install-file <> doc)
762 (find-files "." "\\.(txt|org|md)$"))
766 "This package provides a dictionary for the Hunspell spell-checking
768 (home-page "https://www.dicollecte.org/home.php?prj=fr")
771 (define-syntax define-french-dictionary
772 (syntax-rules (synopsis)
773 ((_ name variant (synopsis text))
775 (dicollecte-french-dictionary variant text)))))
777 (define-french-dictionary hunspell-dict-fr-classique
779 ;; TRANSLATORS: In French, this is "Français classique".
780 (synopsis "Hunspell dictionary for ``classic'' French (recommended)"))
782 (define-french-dictionary hunspell-dict-fr-moderne
784 ;; TRANSLATORS: In French, this is "Français moderne".
785 (synopsis "Hunspell dictionary for ``modern'' French"))
787 (define-french-dictionary hunspell-dict-fr-réforme-1990
789 (synopsis "Hunspell dictionary for the post @dfn{1990 réforme} French"))
791 (define-french-dictionary hunspell-dict-fr-toutes-variantes
793 (synopsis "Hunspell dictionary for all variants of French"))
795 (define-public hyphen
802 (uri (string-append "mirror://sourceforge/hunspell/Hyphen/"
803 (version-major+minor version) "/"
804 name "-" version ".tar.gz"))
806 "01ap9pr6zzzbp4ky0vy7i1983fwyqy27pl0ld55s30fdxka3ciih"))))
807 (build-system gnu-build-system)
810 (home-page "http://hunspell.sourceforge.net/")
811 (synopsis "Hyphenation library")
812 (description "Hyphen is a hyphenation library using TeX hyphenation
813 patterns, which are pre-processed by a perl script.")
814 ;; triple license, including "mpl1.1 or later"
815 (license (list mpl1.1 mpl2.0 gpl2+ lgpl2.1+))))
817 (define-public mythes
824 (uri (string-append "mirror://sourceforge/hunspell/MyThes/" version "/"
825 name "-" version ".tar.gz"))
827 "0prh19wy1c74kmzkkavm9qslk99gz8h8wmjvwzjc6lf8v2az708y"))))
828 (build-system gnu-build-system)
830 `(("pkg-config" ,pkg-config)))
832 `(("hunspell" ,hunspell)
834 (home-page "http://hunspell.sourceforge.net/")
835 (synopsis "Thesaurus")
836 (description "MyThes is a simple thesaurus that uses a structured text
837 data file and an index file with binary search to look up words and phrases
838 and to return information on pronunciations, meanings and synonyms.")
839 (license (non-copyleft "file://COPYING"
840 "See COPYING in the distribution."))))
842 ;; LibreOffice requires an xmlsec source tarball; it does not even check
843 ;; for the presence of an externally compiled library.
844 (define xmlsec-src-libreoffice
849 "http://dev-www.libreoffice.org/src/"
850 "86b1daaa438f5a7bea9a52d7b9799ac0-xmlsec1-1.2.23.tar.gz"))
852 "17qfw5crkqn4v6xbkjxrjvcccfc00dy053892wrwv54qdk8n7m21"))))
854 (define-public libreoffice
863 "https://download.documentfoundation.org/libreoffice/src/"
864 (version-prefix version 3) "/libreoffice-" version ".tar.xz"))
866 "0z7fssp0jcj09wxad1wmhy69n71a2mwl933lxp9dz5sdvzncxmy3"))))
867 (build-system gnu-build-system)
869 `(;; autoreconf is run by the LibreOffice build system, since after
870 ;; unpacking the external xmlsec tarball, it applies a series of
871 ;; patches to Makefile.am, configure.in, config.guess and config.sub.
872 ("autoconf" ,autoconf)
873 ("automake" ,automake)
877 ("pkg-config" ,pkg-config)
878 ("python" ,python-wrapper)
885 ("dbus-glib" ,dbus-glib)
886 ("fontconfig" ,fontconfig)
891 ("graphite2" ,graphite2)
892 ("gst-plugins-base" ,gst-plugins-base)
894 ("harfbuzz" ,harfbuzz)
895 ("hunspell" ,hunspell)
901 ("libe-book" ,libe-book)
902 ("libetonyek" ,libetonyek)
903 ("libexttextcat" ,libexttextcat)
904 ("libfreehand" ,libfreehand)
905 ("liblangtag" ,liblangtag)
906 ("libmspub" ,libmspub)
908 ("libodfgen" ,libodfgen)
909 ("libpagemaker" ,libpagemaker)
910 ("libstaroffice" ,libstaroffice)
911 ("libvisio" ,libvisio)
914 ("libxrandr" ,libxrandr)
915 ("libxrender" ,libxrender)
925 ("openldap" ,openldap)
929 ("perl-zip" ,perl-zip)
931 ("postgresql" ,postgresql)
934 ("sane-backends" ,sane-backends)
935 ("unixodbc" ,unixodbc)
938 ("xmlsec-src" ,xmlsec-src-libreoffice)
941 `(#:tests? #f ; Building the tests already fails.
942 #:make-flags '("build-nocheck") ; Do not build unit tests, which fails.
944 (modify-phases %standard-phases
945 (add-before 'configure 'prepare-src
946 (lambda* (#:key inputs #:allow-other-keys)
947 (let ((xmlsec (assoc-ref inputs "xmlsec-src")))
949 (list "sysui/CustomTarget_share.mk"
950 "solenv/gbuild/gbuild.mk"
951 "solenv/gbuild/platform/unxgcc.mk")
952 (("/bin/sh") (which "sh")))
953 (mkdir "external/tarballs")
956 (string-append "external/tarballs/"
957 "86b1daaa438f5a7bea9a52d7b9799ac0-"
958 "xmlsec1-1.2.23.tar.gz"))
959 ;; The following is required for building xmlsec from the
960 ;; unpatched external tarball; since "configure" starts with
961 ;; "/bin/sh", it needs to be executed by a command invoking
963 (setenv "SHELL" (which "bash"))
964 (setenv "CONFIG_SHELL" (which "bash"))
965 (substitute* "external/libxmlsec/ExternalProject_xmlsec.mk"
966 (("./configure") "$(CONFIG_SHELL) ./configure" ))
968 (add-after 'install 'bin-and-desktop-install
969 ;; Create 'soffice' and 'libreoffice' symlinks to the executable
971 (lambda* (#:key outputs #:allow-other-keys)
972 (let ((out (assoc-ref outputs "out")))
973 (define (symlink-output src dst)
974 (mkdir-p (dirname (string-append out dst)))
975 (symlink (string-append out src) (string-append out dst)))
976 (define (install src dst)
977 (let ((dst (string-append out dst)))
978 (mkdir-p (dirname dst))
979 (copy-file src dst)))
980 (define (install-desktop-file app)
981 (let ((src (string-append "/lib/libreoffice/share/xdg/"
983 (dst (string-append "/share/applications/libreoffice-"
985 (substitute* (string-append out src)
986 (("Exec=libreoffice[0-9]+\\.[0-9]+ ")
987 (string-append "Exec=" out "/bin/libreoffice "))
988 (("Icon=libreoffice.*")
989 (string-append "Icon=" app "\n"))
990 (("LibreOffice [0-9]+\\.[0-9]+")
992 (symlink-output src dst)))
993 (define (install-appdata app)
994 (install-file (string-append
995 "sysui/desktop/appstream-appdata/"
996 "libreoffice-" app ".appdata.xml")
997 (string-append out "/share/appdata")))
998 (symlink-output "/lib/libreoffice/program/soffice"
1000 (symlink-output "/lib/libreoffice/program/soffice"
1002 (install "workdir/CustomTarget/sysui/share/libreoffice/openoffice.keys"
1003 "/share/mime-info/libreoffice.keys")
1004 (install "workdir/CustomTarget/sysui/share/libreoffice/openoffice.mime"
1005 "/share/mime-info/libreoffice.mime")
1007 "workdir/CustomTarget/sysui/share/libreoffice/openoffice.org.xml"
1008 "/share/mime/packages/libreoffice.xml")
1009 (for-each install-desktop-file
1010 '("base" "calc" "draw" "impress" "writer"
1011 "math" "startcenter"))
1012 (for-each install-appdata
1013 '("base" "calc" "draw" "impress" "writer"))
1014 (mkdir-p (string-append out "/share/icons/hicolor"))
1015 (copy-recursively "sysui/desktop/icons/hicolor"
1016 (string-append out "/share/icons/hicolor")))
1020 "--enable-release-build"
1022 "--disable-fetch-external" ; disable downloads
1023 "--with-system-libs" ; enable all --with-system-* flags
1024 (string-append "--with-boost-libdir="
1025 (assoc-ref %build-inputs "boost") "/lib")
1026 ;; Avoid undefined symbols required by boost::spirit
1027 "LDFLAGS=-lboost_system"
1028 ;; Avoid a dependency on ucpp.
1029 "--with-idlc-cpp=cpp"
1030 ;; The fonts require an external tarball (crosextrafonts).
1031 ;; They should not be needed when system fonts are available.
1033 ;; With java, the build fails since sac.jar is missing.
1035 ;; FIXME: Enable once the corresponding inputs are packaged.
1036 "--without-system-npapi-headers"
1038 "--disable-firebird-sdbc" ; embedded firebird
1040 "--disable-gtk" ; disable use of GTK+ 2
1041 "--without-doxygen")))
1042 (home-page "https://www.libreoffice.org/")
1043 (synopsis "Office suite")
1044 (description "LibreOffice is a comprehensive office suite. It contains
1045 a number of components: Writer, a word processor; Calc, a spreadsheet
1046 application; Impress, a presentation engine; Draw, a drawing and
1047 flowcharting application; Base, a database and database frontend;
1048 Math for editing mathematics.")