net-misc/qtm: 1.3.19 version bump, fix build with Qt 5.11
authorAndreas Sturmlechner <asturm@gentoo.org>
Fri, 17 Aug 2018 22:00:44 +0000 (00:00 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Fri, 17 Aug 2018 22:02:03 +0000 (00:02 +0200)
Closes: https://bugs.gentoo.org/662480
Package-Manager: Portage-2.3.46, Repoman-2.3.10

net-misc/qtm/Manifest
net-misc/qtm/files/qtm-1.3.19-qt-5.11.patch [new file with mode: 0644]
net-misc/qtm/qtm-1.3.19.ebuild [new file with mode: 0644]

index d06fa1c34973403fc1c3cc51714159090fe72eba..ac805dfa9f84cef1bfb9ac77ac10590a89583111 100644 (file)
@@ -1 +1,2 @@
 DIST qtm-1.3.18.tar.bz2 186137 BLAKE2B b405bc922246d5c8fe65fc68250b3eb401be3b17dd55cc81bfa70d6ddd72280398df25c850b2d71cc4383b9463e3aff6d641ce4080c100d10ae79f9002793055 SHA512 d4685f22a883e1d7513dcac57a807b0d21c26dfceda547b22889ee980758de1a49c2e898c745bb597efd709823d96da59f7494015c0915edb34e9141fa60e2ca
+DIST qtm-1.3.19.tar.bz2 191559 BLAKE2B e193e75771f04b7ecf772a55305c5a0b923449570933c76716235912223417e1340462893b5c566a22c3d6689eb2fc66b7b41aa3148afcbbc4db65abfcc06545 SHA512 a56a5c1d6098213637806a8a8c3889bbfbd11cb5b1d568520197c6c21e51d99f95975359c18f63961aba945b58a5ce3abf3ff85f552a555b91965414934f9565
diff --git a/net-misc/qtm/files/qtm-1.3.19-qt-5.11.patch b/net-misc/qtm/files/qtm-1.3.19-qt-5.11.patch
new file mode 100644 (file)
index 0000000..76bf75e
--- /dev/null
@@ -0,0 +1,23 @@
+Fixes build error due to internal header cleanup in Qt 5.11.
+Gentoo-bug: https://bugs.gentoo.org/662480
+
+--- a/AccountsDialog.cc        2017-06-12 12:27:59.964042017 +0200
++++ b/AccountsDialog.cc        2018-08-17 23:51:40.559225179 +0200
+@@ -21,6 +21,7 @@
+  *************************************************************************************************/
++#include <QAction>
+ #include <QWidget>
+ #include <QDialog>
+ #include <QListWidget>
+--- a/QuickpostTemplateDialog.cc       2017-06-12 12:28:00.244038449 +0200
++++ b/QuickpostTemplateDialog.cc       2018-08-17 23:55:11.793673907 +0200
+@@ -20,6 +20,7 @@
+  *****************************************************************************/
++#include <QAction>
+ #include <QWidget>
+ #include <QDialog>
+ #include <QListWidget>
diff --git a/net-misc/qtm/qtm-1.3.19.ebuild b/net-misc/qtm/qtm-1.3.19.ebuild
new file mode 100644 (file)
index 0000000..94d9740
--- /dev/null
@@ -0,0 +1,54 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# CMAKE_IN_SOURCE_BUILD="1"
+inherit cmake-utils eapi7-ver
+
+DESCRIPTION="Qt blogging client"
+HOMEPAGE="http://qtm.blogistan.co.uk"
+SRC_URI="https://bitbucket.org/IndigoJo/${PN}-$(ver_cut 1-2)/downloads/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dbus debug"
+RESTRICT="strip"
+
+RDEPEND="dev-lang/perl
+       dev-qt/qtcore:5
+       dev-qt/qtgui:5
+       dev-qt/qtnetwork:5
+       dev-qt/qtwidgets:5
+       dev-qt/qtxml:5
+       virtual/perl-Digest-MD5
+       dbus? ( dev-qt/qtdbus:5 )"
+DEPEND="${RDEPEND}
+       x11-base/xorg-proto
+       virtual/pkgconfig"
+
+DOCS=( Changelog README )
+
+PATCHES=( "${FILESDIR}/${P}-qt-5.11.patch" ) # TODO: upstream
+
+src_prepare() {
+       # bug 463810
+       sed -i -e '/Categories/s/Application;//' qtm-desktop.sh || die 'sed on qtm-desktop.sh failed'
+
+       cmake-utils_src_prepare
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DQt5=ON
+               -DDONT_USE_PTE=OFF
+               -DINSTALL_MARKDOWN=ON
+               -DNO_SSL=OFF
+               -DUSE_DBUS=$(usex dbus)
+               -DDONT_USE_DBUS=$(usex !dbus)
+               -DQDEBUG=$(usex debug)
+       )
+
+       cmake-utils_src_configure
+}