From 0a8d25cbc5a23802d7b21e8d8409e9ad4d018598 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sat, 18 Aug 2018 00:00:44 +0200 Subject: [PATCH] net-misc/qtm: 1.3.19 version bump, fix build with Qt 5.11 Closes: https://bugs.gentoo.org/662480 Package-Manager: Portage-2.3.46, Repoman-2.3.10 --- net-misc/qtm/Manifest | 1 + net-misc/qtm/files/qtm-1.3.19-qt-5.11.patch | 23 +++++++++ net-misc/qtm/qtm-1.3.19.ebuild | 54 +++++++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 net-misc/qtm/files/qtm-1.3.19-qt-5.11.patch create mode 100644 net-misc/qtm/qtm-1.3.19.ebuild diff --git a/net-misc/qtm/Manifest b/net-misc/qtm/Manifest index d06fa1c34973..ac805dfa9f84 100644 --- a/net-misc/qtm/Manifest +++ b/net-misc/qtm/Manifest @@ -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 index 000000000000..76bf75e11283 --- /dev/null +++ b/net-misc/qtm/files/qtm-1.3.19-qt-5.11.patch @@ -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 + #include + #include + #include +--- 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 + #include + #include + #include diff --git a/net-misc/qtm/qtm-1.3.19.ebuild b/net-misc/qtm/qtm-1.3.19.ebuild new file mode 100644 index 000000000000..94d9740b4632 --- /dev/null +++ b/net-misc/qtm/qtm-1.3.19.ebuild @@ -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 +} -- 2.26.2