Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/retroshare/files/, net-p2p/retroshare/
Date: Thu, 21 May 2020 18:13:56
Message-Id: 1590084816.bc4e11b46948e7d3fb18e80293c639988fc4869d.asturm@gentoo
1 commit: bc4e11b46948e7d3fb18e80293c639988fc4869d
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 21 17:14:15 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu May 21 18:13:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc4e11b4
7
8 net-p2p/retroshare: Drop 0.6.3-r2 and 0.6.4-r1
9
10 Bug: https://bugs.gentoo.org/697578
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 net-p2p/retroshare/Manifest | 2 -
15 .../files/retroshare-0.6.3-fix-comment.patch | 19 ---
16 .../files/retroshare-0.6.4-qt-5.11.patch | 63 --------
17 net-p2p/retroshare/metadata.xml | 2 -
18 net-p2p/retroshare/retroshare-0.6.3-r2.ebuild | 160 ---------------------
19 net-p2p/retroshare/retroshare-0.6.4-r1.ebuild | 155 --------------------
20 6 files changed, 401 deletions(-)
21
22 diff --git a/net-p2p/retroshare/Manifest b/net-p2p/retroshare/Manifest
23 index 8a44be70537..b3ae51167eb 100644
24 --- a/net-p2p/retroshare/Manifest
25 +++ b/net-p2p/retroshare/Manifest
26 @@ -1,3 +1 @@
27 -DIST retroshare-0.6.3.tar.gz 19699359 BLAKE2B 5a7a77b5ab43d44928e08fd1edc3bd6baa8b42f5c1e68fb079d3c60786c1068914a4f7a4b32fe4b683e7b990fac1bd09e5af66a09a3e9b7013e5b51b3c69ae8c SHA512 ee699ddc71aba3d20498d46e8183953b948896709d1469a5d5374b7c9b7955e460326b1ea3fe6f87e7235c5d2d5e8f042161410a0990b2dd2a44b42551fb5757
28 -DIST retroshare-0.6.4.tar.gz 20018361 BLAKE2B 63a32ee3a22f4df8b9f6cff149be2c9a9cf18ac895456c808885d510b261f683bf57141b8beb4a0206f7e61eb5c88ce505440956ccdf963ad6ad7f7a73679fb3 SHA512 7fcca6479b73cb4d70532fe46bb4cf24332d523b14a198a0e81689d0e00b62ca300d167be5ac282200e97f5fd9dc6b6c3a2c992ab1daa25846db1a404bf616f8
29 DIST retroshare-0.6.5.tar.gz 29377995 BLAKE2B 3a8909227080702e42e59b42301e873d4ece806e014a959080a3ae9df7d11564a6e6d915087a9ddd6d5c66d1e5c43895fa24dea8c0042fdce391c384a54182ee SHA512 a65fefb6baff42a81880a401c9005f73ac8180a247dd992a350f9bf5bac366ee6e809bf93cbbc31e80646156147a1d434306dadfbed1f69879ab61cfae3fddeb
30
31 diff --git a/net-p2p/retroshare/files/retroshare-0.6.3-fix-comment.patch b/net-p2p/retroshare/files/retroshare-0.6.3-fix-comment.patch
32 deleted file mode 100644
33 index 20652f180cd..00000000000
34 --- a/net-p2p/retroshare/files/retroshare-0.6.3-fix-comment.patch
35 +++ /dev/null
36 @@ -1,19 +0,0 @@
37 -commit b686771a38c93339ece773bd5ae4d0db1fa629b7
38 -Author: Gleb Nemshilov <gleb@××××××××.com>
39 -Date: Sun Aug 6 14:27:26 2017 +0700
40 -
41 - fix C++ comment to avoid compilation error
42 -
43 -diff --git a/supportlibs/pegmarkdown/utility_functions.c b/supportlibs/pegmarkdown/utility_functions.c
44 -index 08f910274..9445de420 100644
45 ---- a/supportlibs/pegmarkdown/utility_functions.c
46 -+++ b/supportlibs/pegmarkdown/utility_functions.c
47 -@@ -26,7 +26,7 @@ element *reverse(element *list) {
48 - element *new = NULL;
49 - element *next = NULL;
50 - #warning Phenom (2017-07-21): I don't know if it is a real memLeak for new. If not remove this warning and add a comment how it is deleted.
51 -- // cppcheck-suppress memleak
52 -+ /* cppcheck-suppress memleak */
53 - while (list != NULL) {
54 - next = list->next;
55 - new = cons(list, new);
56
57 diff --git a/net-p2p/retroshare/files/retroshare-0.6.4-qt-5.11.patch b/net-p2p/retroshare/files/retroshare-0.6.4-qt-5.11.patch
58 deleted file mode 100644
59 index 892cc89aff9..00000000000
60 --- a/net-p2p/retroshare/files/retroshare-0.6.4-qt-5.11.patch
61 +++ /dev/null
62 @@ -1,63 +0,0 @@
63 -From 428b331d8efede1e2f39f2fc49216c675d081030 Mon Sep 17 00:00:00 2001
64 -From: sehraf <sehraf42@×××××.com>
65 -Date: Fri, 25 May 2018 23:12:35 +0200
66 -Subject: [PATCH] fix for Qt 5.11
67 -
68 -Quote from Arch mailing list:
69 -- there's been a huge header cleanup in Qt modules. Expect build failures for applications that rely on transitive includes instead of declaring all required headers. Those need to be fixed upstream by explicitely adding the missing includes.
70 ----
71 - retroshare-gui/src/gui/Posted/PostedItem.cpp | 1 +
72 - retroshare-gui/src/gui/chat/ChatTabWidget.cpp | 2 ++
73 - retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp | 1 +
74 - retroshare-gui/src/gui/feeds/GxsForumMsgItem.cpp | 1 +
75 - 4 files changed, 5 insertions(+)
76 -
77 -diff --git a/retroshare-gui/src/gui/Posted/PostedItem.cpp b/retroshare-gui/src/gui/Posted/PostedItem.cpp
78 -index 7d70b3e157..8fc1cc6869 100644
79 ---- a/retroshare-gui/src/gui/Posted/PostedItem.cpp
80 -+++ b/retroshare-gui/src/gui/Posted/PostedItem.cpp
81 -@@ -22,6 +22,7 @@
82 - */
83 -
84 - #include <QDateTime>
85 -+#include <QStyle>
86 -
87 - #include "rshare.h"
88 - #include "PostedItem.h"
89 -diff --git a/retroshare-gui/src/gui/chat/ChatTabWidget.cpp b/retroshare-gui/src/gui/chat/ChatTabWidget.cpp
90 -index a965bbb323..6dd9c27576 100644
91 ---- a/retroshare-gui/src/gui/chat/ChatTabWidget.cpp
92 -+++ b/retroshare-gui/src/gui/chat/ChatTabWidget.cpp
93 -@@ -20,6 +20,8 @@
94 - * Boston, MA 02110-1301, USA.
95 - ****************************************************************/
96 -
97 -+#include <QTabBar>
98 -+
99 - #include "ChatTabWidget.h"
100 - #include "ui_ChatTabWidget.h"
101 - #include "ChatDialog.h"
102 -diff --git a/retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp b/retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp
103 -index d154408b73..72317640c7 100644
104 ---- a/retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp
105 -+++ b/retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp
106 -@@ -23,6 +23,7 @@
107 -
108 - #include <QTimer>
109 - #include <QFileInfo>
110 -+#include <QStyle>
111 -
112 - #include "rshare.h"
113 - #include "GxsChannelPostItem.h"
114 -diff --git a/retroshare-gui/src/gui/feeds/GxsForumMsgItem.cpp b/retroshare-gui/src/gui/feeds/GxsForumMsgItem.cpp
115 -index 97ac9dd75a..e9773aba9c 100644
116 ---- a/retroshare-gui/src/gui/feeds/GxsForumMsgItem.cpp
117 -+++ b/retroshare-gui/src/gui/feeds/GxsForumMsgItem.cpp
118 -@@ -23,6 +23,7 @@
119 -
120 - #include <QTimer>
121 - #include <QFileInfo>
122 -+#include <QStyle>
123 -
124 - #include "rshare.h"
125 - #include "GxsForumMsgItem.h"
126
127 diff --git a/net-p2p/retroshare/metadata.xml b/net-p2p/retroshare/metadata.xml
128 index 8c048e6d36a..836fec2f91a 100644
129 --- a/net-p2p/retroshare/metadata.xml
130 +++ b/net-p2p/retroshare/metadata.xml
131 @@ -20,12 +20,10 @@
132 <use>
133 <flag name="cli">Enables the CLI version of RetroShare</flag>
134 <flag name="control-socket">Enables API via Unix socket support</flag>
135 - <flag name="feedreader">Enables the Feedreader plugin</flag>
136 <flag name="gnome-keyring">Enables potentially insecure autologin capability via Gnome Keyring</flag>
137 <flag name="jsonapi">Enables the new RetroShare JSON API</flag>
138 <flag name="service">Enables the new RetroShare service controllable only through JSON API</flag>
139 <flag name="sqlcipher">Enables GXS database encryption via SQLCipher</flag>
140 - <flag name="voip">Enables VOIP plugin</flag>
141 <flag name="webui">Enables Web interface and API support</flag>
142 <flag name="xapian">Enables GXS content indexing and search through Xapian</flag>
143 </use>
144
145 diff --git a/net-p2p/retroshare/retroshare-0.6.3-r2.ebuild b/net-p2p/retroshare/retroshare-0.6.3-r2.ebuild
146 deleted file mode 100644
147 index 6d046cba38a..00000000000
148 --- a/net-p2p/retroshare/retroshare-0.6.3-r2.ebuild
149 +++ /dev/null
150 @@ -1,160 +0,0 @@
151 -# Copyright 1999-2020 Gentoo Authors
152 -# Distributed under the terms of the GNU General Public License v2
153 -
154 -EAPI=6
155 -
156 -inherit eutils gnome2-utils qmake-utils versionator
157 -
158 -DESCRIPTION="P2P private sharing application"
159 -HOMEPAGE="http://retroshare.net"
160 -SRC_URI="https://github.com/RetroShare/RetroShare/archive/v${PV}.tar.gz -> ${P}.tar.gz"
161 -
162 -# pegmarkdown can also be used with MIT
163 -LICENSE="GPL-2 GPL-3 Apache-2.0 LGPL-2.1"
164 -SLOT="0"
165 -KEYWORDS="amd64 x86"
166 -
167 -IUSE="cli feedreader gnome-keyring +gui voip"
168 -REQUIRED_USE="
169 - || ( cli gui )
170 - feedreader? ( gui )
171 - voip? ( gui )"
172 -
173 -RDEPEND="
174 - app-arch/bzip2
175 - dev-db/sqlcipher
176 - dev-libs/openssl:0
177 - dev-qt/qtcore:5
178 - dev-qt/qtmultimedia:5
179 - dev-qt/qtnetwork:5
180 - dev-qt/qtprintsupport:5
181 - dev-qt/qtscript:5
182 - dev-qt/qtxml:5
183 - net-libs/libmicrohttpd
184 - net-libs/libupnp:0
185 - sys-libs/zlib
186 - gnome-keyring? ( gnome-base/libgnome-keyring )
187 - feedreader? (
188 - dev-libs/libxml2
189 - dev-libs/libxslt
190 - net-misc/curl
191 - )
192 - gui? (
193 - dev-qt/designer:5
194 - dev-qt/qtgui:5
195 - dev-qt/qtwidgets:5
196 - dev-qt/qtx11extras:5
197 - x11-libs/libX11
198 - x11-libs/libXScrnSaver
199 - )
200 - voip? (
201 - media-libs/opencv[-qt4(-)]
202 - media-libs/speex
203 - media-libs/speexdsp
204 - media-video/ffmpeg[encode]
205 - )"
206 -DEPEND="${RDEPEND}
207 - virtual/pkgconfig
208 -"
209 -
210 -S="${WORKDIR}/RetroShare-${PV}"
211 -
212 -src_prepare() {
213 - local dir
214 -
215 - sed -i \
216 - -e "s|/usr/lib/retroshare/extensions6/|/usr/$(get_libdir)/${PN}/extensions6/|" \
217 - libretroshare/src/rsserver/rsinit.cc \
218 - || die "sed on libretroshare/src/rsserver/rsinit.cc failed"
219 -
220 - rs_src_dirs="libbitdht/src openpgpsdk/src libresapi/src libretroshare/src supportlibs/pegmarkdown"
221 - use cli && rs_src_dirs="${rs_src_dirs} retroshare-nogui/src"
222 - use feedreader && rs_src_dirs="${rs_src_dirs} plugins/FeedReader"
223 - use gui && rs_src_dirs="${rs_src_dirs} retroshare-gui/src"
224 - use voip && rs_src_dirs="${rs_src_dirs} plugins/VOIP"
225 -
226 - # Force linking to sqlcipher ONLY
227 - sed -i \
228 - -e '/isEmpty(SQLCIPHER_OK) {/aerror(libsqlcipher not found)' \
229 - retroshare-gui/src/retroshare-gui.pro \
230 - retroshare-nogui/src/retroshare-nogui.pro || die 'sed on retroshare-gui/src/retroshare-gui.pro failed'
231 -
232 - # Avoid openpgpsdk false dependency on qtgui
233 - sed -i '2iQT -= gui' openpgpsdk/src/openpgpsdk.pro || die
234 -
235 - # Fix version
236 - sed -i -e '/RS_BUILD_NUMBER/s/2/3/' libretroshare/src/retroshare/rsversion.in || die
237 -
238 - # Fix comment not allowed in C++11
239 - eapply "${FILESDIR}/${P}-fix-comment.patch"
240 -
241 - eapply_user
242 -}
243 -
244 -src_configure() {
245 - for dir in ${rs_src_dirs} ; do
246 - pushd "${S}/${dir}" >/dev/null || die
247 - eqmake5 $(use gnome-keyring && echo CONFIG+=rs_autologin)
248 - popd >/dev/null || die
249 - done
250 -}
251 -
252 -src_compile() {
253 - local dir
254 -
255 - for dir in ${rs_src_dirs} ; do
256 - emake -C "${dir}"
257 - done
258 -
259 - unset rs_src_dirs
260 -}
261 -
262 -src_install() {
263 - local i
264 - local extension_dir="/usr/$(get_libdir)/${PN}/extensions6/"
265 -
266 - use cli && dobin retroshare-nogui/src/retroshare-nogui
267 - use gui && dobin retroshare-gui/src/retroshare
268 -
269 - exeinto "${extension_dir}"
270 - use feedreader && doexe plugins/FeedReader/*.so*
271 - use voip && doexe plugins/VOIP/*.so*
272 -
273 - insinto /usr/share/retroshare
274 - doins libbitdht/src/bitdht/bdboot.txt
275 -
276 - doins -r libresapi/src/webui
277 -
278 - dodoc README.md
279 - make_desktop_entry retroshare
280 - for i in 24 48 64 128 ; do
281 - doicon -s ${i} "data/${i}x${i}/apps/retroshare.png"
282 - done
283 -}
284 -
285 -pkg_preinst() {
286 - local ver
287 - for ver in ${REPLACING_VERSIONS}; do
288 - if ! version_is_at_least 0.5.9999 ${ver}; then
289 - elog "You are upgrading from Retroshare 0.5.* to ${PV}"
290 - elog "Version 0.6.* is backward-incompatible with 0.5 branch"
291 - elog "and clients with 0.6.* can not connect to clients that have 0.5.*"
292 - elog "It's recommended to drop all your configuration and either"
293 - elog "generate a new certificate or import existing from a backup"
294 - break
295 - fi
296 - if version_is_at_least 0.6.0 ${ver}; then
297 - elog "Main executable was renamed upstream from RetroShare06 to retroshare"
298 - break
299 - fi
300 - done
301 - gnome2_icon_savelist
302 -}
303 -
304 -pkg_postinst() {
305 - gnome2_icon_cache_update
306 -}
307 -
308 -pkg_postrm() {
309 - gnome2_icon_cache_update
310 -}
311
312 diff --git a/net-p2p/retroshare/retroshare-0.6.4-r1.ebuild b/net-p2p/retroshare/retroshare-0.6.4-r1.ebuild
313 deleted file mode 100644
314 index 1e9543ef3ad..00000000000
315 --- a/net-p2p/retroshare/retroshare-0.6.4-r1.ebuild
316 +++ /dev/null
317 @@ -1,155 +0,0 @@
318 -# Copyright 1999-2020 Gentoo Authors
319 -# Distributed under the terms of the GNU General Public License v2
320 -
321 -EAPI=6
322 -
323 -inherit desktop gnome2-utils qmake-utils versionator
324 -
325 -DESCRIPTION="P2P private sharing application"
326 -HOMEPAGE="http://retroshare.net"
327 -SRC_URI="https://github.com/RetroShare/RetroShare/archive/v${PV}.tar.gz -> ${P}.tar.gz"
328 -
329 -# pegmarkdown can also be used with MIT
330 -LICENSE="GPL-2 GPL-3 Apache-2.0 LGPL-2.1"
331 -SLOT="0"
332 -KEYWORDS="amd64 x86"
333 -
334 -IUSE="cli feedreader gnome-keyring +gui voip"
335 -REQUIRED_USE="
336 - || ( cli gui )
337 - feedreader? ( gui )
338 - voip? ( gui )"
339 -
340 -RDEPEND="
341 - app-arch/bzip2
342 - dev-db/sqlcipher
343 - dev-libs/openssl:0
344 - dev-qt/qtcore:5
345 - dev-qt/qtmultimedia:5
346 - dev-qt/qtnetwork:5
347 - dev-qt/qtprintsupport:5
348 - dev-qt/qtscript:5
349 - dev-qt/qtxml:5
350 - net-libs/libmicrohttpd
351 - net-libs/libupnp:0
352 - sys-libs/zlib
353 - gnome-keyring? ( gnome-base/libgnome-keyring )
354 - feedreader? (
355 - dev-libs/libxml2
356 - dev-libs/libxslt
357 - net-misc/curl
358 - )
359 - gui? (
360 - dev-qt/designer:5
361 - dev-qt/qtgui:5
362 - dev-qt/qtwidgets:5
363 - dev-qt/qtx11extras:5
364 - x11-libs/libX11
365 - x11-libs/libXScrnSaver
366 - )
367 - voip? (
368 - media-libs/opencv[-qt4(-)]
369 - media-libs/speex
370 - media-libs/speexdsp
371 - media-video/ffmpeg[encode]
372 - )"
373 -DEPEND="${RDEPEND}
374 - virtual/pkgconfig
375 -"
376 -
377 -S="${WORKDIR}/RetroShare-${PV}"
378 -
379 -PATCHES=( "${FILESDIR}/${P}-qt-5.11.patch" )
380 -
381 -src_prepare() {
382 - default
383 -
384 - local dir
385 -
386 - sed -i \
387 - -e "s|/usr/lib/retroshare/extensions6/|/usr/$(get_libdir)/${PN}/extensions6/|" \
388 - libretroshare/src/rsserver/rsinit.cc \
389 - || die "sed on libretroshare/src/rsserver/rsinit.cc failed"
390 -
391 - rs_src_dirs="libbitdht/src openpgpsdk/src libresapi/src libretroshare/src supportlibs/pegmarkdown"
392 - use cli && rs_src_dirs="${rs_src_dirs} retroshare-nogui/src"
393 - use feedreader && rs_src_dirs="${rs_src_dirs} plugins/FeedReader"
394 - use gui && rs_src_dirs="${rs_src_dirs} retroshare-gui/src"
395 - use voip && rs_src_dirs="${rs_src_dirs} plugins/VOIP"
396 -
397 - # Force linking to sqlcipher ONLY
398 - sed -i \
399 - -e '/isEmpty(SQLCIPHER_OK) {/aerror(libsqlcipher not found)' \
400 - retroshare-gui/src/retroshare-gui.pro \
401 - retroshare-nogui/src/retroshare-nogui.pro || die 'sed on retroshare-gui/src/retroshare-gui.pro failed'
402 -
403 - # Avoid openpgpsdk false dependency on qtgui
404 - sed -i '2iQT -= gui' openpgpsdk/src/openpgpsdk.pro || die
405 -}
406 -
407 -src_configure() {
408 - for dir in ${rs_src_dirs} ; do
409 - pushd "${S}/${dir}" >/dev/null || die
410 - eqmake5 $(use gnome-keyring && echo CONFIG+=rs_autologin)
411 - popd >/dev/null || die
412 - done
413 -}
414 -
415 -src_compile() {
416 - local dir
417 -
418 - for dir in ${rs_src_dirs} ; do
419 - emake -C "${dir}"
420 - done
421 -
422 - unset rs_src_dirs
423 -}
424 -
425 -src_install() {
426 - local i
427 - local extension_dir="/usr/$(get_libdir)/${PN}/extensions6/"
428 -
429 - use cli && dobin retroshare-nogui/src/retroshare-nogui
430 - use gui && dobin retroshare-gui/src/retroshare
431 -
432 - exeinto "${extension_dir}"
433 - use feedreader && doexe plugins/FeedReader/*.so*
434 - use voip && doexe plugins/VOIP/*.so*
435 -
436 - insinto /usr/share/retroshare
437 - doins libbitdht/src/bitdht/bdboot.txt
438 -
439 - doins -r libresapi/src/webui
440 -
441 - dodoc README.md
442 - make_desktop_entry retroshare
443 - for i in 24 48 64 128 ; do
444 - doicon -s ${i} "data/${i}x${i}/apps/retroshare.png"
445 - done
446 -}
447 -
448 -pkg_preinst() {
449 - local ver
450 - for ver in ${REPLACING_VERSIONS}; do
451 - if ! version_is_at_least 0.5.9999 ${ver}; then
452 - elog "You are upgrading from Retroshare 0.5.* to ${PV}"
453 - elog "Version 0.6.* is backward-incompatible with 0.5 branch"
454 - elog "and clients with 0.6.* can not connect to clients that have 0.5.*"
455 - elog "It's recommended to drop all your configuration and either"
456 - elog "generate a new certificate or import existing from a backup"
457 - break
458 - fi
459 - if version_is_at_least 0.6.0 ${ver}; then
460 - elog "Main executable was renamed upstream from RetroShare06 to retroshare"
461 - break
462 - fi
463 - done
464 -}
465 -
466 -pkg_postinst() {
467 - gnome2_icon_cache_update
468 -}
469 -
470 -pkg_postrm() {
471 - gnome2_icon_cache_update
472 -}