Revert "Revert "Merge branch 'gnome-updates'""
[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>
267061ba 3;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
1d07e931
JD
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 inkscape)
b5b73a82 21 #:use-module ((guix licenses) #:prefix license:)
1d07e931
JD
22 #:use-module (guix packages)
23 #:use-module (guix download)
bc351001 24 #:use-module (guix utils)
1d07e931
JD
25 #:use-module (guix build-system gnu)
26 #:use-module (gnu packages)
27 #:use-module (gnu packages aspell)
28 #:use-module (gnu packages bdw-gc)
29 #:use-module (gnu packages boost)
30 #:use-module (gnu packages glib)
31 #:use-module (gnu packages gtk)
32 #:use-module (gnu packages maths)
33 #:use-module (gnu packages perl)
34 #:use-module (gnu packages pdf)
35 #:use-module (gnu packages popt)
36 #:use-module (gnu packages python)
37 #:use-module (gnu packages xml)
38 #:use-module (gnu packages ghostscript)
39 #:use-module (gnu packages fontutils)
e55354b8 40 #:use-module (gnu packages image)
1d07e931
JD
41 #:use-module (gnu packages pkg-config))
42
43(define-public inkscape
44 (package
45 (name "inkscape")
bc351001 46 (version "0.91")
1d07e931
JD
47 (source (origin
48 (method url-fetch)
bc351001
DT
49 (uri (string-append "https://launchpad.net/inkscape/"
50 (version-major+minor version) ".x/"
51 version "/+download/inkscape-"
52 version ".tar.gz"))
1d07e931
JD
53 (sha256
54 (base32
267061ba 55 "086v01jy896dj86bq7plrf6si4p6gh6ga2v5417llgmminycz8rc"))))
1d07e931
JD
56 (build-system gnu-build-system)
57 (inputs
58 `(("aspell" ,aspell)
59 ("gtkmm" ,gtkmm-2)
60 ("gtk" ,gtk+-2)
61 ("gsl" ,gsl)
62 ("poppler" ,poppler)
63 ("libpng" ,libpng)
64 ("libxml2" ,libxml2)
65 ("libxslt" ,libxslt)
618ea7c9 66 ("libgc" ,libgc)
1d07e931
JD
67 ("freetype" ,freetype)
68 ("popt" ,popt)
69 ("python" ,python-2)
70 ("lcms" ,lcms)
71 ("boost" ,boost)))
72 (native-inputs
73 `(("intltool" ,intltool)
74 ("perl" ,perl)
75 ("pkg-config" ,pkg-config)))
618ea7c9 76 (arguments
5e3bfe9d
LC
77 `(;; Add '-std=c++11', required by recent versions of GLibmm & co.
78 ;; Use '-g0' to reduce disk usage during the build.
79 #:configure-flags '("CXXFLAGS=-g0 -O2 -fopenmp -std=c++11")
80
81 #:phases (alist-cons-after
618ea7c9
MW
82 'unpack 'fix-test-includes
83 (lambda _
84 (substitute* "src/cxxtests.cpp"
85 (("\\.\\./\\.\\./src") "../src")))
86 %standard-phases)))
1d07e931
JD
87 (home-page "http://inkscape.org/")
88 (synopsis "Vector graphics editor")
89 (description "Inkscape is a vector graphics editor. What sets Inkscape
90apart is its use of Scalable Vector Graphics (SVG), an XML-based W3C standard,
91as the native format.")
92 (license license:gpl2+)))