gnu: hedgewars: Fix build.
author宋文武 <iyzsong@member.fsf.org>
Thu, 11 Feb 2021 03:56:09 +0000 (11:56 +0800)
committer宋文武 <iyzsong@member.fsf.org>
Thu, 11 Feb 2021 03:56:09 +0000 (11:56 +0800)
Fixes <https://issues.guix.gnu.org/46398>.

* gnu/packages/games.scm (hedgewars)[arguments]<#:phases>: Add the missing
"#include <QPainterPath>".

gnu/packages/games.scm

index efa6d24..bf6b793 100644 (file)
@@ -9213,6 +9213,12 @@ play with up to four players simultaneously.  It has network support.")
                                "-Dhaskell_flags=-dynamic;-fPIC")
        #:phases
        (modify-phases %standard-phases
+         (add-before 'configure 'fix-sources
+           (lambda _
+             ;; Fix a missing 'include'.
+             (substitute* "QTfrontend/ui/page/pagegamestats.cpp"
+               (("#include <QSizePolicy>")
+                "#include <QSizePolicy>\n#include <QPainterPath>"))))
          (replace 'check
            (lambda _ (invoke "ctest")))
          (add-after 'install 'install-icon