Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/guayadeque/files/, media-sound/guayadeque/
Date: Sat, 29 Aug 2020 15:52:45
Message-Id: 1598716352.96720b82caced823b5f52e6fd83d1d088e79854b.fordfrog@gentoo
1 commit: 96720b82caced823b5f52e6fd83d1d088e79854b
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 29 15:51:42 2020 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 29 15:52:32 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96720b82
7
8 media-sound/guayadeque: bump to 0.4.6 + updated live
9
10 1) eapi7
11 2) dropped media-libs/gnonlin:1.0 dep
12 3) updated and organized deps
13 4) fixed metadata installation
14 5) added xdg
15
16 Bug: https://bugs.gentoo.org/724554
17 Bug: https://bugs.gentoo.org/658636
18 Package-Manager: Portage-3.0.4, Repoman-3.0.1
19 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
20
21 media-sound/guayadeque/Manifest | 1 +
22 .../guayadeque/files/guayadeque-0.4.6-gcc10.patch | 70 ++++++++++++++++++++++
23 .../files/guayadeque-0.4.6-metadata.patch | 13 ++++
24 ...yadeque-9999.ebuild => guayadeque-0.4.6.ebuild} | 52 ++++++++--------
25 media-sound/guayadeque/guayadeque-9999.ebuild | 51 +++++++---------
26 5 files changed, 131 insertions(+), 56 deletions(-)
27
28 diff --git a/media-sound/guayadeque/Manifest b/media-sound/guayadeque/Manifest
29 index a1229d29952..0daed0c6708 100644
30 --- a/media-sound/guayadeque/Manifest
31 +++ b/media-sound/guayadeque/Manifest
32 @@ -1 +1,2 @@
33 DIST guayadeque-0.4.5_p20170110.tar.gz 2070855 BLAKE2B a8783a61df636e3ddf1473ba20450c89eeb977e06491e840743e7b8a7aa1a7515138ecf8f6c92a27f0c762363ef12c094927192b254ae238196ac6d967fd84d1 SHA512 57215ba47574fba615b33d72f45279c3726035bea38746f7d927a39866fb3fa8a3fb1dbd13fe672c7daba16a2131fbf4b89afed6a3bf8d9a584e5112d926f518
34 +DIST guayadeque-0.4.6.tar.gz 2074965 BLAKE2B a6076a60f6560f51f1fa1ac7aca0529823d6579726049cfda212ae42e62c6f86ca18e8c06aa60d8e23c8accf51d4363ebe4b69b50ce5224f7db3215c32acf12f SHA512 d353aa492b393a5043cdab2d151d715381c3d9d50cad393ca5687b5c556257641fc2b5eda53772098c8c0621fba88ae693179d07a1085d5b69aab1e5d06459a7
35
36 diff --git a/media-sound/guayadeque/files/guayadeque-0.4.6-gcc10.patch b/media-sound/guayadeque/files/guayadeque-0.4.6-gcc10.patch
37 new file mode 100644
38 index 00000000000..41529d20c05
39 --- /dev/null
40 +++ b/media-sound/guayadeque/files/guayadeque-0.4.6-gcc10.patch
41 @@ -0,0 +1,70 @@
42 +From 6be35ba2153f1c36400b8c535d8ba49292a1f51e Mon Sep 17 00:00:00 2001
43 +From: Juan Rios <anonbeat@×××××.com>
44 +Date: Wed, 20 May 2020 05:23:22 +0100
45 +Subject: [PATCH] Fix compilation with gcc and fix some warnings with wxString
46 + Trim
47 +
48 +---
49 + src/ui/jamendo/Jamendo.cpp | 5 ++---
50 + src/ui/mediaviewer/playlists/PlayListFile.cpp | 4 ++--
51 + src/ui/podcasts/PodcastsPanel.cpp | 2 +-
52 + 3 files changed, 5 insertions(+), 6 deletions(-)
53 +
54 +diff --git a/src/ui/jamendo/Jamendo.cpp b/src/ui/jamendo/Jamendo.cpp
55 +index 8725bb60..107cadd7 100644
56 +--- a/src/ui/jamendo/Jamendo.cpp
57 ++++ b/src/ui/jamendo/Jamendo.cpp
58 +@@ -487,7 +487,7 @@ guJamendoUpdateThread::~guJamendoUpdateThread()
59 + }
60 + }
61 +
62 +-#if 0
63 ++/*
64 + <JamendoData epoch="1282819258" documentation="http://developer.jamendo.com/en/wiki/DatabaseDumps" type="artistalbumtrack">
65 + <Artists>
66 + <artist>
67 +@@ -538,8 +538,7 @@ guJamendoUpdateThread::~guJamendoUpdateThread()
68 + </artist>
69 + ...
70 + </Artists>
71 +-#endif
72 +-
73 ++*/
74 +
75 + // -------------------------------------------------------------------------------- //
76 + void ReadJamendoXmlTrack( wxXmlNode * xmlnode, guJamendoUpdateThread * thread, guTrack * track )
77 +diff --git a/src/ui/mediaviewer/playlists/PlayListFile.cpp b/src/ui/mediaviewer/playlists/PlayListFile.cpp
78 +index a7ae4a4d..e038e20b 100644
79 +--- a/src/ui/mediaviewer/playlists/PlayListFile.cpp
80 ++++ b/src/ui/mediaviewer/playlists/PlayListFile.cpp
81 +@@ -287,7 +287,7 @@ bool guPlaylistFile::ReadM3uStream( wxInputStream &playlist, const wxString &pat
82 + int Count = Lines.Count();
83 + for( Index = 0; Index < Count; Index++ )
84 + {
85 +- Lines[ Index ].Trim( wxString::both );
86 ++ Lines[ Index ].Trim( false ).Trim( true );
87 + if( Lines[ Index ].IsEmpty() || ( Lines[ Index ].Find( wxT( "#EXTM3U" ) ) != wxNOT_FOUND ) )
88 + {
89 + continue;
90 +@@ -676,7 +676,7 @@ bool guCuePlaylistFile::LoadFromText( const wxString &content )
91 + int Count = Lines.Count();
92 + for( Index = 0; Index < Count; Index++ )
93 + {
94 +- Lines[ Index ].Trim( wxString::both );
95 ++ Lines[ Index ].Trim( false ).Trim( true );
96 + wxString Line = Lines[ Index ];
97 + //guLogMessage( wxT( "'%s'" ), Line.c_str() );
98 + wxArrayString Keys = wxStringTokenize( Line, wxT( " " ) );
99 +diff --git a/src/ui/podcasts/PodcastsPanel.cpp b/src/ui/podcasts/PodcastsPanel.cpp
100 +index b715bd29..f242608d 100644
101 +--- a/src/ui/podcasts/PodcastsPanel.cpp
102 ++++ b/src/ui/podcasts/PodcastsPanel.cpp
103 +@@ -1193,7 +1193,7 @@ void guPodcastPanel::AddChannel( wxCommandEvent &event )
104 + wxSetCursor( * wxHOURGLASS_CURSOR );
105 + wxTheApp->Yield();
106 +
107 +- wxString PodcastUrl = NewPodcastChannel->GetValue().Trim( wxString::both );
108 ++ wxString PodcastUrl = NewPodcastChannel->GetValue().Trim( false ).Trim( true );
109 + if( !PodcastUrl.IsEmpty() )
110 + {
111 + // If we find an itunes link we replace the itpc to the standard http
112
113 diff --git a/media-sound/guayadeque/files/guayadeque-0.4.6-metadata.patch b/media-sound/guayadeque/files/guayadeque-0.4.6-metadata.patch
114 new file mode 100644
115 index 00000000000..b35be4f133f
116 --- /dev/null
117 +++ b/media-sound/guayadeque/files/guayadeque-0.4.6-metadata.patch
118 @@ -0,0 +1,13 @@
119 +diff --git a/CMakeLists.txt b/CMakeLists.txt
120 +index e46d921..40e640e 100644
121 +--- a/CMakeLists.txt
122 ++++ b/CMakeLists.txt
123 +@@ -158,7 +158,7 @@ ADD_SUBDIRECTORY( po )
124 + # freedesktop.org-specific files
125 + INSTALL( FILES defconfig/guayadeque.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications )
126 + INSTALL( FILES defconfig/guayadeque.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pixmaps )
127 +-INSTALL( FILES defconfig/guayadeque.appdata.xml DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/appdata )
128 ++INSTALL( FILES defconfig/guayadeque.appdata.xml DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metadata )
129 +
130 + # program-specific files
131 + INSTALL( FILES defconfig/guayadeque.default.conf DESTINATION ${CMAKE_INSTALL_DATADIR}/guayadeque )
132
133 diff --git a/media-sound/guayadeque/guayadeque-9999.ebuild b/media-sound/guayadeque/guayadeque-0.4.6.ebuild
134 similarity index 77%
135 copy from media-sound/guayadeque/guayadeque-9999.ebuild
136 copy to media-sound/guayadeque/guayadeque-0.4.6.ebuild
137 index eea72853844..d9bb5a09547 100644
138 --- a/media-sound/guayadeque/guayadeque-9999.ebuild
139 +++ b/media-sound/guayadeque/guayadeque-0.4.6.ebuild
140 @@ -1,37 +1,32 @@
141 # Copyright 1999-2020 Gentoo Authors
142 # Distributed under the terms of the GNU General Public License v2
143
144 -EAPI=6
145 +EAPI=7
146
147 WX_GTK_VER=3.0
148
149 +inherit cmake wxwidgets xdg
150 +
151 if [[ ${PV} == *9999 ]]; then
152 - SCM="git-r3"
153 + inherit git-r3
154 EGIT_REPO_URI=${EGIT_REPO_URI:-https://github.com/anonbeat/guayadeque}
155 EGIT_BRANCH=${EGIT_BRANCH:-master}
156 +else
157 + SRC_URI="https://github.com/anonbeat/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
158 fi
159
160 -inherit cmake-utils vcs-snapshot wxwidgets $SCM
161 -
162 DESCRIPTION="Music management program designed for all music enthusiasts"
163 HOMEPAGE="https://guayadeque.org/"
164 -if [[ ${PV} != *9999 ]]; then
165 - COMMIT=...
166 - SRC_URI="https://github.com/anonbeat/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
167 - KEYWORDS="~amd64 ~x86"
168 -else
169 - KEYWORDS=""
170 -fi
171
172 LICENSE="GPL-3+"
173 SLOT="0"
174 +KEYWORDS="~amd64 ~x86"
175 IUSE="appindicator ipod +minimal"
176
177 # No test available, Making src_test fail
178 RESTRICT="test"
179
180 GST_DEPS="
181 - media-libs/gnonlin:1.0
182 media-plugins/gst-plugins-libav:1.0
183 media-plugins/gst-plugins-libnice:1.0
184 media-plugins/gst-plugins-pulse:1.0
185 @@ -39,25 +34,32 @@ GST_DEPS="
186 media-libs/gst-plugins-bad:1.0
187 media-libs/gst-plugins-ugly:1.0
188 "
189 +BDEPEND="
190 + sys-devel/gettext
191 + virtual/pkgconfig
192 +"
193 RDEPEND="
194 dev-db/sqlite:3
195 - >=dev-db/wxsqlite3-3.2.1
196 + dev-db/wxsqlite3
197 dev-libs/glib:2
198 media-libs/flac
199 media-libs/gst-plugins-base:1.0
200 media-libs/gst-plugins-good:1.0
201 media-libs/gstreamer:1.0
202 - >=media-libs/taglib-1.6.4
203 + media-libs/taglib
204 net-misc/curl
205 sys-apps/dbus
206 x11-libs/wxGTK:${WX_GTK_VER}[X]
207 appindicator? ( >=dev-libs/libindicate-0.7 )
208 ipod? ( media-libs/libgpod )
209 !minimal? ( ${GST_DEPS} )"
210 -DEPEND="${RDEPEND}
211 - app-arch/unzip
212 - sys-devel/gettext
213 - virtual/pkgconfig"
214 +DEPEND="${RDEPEND}"
215 +
216 +PATCHES=(
217 + "${FILESDIR}/${PN}-0.4.5_p20170110-missing-aui-component.patch"
218 + "${FILESDIR}/${P}-gcc10.patch"
219 + "${FILESDIR}/${P}-metadata.patch"
220 +)
221
222 # echo $(cat po/CMakeLists.txt | grep ADD_SUBDIRECTORY | sed 's#ADD_SUBDIRECTORY( \(\w\+\) )#\1#')
223 LANGS=( bg ca_ES cs de el es fr hr hu is it ja nb nl pl pt pt_BR ru sk sr sr@latin sv th tr uk )
224 @@ -66,16 +68,8 @@ pkg_setup() {
225 setup-wxwidgets
226 }
227
228 -src_unpack() {
229 - if [[ ${PV} = *9999 ]]; then
230 - git-r3_src_unpack
231 - #cd "${S}"
232 - #cp "${FILESDIR}"/GIT-VERSION-GEN .
233 - fi
234 -}
235 -
236 src_prepare() {
237 - cmake-utils_src_prepare
238 + cmake_src_prepare
239
240 # remove bundled libs
241 rm -rf src/wx/wxsql* src/wxsqlite3 || die
242 @@ -93,7 +87,7 @@ src_configure() {
243 -DENABLE_IPOD=$(usex ipod)
244 -DENABLE_LIBINDICATE=$(usex appindicator)
245 )
246 - cmake-utils_src_configure
247 + cmake_src_configure
248 }
249
250 pkg_postinst() {
251 @@ -106,4 +100,6 @@ pkg_postinst() {
252 elog "\t ${pkg}"
253 done
254 fi
255 +
256 + xdg_desktop_database_update
257 }
258
259 diff --git a/media-sound/guayadeque/guayadeque-9999.ebuild b/media-sound/guayadeque/guayadeque-9999.ebuild
260 index eea72853844..2578fcf2e89 100644
261 --- a/media-sound/guayadeque/guayadeque-9999.ebuild
262 +++ b/media-sound/guayadeque/guayadeque-9999.ebuild
263 @@ -1,27 +1,24 @@
264 # Copyright 1999-2020 Gentoo Authors
265 # Distributed under the terms of the GNU General Public License v2
266
267 -EAPI=6
268 +EAPI=7
269
270 WX_GTK_VER=3.0
271
272 +inherit cmake wxwidgets xdg
273 +
274 if [[ ${PV} == *9999 ]]; then
275 - SCM="git-r3"
276 + inherit git-r3
277 EGIT_REPO_URI=${EGIT_REPO_URI:-https://github.com/anonbeat/guayadeque}
278 EGIT_BRANCH=${EGIT_BRANCH:-master}
279 + KEYWORDS=""
280 +else
281 + SRC_URI="https://github.com/anonbeat/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
282 + KEYWORDS="~amd64 ~x86"
283 fi
284
285 -inherit cmake-utils vcs-snapshot wxwidgets $SCM
286 -
287 DESCRIPTION="Music management program designed for all music enthusiasts"
288 HOMEPAGE="https://guayadeque.org/"
289 -if [[ ${PV} != *9999 ]]; then
290 - COMMIT=...
291 - SRC_URI="https://github.com/anonbeat/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
292 - KEYWORDS="~amd64 ~x86"
293 -else
294 - KEYWORDS=""
295 -fi
296
297 LICENSE="GPL-3+"
298 SLOT="0"
299 @@ -31,7 +28,6 @@ IUSE="appindicator ipod +minimal"
300 RESTRICT="test"
301
302 GST_DEPS="
303 - media-libs/gnonlin:1.0
304 media-plugins/gst-plugins-libav:1.0
305 media-plugins/gst-plugins-libnice:1.0
306 media-plugins/gst-plugins-pulse:1.0
307 @@ -39,25 +35,30 @@ GST_DEPS="
308 media-libs/gst-plugins-bad:1.0
309 media-libs/gst-plugins-ugly:1.0
310 "
311 +BDEPEND="
312 + sys-devel/gettext
313 + virtual/pkgconfig
314 +"
315 RDEPEND="
316 dev-db/sqlite:3
317 - >=dev-db/wxsqlite3-3.2.1
318 + dev-db/wxsqlite3
319 dev-libs/glib:2
320 media-libs/flac
321 media-libs/gst-plugins-base:1.0
322 media-libs/gst-plugins-good:1.0
323 media-libs/gstreamer:1.0
324 - >=media-libs/taglib-1.6.4
325 + media-libs/taglib
326 net-misc/curl
327 sys-apps/dbus
328 x11-libs/wxGTK:${WX_GTK_VER}[X]
329 appindicator? ( >=dev-libs/libindicate-0.7 )
330 ipod? ( media-libs/libgpod )
331 !minimal? ( ${GST_DEPS} )"
332 -DEPEND="${RDEPEND}
333 - app-arch/unzip
334 - sys-devel/gettext
335 - virtual/pkgconfig"
336 +DEPEND="${RDEPEND}"
337 +
338 +PATCHES=(
339 + "${FILESDIR}/${PN}-0.4.6-metadata.patch"
340 +)
341
342 # echo $(cat po/CMakeLists.txt | grep ADD_SUBDIRECTORY | sed 's#ADD_SUBDIRECTORY( \(\w\+\) )#\1#')
343 LANGS=( bg ca_ES cs de el es fr hr hu is it ja nb nl pl pt pt_BR ru sk sr sr@latin sv th tr uk )
344 @@ -66,16 +67,8 @@ pkg_setup() {
345 setup-wxwidgets
346 }
347
348 -src_unpack() {
349 - if [[ ${PV} = *9999 ]]; then
350 - git-r3_src_unpack
351 - #cd "${S}"
352 - #cp "${FILESDIR}"/GIT-VERSION-GEN .
353 - fi
354 -}
355 -
356 src_prepare() {
357 - cmake-utils_src_prepare
358 + cmake_src_prepare
359
360 # remove bundled libs
361 rm -rf src/wx/wxsql* src/wxsqlite3 || die
362 @@ -93,7 +86,7 @@ src_configure() {
363 -DENABLE_IPOD=$(usex ipod)
364 -DENABLE_LIBINDICATE=$(usex appindicator)
365 )
366 - cmake-utils_src_configure
367 + cmake_src_configure
368 }
369
370 pkg_postinst() {
371 @@ -106,4 +99,6 @@ pkg_postinst() {
372 elog "\t ${pkg}"
373 done
374 fi
375 +
376 + xdg_desktop_database_update
377 }