dev-util/kdstatemachineeditor: Fix build with Qt 5.11
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 14 Jul 2018 14:53:47 +0000 (16:53 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 14 Jul 2018 14:55:53 +0000 (16:55 +0200)
Thanks-to: Petross404(Petros S) <petross404@gmail.com>
Closes: https://bugs.gentoo.org/656672
Package-Manager: Portage-2.3.41, Repoman-2.3.9

dev-util/kdstatemachineeditor/files/kdstatemachineeditor-1.2.3-qt-5.11.patch [new file with mode: 0644]
dev-util/kdstatemachineeditor/kdstatemachineeditor-1.2.3.ebuild

diff --git a/dev-util/kdstatemachineeditor/files/kdstatemachineeditor-1.2.3-qt-5.11.patch b/dev-util/kdstatemachineeditor/files/kdstatemachineeditor-1.2.3-qt-5.11.patch
new file mode 100644 (file)
index 0000000..04a9ac9
--- /dev/null
@@ -0,0 +1,21 @@
+From 63ca52af50f94b396182638224fe2c50b4cb7043 Mon Sep 17 00:00:00 2001
+From: Allen Winter <allen.winter@kdab.com>
+Date: Thu, 5 Apr 2018 10:07:01 -0400
+Subject: [PATCH] src/core/model/element.h - fix compile on with XCode (include QPointF)
+
+---
+ src/core/model/element.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/core/model/element.h b/src/core/model/element.h
+index ec32cfc..c20ac6f 100644
+--- a/src/core/model/element.h
++++ b/src/core/model/element.h
+@@ -30,6 +30,7 @@
+ #include <QObject>
+ #include <QMetaType>
++#include <QPointF>
+ QT_BEGIN_NAMESPACE
+ class QPainterPath;
\ No newline at end of file
index 879b2ad3bdedc9110cb319c68292a3465254129c..0ccb11dd407cf198b9826e97a96d1ee5dcd36c91 100644 (file)
@@ -36,6 +36,8 @@ DEPEND="${RDEPEND}
        media-gfx/graphviz
 "
 
+PATCHES=( "${FILESDIR}"/${P}-qt-5.11.patch )
+
 src_configure() {
        local mycmakeargs=(
                -DBUILD_EXAMPLES=OFF