From 6f8f98df7f90fd18795f832c32e8d84557a24c0b Mon Sep 17 00:00:00 2001 From: Clément Lassieur Date: Tue, 29 May 2018 19:26:21 +0200 Subject: gnu: scribus: Fix build against Qt 5.11. * gnu/packages/scribus.scm (scribus)[arguments]: Add a 'patch-source' phase that includes missing headers. --- gnu/packages/scribus.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/scribus.scm b/gnu/packages/scribus.scm index 860d346778..ea6418c32a 100644 --- a/gnu/packages/scribus.scm +++ b/gnu/packages/scribus.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2015 Ricardo Wurmus ;;; Copyright © 2016 Efraim Flashner ;;; Copyright © 2017 Nicolas Goaziou +;;; Copyright © 2018 Clément Lassieur ;;; ;;; This file is part of GNU Guix. ;;; @@ -84,6 +85,20 @@ '("-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 ") "#include +#include ")) + (substitute* "scribus/plugins/tools/2geomtools/meshdistortion/meshdistortiondialog.cpp" + (("#include ") "#include +#include ")) + (substitute* "scribus/sclistboxpixmap.h" + (("#include ") "#include +#include +#include ")) + #t)) (add-after 'install 'wrap-program (lambda* (#:key inputs outputs #:allow-other-keys) ;; Fix "ImportError: No module named _sysconfigdata_nd" where -- cgit 1.4.1