gnu: scribus: Fix build against Qt 5.11.
* gnu/packages/scribus.scm (scribus)[arguments]: Add a 'patch-source' phase that includes missing headers.
This commit is contained in:
parent
d0e23e3940
commit
6f8f98df7f
|
@ -2,6 +2,7 @@
|
||||||
;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;; Copyright © 2017 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
;;; Copyright © 2017 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
||||||
|
;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -84,6 +85,20 @@
|
||||||
'("-DWANT_GRAPHICSMAGICK=1")
|
'("-DWANT_GRAPHICSMAGICK=1")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-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
|
(add-after 'install 'wrap-program
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
;; Fix "ImportError: No module named _sysconfigdata_nd" where
|
;; Fix "ImportError: No module named _sysconfigdata_nd" where
|
||||||
|
|
Loading…
Reference in New Issue