Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/spotify/
Date: Thu, 22 Feb 2018 18:12:24
Message-Id: 1519323128.317afc44f31a97b6cbf39d8750784b1eec6a389c.prometheanfire@gentoo
1 commit: 317afc44f31a97b6cbf39d8750784b1eec6a389c
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 22 18:10:30 2018 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 22 18:12:08 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=317afc44
7
8 media-sound/spotify: 1.0.70 stable amd64 and x86 with cleanup
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 media-sound/spotify/Manifest | 2 -
13 media-sound/spotify/spotify-1.0.69.ebuild | 117 --------------------------
14 media-sound/spotify/spotify-1.0.70-r1.ebuild | 2 +-
15 media-sound/spotify/spotify-1.0.70.ebuild | 118 ---------------------------
16 4 files changed, 1 insertion(+), 238 deletions(-)
17
18 diff --git a/media-sound/spotify/Manifest b/media-sound/spotify/Manifest
19 index f31a4260791..395b9027bf2 100644
20 --- a/media-sound/spotify/Manifest
21 +++ b/media-sound/spotify/Manifest
22 @@ -1,4 +1,2 @@
23 -DIST spotify-client_1.0.69.336.g7edcc575-39_amd64.deb 89614954 BLAKE2B a489aa2ad52d06e3651dc7aeb53adadf5f0447d959fca95e7bd49b943188622c8d96868e19d3d3761e4d01432548240a219107de07f1262bc7b8d630cdd64e77 SHA512 cc0cdc5065d21ebb2fa3d05f088b43c49ce95a7ddbedbb474841a11b6a6a79771767e939828cc18ec8f21bb6ba5a3931c6c62ba69321990ed72911c8cd872c04
24 -DIST spotify-client_1.0.69.336.g7edcc575-39_i386.deb 93798286 BLAKE2B 2ef644a6da0c497aab2347b4fea49966f17ca89b36c85ca48cc1ba6496bd49745028cab934a4077c82968875870243bb84fe5a7576f2319663fc3490ce371427 SHA512 41ab715a247029e1d380387962c554153af734e4eaf6965d1e175f9370d71cefe7559e358b0d402162955bb069a72cd24249d341b1bb7c75fc40b9b65bbc80da
25 DIST spotify-client_1.0.70.399.g5ffabd56-26_amd64.deb 89572934 BLAKE2B 70fa53d8bd4fac88133cd57171721636d17ccc1863a224048572c34eba132baf2642c5b51022f4dd59bbe8abe61c43440dc9339687bc2d3c0ba6fbbe5339a0fa SHA512 f5ce65a535daffe251152f6dc1c3affe2cbdf815ce1129e204ef03b589ebf7ac1015a9be2c77d7bcdd506fa23b9f24390b961843bb311366f6839756563912bf
26 DIST spotify-client_1.0.70.399.g5ffabd56-27_i386.deb 93896122 BLAKE2B 541de6cddb207440baabff6e43af6bd101ae43e8b30359a14078429506b742faf6bd32719bc6579068196bd01859a24af35677b3b53233b79ff56007fa38a30c SHA512 b72a7b4286d067a0a825b423ff62d426a82d8a7cc111500e1d5ab64df000f0cce024a6c7d9cc5cbf253800152907ae2889f55eead46556739f8d5069e7c0abf2
27
28 diff --git a/media-sound/spotify/spotify-1.0.69.ebuild b/media-sound/spotify/spotify-1.0.69.ebuild
29 deleted file mode 100644
30 index ccb79bef70d..00000000000
31 --- a/media-sound/spotify/spotify-1.0.69.ebuild
32 +++ /dev/null
33 @@ -1,117 +0,0 @@
34 -# Copyright 1999-2017 Gentoo Foundation
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=6
38 -inherit eutils xdg-utils gnome2-utils pax-utils unpacker
39 -
40 -DESCRIPTION="Spotify is a social music platform"
41 -HOMEPAGE="https://www.spotify.com/ch-de/download/previews/"
42 -BUILD_ID="336.g7edcc575-39"
43 -SRC_BASE="http://repository.spotify.com/pool/non-free/s/${PN}-client/"
44 -SRC_URI="amd64? ( ${SRC_BASE}${PN}-client_${PV}.${BUILD_ID}_amd64.deb )
45 - x86? ( ${SRC_BASE}${PN}-client_${PV}.${BUILD_ID}_i386.deb )"
46 -LICENSE="Spotify"
47 -SLOT="0"
48 -KEYWORDS="amd64 x86"
49 -IUSE="gnome pax_kernel pulseaudio"
50 -RESTRICT="mirror strip"
51 -
52 -DEPEND=""
53 -# zenety needed for filepicker
54 -RDEPEND="
55 - ${DEPEND}
56 - dev-libs/nss
57 - gnome-base/gconf
58 - gnome-extra/zenity
59 - media-libs/alsa-lib
60 - media-libs/harfbuzz
61 - media-libs/fontconfig
62 - media-libs/mesa
63 - net-misc/curl[ssl,curl_ssl_openssl]
64 - net-print/cups[ssl]
65 - x11-libs/gtk+:2
66 - x11-libs/libXScrnSaver
67 - x11-libs/libXtst
68 - dev-python/pygobject:3
69 - dev-python/dbus-python
70 - pulseaudio? ( media-sound/pulseaudio )
71 - gnome? ( gnome-extra/gnome-integration-spotify )"
72 - #sys-libs/glibc
73 -
74 -S=${WORKDIR}/
75 -
76 -QA_PREBUILT="opt/spotify/spotify-client/spotify"
77 -
78 -src_prepare() {
79 - # Fix desktop entry to launch spotify-dbus.py for GNOME integration
80 - if use gnome ; then
81 - sed -i \
82 - -e 's/spotify \%U/spotify-dbus.py \%U/g' \
83 - usr/share/spotify/spotify.desktop || die "sed failed"
84 - fi
85 - default
86 -}
87 -
88 -src_install() {
89 - dodoc usr/share/doc/spotify-client/changelog.gz
90 -
91 - SPOTIFY_PKG_HOME=usr/share/spotify
92 - insinto /usr/share/pixmaps
93 - doins ${SPOTIFY_PKG_HOME}/icons/*.png
94 -
95 - # install in /opt/spotify
96 - SPOTIFY_HOME=/opt/spotify/spotify-client
97 - insinto ${SPOTIFY_HOME}
98 - doins -r ${SPOTIFY_PKG_HOME}/*
99 - fperms +x ${SPOTIFY_HOME}/spotify
100 -
101 - dodir /usr/bin
102 - cat <<-EOF >"${D}"/usr/bin/spotify || die
103 - #! /bin/sh
104 - exec ${SPOTIFY_HOME}/spotify "\$@"
105 - EOF
106 - fperms +x /usr/bin/spotify
107 -
108 - local size
109 - for size in 16 22 24 32 48 64 128 256 512; do
110 - newicon -s ${size} "${S}${SPOTIFY_PKG_HOME}/icons/spotify-linux-${size}.png" \
111 - "spotify-client.png"
112 - done
113 - domenu "${S}${SPOTIFY_PKG_HOME}/spotify.desktop"
114 - if use pax_kernel; then
115 - #create the headers, reset them to default, then paxmark -m them
116 - pax-mark C "${ED}${SPOTIFY_HOME}/${PN}" || die
117 - pax-mark z "${ED}${SPOTIFY_HOME}/${PN}" || die
118 - pax-mark m "${ED}${SPOTIFY_HOME}/${PN}" || die
119 - eqawarn "You have set USE=pax_kernel meaning that you intend to run"
120 - eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
121 - eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
122 - eqawarn "you suspect that ${PN} is being broken by this modification,"
123 - eqawarn "please open a bug."
124 - fi
125 -}
126 -
127 -pkg_preinst() {
128 - gnome2_icon_savelist
129 -}
130 -
131 -pkg_postinst() {
132 - gnome2_icon_cache_update
133 - xdg_mimeinfo_database_update
134 - xdg_desktop_database_update
135 -
136 - ewarn "If Spotify crashes after an upgrade its cache may be corrupt."
137 - ewarn "To remove the cache:"
138 - ewarn "rm -rf ~/.cache/spotify"
139 - ewarn
140 - ewarn "If you use KDE and are upgrading from 0.9 to 1.0, you might still see the old icon."
141 - ewarn "Run"
142 - ewarn "$ rm /var/tmp/kdecache-\$USER/icon-cache.kcache"
143 - ewarn "Then log out and log in back to KDE."
144 -}
145 -
146 -pkg_postrm() {
147 - gnome2_icon_cache_update
148 - xdg_mimeinfo_database_update
149 - xdg_desktop_database_update
150 -}
151
152 diff --git a/media-sound/spotify/spotify-1.0.70-r1.ebuild b/media-sound/spotify/spotify-1.0.70-r1.ebuild
153 index 6fa5db4d137..2e5150da474 100644
154 --- a/media-sound/spotify/spotify-1.0.70-r1.ebuild
155 +++ b/media-sound/spotify/spotify-1.0.70-r1.ebuild
156 @@ -13,7 +13,7 @@ SRC_URI="amd64? ( ${SRC_BASE}${PN}-client_${PV}.${BUILD_ID_AMD64}_amd64.deb )
157 x86? ( ${SRC_BASE}${PN}-client_${PV}.${BUILD_ID_X86}_i386.deb )"
158 LICENSE="Spotify"
159 SLOT="0"
160 -KEYWORDS="~amd64 ~x86"
161 +KEYWORDS="amd64 x86"
162 IUSE="systray pax_kernel pulseaudio"
163 RESTRICT="mirror strip"
164
165
166 diff --git a/media-sound/spotify/spotify-1.0.70.ebuild b/media-sound/spotify/spotify-1.0.70.ebuild
167 deleted file mode 100644
168 index 1e34e86dd45..00000000000
169 --- a/media-sound/spotify/spotify-1.0.70.ebuild
170 +++ /dev/null
171 @@ -1,118 +0,0 @@
172 -# Copyright 1999-2018 Gentoo Foundation
173 -# Distributed under the terms of the GNU General Public License v2
174 -
175 -EAPI=6
176 -inherit eutils xdg-utils gnome2-utils pax-utils unpacker
177 -
178 -DESCRIPTION="Spotify is a social music platform"
179 -HOMEPAGE="https://www.spotify.com/ch-de/download/previews/"
180 -BUILD_ID_AMD64="399.g5ffabd56-26"
181 -BUILD_ID_X86="399.g5ffabd56-27"
182 -SRC_BASE="http://repository.spotify.com/pool/non-free/s/${PN}-client/"
183 -SRC_URI="amd64? ( ${SRC_BASE}${PN}-client_${PV}.${BUILD_ID_AMD64}_amd64.deb )
184 - x86? ( ${SRC_BASE}${PN}-client_${PV}.${BUILD_ID_X86}_i386.deb )"
185 -LICENSE="Spotify"
186 -SLOT="0"
187 -KEYWORDS="~amd64 ~x86"
188 -IUSE="gnome pax_kernel pulseaudio"
189 -RESTRICT="mirror strip"
190 -
191 -DEPEND=""
192 -# zenety needed for filepicker
193 -RDEPEND="
194 - ${DEPEND}
195 - dev-libs/nss
196 - gnome-base/gconf
197 - gnome-extra/zenity
198 - media-libs/alsa-lib
199 - media-libs/harfbuzz
200 - media-libs/fontconfig
201 - media-libs/mesa
202 - net-misc/curl[ssl,curl_ssl_openssl]
203 - net-print/cups[ssl]
204 - x11-libs/gtk+:2
205 - x11-libs/libXScrnSaver
206 - x11-libs/libXtst
207 - dev-python/pygobject:3
208 - dev-python/dbus-python
209 - pulseaudio? ( media-sound/pulseaudio )
210 - gnome? ( gnome-extra/gnome-integration-spotify )"
211 - #sys-libs/glibc
212 -
213 -S=${WORKDIR}/
214 -
215 -QA_PREBUILT="opt/spotify/spotify-client/spotify"
216 -
217 -src_prepare() {
218 - # Fix desktop entry to launch spotify-dbus.py for GNOME integration
219 - if use gnome ; then
220 - sed -i \
221 - -e 's/spotify \%U/spotify-dbus.py \%U/g' \
222 - usr/share/spotify/spotify.desktop || die "sed failed"
223 - fi
224 - default
225 -}
226 -
227 -src_install() {
228 - dodoc usr/share/doc/spotify-client/changelog.gz
229 -
230 - SPOTIFY_PKG_HOME=usr/share/spotify
231 - insinto /usr/share/pixmaps
232 - doins ${SPOTIFY_PKG_HOME}/icons/*.png
233 -
234 - # install in /opt/spotify
235 - SPOTIFY_HOME=/opt/spotify/spotify-client
236 - insinto ${SPOTIFY_HOME}
237 - doins -r ${SPOTIFY_PKG_HOME}/*
238 - fperms +x ${SPOTIFY_HOME}/spotify
239 -
240 - dodir /usr/bin
241 - cat <<-EOF >"${D}"/usr/bin/spotify || die
242 - #! /bin/sh
243 - exec ${SPOTIFY_HOME}/spotify "\$@"
244 - EOF
245 - fperms +x /usr/bin/spotify
246 -
247 - local size
248 - for size in 16 22 24 32 48 64 128 256 512; do
249 - newicon -s ${size} "${S}${SPOTIFY_PKG_HOME}/icons/spotify-linux-${size}.png" \
250 - "spotify-client.png"
251 - done
252 - domenu "${S}${SPOTIFY_PKG_HOME}/spotify.desktop"
253 - if use pax_kernel; then
254 - #create the headers, reset them to default, then paxmark -m them
255 - pax-mark C "${ED}${SPOTIFY_HOME}/${PN}" || die
256 - pax-mark z "${ED}${SPOTIFY_HOME}/${PN}" || die
257 - pax-mark m "${ED}${SPOTIFY_HOME}/${PN}" || die
258 - eqawarn "You have set USE=pax_kernel meaning that you intend to run"
259 - eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
260 - eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
261 - eqawarn "you suspect that ${PN} is being broken by this modification,"
262 - eqawarn "please open a bug."
263 - fi
264 -}
265 -
266 -pkg_preinst() {
267 - gnome2_icon_savelist
268 -}
269 -
270 -pkg_postinst() {
271 - gnome2_icon_cache_update
272 - xdg_mimeinfo_database_update
273 - xdg_desktop_database_update
274 -
275 - ewarn "If Spotify crashes after an upgrade its cache may be corrupt."
276 - ewarn "To remove the cache:"
277 - ewarn "rm -rf ~/.cache/spotify"
278 - ewarn
279 - ewarn "If you use KDE and are upgrading from 0.9 to 1.0, you might still see the old icon."
280 - ewarn "Run"
281 - ewarn "$ rm /var/tmp/kdecache-\$USER/icon-cache.kcache"
282 - ewarn "Then log out and log in back to KDE."
283 -}
284 -
285 -pkg_postrm() {
286 - gnome2_icon_cache_update
287 - xdg_mimeinfo_database_update
288 - xdg_desktop_database_update
289 -}