gnu: ruby-pandoc-ruby: Use pandoc instead of ghc-pandoc.
[jackhill/guix/guix.git] / gnu / packages / abiword.scm
CommitLineData
698d2280
MB
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 Marek Benc <merkur32@gmail.com>
07b06627 3;;; Copyright © 2016, 2018 Efraim Flashner <efraim@flashner.co.il>
5c97ce1e 4;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
d17e085a 5;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
7428d169 6;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
64c1e6fe 7;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
698d2280
MB
8;;;
9;;; This file is part of GNU Guix.
10;;;
11;;; GNU Guix is free software; you can redistribute it and/or modify it
12;;; under the terms of the GNU General Public License as published by
13;;; the Free Software Foundation; either version 3 of the License, or (at
14;;; your option) any later version.
15;;;
16;;; GNU Guix is distributed in the hope that it will be useful, but
17;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19;;; GNU General Public License for more details.
20;;;
21;;; You should have received a copy of the GNU General Public License
22;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23
24(define-module (gnu packages abiword)
b5b73a82 25 #:use-module ((guix licenses) #:prefix license:)
698d2280
MB
26 #:use-module (guix packages)
27 #:use-module (guix download)
28 #:use-module (guix build-system gnu)
89b99531 29 #:use-module (guix build-system glib-or-gtk)
698d2280 30 #:use-module (gnu packages)
0ea4079f 31 #:use-module (gnu packages autotools)
698d2280
MB
32 #:use-module (gnu packages boost)
33 #:use-module (gnu packages compression)
34 #:use-module (gnu packages enchant)
35 #:use-module (gnu packages fribidi)
36 #:use-module (gnu packages fontutils)
37 #:use-module (gnu packages glib)
38 #:use-module (gnu packages gnome)
39 #:use-module (gnu packages gtk)
40 #:use-module (gnu packages image)
41 #:use-module (gnu packages ots)
42 #:use-module (gnu packages popt)
43 #:use-module (gnu packages pkg-config)
44 #:use-module (gnu packages readline)
a3c4aa1b 45 #:use-module (gnu packages wv)
698d2280
MB
46 #:use-module (gnu packages xml))
47
48(define-public abiword
49 (package
50 (name "abiword")
64c1e6fe 51 (version "3.0.4")
698d2280
MB
52 (source
53 (origin
54 (method url-fetch)
55 (uri
7428d169
TGR
56 (string-append "https://www.abisource.com/downloads/abiword/" version
57 "/source/abiword-" version ".tar.gz"))
698d2280 58 (sha256
64c1e6fe 59 (base32 "1mx5l716n0z5788i19qmad30cck4v9ggr071cafw2nrf375rcc79"))
698d2280 60 (patches
64c1e6fe 61 (search-patches "abiword-explictly-cast-bools.patch"))))
698d2280 62
89b99531 63 (build-system glib-or-gtk-build-system)
698d2280
MB
64 (arguments ;; NOTE: rsvg is disabled, since Abiword
65 `(#:configure-flags ;; supports it directly, and its BS is broken.
07b06627 66 (list ;; wmf was removed from Guix for security.
698d2280
MB
67 "--enable-clipart" ;; TODO: The following plugins have unresolved
68 "--enable-templates" ;; dependencies: aiksaurus, grammar, wpg, gda,
5eabbc3e 69 (string-append ;; wordperfect, psion, mathview.
698d2280
MB
70 "--enable-plugins="
71 "applix " "babelfish " "bmp " "clarisworks " "collab " "command "
5eabbc3e
EF
72 "docbook " "eml " "epub " "freetranslation " "garble " "gdict "
73 "gimp " "goffice " "google " "hancom " "hrtext " "iscii " "kword "
74 "latex " "loadbindings " "mht " "mif " "mswrite " "opendocument "
698d2280
MB
75 "openwriter " "openxml " "opml " "ots " "paint " "passepartout "
76 "pdb " "pdf " "presentation " "s5 " "sdw " "t602 " "urldict "
07b06627 77 "wikipedia " "wml " "xslfo"))
0ea4079f
EF
78 ;; tests fail with: Gtk-CRITICAL **: gtk_settings_get_for_screen:
79 ;; assertion 'GDK_IS_SCREEN (screen)' failed
80 ;; GLib-GObject-CRITICAL **: g_object_get_qdata:
81 ;; assertion 'G_IS_OBJECT (object)' failed
82 ;; Manually starting the X server before the test phase did not help
83 ;; the tests to pass.
5c97ce1e
RW
84 #:tests? #f
85 #:make-flags
0fe041bd 86 (list "gtk_update_icon_cache=true")))
698d2280
MB
87 (inputs
88 `(("boost" ,boost)
89 ("enchant" ,enchant)
90 ("fontconfig" ,fontconfig)
91 ("fribidi" ,fribidi)
92 ("glib" ,glib)
5eabbc3e 93 ("goffice" ,goffice)
0ea4079f 94 ("gtk+" ,gtk+)
5eabbc3e 95 ("libchamplain" ,libchamplain)
698d2280
MB
96 ("libglade" ,libglade)
97 ("libgsf" ,libgsf)
4bd428a7 98 ("libjpeg" ,libjpeg-turbo)
698d2280
MB
99 ("libpng" ,libpng)
100 ("librsvg" ,librsvg)
698d2280 101 ("libxml2" ,libxml2)
0ea4079f 102 ("libxslt" ,libxslt)
698d2280
MB
103 ("ots" ,ots)
104 ("popt" ,popt)
105 ("readline" ,readline)
5eabbc3e 106 ("telepathy" ,telepathy-glib)
a3c4aa1b 107 ("wv" ,wv)
698d2280
MB
108 ("zlib" ,zlib)))
109 (native-inputs
110 `(("intltool" ,intltool)
111 ("glib:bin" ,glib "bin")
0ea4079f 112 ("libtool" ,libtool)
698d2280 113 ("pkg-config" ,pkg-config)))
70c90903 114 (home-page "https://www.abisource.com/")
698d2280 115 (synopsis "Word processing program")
f4e92db3
LC
116
117 ;; HACKERS: The comment below is here so that it shows up early in the
118 ;; .pot file.
119
120 ;; TRANSLATORS: Dear translator, We would like to inform you that package
121 ;; descriptions may occasionally include Texinfo markup. Texinfo markup
122 ;; looks like "@code{rm -rf}", "@emph{important}", etc. When translating,
123 ;; please leave markup as is.
124 (description "AbiWord is a word processing program. It is rapidly
125becoming a state of the art word processor, with lots of features useful for
126your daily work, personal needs, or for just some good old typing fun.")
698d2280 127 (license license:gpl2+)))