mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
gnu: powertabeditor: Fix build with Qt 5.11.
Fixes <https://bugs.gnu.org/31659>. * gnu/packages/music.scm (powertabeditor)[arguments]: Add build phase "add-missing-headers".
This commit is contained in:
parent
0d6f84aab1
commit
1e341fa508
1 changed files with 13 additions and 0 deletions
|
@ -1184,6 +1184,19 @@ (define-public powertabeditor
|
|||
(("boost::rational<int> duration\\(4, pos.getDurationType\\(\\)\\);")
|
||||
"boost::rational<int> duration(4, static_cast<int>(pos.getDurationType()));"))
|
||||
#t))
|
||||
;; Fix build with Qt 5.11.
|
||||
(add-after 'unpack 'add-missing-headers
|
||||
(lambda _
|
||||
(substitute* (find-files "source/dialogs/" "\\.h$")
|
||||
(("#include <QDialog>" m)
|
||||
(string-append m "\n#include <QButtonGroup>")))
|
||||
(substitute* "source/widgets/mixer/mixeritem.h"
|
||||
(("#include <QWidget>" m)
|
||||
(string-append m "\n#include <QStyle>")))
|
||||
(substitute* "source/widgets/playback/playbackwidget.h"
|
||||
(("#include <QWidget>" m)
|
||||
(string-append m "\n#include <QButtonGroup>\n#include <QAction>")))
|
||||
#t))
|
||||
(add-before 'configure 'remove-third-party-libs
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
;; Link with required static libraries, because we're not
|
||||
|
|
Loading…
Reference in a new issue