1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014 John Darrington <jmd@gnu.org>
5 ;;; This file is part of GNU Guix.
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;;; GNU General Public License for more details.
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20 (define-module (gnu packages libreoffice)
21 #:use-module (guix packages)
22 #:use-module (guix download)
23 #:use-module ((guix licenses) #:select (lgpl2.1+ mpl2.0))
24 #:use-module (guix build-system gnu)
25 #:use-module (gnu packages boost)
26 #:use-module (gnu packages check)
27 #:use-module (gnu packages compression)
28 #:use-module (gnu packages doxygen)
29 #:use-module (gnu packages ghostscript)
30 #:use-module (gnu packages gperf)
31 #:use-module (gnu packages icu4c)
32 #:use-module (gnu packages perl)
33 #:use-module (gnu packages pkg-config)
34 #:use-module (gnu packages python)
35 #:use-module (gnu packages xml))
44 (uri (string-append "http://kohei.us/files/ixion/src/libixion-"
47 "18g3nk29ljiqbyi0ml49j2x3f3xrqckdm9i66sw5fxnj7hb5rqvp"))))
48 (build-system gnu-build-system)
50 `(("pkg-config" ,pkg-config)))
53 ("python" ,python-2))) ; looks for python.pc, not python3.pc
54 (home-page "https://gitlab.com/ixion/ixion")
55 (synopsis "General purpose formula parser and interpreter")
56 (description "Ixion is a library for calculating the results of formula
57 expressions stored in multiple named targets, or \"cells\". The cells can
58 be referenced from each other, and the library takes care of resolving
59 their dependencies automatically upon calculation.")
69 (uri (string-append "http://kohei.us/files/" name "/src/lib"
70 name "-" version ".tar.xz"))
72 "0hva4qalg3dk6n1118ncr5fy8cqnj2f7fwldw7aa04124rj6p104"))))
73 (build-system gnu-build-system)
75 `(("pkg-config" ,pkg-config)))
80 (home-page "https://gitlab.com/orcus/orcus")
81 (synopsis "File import filter library for spreadsheet documents")
82 (description "Orcus is a library that provides a collection of standalone
83 file processing filters. It is currently focused on providing filters for
84 spreadsheet documents. The library includes import filters for
85 Microsoft Excel 2007 XML, Microsoft Excel 2003 XML, Open Document Spreadsheet,
86 Plain Text, Gnumeric XML, Generic XML. It also includes low-level parsers for
90 (define-public librevenge
97 (uri (string-append "mirror://sourceforge/libwpd/" name "/" name "-"
100 "03ygxyb0vfjv8raif5q62sl33b54wkr5rzgadb8slijm6k281wpn"))))
101 (build-system gnu-build-system)
106 ("pkg-config" ,pkg-config)))
110 ;; avoid triggering configure errors by simple inclusion of boost headers
111 `(#:configure-flags '("--disable-werror")))
112 (home-page "http://sourceforge.net/p/libwpd/wiki/librevenge/")
113 (synopsis "Document importer for office suites")
114 (description "Librevenge is a base library for writing document import
115 filters. It has interfaces for text documents, vector graphics,
116 spreadsheets and presentations.")
117 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
119 (define-public libwpd
126 (uri (string-append "mirror://sourceforge/libwpd/" name "/" name "-"
129 "0b6krzr6kxzm89g6bapn805kdayq70hn16n5b5wfs2lwrf0ag2wx"))))
130 (build-system gnu-build-system)
132 `(("doxygen" ,doxygen)
133 ("pkg-config" ,pkg-config)))
135 `(("librevenge" ,librevenge)
137 (home-page "http://libwpd.sourceforge.net/")
138 (synopsis "Library for importing WordPerfect documents")
139 (description "Libwpd is a C++ library designed to help process
140 WordPerfect documents. It is most commonly used to import such documents
141 into other word processors.")
142 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
144 (define-public libe-book
151 (uri (string-append "mirror://sourceforge/libebook/libe-book-"
152 version "/libe-book-" version ".tar.xz"))
155 "1v48pd32r2pfysr3a3igc4ivcf6vvb26jq4pdkcnq75p70alp2bz"))))
156 (build-system gnu-build-system)
158 `(("cppunit" ,cppunit)
160 ("pkg-config" ,pkg-config)))
161 (inputs `(("boost" ,boost)
163 ("librevenge" ,librevenge)
164 ("libxml2" ,libxml2)))
166 ;; avoid triggering configure errors by simple inclusion of boost headers
167 `(#:configure-flags '("--disable-werror")))
168 (home-page "http://libebook.sourceforge.net")
169 (synopsis "Library for import of reflowable e-book formats")
170 (description "Libe-book is a library and a set of tools for reading and
171 converting various reflowable e-book formats. Currently supported are:
172 Broad Band eBook, eReader .pdb, FictionBook v. 2 (including zipped files),
173 PalmDoc Ebook, Plucker .pdb, QiOO (mobile format, for java-enabled
174 cellphones), TCR (simple compressed text format), TealDoc, zTXT,
175 ZVR (simple compressed text format).")
178 (define-public libwpg
185 (uri (string-append "mirror://sourceforge/libwpg/" name "/" name "-"
188 "097jx8a638fwwfrzf6v29r1yhc34rq9526py7wf0ck2z4fcr2w3g"))))
189 (build-system gnu-build-system)
191 `(("doxygen" ,doxygen)
192 ("pkg-config" ,pkg-config)))
194 `(("librevenge" ,librevenge)
198 (home-page "http://libwpg.sourceforge.net/")
199 (synopsis "Library and tools for the WordPerfect Graphics format")
200 (description "The libwpg project provides a library and tools for
201 working with graphics in the WPG (WordPerfect Graphics) format.")
202 (license (list mpl2.0 lgpl2.1+)))) ;dual licensed
204 (define-public libabw
211 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
212 name "-" version ".tar.xz"))
214 "0zi1zj4fpxgpglbbb5n1kg3dmhqq5rpf46lli89r5daavp19iing"))))
215 (build-system gnu-build-system)
217 `(("doxygen" ,doxygen)
220 ("pkg-config" ,pkg-config)))
223 ("librevenge" ,librevenge)
224 ("libxml2" ,libxml2)))
226 ;; avoid triggering configure errors by simple inclusion of boost headers
227 `(#:configure-flags '("--disable-werror")))
228 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libabw")
229 (synopsis "Library for parsing the AbiWord format")
230 (description "Libabw is a library that parses the file format of
234 (define-public libcdr
241 (uri (string-append "http://dev-www.libreoffice.org/src/" name "/"
242 name "-" version ".tar.xz"))
244 "07yzb1yr5kzv0binzj5swz3zzay2gw3xb0fbkc2zwdssgrkf19nh"))))
245 (build-system gnu-build-system)
247 `(("doxygen" ,doxygen)
248 ("pkg-config" ,pkg-config)))
253 ("librevenge" ,librevenge)
256 ;; avoid triggering a build failure due to warnings
257 `(#:configure-flags '("--disable-werror")))
258 (home-page "https://wiki.documentfoundation.org/DLP/Libraries/libcdr")
259 (synopsis "Library for parsing the CorelDRAW format")
260 (description "Libcdr is a library that parses the file format of
261 CorelDRAW documents of all versions.")