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

View file

@ -110,6 +110,13 @@ (define-public librecad
(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")))