Gentoo Archives: gentoo-commits

From: Sergey Popov <pinkbyte@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/retroshare/files/, net-p2p/retroshare/
Date: Mon, 07 Aug 2017 08:55:22
Message-Id: 1502096112.6a0047276f9fc04631f1c2131764705e60fd2c48.pinkbyte@gentoo
1 commit: 6a0047276f9fc04631f1c2131764705e60fd2c48
2 Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 7 08:54:33 2017 +0000
4 Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 7 08:55:12 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a004727
7
8 net-p2p/retroshare: version bump
9
10 Fix comment type to prevent compile error.
11 Sync live ebuild
12
13 Reported-by: Gleb <gleb <AT> fastmail.com>
14 Gentoo-Bug: 627150
15
16 Package-Manager: Portage-2.3.6, Repoman-2.3.1
17
18 net-p2p/retroshare/Manifest | 1 +
19 .../files/retroshare-0.6.3-fix-comment.patch | 19 +++++++++++++
20 ...are-0.6.9999.ebuild => retroshare-0.6.3.ebuild} | 33 +++++++++++++++-------
21 net-p2p/retroshare/retroshare-0.6.9999.ebuild | 16 +++++++----
22 4 files changed, 53 insertions(+), 16 deletions(-)
23
24 diff --git a/net-p2p/retroshare/Manifest b/net-p2p/retroshare/Manifest
25 index 780a57b574a..f00ff216e37 100644
26 --- a/net-p2p/retroshare/Manifest
27 +++ b/net-p2p/retroshare/Manifest
28 @@ -1 +1,2 @@
29 DIST retroshare-0.6.2.tar.gz 18523943 SHA256 76a3ae2f2089b14562d5be34602f5ae3c73a8549aecee246ea5e67d03018de2b SHA512 7b935321f436d72948c5c0286ef5e0236bd52d1b25f00980a3b3644ae4acbde043063279f90f6bc0356363bceda484aba57e160f34f013dde120b4f6969ef6c7 WHIRLPOOL 054f5ec8dbf70c89dabaccb50265bbf2a97fe1b2eab6c6a13d0b86f0dd1d4e4097e4eacf163fa75f4cd1225307e4c2d214dddb364de7a29b809c1dc0f767c32e
30 +DIST retroshare-0.6.3.tar.gz 19699359 SHA256 ddb64aa5148fdc950d4426f52f1cbb11578619b1242614e3c4ca4792ee5ce30b SHA512 ee699ddc71aba3d20498d46e8183953b948896709d1469a5d5374b7c9b7955e460326b1ea3fe6f87e7235c5d2d5e8f042161410a0990b2dd2a44b42551fb5757 WHIRLPOOL 38b78b920b4be88a313d3edad4e299c05667597a1945cd3455cbf2545a673f38ceb5b2cc4703a13b2f6a199b3ea72823934650446d51c144c0efdb946dd0a1d6
31
32 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
33 new file mode 100644
34 index 00000000000..20652f180cd
35 --- /dev/null
36 +++ b/net-p2p/retroshare/files/retroshare-0.6.3-fix-comment.patch
37 @@ -0,0 +1,19 @@
38 +commit b686771a38c93339ece773bd5ae4d0db1fa629b7
39 +Author: Gleb Nemshilov <gleb@××××××××.com>
40 +Date: Sun Aug 6 14:27:26 2017 +0700
41 +
42 + fix C++ comment to avoid compilation error
43 +
44 +diff --git a/supportlibs/pegmarkdown/utility_functions.c b/supportlibs/pegmarkdown/utility_functions.c
45 +index 08f910274..9445de420 100644
46 +--- a/supportlibs/pegmarkdown/utility_functions.c
47 ++++ b/supportlibs/pegmarkdown/utility_functions.c
48 +@@ -26,7 +26,7 @@ element *reverse(element *list) {
49 + element *new = NULL;
50 + element *next = NULL;
51 + #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.
52 +- // cppcheck-suppress memleak
53 ++ /* cppcheck-suppress memleak */
54 + while (list != NULL) {
55 + next = list->next;
56 + new = cons(list, new);
57
58 diff --git a/net-p2p/retroshare/retroshare-0.6.9999.ebuild b/net-p2p/retroshare/retroshare-0.6.3.ebuild
59 similarity index 79%
60 copy from net-p2p/retroshare/retroshare-0.6.9999.ebuild
61 copy to net-p2p/retroshare/retroshare-0.6.3.ebuild
62 index 15d6a116d95..8e7f93647e4 100644
63 --- a/net-p2p/retroshare/retroshare-0.6.9999.ebuild
64 +++ b/net-p2p/retroshare/retroshare-0.6.3.ebuild
65 @@ -3,16 +3,16 @@
66
67 EAPI=6
68
69 -EGIT_REPO_URI="https://github.com/RetroShare/RetroShare.git"
70 -inherit eutils git-r3 gnome2-utils qmake-utils versionator
71 +inherit eutils gnome2-utils qmake-utils versionator
72
73 DESCRIPTION="P2P private sharing application"
74 HOMEPAGE="http://retroshare.net"
75 +SRC_URI="https://github.com/RetroShare/RetroShare/archive/v${PV}.tar.gz -> ${P}.tar.gz"
76
77 # pegmarkdown can also be used with MIT
78 LICENSE="GPL-2 GPL-3 Apache-2.0 LGPL-2.1"
79 SLOT="0"
80 -KEYWORDS=""
81 +KEYWORDS="~amd64 ~x86"
82
83 IUSE="cli feedreader gnome-keyring +gui voip"
84 REQUIRED_USE="
85 @@ -53,7 +53,10 @@ RDEPEND="
86 virtual/ffmpeg[encode]
87 )"
88 DEPEND="${RDEPEND}
89 - virtual/pkgconfig"
90 + virtual/pkgconfig
91 +"
92 +
93 +S="${WORKDIR}/RetroShare-${PV}"
94
95 src_prepare() {
96 local dir
97 @@ -76,7 +79,13 @@ src_prepare() {
98 retroshare-nogui/src/retroshare-nogui.pro || die 'sed on retroshare-gui/src/retroshare-gui.pro failed'
99
100 # Avoid openpgpsdk false dependency on qtgui
101 - sed -i '2iQT -= gui' openpgpsdk/src/openpgpsdk.pro
102 + sed -i '2iQT -= gui' openpgpsdk/src/openpgpsdk.pro || die
103 +
104 + # Fix version
105 + sed -i -e '/RS_BUILD_NUMBER/s/2/3/' libretroshare/src/retroshare/rsversion.in || die
106 +
107 + # Fix comment not allowed in C++11
108 + eapply "${FILESDIR}/${P}-fix-comment.patch"
109
110 eapply_user
111 }
112 @@ -103,22 +112,22 @@ src_install() {
113 local i
114 local extension_dir="/usr/$(get_libdir)/${PN}/extensions6/"
115
116 - use cli && dobin retroshare-nogui/src/RetroShare06-nogui
117 - use gui && dobin retroshare-gui/src/RetroShare06
118 + use cli && dobin retroshare-nogui/src/retroshare-nogui
119 + use gui && dobin retroshare-gui/src/retroshare
120
121 exeinto "${extension_dir}"
122 use feedreader && doexe plugins/FeedReader/*.so*
123 use voip && doexe plugins/VOIP/*.so*
124
125 - insinto /usr/share/RetroShare06
126 + insinto /usr/share/retroshare
127 doins libbitdht/src/bitdht/bdboot.txt
128
129 doins -r libresapi/src/webui
130
131 dodoc README.md
132 - make_desktop_entry RetroShare06
133 + make_desktop_entry retroshare
134 for i in 24 48 64 128 ; do
135 - doicon -s ${i} "data/${i}x${i}/apps/retroshare06.png"
136 + doicon -s ${i} "data/${i}x${i}/apps/retroshare.png"
137 done
138 }
139
140 @@ -133,6 +142,10 @@ pkg_preinst() {
141 elog "generate a new certificate or import existing from a backup"
142 break
143 fi
144 + if version_is_at_least 0.6.0 ${ver}; then
145 + elog "Main executable was renamed upstream from RetroShare06 to retroshare"
146 + break
147 + fi
148 done
149 gnome2_icon_savelist
150 }
151
152 diff --git a/net-p2p/retroshare/retroshare-0.6.9999.ebuild b/net-p2p/retroshare/retroshare-0.6.9999.ebuild
153 index 15d6a116d95..2a62dc7dc3d 100644
154 --- a/net-p2p/retroshare/retroshare-0.6.9999.ebuild
155 +++ b/net-p2p/retroshare/retroshare-0.6.9999.ebuild
156 @@ -76,7 +76,7 @@ src_prepare() {
157 retroshare-nogui/src/retroshare-nogui.pro || die 'sed on retroshare-gui/src/retroshare-gui.pro failed'
158
159 # Avoid openpgpsdk false dependency on qtgui
160 - sed -i '2iQT -= gui' openpgpsdk/src/openpgpsdk.pro
161 + sed -i '2iQT -= gui' openpgpsdk/src/openpgpsdk.pro || die
162
163 eapply_user
164 }
165 @@ -103,22 +103,22 @@ src_install() {
166 local i
167 local extension_dir="/usr/$(get_libdir)/${PN}/extensions6/"
168
169 - use cli && dobin retroshare-nogui/src/RetroShare06-nogui
170 - use gui && dobin retroshare-gui/src/RetroShare06
171 + use cli && dobin retroshare-nogui/src/retroshare-nogui
172 + use gui && dobin retroshare-gui/src/retroshare
173
174 exeinto "${extension_dir}"
175 use feedreader && doexe plugins/FeedReader/*.so*
176 use voip && doexe plugins/VOIP/*.so*
177
178 - insinto /usr/share/RetroShare06
179 + insinto /usr/share/retroshare
180 doins libbitdht/src/bitdht/bdboot.txt
181
182 doins -r libresapi/src/webui
183
184 dodoc README.md
185 - make_desktop_entry RetroShare06
186 + make_desktop_entry retroshare
187 for i in 24 48 64 128 ; do
188 - doicon -s ${i} "data/${i}x${i}/apps/retroshare06.png"
189 + doicon -s ${i} "data/${i}x${i}/apps/retroshare.png"
190 done
191 }
192
193 @@ -133,6 +133,10 @@ pkg_preinst() {
194 elog "generate a new certificate or import existing from a backup"
195 break
196 fi
197 + if version_is_at_least 0.6.0 ${ver}; then
198 + elog "Main executable was renamed upstream from RetroShare06 to retroshare"
199 + break
200 + fi
201 done
202 gnome2_icon_savelist
203 }