1 |
commit: 8e7fdb875b08331f913bffd10d0dd33dc63e6c2c |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 6 20:46:12 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 6 20:51:05 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e7fdb87 |
7 |
|
8 |
net-p2p/qbittorrent: 3.3.11 version bump |
9 |
|
10 |
Update HOMEPAGE |
11 |
metadata.xml: Indentation, upstream remote-id |
12 |
|
13 |
Gentoo-bug: 607722, 611854 |
14 |
|
15 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
16 |
|
17 |
net-p2p/qbittorrent/Manifest | 1 + |
18 |
.../files/qbittorrent-3.3.11-build.patch | 50 +++++++++++++++++++ |
19 |
net-p2p/qbittorrent/metadata.xml | 28 +++++------ |
20 |
net-p2p/qbittorrent/qbittorrent-3.3.11.ebuild | 57 ++++++++++++++++++++++ |
21 |
4 files changed, 122 insertions(+), 14 deletions(-) |
22 |
|
23 |
diff --git a/net-p2p/qbittorrent/Manifest b/net-p2p/qbittorrent/Manifest |
24 |
index 959151e6ae9..9507220f1d5 100644 |
25 |
--- a/net-p2p/qbittorrent/Manifest |
26 |
+++ b/net-p2p/qbittorrent/Manifest |
27 |
@@ -1,3 +1,4 @@ |
28 |
DIST qbittorrent-3.1.12.tar.xz 2465744 SHA256 d5d5b27958297f0b14cf03af8dd24a0d2a990e108c9a7a6159e4a2fbb1111c83 SHA512 af7cbb1a3158cd1fd6c28f17f1dbb62d94c9d192068b5a683b6b0e19e43664f3d312da055c5c19de75b5849c812b7aa9a0c966a7e464c120e0006bb1ea5a6e5a WHIRLPOOL 632fabec4c33104e55c73433028923033e65f37624aba37649e4f6f5593038fa9868e48787db7b1659690456835fc55dc542510d2f60732c66452d3c748508bf |
29 |
DIST qbittorrent-3.3.10.tar.xz 2959380 SHA256 2c657ceacdc84033da044a0a9ecba7e0fdb35858324dc097546f989166f1a8d2 SHA512 4f4e7071fa6db75ed2b5fbf5f17d5a9634aa5f2ed9fbcec52e6a0112967f5832e998384c7ff4962b1e00a0f847fa5d39bcdba36f997b5b895c7688e0dd247516 WHIRLPOOL 950b49d7a15aa7cf16dfe2bbfba72959e91f21f85ba589ce85be370b8b21c03fb389d404ed46ad2c802e3a57660094fe644b20df9bc3a0714cb5d9ea965e1b97 |
30 |
+DIST qbittorrent-3.3.11.tar.xz 2986312 SHA256 4892ac5ed4bde2ed325fb67456698e703bb933b9eb1d146598259f4e2154a760 SHA512 1f7d4a40b7f966e710d4cbed721074d53b0478ed1970932dee32b73ea210251cbd3807912e9c9a00371fa41f5c947c59443bbda4925b022fbe88fc23b3f225c5 WHIRLPOOL 5fb2e0456d81b104e5545329a301040c81a18b25798e831ab8f780f8ee19d09c12f5315d5581243e141f7a00eb938ab449927871c70a4bf5e9c2e6dd71d4aca3 |
31 |
DIST qbittorrent-3.3.7.tar.xz 2884792 SHA256 72dc824a90fadc0825e6be6f1c215e38f976262c7f83b625061d542b2b664c40 SHA512 c33ae47bd78e79197fd499e9541ce20a30c0ee582c6696f72b792a46324a42bffbe2140f6dcb89c05d9366b7332845e108c661c0458e94ca5739cfc71be4dafc WHIRLPOOL 753efd5e30c725d77e241bfc4cee63f089109b4a85bab5224e5445d141605c07bb8873531245d17f577252ae1d90041457848e9290ecb2384d96f2a20bbf6f66 |
32 |
|
33 |
diff --git a/net-p2p/qbittorrent/files/qbittorrent-3.3.11-build.patch b/net-p2p/qbittorrent/files/qbittorrent-3.3.11-build.patch |
34 |
new file mode 100644 |
35 |
index 00000000000..372fb267630 |
36 |
--- /dev/null |
37 |
+++ b/net-p2p/qbittorrent/files/qbittorrent-3.3.11-build.patch |
38 |
@@ -0,0 +1,50 @@ |
39 |
+From b3c973612f5cfcd97d9921330ee606ab9c8cd269 Mon Sep 17 00:00:00 2001 |
40 |
+From: Chocobo1 <Chocobo1@××××××××××××××××××××.com> |
41 |
+Date: Sat, 4 Mar 2017 15:48:37 +0800 |
42 |
+Subject: [PATCH] =?UTF-8?q?Fix=20compile=20error:=20=E2=80=98escape?= |
43 |
+ =?UTF-8?q?=E2=80=99=20is=20not=20a=20member=20of=20=E2=80=98Qt=E2=80=99?= |
44 |
+MIME-Version: 1.0 |
45 |
+Content-Type: text/plain; charset=UTF-8 |
46 |
+Content-Transfer-Encoding: 8bit |
47 |
+ |
48 |
+--- |
49 |
+ src/base/utils/string.cpp | 20 +++++++++++++++++++- |
50 |
+ 1 file changed, 19 insertions(+), 1 deletion(-) |
51 |
+ |
52 |
+diff --git a/src/base/utils/string.cpp b/src/base/utils/string.cpp |
53 |
+index 7d76d9a..6c713b1 100644 |
54 |
+--- a/src/base/utils/string.cpp |
55 |
++++ b/src/base/utils/string.cpp |
56 |
+@@ -34,6 +34,7 @@ |
57 |
+ #include <QByteArray> |
58 |
+ #include <QtGlobal> |
59 |
+ #include <QLocale> |
60 |
++ |
61 |
+ #ifdef QBT_USES_QT5 |
62 |
+ #include <QCollator> |
63 |
+ #endif |
64 |
+@@ -217,6 +218,23 @@ QString Utils::String::toHtmlEscaped(const QString &str) |
65 |
+ #ifdef QBT_USES_QT5 |
66 |
+ return str.toHtmlEscaped(); |
67 |
+ #else |
68 |
+- return Qt::escape(str); |
69 |
++ // code from Qt |
70 |
++ QString rich; |
71 |
++ const int len = str.length(); |
72 |
++ rich.reserve(int(len * 1.1)); |
73 |
++ for (int i = 0; i < len; ++i) { |
74 |
++ if (str.at(i) == QLatin1Char('<')) |
75 |
++ rich += QLatin1String("<"); |
76 |
++ else if (str.at(i) == QLatin1Char('>')) |
77 |
++ rich += QLatin1String(">"); |
78 |
++ else if (str.at(i) == QLatin1Char('&')) |
79 |
++ rich += QLatin1String("&"); |
80 |
++ else if (str.at(i) == QLatin1Char('"')) |
81 |
++ rich += QLatin1String("""); |
82 |
++ else |
83 |
++ rich += str.at(i); |
84 |
++ } |
85 |
++ rich.squeeze(); |
86 |
++ return rich; |
87 |
+ #endif |
88 |
+ } |
89 |
|
90 |
diff --git a/net-p2p/qbittorrent/metadata.xml b/net-p2p/qbittorrent/metadata.xml |
91 |
index 5901c3cdacc..b8639b7c10e 100644 |
92 |
--- a/net-p2p/qbittorrent/metadata.xml |
93 |
+++ b/net-p2p/qbittorrent/metadata.xml |
94 |
@@ -1,18 +1,18 @@ |
95 |
<?xml version="1.0" encoding="UTF-8"?> |
96 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
97 |
<pkgmetadata> |
98 |
- <maintainer type="person"> |
99 |
- <email>hwoarang@g.o</email> |
100 |
- <name>Markos Chandras</name> |
101 |
- </maintainer> |
102 |
- <maintainer type="project"> |
103 |
- <email>qt@g.o</email> |
104 |
- <name>Gentoo Qt Project</name> |
105 |
- </maintainer> |
106 |
- <use> |
107 |
- <flag name="webui">Enable the Web UI</flag> |
108 |
- </use> |
109 |
- <upstream> |
110 |
- <remote-id type="sourceforge">qbittorrent</remote-id> |
111 |
- </upstream> |
112 |
+ <maintainer type="person"> |
113 |
+ <email>hwoarang@g.o</email> |
114 |
+ <name>Markos Chandras</name> |
115 |
+ </maintainer> |
116 |
+ <maintainer type="project"> |
117 |
+ <email>qt@g.o</email> |
118 |
+ <name>Gentoo Qt Project</name> |
119 |
+ </maintainer> |
120 |
+ <use> |
121 |
+ <flag name="webui">Enable the Web UI</flag> |
122 |
+ </use> |
123 |
+ <upstream> |
124 |
+ <remote-id type="github">qbittorrent/qBittorrent</remote-id> |
125 |
+ </upstream> |
126 |
</pkgmetadata> |
127 |
|
128 |
diff --git a/net-p2p/qbittorrent/qbittorrent-3.3.11.ebuild b/net-p2p/qbittorrent/qbittorrent-3.3.11.ebuild |
129 |
new file mode 100644 |
130 |
index 00000000000..1221fe2d7a4 |
131 |
--- /dev/null |
132 |
+++ b/net-p2p/qbittorrent/qbittorrent-3.3.11.ebuild |
133 |
@@ -0,0 +1,57 @@ |
134 |
+# Copyright 1999-2017 Gentoo Foundation |
135 |
+# Distributed under the terms of the GNU General Public License v2 |
136 |
+ |
137 |
+EAPI=6 |
138 |
+ |
139 |
+inherit cmake-utils |
140 |
+ |
141 |
+DESCRIPTION="BitTorrent client in C++ and Qt" |
142 |
+HOMEPAGE="https://www.qbittorrent.org/" |
143 |
+ |
144 |
+if [[ ${PV} == *9999 ]]; then |
145 |
+ inherit git-r3 |
146 |
+ EGIT_REPO_URI="https://github.com/${PN}/qBittorrent.git" |
147 |
+else |
148 |
+ MY_P=${P/_} |
149 |
+ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz" |
150 |
+ KEYWORDS="~amd64 ~arm ~ppc64 ~x86" |
151 |
+ S=${WORKDIR}/${MY_P} |
152 |
+fi |
153 |
+ |
154 |
+LICENSE="GPL-2" |
155 |
+SLOT="0" |
156 |
+IUSE="+dbus debug webui +X" |
157 |
+REQUIRED_USE="dbus? ( X )" |
158 |
+ |
159 |
+RDEPEND=" |
160 |
+ >=dev-libs/boost-1.62.0-r1:= |
161 |
+ dev-qt/qtconcurrent:5 |
162 |
+ dev-qt/qtcore:5 |
163 |
+ dev-qt/qtnetwork:5[ssl] |
164 |
+ >=dev-qt/qtsingleapplication-2.6.1_p20130904-r1[qt5,X?] |
165 |
+ dev-qt/qtxml:5 |
166 |
+ >=net-libs/rb_libtorrent-1.0.6 |
167 |
+ sys-libs/zlib |
168 |
+ dbus? ( dev-qt/qtdbus:5 ) |
169 |
+ X? ( |
170 |
+ dev-qt/qtgui:5 |
171 |
+ dev-qt/qtwidgets:5 |
172 |
+ )" |
173 |
+DEPEND="${RDEPEND} |
174 |
+ dev-qt/linguist-tools:5 |
175 |
+ virtual/pkgconfig" |
176 |
+ |
177 |
+DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md TODO ) |
178 |
+ |
179 |
+PATCHES=( "${FILESDIR}"/${P}-build.patch ) |
180 |
+ |
181 |
+src_configure() { |
182 |
+ local mycmakeargs=( |
183 |
+ -DQT5=ON |
184 |
+ -DSYSTEM_QTSINGLEAPPLICATION=ON |
185 |
+ -DDBUS=$(usex dbus) |
186 |
+ -DGUI=$(usex X) |
187 |
+ -DWEBUI=$(usex webui) |
188 |
+ ) |
189 |
+ cmake-utils_src_configure |
190 |
+} |