a832710255cc38bc7e0fb52abb0a4da1c2b98667
[jackhill/guix/guix.git] / gnu / packages / libreoffice.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014 John Darrington <jmd@gnu.org>
4 ;;;
5 ;;; This file is part of GNU Guix.
6 ;;;
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.
11 ;;;
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.
16 ;;;
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/>.
19
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 gperf)
30 #:use-module (gnu packages icu4c)
31 #:use-module (gnu packages perl)
32 #:use-module (gnu packages pkg-config)
33 #:use-module (gnu packages python)
34 #:use-module (gnu packages xml))
35
36 (define-public ixion
37 (package
38 (name "ixion")
39 (version "0.9.1")
40 (source
41 (origin
42 (method url-fetch)
43 (uri (string-append "http://kohei.us/files/ixion/src/libixion-"
44 version ".tar.xz"))
45 (sha256 (base32
46 "18g3nk29ljiqbyi0ml49j2x3f3xrqckdm9i66sw5fxnj7hb5rqvp"))))
47 (build-system gnu-build-system)
48 (native-inputs
49 `(("pkg-config" ,pkg-config)))
50 (inputs
51 `(("mdds" ,mdds)
52 ("python" ,python-2))) ; looks for python.pc, not python3.pc
53 (home-page "https://gitlab.com/ixion/ixion")
54 (synopsis "General purpose formula parser and interpreter")
55 (description "Ixion is a library for calculating the results of formula
56 expressions stored in multiple named targets, or \"cells\". The cells can
57 be referenced from each other, and the library takes care of resolving
58 their dependencies automatically upon calculation.")
59 (license mpl2.0)))
60
61 (define-public orcus
62 (package
63 (name "orcus")
64 (version "0.7.1")
65 (source
66 (origin
67 (method url-fetch)
68 (uri (string-append "http://kohei.us/files/" name "/src/lib"
69 name "-" version ".tar.xz"))
70 (sha256 (base32
71 "0hva4qalg3dk6n1118ncr5fy8cqnj2f7fwldw7aa04124rj6p104"))))
72 (build-system gnu-build-system)
73 (native-inputs
74 `(("pkg-config" ,pkg-config)))
75 (inputs
76 `(("ixion" ,ixion)
77 ("mdds" ,mdds)
78 ("zlib" ,zlib)))
79 (home-page "https://gitlab.com/orcus/orcus")
80 (synopsis "File import filter library for spreadsheet documents")
81 (description "Orcus is a library that provides a collection of standalone
82 file processing filters. It is currently focused on providing filters for
83 spreadsheet documents. The library includes import filters for
84 Microsoft Excel 2007 XML, Microsoft Excel 2003 XML, Open Document Spreadsheet,
85 Plain Text, Gnumeric XML, Generic XML. It also includes low-level parsers for
86 CSV, CSS and XML.")
87 (license mpl2.0)))
88
89 (define-public librevenge
90 (package
91 (name "librevenge")
92 (version "0.0.2")
93 (source
94 (origin
95 (method url-fetch)
96 (uri (string-append "mirror://sourceforge/libwpd/" name "/" name "-"
97 version ".tar.xz"))
98 (sha256 (base32
99 "03ygxyb0vfjv8raif5q62sl33b54wkr5rzgadb8slijm6k281wpn"))))
100 (build-system gnu-build-system)
101 (native-inputs
102 `(("boost" ,boost)
103 ("cppunit" ,cppunit)
104 ("doxygen" ,doxygen)
105 ("pkg-config" ,pkg-config)))
106 (inputs
107 `(("zlib" ,zlib)))
108 (arguments
109 ;; avoid triggering configure errors by simple inclusion of boost headers
110 `(#:configure-flags '("--disable-werror")))
111 (home-page "http://sourceforge.net/p/libwpd/wiki/librevenge/")
112 (synopsis "Document importer for office suites")
113 (description "Librevenge is a base library for writing document import
114 filters. It has interfaces for text documents, vector graphics,
115 spreadsheets and presentations.")
116 (license '(mpl2.0 lgpl2.1+)))) ; dually licensed
117
118 (define-public libwpd
119 (package
120 (name "libwpd")
121 (version "0.10.0")
122 (source
123 (origin
124 (method url-fetch)
125 (uri (string-append "mirror://sourceforge/libwpd/" name "/" name "-"
126 version ".tar.xz"))
127 (sha256 (base32
128 "0b6krzr6kxzm89g6bapn805kdayq70hn16n5b5wfs2lwrf0ag2wx"))))
129 (build-system gnu-build-system)
130 (native-inputs
131 `(("doxygen" ,doxygen)
132 ("pkg-config" ,pkg-config)))
133 (inputs
134 `(("librevenge" ,librevenge)
135 ("zlib" ,zlib)))
136 (home-page "http://libwpd.sourceforge.net/")
137 (synopsis "Library for importing WordPerfect documents")
138 (description "Libwpd is a C++ library designed to help process
139 WordPerfect documents. It is most commonly used to import such documents
140 into other word processors.")
141 (license '(mpl2.0 lgpl2.1+)))) ; dually licensed
142
143 (define-public libe-book
144 (package
145 (name "libe-book")
146 (version "0.1.2")
147 (source
148 (origin
149 (method url-fetch)
150 (uri (string-append "mirror://sourceforge/libebook/libe-book-"
151 version "/libe-book-" version ".tar.xz"))
152 (sha256
153 (base32
154 "1v48pd32r2pfysr3a3igc4ivcf6vvb26jq4pdkcnq75p70alp2bz"))))
155 (build-system gnu-build-system)
156 (native-inputs
157 `(("cppunit" ,cppunit)
158 ("gperf" ,gperf)
159 ("pkg-config" ,pkg-config)))
160 (inputs `(("boost" ,boost)
161 ("icu4c" ,icu4c)
162 ("librevenge" ,librevenge)
163 ("libxml2" ,libxml2)))
164 (arguments
165 ;; avoid triggering configure errors by simple inclusion of boost headers
166 `(#:configure-flags '("--disable-werror")))
167 (home-page "http://libebook.sourceforge.net")
168 (synopsis "Library for import of reflowable e-book formats")
169 (description "Libe-book is a library and a set of tools for reading and
170 converting various reflowable e-book formats. Currently supported are:
171 Broad Band eBook, eReader .pdb, FictionBook v. 2 (including zipped files),
172 PalmDoc Ebook, Plucker .pdb, QiOO (mobile format, for java-enabled
173 cellphones), TCR (simple compressed text format), TealDoc, zTXT,
174 ZVR (simple compressed text format).")
175 (license mpl2.0)))
176
177 (define-public libwpg
178 (package
179 (name "libwpg")
180 (version "0.3.0")
181 (source
182 (origin
183 (method url-fetch)
184 (uri (string-append "mirror://sourceforge/libwpg/" name "/" name "-"
185 version ".tar.xz"))
186 (sha256 (base32
187 "097jx8a638fwwfrzf6v29r1yhc34rq9526py7wf0ck2z4fcr2w3g"))))
188 (build-system gnu-build-system)
189 (native-inputs
190 `(("doxygen" ,doxygen)
191 ("pkg-config" ,pkg-config)))
192 (inputs
193 `(("librevenge" ,librevenge)
194 ("libwpd" ,libwpd)
195 ("perl" ,perl)
196 ("zlib" ,zlib)))
197 (home-page "http://libwpg.sourceforge.net/")
198 (synopsis "Library and tools for the WordPerfect Graphics format")
199 (description "The libwpg project provides a library and tools for
200 working with graphics in the WPG (WordPerfect Graphics) format.")
201 (license '(mpl2.0 lgpl2.1+)))) ; dually licensed