gnu: librecad: Fix build against Qt 5.11.

* gnu/packages/engineering.scm (librecad)[arguments]: Add missing headers.
This commit is contained in:
Clément Lassieur 2018-05-29 15:21:07 +02:00
parent 0d56d9c714
commit 6cedd61177
No known key found for this signature in database
GPG Key ID: 89F96D4808F359C7
1 changed files with 7 additions and 0 deletions

View File

@ -110,6 +110,13 @@
(string-append "#include <boost/serialization/array_wrapper.hpp>\n"
line)))
#t))
;; Fix build against Qt 5.11.
(add-after 'unpack 'add-missing-headers
(lambda _
(substitute* "librecad/src/ui/generic/widgetcreator.cpp"
(("#include <QPushButton>") "#include <QPushButton>
#include <QActionGroup>"))
#t))
(add-after 'unpack 'patch-paths
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))