gnu: newsbeuter: Deprecate in favour of newsboat.
[jackhill/guix/guix.git] / gnu / packages / inkscape.scm
CommitLineData
1d07e931
JD
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 John Darrington <jmd@gnu.org>
8e359335 3;;; Copyright © 2014, 2016 Mark H Weaver <mhw@netris.org>
3f62fa2b 4;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
c4787c78 5;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
1d07e931
JD
6;;;
7;;; This file is part of GNU Guix.
8;;;
9;;; GNU Guix is free software; you can redistribute it and/or modify it
10;;; under the terms of the GNU General Public License as published by
11;;; the Free Software Foundation; either version 3 of the License, or (at
12;;; your option) any later version.
13;;;
14;;; GNU Guix is distributed in the hope that it will be useful, but
15;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17;;; GNU General Public License for more details.
18;;;
19;;; You should have received a copy of the GNU General Public License
20;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21
22(define-module (gnu packages inkscape)
b5b73a82 23 #:use-module ((guix licenses) #:prefix license:)
1d07e931
JD
24 #:use-module (guix packages)
25 #:use-module (guix download)
bc351001 26 #:use-module (guix utils)
68f90673 27 #:use-module (guix build-system cmake)
1d07e931
JD
28 #:use-module (gnu packages)
29 #:use-module (gnu packages aspell)
30 #:use-module (gnu packages bdw-gc)
31 #:use-module (gnu packages boost)
32 #:use-module (gnu packages glib)
33 #:use-module (gnu packages gtk)
34 #:use-module (gnu packages maths)
35 #:use-module (gnu packages perl)
36 #:use-module (gnu packages pdf)
37 #:use-module (gnu packages popt)
38 #:use-module (gnu packages python)
39 #:use-module (gnu packages xml)
40 #:use-module (gnu packages ghostscript)
41 #:use-module (gnu packages fontutils)
e55354b8 42 #:use-module (gnu packages image)
1d07e931
JD
43 #:use-module (gnu packages pkg-config))
44
45(define-public inkscape
46 (package
47 (name "inkscape")
fbbb1abf 48 (version "0.92.1")
1d07e931
JD
49 (source (origin
50 (method url-fetch)
68f90673
RW
51 (uri (string-append "https://media.inkscape.org/dl/"
52 "resources/file/"
53 "inkscape-" version ".tar.bz2"))
c4787c78
MB
54 (patches
55 (list
56 ;; Fix compatibility with poppler >= 0.58.
57 (origin
58 (method url-fetch)
59 (uri (string-append "https://gitlab.com/inkscape/inkscape/commit/"
60 "9418824967eb4c53371ef8588243fed4cab496e0.patch"))
61 (sha256
62 (base32
63 "0wwyhkqb1qyazz5f6wqrc223l6k8qnmadiw28q8gihlgvh38rvll")))))
1d07e931
JD
64 (sha256
65 (base32
fbbb1abf 66 "01chr3vh728dkg7l7lilwgmh5nrp784khdhjgpqjbq9dh2zhax15"))))
68f90673 67 (build-system cmake-build-system)
1d07e931
JD
68 (inputs
69 `(("aspell" ,aspell)
70 ("gtkmm" ,gtkmm-2)
71 ("gtk" ,gtk+-2)
72 ("gsl" ,gsl)
73 ("poppler" ,poppler)
74 ("libpng" ,libpng)
75 ("libxml2" ,libxml2)
76 ("libxslt" ,libxslt)
618ea7c9 77 ("libgc" ,libgc)
1d07e931
JD
78 ("freetype" ,freetype)
79 ("popt" ,popt)
80 ("python" ,python-2)
81 ("lcms" ,lcms)
82 ("boost" ,boost)))
83 (native-inputs
84 `(("intltool" ,intltool)
68f90673 85 ("glib" ,glib "bin")
1d07e931
JD
86 ("perl" ,perl)
87 ("pkg-config" ,pkg-config)))
68f90673
RW
88 ;; FIXME: tests require gmock
89 (arguments `(#:tests? #f))
1d07e931
JD
90 (home-page "http://inkscape.org/")
91 (synopsis "Vector graphics editor")
92 (description "Inkscape is a vector graphics editor. What sets Inkscape
93apart is its use of Scalable Vector Graphics (SVG), an XML-based W3C standard,
94as the native format.")
95 (license license:gpl2+)))