app-i18n/fcitx-qt5: Fix building with Qt 5.11.
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Mon, 16 Apr 2018 18:20:20 +0000 (20:20 +0200)
committerMike Gilbert <floppym@gentoo.org>
Mon, 16 Apr 2018 18:27:35 +0000 (14:27 -0400)
app-i18n/fcitx-qt5/fcitx-qt5-1.2.2.ebuild

index a4d2b41563655e6079aa762edd0a9795bf9b9766..9dff926fb7fe80118ceafb5d910e59bbb6b365a9 100644 (file)
@@ -38,3 +38,11 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
 DOCS=()
+
+src_prepare() {
+       # https://github.com/fcitx/fcitx-qt5/issues/34
+       # https://github.com/fcitx/fcitx-qt5/commit/af033e3d5305108eecc568adff7f8b2da5831ed6
+       sed -e "/^#include \"batchdialog.h\"$/i\\#include <QIcon>" -i quickphrase-editor/batchdialog.cpp || die
+
+       cmake-utils_src_prepare
+}