commit:     dfd1cccca3ad94e4bd0401f740d02bf723a9edb3
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 14 14:53:47 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Jul 14 14:55:53 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfd1cccc

dev-util/kdstatemachineeditor: Fix build with Qt 5.11

Thanks-to: Petross404(Petros S) <petross404 <AT> gmail.com>
Closes: https://bugs.gentoo.org/656672
Package-Manager: Portage-2.3.41, Repoman-2.3.9

 .../files/kdstatemachineeditor-1.2.3-qt-5.11.patch  | 21 +++++++++++++++++++++
 .../kdstatemachineeditor-1.2.3.ebuild               |  2 ++
 2 files changed, 23 insertions(+)

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
index 00000000000..04a9ac9306b
--- /dev/null
+++ 
b/dev-util/kdstatemachineeditor/files/kdstatemachineeditor-1.2.3-qt-5.11.patch
@@ -0,0 +1,21 @@
+From 63ca52af50f94b396182638224fe2c50b4cb7043 Mon Sep 17 00:00:00 2001
+From: Allen Winter <allen.win...@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

diff --git a/dev-util/kdstatemachineeditor/kdstatemachineeditor-1.2.3.ebuild 
b/dev-util/kdstatemachineeditor/kdstatemachineeditor-1.2.3.ebuild
index 879b2ad3bde..0ccb11dd407 100644
--- a/dev-util/kdstatemachineeditor/kdstatemachineeditor-1.2.3.ebuild
+++ b/dev-util/kdstatemachineeditor/kdstatemachineeditor-1.2.3.ebuild
@@ -36,6 +36,8 @@ DEPEND="${RDEPEND}
        media-gfx/graphviz
 "
 
+PATCHES=( "${FILESDIR}"/${P}-qt-5.11.patch )
+
 src_configure() {
        local mycmakeargs=(
                -DBUILD_EXAMPLES=OFF

Reply via email to