aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/scribus.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2018-06-06 22:43:37 +0200
committerRicardo Wurmus <rekado@elephly.net>2018-06-06 22:43:37 +0200
commit116ca65b583ba4e404289f1481dc3a3ffef1c3dd (patch)
tree79796424eb21443c76594304162b6629c3a8a54e /gnu/packages/scribus.scm
parent477ee222aa796257b5f32966da662e76fe706332 (diff)
parent25133ca172d7dd436c4c08055d18f1a393037dbb (diff)
downloadguix-116ca65b583ba4e404289f1481dc3a3ffef1c3dd.tar.gz
guix-116ca65b583ba4e404289f1481dc3a3ffef1c3dd.zip
Merge branch 'master' into core-updates
Diffstat (limited to 'gnu/packages/scribus.scm')
-rw-r--r--gnu/packages/scribus.scm60
1 files changed, 6 insertions, 54 deletions
diff --git a/gnu/packages/scribus.scm b/gnu/packages/scribus.scm
index 09ab97e8b3..98bdf5d24e 100644
--- a/gnu/packages/scribus.scm
+++ b/gnu/packages/scribus.scm
@@ -1,7 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
-;;; Copyright © 2017 Nicolas Goaziou <mail@nicolasgoaziou.fr>
+;;; Copyright © 2017, 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
;;;
;;; This file is part of GNU Guix.
@@ -47,7 +47,7 @@
(define-public scribus
(package
(name "scribus")
- (version "1.5.3")
+ (version "1.5.4")
(source
(origin
(method url-fetch)
@@ -55,62 +55,13 @@
version "/scribus-" version ".tar.xz"))
(sha256
(base32
- "0kyp45vidxa3v35ic9592db4zk3m8al26vck38q5v7z14x3hp8vk"))
- (patches
- (list
- (origin
- (method url-fetch)
- (uri (string-append "https://github.com/scribusproject/scribus/commit/"
- "61186c7ef083046b7e0c908952e8a773e2787d82.patch"))
- (file-name "scribus-fix-poppler-0.58-breakage.patch")
- (sha256
- (base32 "189qw9xmgz01xz1w1bi9lzrp399zk1j1iz5qdhchdrhgnd69b7ly")))
- (origin
- (method url-fetch)
- (uri (string-append "https://github.com/scribusproject/scribus/commit/"
- "d82b1c989bd0e79b5611521f671adbfb94996e5e.patch"))
- (file-name "scribus-fix-poppler-packaging.patch")
- (sha256
- (base32 "1p9s18jjvj2h0ba1xvk1zhmnn4f4n3ykrgb56mjd6in30h0vrykx")))))
- (modules '((guix build utils)))
- (snippet
- ;; Fix typo. Equivalent to patch at
- ;; https://bugs.scribus.net/view.php?id=14850
- '(begin
- (substitute* "cmake/modules/FindLIBPODOFO.cmake"
- (("find_package\\(OPENSSL\\)") "find_package(OpenSSL)"))
- #t))))
+ "00ys0p6h3iq77kh72dkl0qrf7qvznq18qdrgiq10gfxja1995034"))
+ (modules '((guix build utils)))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f ;no test target
#:configure-flags
- '("-DWANT_GRAPHICSMAGICK=1")
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-source
- (lambda _
- ;; Fix build against Qt 5.11.
- (substitute* "scribus/plugins/tools/lenseffects/lensdialog.cpp"
- (("#include <cmath>") "#include <cmath>
-#include <QStyleOptionGraphicsItem>"))
- (substitute* "scribus/plugins/tools/2geomtools/meshdistortion/meshdistortiondialog.cpp"
- (("#include <QGraphicsItem>") "#include <QGraphicsItem>
-#include <QStyleOptionGraphicsItem>"))
- (substitute* "scribus/sclistboxpixmap.h"
- (("#include <QVariant>") "#include <QVariant>
-#include <QStyleOptionViewItem>
-#include <QAbstractItemDelegate>"))
- #t))
- (add-after 'install 'wrap-program
- (lambda* (#:key inputs outputs #:allow-other-keys)
- ;; Fix "ImportError: No module named _sysconfigdata_nd" where
- ;; Scribus checks PATH and eventually runs system's Python
- ;; instead of package's.
- (let* ((out (assoc-ref outputs "out"))
- (py2 (assoc-ref inputs "python")))
- (wrap-program (string-append out "/bin/scribus")
- `("PATH" ":" prefix (,(string-append py2 "/bin")))))
- #t)))))
+ '("-DWANT_GRAPHICSMAGICK=1")))
(inputs
`(("boost" ,boost)
("cairo" ,cairo)
@@ -131,6 +82,7 @@
("libtiff" ,libtiff)
("libvisio" ,libvisio)
("libxml2" ,libxml2)
+ ("libzmf" ,libzmf)
("openssl" ,openssl)
("podofo" ,podofo)
("poppler" ,poppler)