1 |
commit: 4aeb8138d93cf2beb53622d4537e7c4a625948aa |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 26 21:33:15 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 26 21:34:22 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4aeb8138 |
7 |
|
8 |
net-im/swift: fix compilation with qt-5.15 |
9 |
|
10 |
Also fixed QA notice for -r3, that the icon cache was not updated. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/739068 |
13 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
14 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
15 |
|
16 |
.../files/swift-4.0.2-qt-5.15-compatibility.patch | 10 +++++++ |
17 |
net-im/swift/swift-4.0.2-r2.ebuild | 1 + |
18 |
...swift-4.0.2-r2.ebuild => swift-4.0.2-r4.ebuild} | 33 +++++++++++++--------- |
19 |
3 files changed, 30 insertions(+), 14 deletions(-) |
20 |
|
21 |
diff --git a/net-im/swift/files/swift-4.0.2-qt-5.15-compatibility.patch b/net-im/swift/files/swift-4.0.2-qt-5.15-compatibility.patch |
22 |
new file mode 100644 |
23 |
index 00000000000..37918db1980 |
24 |
--- /dev/null |
25 |
+++ b/net-im/swift/files/swift-4.0.2-qt-5.15-compatibility.patch |
26 |
@@ -0,0 +1,10 @@ |
27 |
+--- a/Swift/QtUI/Roster/GroupItemDelegate.cpp |
28 |
++++ b/Swift/QtUI/Roster/GroupItemDelegate.cpp |
29 |
+@@ -7,6 +7,7 @@ |
30 |
+ #include <Swift/QtUI/Roster/GroupItemDelegate.h> |
31 |
+ |
32 |
+ #include <QPainter> |
33 |
++#include <QPainterPath> |
34 |
+ #include <QPen> |
35 |
+ #include <QtDebug> |
36 |
+ |
37 |
|
38 |
diff --git a/net-im/swift/swift-4.0.2-r2.ebuild b/net-im/swift/swift-4.0.2-r2.ebuild |
39 |
index b24e201e652..7075d51f6f8 100644 |
40 |
--- a/net-im/swift/swift-4.0.2-r2.ebuild |
41 |
+++ b/net-im/swift/swift-4.0.2-r2.ebuild |
42 |
@@ -67,6 +67,7 @@ PATCHES=( |
43 |
"${FILESDIR}"/${P}-boost-1.69-compatibility.patch |
44 |
"${FILESDIR}"/${P}-make-generated-files-handle-unicode-characters.patch |
45 |
"${FILESDIR}"/${P}-qt-5.11-compatibility.patch |
46 |
+ "${FILESDIR}"/${P}-qt-5.15-compatibility.patch |
47 |
) |
48 |
|
49 |
src_prepare() { |
50 |
|
51 |
diff --git a/net-im/swift/swift-4.0.2-r2.ebuild b/net-im/swift/swift-4.0.2-r4.ebuild |
52 |
similarity index 84% |
53 |
copy from net-im/swift/swift-4.0.2-r2.ebuild |
54 |
copy to net-im/swift/swift-4.0.2-r4.ebuild |
55 |
index b24e201e652..f32b568d38f 100644 |
56 |
--- a/net-im/swift/swift-4.0.2-r2.ebuild |
57 |
+++ b/net-im/swift/swift-4.0.2-r4.ebuild |
58 |
@@ -1,18 +1,22 @@ |
59 |
# Copyright 1999-2020 Gentoo Authors |
60 |
# Distributed under the terms of the GNU General Public License v2 |
61 |
|
62 |
-EAPI=6 |
63 |
+EAPI=7 |
64 |
|
65 |
-inherit gnome2-utils scons-utils toolchain-funcs |
66 |
+PYTHON_COMPAT=( python3_{6..9} ) |
67 |
+ |
68 |
+inherit python-any-r1 scons-utils toolchain-funcs xdg-utils |
69 |
|
70 |
DESCRIPTION="An elegant, secure, adaptable and intuitive XMPP Client" |
71 |
HOMEPAGE="https://www.swift.im/" |
72 |
-SRC_URI="https://swift.im/downloads/releases/${P}/${P}.tar.gz" |
73 |
+SRC_URI=" |
74 |
+ https://swift.im/downloads/releases/${P}/${P}.tar.gz |
75 |
+ https://dev.gentoo.org/~conikost/distfiles/patches/swift-4.0.2-python3-compatibility.patch.gz" |
76 |
|
77 |
LICENSE="BSD BSD-1 CC-BY-3.0 GPL-3 OFL-1.1" |
78 |
SLOT="4/0" |
79 |
-KEYWORDS="amd64" |
80 |
-IUSE="client expat gconf +icu +idn lua spell test zeroconf" |
81 |
+KEYWORDS="~amd64" |
82 |
+IUSE="+client expat gconf +icu +idn lua spell test zeroconf" |
83 |
REQUIRED_USE=" |
84 |
|| ( icu idn ) |
85 |
gconf? ( client ) |
86 |
@@ -25,7 +29,7 @@ RDEPEND=" |
87 |
dev-libs/openssl:0= |
88 |
net-libs/libnatpmp |
89 |
net-libs/miniupnpc:= |
90 |
- sys-libs/zlib:= |
91 |
+ sys-libs/zlib |
92 |
client? ( |
93 |
dev-qt/qtcore:5 |
94 |
dev-qt/qtdbus:5 |
95 |
@@ -65,8 +69,9 @@ DOCS=( |
96 |
|
97 |
PATCHES=( |
98 |
"${FILESDIR}"/${P}-boost-1.69-compatibility.patch |
99 |
- "${FILESDIR}"/${P}-make-generated-files-handle-unicode-characters.patch |
100 |
+ "${WORKDIR}"/${P}-python3-compatibility.patch |
101 |
"${FILESDIR}"/${P}-qt-5.11-compatibility.patch |
102 |
+ "${FILESDIR}"/${P}-qt-5.15-compatibility.patch |
103 |
) |
104 |
|
105 |
src_prepare() { |
106 |
@@ -185,11 +190,11 @@ src_test() { |
107 |
|
108 |
src_install() { |
109 |
local myesconsinstall=( |
110 |
- SWIFTEN_INSTALLDIR="${ED%/}/usr" |
111 |
- SWIFTEN_LIBDIR="${ED%/}/usr/$(get_libdir)" |
112 |
- $(usex client "SWIFT_INSTALLDIR=${ED%/}/usr" '') |
113 |
- $(usex lua "SLUIFT_DIR=${ED%/}/usr" '') |
114 |
- $(usex lua "SLUIFT_INSTALLDIR=${ED%/}/usr" '') |
115 |
+ SWIFTEN_INSTALLDIR="${ED}/usr" |
116 |
+ SWIFTEN_LIBDIR="${ED}/usr/$(get_libdir)" |
117 |
+ $(usex client "SWIFT_INSTALLDIR=${ED}/usr" '') |
118 |
+ $(usex lua "SLUIFT_DIR=${ED}/usr" '') |
119 |
+ $(usex lua "SLUIFT_INSTALLDIR=${ED}/usr" '') |
120 |
"${ED}" |
121 |
) |
122 |
|
123 |
@@ -203,9 +208,9 @@ src_install() { |
124 |
} |
125 |
|
126 |
pkg_postinst() { |
127 |
- use client && gnome2_icon_cache_update |
128 |
+ use client && xdg_icon_cache_update |
129 |
} |
130 |
|
131 |
pkg_postrm() { |
132 |
- use client && gnome2_icon_cache_update |
133 |
+ use client && xdg_icon_cache_update |
134 |
} |