gnu: Add external-program.
[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>
698d2280
MB
7;;;
8;;; This file is part of GNU Guix.
9;;;
10;;; GNU Guix is free software; you can redistribute it and/or modify it
11;;; under the terms of the GNU General Public License as published by
12;;; the Free Software Foundation; either version 3 of the License, or (at
13;;; your option) any later version.
14;;;
15;;; GNU Guix is distributed in the hope that it will be useful, but
16;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18;;; GNU General Public License for more details.
19;;;
20;;; You should have received a copy of the GNU General Public License
21;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22
23(define-module (gnu packages abiword)
b5b73a82 24 #:use-module ((guix licenses) #:prefix license:)
698d2280
MB
25 #:use-module (guix packages)
26 #:use-module (guix download)
27 #:use-module (guix build-system gnu)
89b99531 28 #:use-module (guix build-system glib-or-gtk)
698d2280 29 #:use-module (gnu packages)
0ea4079f 30 #:use-module (gnu packages autotools)
698d2280
MB
31 #:use-module (gnu packages boost)
32 #:use-module (gnu packages compression)
33 #:use-module (gnu packages enchant)
34 #:use-module (gnu packages fribidi)
35 #:use-module (gnu packages fontutils)
36 #:use-module (gnu packages glib)
37 #:use-module (gnu packages gnome)
38 #:use-module (gnu packages gtk)
39 #:use-module (gnu packages image)
40 #:use-module (gnu packages ots)
41 #:use-module (gnu packages popt)
42 #:use-module (gnu packages pkg-config)
43 #:use-module (gnu packages readline)
a3c4aa1b 44 #:use-module (gnu packages wv)
698d2280
MB
45 #:use-module (gnu packages xml))
46
47(define-public abiword
48 (package
49 (name "abiword")
5c97ce1e 50 (version "3.0.2")
698d2280
MB
51 (source
52 (origin
53 (method url-fetch)
54 (uri
7428d169
TGR
55 (string-append "https://www.abisource.com/downloads/abiword/" version
56 "/source/abiword-" version ".tar.gz"))
698d2280 57 (sha256
5c97ce1e 58 (base32 "08imry821g81apdwym3gcs4nss0l9j5blqk31j5rv602zmcd9gxg"))
698d2280 59 (patches
d17e085a 60 (search-patches "abiword-explictly-cast-bools.patch"
5c97ce1e 61 "abiword-black-drawing-with-gtk322.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)
98 ("libjpeg" ,libjpeg)
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+)))