kde-apps/kopete: Fix build with USE=pipes
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 7 Jul 2018 09:40:45 +0000 (11:40 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 7 Jul 2018 10:29:55 +0000 (12:29 +0200)
Closes: https://bugs.gentoo.org/660552
Package-Manager: Portage-2.3.41, Repoman-2.3.9

kde-apps/kopete/files/kopete-18.04.2-pipes.patch [new file with mode: 0644]
kde-apps/kopete/kopete-18.04.2.ebuild

diff --git a/kde-apps/kopete/files/kopete-18.04.2-pipes.patch b/kde-apps/kopete/files/kopete-18.04.2-pipes.patch
new file mode 100644 (file)
index 0000000..d52b719
--- /dev/null
@@ -0,0 +1,33 @@
+From 8084cfa3a0b3342e73fa128f89c7efd6bac79a36 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
+Date: Sat, 7 Jul 2018 11:14:32 +0200
+Subject: [PATCH] Fix pipes plugin build (missing moc include)
+
+---
+ plugins/pipes/pipesplugin.cpp      | 2 ++
+ plugins/pipes/pipespreferences.cpp | 2 ++
+ 2 files changed, 4 insertions(+)
+
+diff --git a/plugins/pipes/pipesplugin.cpp b/plugins/pipes/pipesplugin.cpp
+index f86733b5e..27f3e5e68 100644
+--- a/plugins/pipes/pipesplugin.cpp
++++ b/plugins/pipes/pipesplugin.cpp
+@@ -353,3 +353,5 @@ void PipesPlugin::readXml(PipeOptions pipeOptions, Kopete::Message &msg, const Q
+         msg.setHtmlBody(body.text());
+     }
+ }
++
++#include "pipesplugin.moc"
+diff --git a/plugins/pipes/pipespreferences.cpp b/plugins/pipes/pipespreferences.cpp
+index f43b42af7..0ee22216b 100644
+--- a/plugins/pipes/pipespreferences.cpp
++++ b/plugins/pipes/pipespreferences.cpp
+@@ -108,3 +108,5 @@ void PipesPreferences::slotListChanged()
+     mPrefs->pipesList->resizeColumnToContents(PipesDelegate::ContentsColumn);
+     changed();
+ }
++
++#include "pipespreferences.moc"
+-- 
+2.18.0
+
index 1c613fd920177da1fbf885c2231387f57e67e3cd..93402c1ecf1d0f3ba91412dd909ff18bad649c46 100644 (file)
@@ -136,6 +136,8 @@ DEPEND="${COMMONDEPEND}
        jingle? ( dev-libs/jsoncpp )
 "
 
+PATCHES=( "${FILESDIR}/${P}-pipes.patch" )
+
 src_configure() {
        local x x2
        # Handle common stuff