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 python-xyz)
79 #:use-module (gnu packages rdf)
80 #:use-module (gnu packages scanner)
81 #:use-module (gnu packages tls)
82 #:use-module (gnu packages version-control)
83 #:use-module (gnu packages xml)
84 #:use-module (gnu packages xorg))
93 (uri (string-append "http://kohei.us/files/ixion/src/libixion-"
97 "14gdd6div4l22vnz3jn2qjxgjly98ck6p8c1v7386c41rx7kilba"))))
98 (build-system gnu-build-system)
100 `(("pkg-config" ,pkg-config)))
104 (home-page "https://gitlab.com/ixion/ixion")
105 (synopsis "General purpose formula parser and interpreter")
106 (description "Ixion is a library for calculating the results of formula
107 expressions stored in multiple named targets, or \"cells\". The cells can
108 be referenced from each other, and the library takes care of resolving
109 their dependencies automatically upon calculation.")
119 (uri (string-append "http://kohei.us/files/" name "/src/lib"
120 name "-" version ".tar.xz"))
123 "1ays13a1x15j81dsrq0d3697v1bbqd3bfz3ajn6kb9d61y2drlgj"))))
124 (build-system gnu-build-system)
126 `(("pkg-config" ,pkg-config)))
132 (home-page "https://gitlab.com/orcus/orcus")
133 (synopsis "File import filter library for spreadsheet documents")
134 (description "Orcus is a library that provides a collection of standalone
135 file processing filters. It is currently focused on providing filters for
136 spreadsheet documents. The library includes import filters for
137 Microsoft Excel 2007 XML, Microsoft Excel 2003 XML, Open Document Spreadsheet,
138 Plain Text, Gnumeric XML, Generic XML. It also includes low-level parsers for
142 (define-public librevenge
149 (uri (string-append "mirror://sourceforge/libwpd/" name "/" name "-"
150 version "/" name "-" version ".tar.xz"))
152 "1cj76cz4mqcy2mgv9l5xlc95bypyk8zbq0ls9cswqrs2y0lhfgwk"))))
153 (build-system gnu-build-system)
155 `(("cppunit" ,cppunit)
157 ("pkg-config" ,pkg-config)))
160 (propagated-inputs ; Referenced by .la files
163 ;; avoid triggering configure errors by simple inclusion of boost headers
164 `(#:configure-flags '("--disable-werror"
165 ;; Avoid undefined library references
166 "LDFLAGS=-lboost_system")))
167 (home-page "https://sourceforge.net/p/libwpd/wiki/librevenge/")
168 (synopsis "Document importer for office suites")
169 (description "Librevenge is a base library for writing document import
170 filters. It has interfaces for text documents, vector graphics,
171 spreadsheets and presentations.")
172 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
174 (define-public libwpd
181 (uri (string-append "mirror://sourceforge/libwpd/libwpd/"
182 "libwpd-" version "/libwpd-" version ".tar.xz"))
184 "0436gnidx45a9vx114hhh216jrh57mqb9zyssyjfadagmyz6hgrj"))))
185 (build-system gnu-build-system)
187 `(#:configure-flags '("--disable-werror")))
189 `(("doxygen" ,doxygen)
190 ("pkg-config" ,pkg-config)))
192 `(("librevenge" ,librevenge))) ; in Requires field of .pkg
195 (home-page "http://libwpd.sourceforge.net/")
196 (synopsis "Library for importing WordPerfect documents")
197 (description "Libwpd is a C++ library designed to help process
198 WordPerfect documents. It is most commonly used to import such documents
199 into other word processors.")
200 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
202 (define-public libe-book
209 (uri (string-append "mirror://sourceforge/libebook/libe-book-"
210 version "/libe-book-" version ".tar.xz"))
213 "1yg1vws1wggzhjw672bpgh2x541g5i9wryf67g51m0r79zrqz3by"))))
214 (build-system gnu-build-system)
216 `(("cppunit" ,cppunit)
218 ("pkg-config" ,pkg-config)))
219 (propagated-inputs ; in Requires or Requires.private field of .pkg
221 ("liblangtag" ,liblangtag)
222 ("librevenge" ,librevenge)
223 ("libxml2" ,libxml2)))
227 ;; avoid triggering configure errors by simple inclusion of boost headers
228 `(#:configure-flags '("--disable-werror")))
229 (home-page "http://libebook.sourceforge.net")
230 (synopsis "Library for import of reflowable e-book formats")
231 (description "Libe-book is a library and a set of tools for reading and
232 converting various reflowable e-book formats. Currently supported are:
233 Broad Band eBook, eReader .pdb, FictionBook v. 2 (including zipped files),
234 PalmDoc Ebook, Plucker .pdb, QiOO (mobile format, for java-enabled
235 cellphones), TCR (simple compressed text format), TealDoc, zTXT,
236 ZVR (simple compressed text format).")
239 (define-public libepubgen
246 (uri (string-append "mirror://sourceforge/libepubgen/libepubgen-"
247 version "/libepubgen-" version ".tar.xz"))
250 "1b8mc9zzrqypj1v9zdy3ybc48pw0rfr06cyi7n6grvybjjwq9q03"))))
251 (build-system gnu-build-system)
253 `(("cppunit" ,cppunit)
254 ("pkg-config" ,pkg-config)))
256 `(("libxml2" ,libxml2)
258 (propagated-inputs ; in Requires field of .pkg
259 `(("librevenge" ,librevenge)))
260 (home-page "https://sourceforge.net/projects/libepubgen/")
261 (synopsis "EPUB generator library for librevenge")
262 (description "libepubgen is an EPUB generator for librevenge. It supports
263 librevenge's text document interface and--currently in a very limited
264 way--presentation and vector drawing interfaces.")
267 (define-public libwpg
274 (uri (string-append "mirror://sourceforge/libwpg/libwpg/"
275 "libwpg-" version "/libwpg-" version ".tar.xz"))
277 "074x159immf139szkswv2zapnq75p7xk10dbha2p9193hgwggcwr"))))
278 (build-system gnu-build-system)
280 `(("doxygen" ,doxygen)
281 ("pkg-config" ,pkg-config)))
283 `(("libwpd" ,libwpd))) ; in Requires field of .pkg
287 (home-page "http://libwpg.sourceforge.net/")
288 (synopsis "Library and tools for the WordPerfect Graphics format")
289 (description "The libwpg project provides a library and tools for
290 working with graphics in the WPG (WordPerfect Graphics) format.")
291 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
293 (define-public libcmis
300 (uri (string-append "https://github.com/tdf/libcmis/releases/download/v"
301 version "/libcmis-" version ".tar.xz"))
304 "18h0a2gsfxvlv03nlcfvw9bzsflq5sin9agq6za103hr0ab8vcfp"))))
305 (build-system gnu-build-system)
307 `(("cppunit" ,cppunit)
308 ("pkg-config" ,pkg-config)))
309 (propagated-inputs ; in Requires field of .pkg
311 ("libxml2" ,libxml2)))
314 ("cyrus-sasl" ,cyrus-sasl)
315 ("openssl" ,openssl)))
319 ;; FIXME: Man pages generation requires docbook-to-man; reenable
320 ;; it once this is available.
322 ;; XXX: A configure test fails with GCC7 when including Boost headers.
324 ;; During configure, the boost headers are found, but linking
325 ;; fails without the following flag.
326 (string-append "--with-boost="
327 (assoc-ref %build-inputs "boost")))))
328 (home-page "https://github.com/tdf/libcmis")
329 (synopsis "CMIS client library")
330 (description "LibCMIS is a C++ client library for the CMIS interface. It
331 allows C++ applications to connect to any ECM behaving as a CMIS server such
332 as Alfresco or Nuxeo.")
333 (license (list mpl1.1 gpl2+ lgpl2.1+)))) ; triple license
335 (define-public libabw
342 (uri (string-append "https://dev-www.libreoffice.org/src/libabw/"
343 "libabw-" version ".tar.xz"))
345 "1vbfrmnvib3cym0yyyabnd8xpx4f7wp20vnn09s6dln347fajqz7"))))
346 (build-system gnu-build-system)
348 `(("doxygen" ,doxygen)
351 ("pkg-config" ,pkg-config)))
352 (propagated-inputs ; in Requires or Requires.private field of .pkg
353 `(("librevenge" ,librevenge)
354 ("libxml2" ,libxml2)))
357 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libabw")
358 (synopsis "Library for parsing the AbiWord format")
359 (description "Libabw is a library that parses the file format of
363 (define-public libcdr
370 (uri (string-append "https://dev-www.libreoffice.org/src/" name "/"
371 name "-" version ".tar.xz"))
373 "0j1skr11jwvafn0l6p37v3i4lqc8wcn489g8f7c4mqwbk94mrkka"))))
374 (build-system gnu-build-system)
376 `(("cppunit" ,cppunit)
378 ("pkg-config" ,pkg-config)))
379 (propagated-inputs ; in Requires or Requires.private field of .pkg
382 ("librevenge" ,librevenge)
386 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libcdr")
387 (synopsis "Library for parsing the CorelDRAW format")
388 (description "Libcdr is a library that parses the file format of
389 CorelDRAW documents of all versions.")
392 (define-public libetonyek
399 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
400 name "-" version ".tar.xz"))
402 "0jhsbdimiyijdqriy0zzkjjgc4wi6fjimhdg4mdybrlwg7l7f5p6"))))
403 (build-system gnu-build-system)
405 `(#:configure-flags '("--with-mdds=1.4")))
407 `(("cppunit" ,cppunit)
410 ("pkg-config" ,pkg-config)))
411 (propagated-inputs ; in Requires or Requires.private field of .pkg
412 `(("liblangtag" ,liblangtag)
413 ("librevenge" ,librevenge)
420 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libetonyek")
421 (synopsis "Library for parsing the Apple Keynote format")
422 (description "Libetonyek is a library that parses the file format of
423 Apple Keynote documents. It currently supports Keynote versions 2 to 5.")
426 (define-public liblangtag
433 (uri (string-append "https://bitbucket.org/tagoh/liblangtag/downloads/"
434 name "-" version ".tar.bz2"))
437 "0bnm4hllr8cfrybm8rw7b8n0nlhzhnv73bkg1bxk452g6a82f96n"))))
438 (build-system gnu-build-system)
440 `(("libtool" ,libtool)
441 ("pkg-config" ,pkg-config)))
443 `(("libxml2" ,libxml2)))
444 ;; As of December 2017, tagoh.bitbucket.org redirects to a hosting advert.
445 (home-page "https://bitbucket.org/tagoh/liblangtag")
446 (synopsis "Library to access tags for identifying languages")
447 (description "Liblangtag implements an interface to work with tags
448 for identifying languages as described in RFC 5646. It supports the
449 extensions described in RFC6067 and RFC6497, and Extension T for
450 language/locale identifiers as described in the Unicode CLDR
452 (license (list lgpl3+ mpl2.0)))) ; dual license
454 (define-public libexttextcat
456 (name "libexttextcat")
461 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
462 name "-" version ".tar.xz"))
464 "1j6sjwkyhqvsgyw938bxxfwkzzi1mahk66g5342lv6j89jfvrz8k"))))
465 (build-system gnu-build-system)
466 (home-page "https://www.freedesktop.org/wiki/Software/libexttextcat/")
467 (synopsis "Text Categorization library")
468 (description "Libexttextcat is an N-Gram-Based Text Categorization
469 library primarily intended for language guessing.")
470 (license (non-copyleft "file://LICENSE"
471 "See LICENSE in the distribution."))))
473 (define-public libfreehand
480 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
481 name "-" version ".tar.xz"))
483 "1b1lvqh68rwij1yvmxy02hsmh7i74ma5767mk8mg5nx6chajshhf"))))
484 (build-system gnu-build-system)
486 `(("cppunit" ,cppunit)
490 ("pkg-config" ,pkg-config)))
494 (propagated-inputs ; in Requires or Requires.private field of .pkg
495 `(("librevenge" ,librevenge)
497 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libfreehand")
498 (synopsis "Library for parsing the FreeHand format")
499 (description "Libfreehand is a library that parses the file format of
500 Aldus/Macromedia/Adobe FreeHand documents.")
503 (define-public libmspub
510 (uri (string-append "https://dev-www.libreoffice.org/src/" name "/"
511 name "-" version ".tar.xz"))
513 "1fhkn013gzg59f4z7rldpbi0nj7lgdqzxanspsqa6axvmahw2dpg"))))
514 (build-system gnu-build-system)
516 `(("doxygen" ,doxygen)
517 ("pkg-config" ,pkg-config)))
518 (propagated-inputs ; in Requires or Requires.private field of .pkg
520 ("librevenge" ,librevenge)
524 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libmspub")
525 (synopsis "Library for parsing the Microsoft Publisher format")
526 (description "Libmspub is a library that parses the file format of
527 Microsoft Publisher documents of all versions.")
530 (define-public libnumbertext
532 (name "libnumbertext")
537 (uri (string-append "https://github.com/Numbertext/libnumbertext/"
538 "releases/download/" version
539 "/libnumbertext-" version ".tar.xz"))
541 (base32 "1xzlwhwwhvr76kfdsw5gvfjfdayz803z65h331gv5dpc9imhijg1"))))
542 (build-system gnu-build-system)
544 `(#:configure-flags '("--disable-static")))
545 (home-page "https://github.com/Numbertext/libnumbertext")
546 (synopsis "Language-neutral @code{NUMBERTEXT} and @code{MONEYTEXT} functions")
548 "The libnumbertext library provides language-neutral @code{NUMBERTEXT}
549 and @code{MONEYTEXT} functions for LibreOffice Calc, available for C++ and
551 (license (list lgpl3+ bsd-3))))
553 (define-public libpagemaker
555 (name "libpagemaker")
560 (uri (string-append "https://dev-www.libreoffice.org/src/libpagemaker/"
561 "libpagemaker-" version ".tar.xz"))
563 "17ai8ajffr0ixxmmcv3k5vgjlcsix38ldb4fw2arild70pbsrbb6"))))
564 (build-system gnu-build-system)
566 `(#:configure-flags '("--disable-werror")))
568 `(("doxygen" ,doxygen)
569 ("pkg-config" ,pkg-config)))
570 (propagated-inputs ; in Requires field of .pkg
571 `(("librevenge" ,librevenge)))
575 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker")
576 (synopsis "Library for parsing the PageMaker format")
577 (description "Libpagemaker is a library that parses the file format of
578 Aldus/Adobe PageMaker documents. Currently it only understands documents
579 created by PageMaker version 6.x and 7.")
582 (define-public libvisio
589 (uri (string-append "http://dev-www.libreoffice.org/src/libvisio/"
590 "libvisio-" version ".tar.xz"))
592 "0k7adcbbf27l7n453cca1m6s9yj6qvb5j6bsg2db09ybf3w8vbwg"))))
593 (build-system gnu-build-system)
595 `(("cppunit" ,cppunit)
599 ("pkg-config" ,pkg-config)))
600 (propagated-inputs ; in Requires or Requires.private field of .pkg
602 ("librevenge" ,librevenge)
603 ("libxml2" ,libxml2)))
606 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libvisio")
607 (synopsis "Library for parsing the Microsoft Visio format")
608 (description "Libvisio is a library that parses the file format of
609 Microsoft Visio documents of all versions.")
612 (define-public libodfgen
619 (uri (string-append "mirror://sourceforge/libwpd/libodfgen/"
620 "libodfgen-" version "/libodfgen-" version ".tar.xz"))
622 "0cdq48wlpp8m0qmndybv64r0m4vh0qsqx69cn6ms533cjlgljgij"))))
623 (build-system gnu-build-system)
625 `(("doxygen" ,doxygen)
626 ("pkg-config" ,pkg-config)))
627 (propagated-inputs ; in Requires field of .pkg
628 `(("librevenge" ,librevenge)))
633 ;; avoid triggering configure errors by simple inclusion of boost headers
634 `(#:configure-flags '("--disable-werror")))
635 (home-page "https://sourceforge.net/p/libwpd/wiki/libodfgen/")
636 (synopsis "ODF (Open Document Format) library")
637 (description "Libodfgen is a library for generating documents in the
638 Open Document Format (ODF). It provides generator implementations for all
639 document interfaces supported by librevenge:
640 text documents, vector drawings, presentations and spreadsheets.")
641 (license (list mpl2.0 lgpl2.1+)))) ; dual license
643 (define-public libmwaw
650 (uri (string-append "mirror://sourceforge/libmwaw/libmwaw/libmwaw-"
651 version "/libmwaw-" version ".tar.xz"))
653 "1cdhm9yhanyv3w4vr73zhgyynmkhhkp3dyld7m11jd2yy04vnh04"))))
654 (build-system gnu-build-system)
656 `(("doxygen" ,doxygen)
657 ("pkg-config" ,pkg-config)))
658 (propagated-inputs ; in Requires field of .pkg
659 `(("librevenge" ,librevenge)))
663 (home-page "https://sourceforge.net/p/libmwaw/wiki/Home/")
664 (synopsis "Import library for some old Macintosh text documents")
665 (description "Libmwaw contains some import filters for old Macintosh
666 text documents (MacWrite, ClarisWorks, ... ) and for some graphics and
667 spreadsheet documents.")
668 (license (list mpl2.0 lgpl2.1+)))) ; dual license
670 (define-public libstaroffice
672 (name "libstaroffice")
677 (uri (string-append "https://github.com/fosnola/libstaroffice/releases/download/"
678 version "/libstaroffice-" version ".tar.xz"))
680 "1i0ykl0c94lc1qzb5mbyf9jr7qw8p38ja424whmhgrllh7ny203b"))))
681 (build-system gnu-build-system)
683 `(("librevenge" ,librevenge)
686 `(("pkg-config" ,pkg-config)))
687 (home-page "https://github.com/fosnola/libstaroffice")
688 (synopsis "Provides LibreOffice support for old StarOffice documents")
689 (description "@code{libstaroffice} is an import filter for the document formats
690 from the old StarOffice (.sdc, .sdw, ...).")
691 (license (list mpl2.0 lgpl2.1+)))) ; dual license
693 (define-public libwps
700 (uri (string-append "mirror://sourceforge/" name "/" name "/"
701 name "-" version "/" name "-" version ".tar.xz"))
703 "1ji9zd4wxmas03g8jyx0ih0amrqfazm5874a2v9rd7va50sf088l"))))
704 (build-system gnu-build-system)
706 `(("doxygen" ,doxygen)
707 ("pkg-config" ,pkg-config)))
708 (propagated-inputs ; in Requires field of .pkg
709 `(("librevenge" ,librevenge)))
713 (home-page "http://libwps.sourceforge.net/")
714 (synopsis "Import library for Microsoft Works text documents")
715 (description "Libwps is a library for importing files in the Microsoft
716 Works word processor file format.")
717 (license (list mpl2.0 lgpl2.1+)))) ; dual license
719 (define-public libzmf
726 (uri (string-append "http://dev-www.libreoffice.org/src/libzmf/libzmf-"
729 "08mg5kmkjrmqrd8j5rkzw9vdqlvibhb1ynp6bmfxnzq5rcq1l197"))))
730 (build-system gnu-build-system)
732 ;; A harmless 'sign-compare' error pops up on i686 so disable '-Werror'.
733 '(#:configure-flags '("--disable-werror")))
738 ("librevenge" ,librevenge)
741 `(("cppunit" ,cppunit)
743 ("pkg-config" ,pkg-config)))
744 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libzmf")
745 (synopsis "Parses file format of Zoner Callisto/Draw documents")
746 (description "Libzmf is a library that parses the file format of Zoner
747 Callisto/Draw documents. Currently it only understands documents created by
748 Zoner Draw version 4 and 5.")
751 (define-public hunspell
759 (url "https://github.com/hunspell/hunspell")
760 (commit (string-append "v" version))))
761 (file-name (git-file-name name version))
764 "0qxlkd012r45ppd21kldbq9k5ac5nmxz290z6m2kch9l56v768k1"))))
765 (build-system gnu-build-system)
767 `(("autoconf" ,autoconf)
768 ("automake" ,automake)
769 ("libtool" ,libtool)))
772 (native-search-paths (list (search-path-specification
774 (files '("share/hunspell")))))
775 (home-page "https://hunspell.github.io/")
776 (synopsis "Spell checker")
777 (description "Hunspell is a spell checker and morphological analyzer
778 library and program designed for languages with rich morphology and complex
779 word compounding or character encoding.")
780 ;; Triple license, including "mpl1.1 or later".
781 (license (list mpl1.1 gpl2+ lgpl2.1+))))
783 (define (dicollecte-french-dictionary variant synopsis)
784 ;; Return a French dictionary package from dicollecte.org, for the given
788 ("classique" "hunspell-dict-fr")
789 (_ (string-append "hunspell-dict-fr-" variant))))
793 "http://www.dicollecte.org/download/fr/hunspell-french-dictionaries-v"
798 "139hfrn5p87sl8hqmgkf6sgvnxrk2mm8vd8xsm8sm98qjnwlg0f9"))))
799 (build-system trivial-build-system)
800 (native-inputs `(("unzip" ,unzip)))
802 `(#:modules ((guix build utils))
804 (use-modules (guix build utils)
807 (let* ((out (assoc-ref %outputs "out"))
808 (hunspell (string-append out "/share/hunspell"))
809 (myspell (string-append out "/share/myspell"))
810 (doc (string-append out "/share/doc/"
812 (unzip (assoc-ref %build-inputs "unzip")))
813 (invoke (string-append unzip "/bin/unzip")
814 (assoc-ref %build-inputs "source"))
815 (for-each (cut install-file <> hunspell)
817 ,(string-append variant
820 (symlink hunspell (string-append myspell "/dicts"))
821 (for-each (cut install-file <> doc)
822 (find-files "." "\\.(txt|org|md)$"))
826 "This package provides a dictionary for the Hunspell spell-checking
828 (home-page "https://www.dicollecte.org/home.php?prj=fr")
831 (define-syntax define-french-dictionary
832 (syntax-rules (synopsis)
833 ((_ name variant (synopsis text))
835 (dicollecte-french-dictionary variant text)))))
837 (define-french-dictionary hunspell-dict-fr-classique
839 ;; TRANSLATORS: In French, this is "Français classique".
840 (synopsis "Hunspell dictionary for ``classic'' French (recommended)"))
842 (define-french-dictionary hunspell-dict-fr-moderne
844 ;; TRANSLATORS: In French, this is "Français moderne".
845 (synopsis "Hunspell dictionary for ``modern'' French"))
847 (define-french-dictionary hunspell-dict-fr-réforme-1990
849 (synopsis "Hunspell dictionary for the post @dfn{1990 réforme} French"))
851 (define-french-dictionary hunspell-dict-fr-toutes-variantes
853 (synopsis "Hunspell dictionary for all variants of French"))
855 (define-public hyphen
862 (uri (string-append "mirror://sourceforge/hunspell/Hyphen/"
863 (version-major+minor version) "/"
864 name "-" version ".tar.gz"))
866 "01ap9pr6zzzbp4ky0vy7i1983fwyqy27pl0ld55s30fdxka3ciih"))))
867 (build-system gnu-build-system)
870 (home-page "http://hunspell.sourceforge.net/")
871 (synopsis "Hyphenation library")
872 (description "Hyphen is a hyphenation library using TeX hyphenation
873 patterns, which are pre-processed by a perl script.")
874 ;; triple license, including "mpl1.1 or later"
875 (license (list mpl1.1 mpl2.0 gpl2+ lgpl2.1+))))
877 (define-public mythes
884 (uri (string-append "mirror://sourceforge/hunspell/MyThes/" version "/"
885 name "-" version ".tar.gz"))
887 "0prh19wy1c74kmzkkavm9qslk99gz8h8wmjvwzjc6lf8v2az708y"))))
888 (build-system gnu-build-system)
890 `(("pkg-config" ,pkg-config)))
892 `(("hunspell" ,hunspell)
894 (home-page "http://hunspell.sourceforge.net/")
895 (synopsis "Thesaurus")
896 (description "MyThes is a simple thesaurus that uses a structured text
897 data file and an index file with binary search to look up words and phrases
898 and to return information on pronunciations, meanings and synonyms.")
899 (license (non-copyleft "file://COPYING"
900 "See COPYING in the distribution."))))
902 (define-public libqxp
908 (uri (string-append "https://dev-www.libreoffice.org/src/libqxp/"
909 "libqxp-" version ".tar.xz"))
912 "0p4lb84m05wqd8qr8ni9sp80ivlm83ffn0nxiv4m42hj22qvcdz1"))))
913 (build-system gnu-build-system)
919 `(("cppunit" ,cppunit)
920 ("pkg-config" ,pkg-config)))
922 `(("librevenge" ,librevenge))) ; mentioned in Requires field
923 (home-page "https://www.libreoffice.org")
924 (synopsis "Library and tools for the QuarkXPress file format")
925 (description "libqxp is a library and a set of tools for reading and
926 converting QuarkXPress file format. It supports versions 3.1 to 4.1.")
929 (define-public libreoffice
938 "https://download.documentfoundation.org/libreoffice/src/"
939 (version-prefix version 3) "/libreoffice-" version ".tar.xz"))
942 "1kz5950vhjc33rx7pyl5sw9lxxm90hxrj7v8y86jy34skjrfa3nl"))
943 (patches (search-patches "libreoffice-icu.patch"
944 "libreoffice-glm.patch"))
945 (modules '((guix build utils)))
948 (for-each (lambda (file)
949 ;; Adjust to renamed function in Poppler 0.72.
950 (substitute* file (("getCString") "c_str")))
951 (find-files "sdext/source/pdfimport/xpdfwrapper"))
953 (build-system glib-or-gtk-build-system)
958 ("pkg-config" ,pkg-config)
959 ("python" ,python-wrapper)
966 ("dbus-glib" ,dbus-glib)
967 ("fontconfig" ,fontconfig)
968 ("fontforge" ,fontforge)
973 ("gobject-introspection" ,gobject-introspection)
976 ("graphite2" ,graphite2)
977 ("gst-plugins-base" ,gst-plugins-base)
979 ("harfbuzz" ,harfbuzz)
980 ("hunspell" ,hunspell)
985 ("libjpeg-turbo" ,libjpeg-turbo)
986 ("libe-book" ,libe-book)
987 ("libepubgen" ,libepubgen)
988 ("libetonyek" ,libetonyek)
989 ("libexttextcat" ,libexttextcat)
990 ("libfreehand" ,libfreehand)
991 ("liblangtag" ,liblangtag)
992 ;; XXX: Perhaps this should be propagated from xmlsec.
994 ("libmspub" ,libmspub)
996 ("libnumbertext" ,libnumbertext)
997 ("libodfgen" ,libodfgen)
998 ("libpagemaker" ,libpagemaker)
1000 ("libstaroffice" ,libstaroffice)
1001 ("libvisio" ,libvisio)
1004 ("libxrandr" ,libxrandr)
1005 ("libxrender" ,libxrender)
1006 ("libxslt" ,libxslt)
1009 ("lpsolve" ,lpsolve)
1010 ("mariadb" ,mariadb "dev")
1016 ("openldap" ,openldap)
1017 ("openssl" ,openssl)
1020 ("perl-archive-zip" ,perl-archive-zip)
1021 ("poppler" ,poppler)
1022 ("postgresql" ,postgresql)
1024 ("python-lxml" ,python-lxml)
1025 ("redland" ,redland)
1026 ("sane-backends" ,sane-backends)
1027 ("unixodbc" ,unixodbc)
1030 ("xdg-utils" ,xdg-utils)
1031 ("xmlsec" ,xmlsec-nss)
1034 `(#:tests? #f ; Building the tests already fails.
1035 #:make-flags '("build-nocheck") ; Do not build unit tests, which fails.
1037 (modify-phases %standard-phases
1038 (add-before 'configure 'prepare-src
1039 (lambda* (#:key inputs #:allow-other-keys)
1041 (list "sysui/CustomTarget_share.mk"
1042 "solenv/gbuild/gbuild.mk"
1043 "solenv/gbuild/platform/unxgcc.mk")
1044 (("/bin/sh") (which "sh")))
1046 ;; GPGME++ headers are installed in a gpgme++ subdirectory, but
1047 ;; files in "xmlsecurity/source/gpg/" and elsewhere expect to
1048 ;; find them on the include path without a prefix.
1049 (substitute* '("xmlsecurity/Library_xsec_xmlsec.mk"
1050 "comphelper/Library_comphelper.mk")
1051 (("\\$\\$\\(INCLUDE\\)")
1052 (string-append "$$(INCLUDE) -I"
1053 (assoc-ref inputs "gpgme")
1054 "/include/gpgme++")))
1056 ;; /usr/bin/xdg-open doesn't exist on Guix System.
1057 (substitute* '("shell/source/unix/exec/shellexec.cxx"
1058 "shell/source/unix/misc/senddoc.sh")
1059 (("/usr/bin/xdg-open")
1060 (string-append (assoc-ref inputs "xdg-utils")
1064 (add-after 'install 'bin-and-desktop-install
1065 ;; Create 'soffice' and 'libreoffice' symlinks to the executable
1067 (lambda* (#:key outputs #:allow-other-keys)
1068 (let ((out (assoc-ref outputs "out")))
1069 (define (symlink-output src dst)
1070 (mkdir-p (dirname (string-append out dst)))
1071 (symlink (string-append out src) (string-append out dst)))
1072 (define (install src dst)
1073 (let ((dst (string-append out dst)))
1074 (mkdir-p (dirname dst))
1075 (copy-file src dst)))
1076 (define (install-desktop-file app)
1077 (let ((src (string-append "/lib/libreoffice/share/xdg/"
1079 (dst (string-append "/share/applications/libreoffice-"
1081 (substitute* (string-append out src)
1082 (("Exec=libreoffice[0-9]+\\.[0-9]+ ")
1083 (string-append "Exec=" out "/bin/libreoffice "))
1084 (("Icon=libreoffice.*")
1085 (string-append "Icon=" app "\n"))
1086 (("LibreOffice [0-9]+\\.[0-9]+")
1088 (symlink-output src dst)))
1089 (define (install-appdata app)
1090 (install-file (string-append
1091 "sysui/desktop/appstream-appdata/"
1092 "libreoffice-" app ".appdata.xml")
1093 (string-append out "/share/appdata")))
1094 (symlink-output "/lib/libreoffice/program/soffice"
1096 (symlink-output "/lib/libreoffice/program/soffice"
1098 (install "workdir/CustomTarget/sysui/share/libreoffice/openoffice.keys"
1099 "/share/mime-info/libreoffice.keys")
1100 (install "workdir/CustomTarget/sysui/share/libreoffice/openoffice.mime"
1101 "/share/mime-info/libreoffice.mime")
1103 "workdir/CustomTarget/sysui/share/libreoffice/openoffice.org.xml"
1104 "/share/mime/packages/libreoffice.xml")
1105 (for-each install-desktop-file
1106 '("base" "calc" "draw" "impress" "writer"
1107 "math" "startcenter"))
1108 (for-each install-appdata
1109 '("base" "calc" "draw" "impress" "writer"))
1110 (mkdir-p (string-append out "/share/icons/hicolor"))
1111 (copy-recursively "sysui/desktop/icons/hicolor"
1112 (string-append out "/share/icons/hicolor")))
1116 "--enable-release-build"
1117 ;; Avoid using all cpu cores by default
1118 (format #f "--with-parallelism=~d" (parallel-job-count))
1119 "--disable-fetch-external" ; disable downloads
1120 "--with-system-libs" ; enable all --with-system-* flags
1121 (string-append "--with-boost-libdir="
1122 (assoc-ref %build-inputs "boost") "/lib")
1123 ;; Avoid undefined symbols required by boost::spirit
1124 "LDFLAGS=-lboost_system"
1125 ;; Avoid a dependency on ucpp.
1126 "--with-idlc-cpp=cpp"
1127 ;; The fonts require an external tarball (crosextrafonts).
1128 ;; They should not be needed when system fonts are available.
1130 ;; With java, the build fails since sac.jar is missing.
1132 ;; FIXME: Enable once the corresponding inputs are packaged.
1134 "--disable-firebird-sdbc" ; embedded firebird
1135 ;; XXX: PDFium support requires fetching an external tarball and
1136 ;; patching the build scripts to work with GCC5. Try enabling this
1137 ;; when our default compiler is >=GCC 6.
1139 "--disable-gtk" ; disable use of GTK+ 2
1141 "--enable-build-opensymbol")))
1142 (home-page "https://www.libreoffice.org/")
1143 (synopsis "Office suite")
1144 (description "LibreOffice is a comprehensive office suite. It contains
1145 a number of components: Writer, a word processor; Calc, a spreadsheet
1146 application; Impress, a presentation engine; Draw, a drawing and
1147 flowcharting application; Base, a database and database frontend;
1148 Math for editing mathematics.")