Gentoo Archives: gentoo-commits

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/spotify/
Date: Fri, 13 May 2022 23:21:46
Message-Id: 1652484097.a324677b1a1b4908135638d39a521cc067f879e5.prometheanfire@gentoo
1 commit: a324677b1a1b4908135638d39a521cc067f879e5
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 13 23:21:28 2022 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Fri May 13 23:21:37 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a324677b
7
8 media-sound/spotify: clean up 1.1.72
9
10 Closes: https://bugs.gentoo.org/843860
11 Package-Manager: Portage-3.0.30, Repoman-3.0.3
12 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
13
14 media-sound/spotify/Manifest | 1 -
15 media-sound/spotify/spotify-1.1.72-r1.ebuild | 133 ---------------------------
16 media-sound/spotify/spotify-1.1.72-r2.ebuild | 116 -----------------------
17 media-sound/spotify/spotify-1.1.72.ebuild | 116 -----------------------
18 media-sound/spotify/spotify-1.1.84.ebuild | 2 +-
19 5 files changed, 1 insertion(+), 367 deletions(-)
20
21 diff --git a/media-sound/spotify/Manifest b/media-sound/spotify/Manifest
22 index 39a51092c4a8..d446031b5067 100644
23 --- a/media-sound/spotify/Manifest
24 +++ b/media-sound/spotify/Manifest
25 @@ -1,3 +1,2 @@
26 DIST spotify-client_1.0.72.117.g6bd7cc73-35_i386.deb 95135550 BLAKE2B ad4587dd6b3c64a0398e0790203a7826e290a27542fa39ebbd6c7198d8ad1fd3fb06e8b030b64e1e61e0624ef20aafda08189266486cd073cb779ebff62ef502 SHA512 51d60f7592e5f31ea4b7e67736a85271cb48d4108459630da61c4ab67d2a470038240c1d6ff577280cb4498cf44f14d7bc7e0312f63d34265bcd1e70cd13142f
27 -DIST spotify-client_1.1.72.439.gc253025e_amd64.deb 117803268 BLAKE2B 4ca2ca2df9ef5626483d4eca9c5a6f32fba63efdcd9e930379e83a2f8d40c112ab95ac4ade79fec365ae18b3e4aff089b5f07b6af02a5d080f64f14995099ea7 SHA512 65cec95448d936b7be93b0d16f29927a298b5b56aa2bc4834a5d357e341c78486fa69e61b3b6cf9fbe7da88c8d3b6ce3bccb5e963ed1b5a23320c0c808ccb385
28 DIST spotify-client_1.1.84.716.gc5f8b819_amd64.deb 119770140 BLAKE2B 071ee877e9c6c9a64cc3e06cdd72530e5da60087c56c29ad9511ed427df987d76258142120442ad78370f2d78c282016025ed43f7f7e94b4efb44e4a201bc839 SHA512 3cc25f28ae791ac26607117a5df668f803ed8e58f0ace085010a6242fdde97766bdc1c752560850795c9b4324f3e019937fe9af2788a1946ebb70ee781f50d99
29
30 diff --git a/media-sound/spotify/spotify-1.1.72-r1.ebuild b/media-sound/spotify/spotify-1.1.72-r1.ebuild
31 deleted file mode 100644
32 index b36208e04b8c..000000000000
33 --- a/media-sound/spotify/spotify-1.1.72-r1.ebuild
34 +++ /dev/null
35 @@ -1,133 +0,0 @@
36 -# Copyright 1999-2021 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=8
40 -
41 -inherit desktop optfeature pax-utils unpacker xdg
42 -
43 -DESCRIPTION="Spotify is a social music platform"
44 -HOMEPAGE="https://www.spotify.com/download/linux/"
45 -SRC_BASE="http://repository.spotify.com/pool/non-free/s/${PN}-client/"
46 -BUILD_ID_AMD64="439.gc253025e"
47 -SRC_URI="${SRC_BASE}${PN}-client_${PV}.${BUILD_ID_AMD64}_amd64.deb"
48 -
49 -LICENSE="Spotify"
50 -SLOT="0"
51 -KEYWORDS="~amd64"
52 -IUSE="libnotify local-playback pax-kernel pulseaudio"
53 -RESTRICT="mirror strip"
54 -
55 -BDEPEND=">=dev-util/patchelf-0.10"
56 -RDEPEND="
57 - dev-libs/nss
58 - dev-python/dbus-python
59 - libnotify? ( x11-libs/libnotify )
60 - dev-libs/openssl:0=
61 - media-libs/alsa-lib
62 - media-libs/fontconfig
63 - media-libs/harfbuzz
64 - media-libs/mesa[X(+)]
65 - net-misc/curl[ssl]
66 - net-print/cups[ssl]
67 - pulseaudio? ( media-sound/pulseaudio )
68 - !pulseaudio? ( media-sound/apulse )
69 - local-playback? ( media-video/ffmpeg:0/56.58.58 )
70 - x11-libs/gtk+:3
71 - app-accessibility/at-spi2-atk
72 - x11-libs/libxkbcommon
73 - x11-libs/libXScrnSaver
74 - x11-libs/libXtst
75 - x11-libs/libSM
76 - x11-libs/libICE
77 -"
78 - #sys-libs/glibc
79 -
80 -S="${WORKDIR}/"
81 -
82 -QA_PREBUILT="
83 - opt/spotify/spotify-client/spotify
84 - opt/spotify/spotify-client/libEGL.so
85 - opt/spotify/spotify-client/libGLESv2.so
86 - opt/spotify/spotify-client/libcef.so
87 - opt/spotify/spotify-client/libvk_swiftshader.so
88 - opt/spotify/spotify-client/libvulkan.so.1
89 - opt/spotify/spotify-client/swiftshader/libEGL.so
90 - opt/spotify/spotify-client/swiftshader/libGLESv2.so
91 -"
92 -
93 -src_prepare() {
94 - default
95 - # Spotify links against libcurl-gnutls.so.4, which does not exist in Gentoo.
96 - patchelf --replace-needed libcurl-gnutls.so.4 libcurl.so.4 usr/bin/spotify \
97 - || die "failed to patch libcurl library dependency"
98 -}
99 -
100 -src_install() {
101 - gunzip usr/share/doc/spotify-client/changelog.gz || die
102 - dodoc usr/share/doc/spotify-client/changelog
103 -
104 - SPOTIFY_PKG_HOME=usr/share/spotify
105 - insinto /usr/share/pixmaps
106 - doins ${SPOTIFY_PKG_HOME}/icons/*.png
107 -
108 - # install in /opt/spotify
109 - SPOTIFY_HOME=/opt/spotify/spotify-client
110 - insinto ${SPOTIFY_HOME}
111 - doins -r ${SPOTIFY_PKG_HOME}/*
112 - fperms +x ${SPOTIFY_HOME}/spotify
113 -
114 - dodir /usr/bin
115 - cat <<EOF >"${D}"/usr/bin/spotify || die
116 -#! /bin/sh
117 -if command -v spotify-dbus.py &> /dev/null; then
118 - echo "Launching spotify with Gnome systray integration"
119 - LD_LIBRARY_PATH="/usr/$(get_libdir)/apulse" \\
120 - spotify-dbus.py "\$@"
121 -elif command -v spotify-tray &> /dev/null; then
122 - echo "Launching spotify with generic systray integration"
123 - TRAY_ARGS=" --client-path=${SPOTIFY_HOME}/spotify --toggle "
124 - # seperate out the --minimized argument, parse it to spotify-tray
125 - # propagate the rest to the spotify client itself
126 - if [[ "\$@" == *"--minimized"* ]]; then
127 - TRAY_ARGS+=" --minimized "
128 - fi
129 - LD_LIBRARY_PATH="/usr/$(get_libdir)/apulse" \\
130 - spotify-tray \${TRAY_ARGS} -- "\$@"
131 -else
132 - echo "Neither gnome-integration-spotify or spotify-tray installed"
133 - echo "Launching spotify without systray integration"
134 - LD_LIBRARY_PATH="/usr/$(get_libdir)/apulse" \\
135 - exec ${SPOTIFY_HOME}/spotify "\$@"
136 -fi
137 -EOF
138 - fperms +x /usr/bin/spotify
139 -
140 - local size
141 - for size in 16 22 24 32 48 64 128 256 512; do
142 - newicon -s ${size} "${S}${SPOTIFY_PKG_HOME}/icons/spotify-linux-${size}.png" \
143 - "spotify-client.png"
144 - done
145 - domenu "${S}${SPOTIFY_PKG_HOME}/spotify.desktop"
146 - if use pax-kernel; then
147 - #create the headers, reset them to default, then paxmark -m them
148 - pax-mark C "${ED}${SPOTIFY_HOME}/${PN}" || die
149 - pax-mark z "${ED}${SPOTIFY_HOME}/${PN}" || die
150 - pax-mark m "${ED}${SPOTIFY_HOME}/${PN}" || die
151 - eqawarn "You have set USE=pax-kernel meaning that you intend to run"
152 - eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
153 - eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
154 - eqawarn "you suspect that ${PN} is being broken by this modification,"
155 - eqawarn "please open a bug."
156 - fi
157 -}
158 -
159 -pkg_postinst() {
160 - xdg_pkg_postinst
161 -
162 - ewarn "If Spotify crashes after an upgrade its cache may be corrupt."
163 - ewarn "To remove the cache:"
164 - ewarn "rm -rf ~/.cache/spotify"
165 -
166 - optfeature "Gnome specific systray integration" gnome-extra/gnome-integration-spotify
167 - optfeature "systray integration on non-Gnome DEs" media-sound/spotify-tray
168 -}
169
170 diff --git a/media-sound/spotify/spotify-1.1.72-r2.ebuild b/media-sound/spotify/spotify-1.1.72-r2.ebuild
171 deleted file mode 100644
172 index d3f98c51dd26..000000000000
173 --- a/media-sound/spotify/spotify-1.1.72-r2.ebuild
174 +++ /dev/null
175 @@ -1,116 +0,0 @@
176 -# Copyright 1999-2022 Gentoo Authors
177 -# Distributed under the terms of the GNU General Public License v2
178 -
179 -EAPI=8
180 -
181 -inherit desktop optfeature pax-utils unpacker xdg
182 -
183 -DESCRIPTION="Spotify is a social music platform"
184 -HOMEPAGE="https://www.spotify.com/download/linux/"
185 -SRC_BASE="http://repository.spotify.com/pool/non-free/s/${PN}-client/"
186 -BUILD_ID_AMD64="439.gc253025e"
187 -SRC_URI="${SRC_BASE}${PN}-client_${PV}.${BUILD_ID_AMD64}_amd64.deb"
188 -
189 -LICENSE="Spotify"
190 -SLOT="0"
191 -KEYWORDS="~amd64"
192 -IUSE="libnotify local-playback pax-kernel pulseaudio"
193 -RESTRICT="mirror strip"
194 -
195 -BDEPEND="
196 - >=dev-util/patchelf-0.10
197 - sys-devel/gettext
198 -"
199 -RDEPEND="
200 - dev-libs/nss
201 - dev-python/dbus-python
202 - libnotify? ( x11-libs/libnotify )
203 - dev-libs/openssl:0=
204 - media-libs/alsa-lib
205 - media-libs/fontconfig
206 - media-libs/harfbuzz
207 - media-libs/mesa[X(+)]
208 - net-misc/curl[ssl]
209 - net-print/cups[ssl]
210 - pulseaudio? ( media-sound/pulseaudio )
211 - !pulseaudio? ( media-sound/apulse )
212 - local-playback? ( media-video/ffmpeg:0/56.58.58 )
213 - x11-libs/gtk+:3
214 - app-accessibility/at-spi2-atk
215 - x11-libs/libxkbcommon
216 - x11-libs/libXScrnSaver
217 - x11-libs/libXtst
218 - x11-libs/libSM
219 - x11-libs/libICE
220 -"
221 - #sys-libs/glibc
222 -
223 -S="${WORKDIR}/"
224 -
225 -QA_PREBUILT="
226 - opt/spotify/spotify-client/spotify
227 - opt/spotify/spotify-client/libEGL.so
228 - opt/spotify/spotify-client/libGLESv2.so
229 - opt/spotify/spotify-client/libcef.so
230 - opt/spotify/spotify-client/libvk_swiftshader.so
231 - opt/spotify/spotify-client/libvulkan.so.1
232 - opt/spotify/spotify-client/swiftshader/libEGL.so
233 - opt/spotify/spotify-client/swiftshader/libGLESv2.so
234 -"
235 -
236 -src_prepare() {
237 - default
238 - # Spotify links against libcurl-gnutls.so.4, which does not exist in Gentoo.
239 - patchelf --replace-needed libcurl-gnutls.so.4 libcurl.so.4 usr/bin/spotify \
240 - || die "failed to patch libcurl library dependency"
241 -}
242 -
243 -src_install() {
244 - gunzip usr/share/doc/spotify-client/changelog.gz || die
245 - dodoc usr/share/doc/spotify-client/changelog
246 -
247 - SPOTIFY_PKG_HOME=usr/share/spotify
248 - insinto /usr/share/pixmaps
249 - doins ${SPOTIFY_PKG_HOME}/icons/*.png
250 -
251 - # install in /opt/spotify
252 - SPOTIFY_HOME=/opt/spotify/spotify-client
253 - insinto ${SPOTIFY_HOME}
254 - doins -r ${SPOTIFY_PKG_HOME}/*
255 - fperms +x ${SPOTIFY_HOME}/spotify
256 -
257 - dodir /usr/bin
258 - SPOTIFY_HOME=${SPOTIFY_HOME} LIBDIR=$(get_libdir) \
259 - envsubst '$SPOTIFY_HOME $LIBDIR' \
260 - < "${FILESDIR}/spotify-wrapper" > "${D}/usr/bin/spotify" || die
261 - fperms +x /usr/bin/spotify
262 -
263 - local size
264 - for size in 16 22 24 32 48 64 128 256 512; do
265 - newicon -s ${size} "${S}${SPOTIFY_PKG_HOME}/icons/spotify-linux-${size}.png" \
266 - "spotify-client.png"
267 - done
268 - domenu "${S}${SPOTIFY_PKG_HOME}/spotify.desktop"
269 - if use pax-kernel; then
270 - #create the headers, reset them to default, then paxmark -m them
271 - pax-mark C "${ED}${SPOTIFY_HOME}/${PN}" || die
272 - pax-mark z "${ED}${SPOTIFY_HOME}/${PN}" || die
273 - pax-mark m "${ED}${SPOTIFY_HOME}/${PN}" || die
274 - eqawarn "You have set USE=pax-kernel meaning that you intend to run"
275 - eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
276 - eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
277 - eqawarn "you suspect that ${PN} is being broken by this modification,"
278 - eqawarn "please open a bug."
279 - fi
280 -}
281 -
282 -pkg_postinst() {
283 - xdg_pkg_postinst
284 -
285 - ewarn "If Spotify crashes after an upgrade its cache may be corrupt."
286 - ewarn "To remove the cache:"
287 - ewarn "rm -rf ~/.cache/spotify"
288 -
289 - optfeature "Gnome specific systray integration" gnome-extra/gnome-integration-spotify
290 - optfeature "systray integration on non-Gnome DEs" media-sound/spotify-tray
291 -}
292
293 diff --git a/media-sound/spotify/spotify-1.1.72.ebuild b/media-sound/spotify/spotify-1.1.72.ebuild
294 deleted file mode 100644
295 index f19bf8d614a9..000000000000
296 --- a/media-sound/spotify/spotify-1.1.72.ebuild
297 +++ /dev/null
298 @@ -1,116 +0,0 @@
299 -# Copyright 1999-2021 Gentoo Authors
300 -# Distributed under the terms of the GNU General Public License v2
301 -
302 -EAPI=7
303 -inherit desktop pax-utils unpacker xdg
304 -
305 -DESCRIPTION="Spotify is a social music platform"
306 -HOMEPAGE="https://www.spotify.com/download/linux/"
307 -SRC_BASE="http://repository.spotify.com/pool/non-free/s/${PN}-client/"
308 -BUILD_ID_AMD64="439.gc253025e"
309 -SRC_URI="${SRC_BASE}${PN}-client_${PV}.${BUILD_ID_AMD64}_amd64.deb"
310 -LICENSE="Spotify"
311 -SLOT="0"
312 -KEYWORDS="amd64"
313 -IUSE="libnotify local-playback pax-kernel pulseaudio systray"
314 -RESTRICT="mirror strip"
315 -
316 -BDEPEND=">=dev-util/patchelf-0.10"
317 -RDEPEND="
318 - dev-libs/nss
319 - dev-python/dbus-python
320 - libnotify? ( x11-libs/libnotify )
321 - dev-libs/openssl:0=
322 - media-libs/alsa-lib
323 - media-libs/fontconfig
324 - media-libs/harfbuzz
325 - media-libs/mesa[X(+)]
326 - net-misc/curl[ssl]
327 - net-print/cups[ssl]
328 - pulseaudio? ( media-sound/pulseaudio )
329 - !pulseaudio? ( media-sound/apulse )
330 - local-playback? ( media-video/ffmpeg:0/56.58.58 )
331 - systray? ( gnome-extra/gnome-integration-spotify )
332 - x11-libs/gtk+:3
333 - app-accessibility/at-spi2-atk
334 - x11-libs/libxkbcommon
335 - x11-libs/libXScrnSaver
336 - x11-libs/libXtst
337 - x11-libs/libSM
338 - x11-libs/libICE
339 -"
340 - #sys-libs/glibc
341 -
342 -S=${WORKDIR}/
343 -
344 -QA_PREBUILT="
345 - opt/spotify/spotify-client/spotify
346 - opt/spotify/spotify-client/libEGL.so
347 - opt/spotify/spotify-client/libGLESv2.so
348 - opt/spotify/spotify-client/libcef.so
349 - opt/spotify/spotify-client/swiftshader/libEGL.so
350 - opt/spotify/spotify-client/swiftshader/libGLESv2.so
351 -"
352 -
353 -src_prepare() {
354 - # Fix desktop entry to launch spotify-dbus.py for systray integration
355 - if use systray ; then
356 - sed -i \
357 - -e 's/spotify \%U/spotify-dbus.py \%U/g' \
358 - usr/share/spotify/spotify.desktop || die "sed failed"
359 - fi
360 - default
361 -
362 - # Spotify links against libcurl-gnutls.so.4, which does not exist in Gentoo.
363 - patchelf --replace-needed libcurl-gnutls.so.4 libcurl.so.4 usr/bin/spotify \
364 - || die "failed to patch libcurl library dependency"
365 -}
366 -
367 -src_install() {
368 - gunzip usr/share/doc/spotify-client/changelog.gz || die
369 - dodoc usr/share/doc/spotify-client/changelog
370 -
371 - SPOTIFY_PKG_HOME=usr/share/spotify
372 - insinto /usr/share/pixmaps
373 - doins ${SPOTIFY_PKG_HOME}/icons/*.png
374 -
375 - # install in /opt/spotify
376 - SPOTIFY_HOME=/opt/spotify/spotify-client
377 - insinto ${SPOTIFY_HOME}
378 - doins -r ${SPOTIFY_PKG_HOME}/*
379 - fperms +x ${SPOTIFY_HOME}/spotify
380 -
381 - dodir /usr/bin
382 - cat <<-EOF >"${D}"/usr/bin/spotify || die
383 - #! /bin/sh
384 - LD_LIBRARY_PATH="/usr/$(get_libdir)/apulse" \\
385 - exec ${SPOTIFY_HOME}/spotify "\$@"
386 - EOF
387 - fperms +x /usr/bin/spotify
388 -
389 - local size
390 - for size in 16 22 24 32 48 64 128 256 512; do
391 - newicon -s ${size} "${S}${SPOTIFY_PKG_HOME}/icons/spotify-linux-${size}.png" \
392 - "spotify-client.png"
393 - done
394 - domenu "${S}${SPOTIFY_PKG_HOME}/spotify.desktop"
395 - if use pax-kernel; then
396 - #create the headers, reset them to default, then paxmark -m them
397 - pax-mark C "${ED}${SPOTIFY_HOME}/${PN}" || die
398 - pax-mark z "${ED}${SPOTIFY_HOME}/${PN}" || die
399 - pax-mark m "${ED}${SPOTIFY_HOME}/${PN}" || die
400 - eqawarn "You have set USE=pax-kernel meaning that you intend to run"
401 - eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
402 - eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
403 - eqawarn "you suspect that ${PN} is being broken by this modification,"
404 - eqawarn "please open a bug."
405 - fi
406 -}
407 -
408 -pkg_postinst() {
409 - xdg_pkg_postinst
410 -
411 - ewarn "If Spotify crashes after an upgrade its cache may be corrupt."
412 - ewarn "To remove the cache:"
413 - ewarn "rm -rf ~/.cache/spotify"
414 -}
415
416 diff --git a/media-sound/spotify/spotify-1.1.84.ebuild b/media-sound/spotify/spotify-1.1.84.ebuild
417 index 35f3010d5ffe..5a5510753d13 100644
418 --- a/media-sound/spotify/spotify-1.1.84.ebuild
419 +++ b/media-sound/spotify/spotify-1.1.84.ebuild
420 @@ -13,7 +13,7 @@ SRC_URI="${SRC_BASE}${PN}-client_${PV}.${BUILD_ID_AMD64}_amd64.deb"
421
422 LICENSE="Spotify"
423 SLOT="0"
424 -KEYWORDS="~amd64"
425 +KEYWORDS="amd64"
426 IUSE="libnotify local-playback pax-kernel pulseaudio"
427 RESTRICT="mirror strip"