Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/ktp-common-internals/, kde-apps/ktp-common-internals/files/
Date: Fri, 15 Nov 2019 00:36:47
Message-Id: 1573778157.60748e1363066811c17d397696b5b446a4c2200f.asturm@gentoo
1 commit: 60748e1363066811c17d397696b5b446a4c2200f
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 14 16:30:57 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 15 00:35:57 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60748e13
7
8 kde-apps/ktp-common-internals: Build w/ >=net-libs/telepathy-qt-0.9.8
9
10 Bug: https://bugs.gentoo.org/699882
11 Package-Manager: Portage-2.3.79, Repoman-2.3.18
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 ...-common-internals-19.08.3-telepathy-0.9.8.patch | 57 ++++++++++++++++++++++
15 .../ktp-common-internals-19.08.3.ebuild | 2 +
16 2 files changed, 59 insertions(+)
17
18 diff --git a/kde-apps/ktp-common-internals/files/ktp-common-internals-19.08.3-telepathy-0.9.8.patch b/kde-apps/ktp-common-internals/files/ktp-common-internals-19.08.3-telepathy-0.9.8.patch
19 new file mode 100644
20 index 00000000000..9cc3b301e0a
21 --- /dev/null
22 +++ b/kde-apps/ktp-common-internals/files/ktp-common-internals-19.08.3-telepathy-0.9.8.patch
23 @@ -0,0 +1,57 @@
24 +From f030b527c4d390ead78d2e56a1655444f97b5545 Mon Sep 17 00:00:00 2001
25 +From: Antonio Rojas <arojas@×××××××××.org>
26 +Date: Thu, 14 Nov 2019 20:34:21 +0100
27 +Subject: [PATCH] Fix build with telepathy-qt 0.9.8
28 +
29 +Explicitely add the necessary link targets which are no longer exported by telepathy-qt
30 +
31 +Differential Revision: https://phabricator.kde.org/D25269
32 +---
33 + CMakeLists.txt | 4 +++-
34 + KTp/CMakeLists.txt | 2 ++
35 + KTp/OTR/CMakeLists.txt | 1 +
36 + 3 files changed, 6 insertions(+), 1 deletion(-)
37 +
38 +diff --git a/CMakeLists.txt b/CMakeLists.txt
39 +index 187400e..2650321 100644
40 +--- a/CMakeLists.txt
41 ++++ b/CMakeLists.txt
42 +@@ -20,8 +20,10 @@ set (KTP_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIONS_VERSION_M
43 + set (KTP_MESSAGE_FILTER_FRAMEWORK_VERSION "5")
44 +
45 + find_package (Qt5 REQUIRED CONFIG COMPONENTS
46 ++ DBus
47 + Qml
48 +- Test)
49 ++ Test
50 ++ Xml)
51 +
52 + find_package (KF5 5.11 REQUIRED COMPONENTS
53 + CoreAddons
54 +diff --git a/KTp/CMakeLists.txt b/KTp/CMakeLists.txt
55 +index 85d578b..ffbce10 100644
56 +--- a/KTp/CMakeLists.txt
57 ++++ b/KTp/CMakeLists.txt
58 +@@ -91,6 +91,8 @@ set_target_properties(KTpCommonInternals PROPERTIES
59 +
60 + target_link_libraries (KTpCommonInternals
61 + PUBLIC
62 ++ Qt5::DBus
63 ++ Qt5::Xml
64 + KF5::Wallet #included from wallet-interface.h
65 + ${TELEPATHY_QT5_LIBRARIES}
66 + PRIVATE
67 +diff --git a/KTp/OTR/CMakeLists.txt b/KTp/OTR/CMakeLists.txt
68 +index 12e28de..0743e25 100644
69 +--- a/KTp/OTR/CMakeLists.txt
70 ++++ b/KTp/OTR/CMakeLists.txt
71 +@@ -28,6 +28,7 @@ generate_export_header(KTpOTR)
72 +
73 + target_link_libraries (KTpOTR
74 + PUBLIC
75 ++ Qt5::DBus
76 + ${TELEPATHY_QT5_LIBRARIES}
77 + PRIVATE
78 + KF5::I18n
79 +--
80 +2.24.0
81
82 diff --git a/kde-apps/ktp-common-internals/ktp-common-internals-19.08.3.ebuild b/kde-apps/ktp-common-internals/ktp-common-internals-19.08.3.ebuild
83 index ce1d9ddfacc..2df7d44da82 100644
84 --- a/kde-apps/ktp-common-internals/ktp-common-internals-19.08.3.ebuild
85 +++ b/kde-apps/ktp-common-internals/ktp-common-internals-19.08.3.ebuild
86 @@ -56,6 +56,8 @@ DEPEND="${RDEPEND}
87 >=dev-qt/qtnetwork-${QTMIN}:5
88 "
89
90 +PATCHES=( "${FILESDIR}/${P}-telepathy-0.9.8.patch" )
91 +
92 src_configure() {
93 local mycmakeargs=(
94 $(cmake-utils_use_find_package sso KAccounts)