gnu: scribus: Update to 1.5.6.
[jackhill/guix/guix.git] / gnu / packages / scribus.scm
CommitLineData
3279b7ec 1;;; GNU Guix --- Functional package management for GNU
4236959d 2;;; Copyright © 2015, 2018 Ricardo Wurmus <rekado@elephly.net>
b13b9834 3;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
fec8d80c 4;;; Copyright © 2017, 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
6f8f98df 5;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
1a753d56 6;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com>
b91e0a5a 7;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
3279b7ec
RW
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 scribus)
25 #:use-module (guix packages)
26 #:use-module (guix download)
27 #:use-module (guix utils)
28 #:use-module ((guix licenses) #:prefix license:)
29 #:use-module (guix build-system cmake)
30 #:use-module (gnu packages)
4a8bd550 31 #:use-module (gnu packages boost)
3279b7ec
RW
32 #:use-module (gnu packages compression)
33 #:use-module (gnu packages cups)
34 #:use-module (gnu packages fontutils)
35 #:use-module (gnu packages ghostscript)
36 #:use-module (gnu packages gtk)
4a8bd550 37 #:use-module (gnu packages icu4c)
3279b7ec 38 #:use-module (gnu packages image)
4a8bd550
NG
39 #:use-module (gnu packages imagemagick)
40 #:use-module (gnu packages libreoffice)
3279b7ec 41 #:use-module (gnu packages linux)
4a8bd550 42 #:use-module (gnu packages pdf)
3279b7ec
RW
43 #:use-module (gnu packages pkg-config)
44 #:use-module (gnu packages python)
45 #:use-module (gnu packages qt)
4a8bd550 46 #:use-module (gnu packages tls)
3279b7ec
RW
47 #:use-module (gnu packages xml))
48
49(define-public scribus
50 (package
51 (name "scribus")
b91e0a5a 52 (version "1.5.6")
4a8bd550
NG
53 (source
54 (origin
55 (method url-fetch)
56 (uri (string-append "mirror://sourceforge/scribus/scribus-devel/"
57 version "/scribus-" version ".tar.xz"))
58 (sha256
b91e0a5a 59 (base32 "1qj7mzf2gmdyil27a4hl2pr1i3h3zzy2h33x74lnwp48mzp0cyap"))))
3279b7ec 60 (build-system cmake-build-system)
0cd27c65 61 (arguments
4a8bd550 62 `(#:tests? #f ;no test target
0cd27c65 63 #:configure-flags
4a007e2d
NG
64 '("-DWANT_GRAPHICSMAGICK=1")
65 #:phases
66 (modify-phases %standard-phases
67 (add-after 'install 'wrap-program
68 (lambda* (#:key inputs outputs #:allow-other-keys)
77bdfe2f
NG
69 ;; Fix "ImportError: No module named _sysconfigdata_nd"
70 ;; runtime error where Scribus checks PATH and eventually
71 ;; runs system's Python instead of package's.
4a007e2d
NG
72 (let* ((out (assoc-ref outputs "out"))
73 (py2 (assoc-ref inputs "python")))
74 (wrap-program (string-append out "/bin/scribus")
75 `("PATH" ":" prefix (,(string-append py2 "/bin")))))
76 #t)))))
3279b7ec 77 (inputs
4a8bd550
NG
78 `(("boost" ,boost)
79 ("cairo" ,cairo)
3279b7ec 80 ("cups" ,cups)
4a8bd550
NG
81 ("fontconfig" ,fontconfig)
82 ("freetype" ,freetype)
3279b7ec 83 ("graphicsmagick" ,graphicsmagick)
4a8bd550
NG
84 ("harfbuzz" ,harfbuzz)
85 ("hunspell" ,hunspell)
86 ("icu4c" ,icu4c)
3279b7ec 87 ("lcms" ,lcms)
4a8bd550
NG
88 ("libcdr" ,libcdr)
89 ("libfreehand" ,libfreehand)
4bd428a7 90 ("libjpeg" ,libjpeg-turbo)
4a8bd550
NG
91 ("libmspub" ,libmspub)
92 ("libpagemaker" ,libpagemaker)
93 ("librevenge" ,librevenge)
3279b7ec 94 ("libtiff" ,libtiff)
4a8bd550 95 ("libvisio" ,libvisio)
3279b7ec 96 ("libxml2" ,libxml2)
89a65196 97 ("libzmf" ,libzmf)
4a8bd550
NG
98 ("openssl" ,openssl)
99 ("podofo" ,podofo)
100 ("poppler" ,poppler)
b91e0a5a 101 ("python" ,python) ; need Python library
b13b9834
EF
102 ("qtbase" ,qtbase)
103 ("qtdeclarative" ,qtdeclarative)
3279b7ec
RW
104 ("zlib" ,zlib)))
105 (native-inputs
4a8bd550
NG
106 `(("pkg-config" ,pkg-config)
107 ("qttools" ,qttools)
108 ("util-linux" ,util-linux)))
109 (home-page "https://www.scribus.net")
3279b7ec
RW
110 (synopsis "Desktop publishing and page layout program")
111 (description
77bdfe2f
NG
112 "Scribus is a @dfn{desktop publishing} (DTP) application and can
113be used for many tasks; from brochure design to newspapers, magazines,
114newsletters and posters to technical documentation. Scribus supports
115professional DTP features, such as CMYK color and a color management
116system to soft proof images for high quality color printing, flexible
117PDF creation options, Encapsulated PostScript import/export and
118creation of four color separations, import of EPS/PS and SVG as native
119vector graphics, Unicode text including right to left scripts such as
120Arabic and Hebrew via FreeType.")
3279b7ec 121 (license license:gpl2+)))