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, 04 May 2017 15:15:47
Message-Id: 1493910927.2b81298956559efbc10793557d4bbef25cd07088.prometheanfire@gentoo
1 commit: 2b81298956559efbc10793557d4bbef25cd07088
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 4 15:14:59 2017 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Thu May 4 15:15:27 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b812989
7
8 media-sound/spotify: bup for bug 617150
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 media-sound/spotify/Manifest | 2 +
13 media-sound/spotify/spotify-1.0.53.ebuild | 117 ++++++++++++++++++++++++++++++
14 2 files changed, 119 insertions(+)
15
16 diff --git a/media-sound/spotify/Manifest b/media-sound/spotify/Manifest
17 index 9cb68cc2fbd..126db5dad4c 100644
18 --- a/media-sound/spotify/Manifest
19 +++ b/media-sound/spotify/Manifest
20 @@ -1,2 +1,4 @@
21 DIST spotify-client_1.0.49.125.g72ee7853-111_amd64.deb 73404932 SHA256 1d6d1cccfb7f996b835f21c8dbabc16ca4bd214878e06738dba7886640470050 SHA512 f6152f71fae3827e1f9dfb07cbe30319f090db151702ca02f3566f3deeec369da0c70f9995a548e0df92d655b593de520ab387a011201317753d3def70741e24 WHIRLPOOL b5111509c902068bd2559267bfd2febfab8b4464d73e54a302d23807338e796045901fe14b9c229e6a412553f7cfe84e903ddfc4c4c3e9a60609b23a7ecf2c3c
22 DIST spotify-client_1.0.49.125.g72ee7853-22_i386.deb 74637938 SHA256 96c02fdc77991feb0797089d701744c2de4584322f966a1c070b559df27f9b04 SHA512 4a8aab47b6b0c2ac9b349c858e4728451e713c466bcff9c1eac9c6215259ad9325a51b0fc8bd2afcfa141a6ad518f97d408b5d779a126f2ac62c9e8be93f5f93 WHIRLPOOL 9bd02e73731cc4d2e55c43b08d1bea1d3fcfecb13ebdf8fe591aa5be6961423e3463a2fd625745561ebb7f33c902246a84f406bcc1dd3f7f47ffad6b98daa451
23 +DIST spotify-client_1.0.53.758.gde3fc4b2-33_amd64.deb 87698642 SHA256 6fac209d35828bc9a8bc5449320b92310462a2f78201e3ea620e743fc45e06ea SHA512 2dd355b78dac8ab9884a477cbcc19c1d0eb12267ccf844661dccc07056ba6b4cda06773e67c19b3edbdaf4a9f18666512b746e9c1d530f659969ddd7c59eb297 WHIRLPOOL b71f9c98a431543aae6843abe8cb21828bcff8b67a64d672aec0a7294cc975d4045a173deb7302e48411d81c32591f2370d53df33df48b23f26c6a94ad35b57e
24 +DIST spotify-client_1.0.53.758.gde3fc4b2-34_i386.deb 88983470 SHA256 1c559e776481ae8b03d966bd931f788030d41ad9cd751c43fe99616494a7d84a SHA512 33d39e16a6a8dec1326232e0fcf392e471c7eb32a2e86c4a655c5ec3b5499f85a1b59ddeb5b7fe8cca57f8468c82bf553305312894c2b843e0d069177636e3dd WHIRLPOOL 8323a1caa5d889318d3ec6455fa48e5885118d120d7495ac425171f56dd0626b5d6518c8308e626d29720984f098ab7cfced2958829f9917c38096eaffd18d9f
25
26 diff --git a/media-sound/spotify/spotify-1.0.53.ebuild b/media-sound/spotify/spotify-1.0.53.ebuild
27 new file mode 100644
28 index 00000000000..568a39f54d7
29 --- /dev/null
30 +++ b/media-sound/spotify/spotify-1.0.53.ebuild
31 @@ -0,0 +1,117 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +inherit eutils fdo-mime gnome2-utils pax-utils unpacker
37 +
38 +DESCRIPTION="Spotify is a social music platform"
39 +HOMEPAGE="https://www.spotify.com/ch-de/download/previews/"
40 +BUILD_ID="758.gde3fc4b2"
41 +SRC_BASE="http://repository.spotify.com/pool/non-free/${PN:0:1}/${PN}-client/"
42 +SRC_URI="amd64? ( ${SRC_BASE}${PN}-client_${PV}.${BUILD_ID}-33_amd64.deb )
43 + x86? ( ${SRC_BASE}${PN}-client_${PV}.${BUILD_ID}-34_i386.deb )"
44 +LICENSE="Spotify"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="gnome pax_kernel pulseaudio"
48 +RESTRICT="mirror strip"
49 +
50 +DEPEND=""
51 +# zenety needed for filepicker
52 +RDEPEND="
53 + ${DEPEND}
54 + dev-libs/nss
55 + gnome-base/gconf
56 + gnome-extra/zenity
57 + media-libs/alsa-lib
58 + media-libs/harfbuzz
59 + media-libs/fontconfig
60 + media-libs/mesa
61 + net-misc/curl[ssl,curl_ssl_openssl]
62 + net-print/cups[ssl]
63 + x11-libs/gtk+:2
64 + x11-libs/libXScrnSaver
65 + x11-libs/libXtst
66 + dev-python/pygobject:3
67 + dev-python/dbus-python
68 + pulseaudio? ( media-sound/pulseaudio )
69 + gnome? ( gnome-extra/gnome-integration-spotify )"
70 + #sys-libs/glibc
71 +
72 +S=${WORKDIR}/
73 +
74 +QA_PREBUILT="opt/spotify/spotify-client/spotify"
75 +
76 +src_prepare() {
77 + # Fix desktop entry to launch spotify-dbus.py for GNOME integration
78 + if use gnome ; then
79 + sed -i \
80 + -e 's/spotify \%U/spotify-dbus.py \%U/g' \
81 + usr/share/spotify/spotify.desktop || die "sed failed"
82 + fi
83 + default
84 +}
85 +
86 +src_install() {
87 + dodoc usr/share/doc/spotify-client/changelog.gz
88 +
89 + SPOTIFY_PKG_HOME=usr/share/spotify
90 + insinto /usr/share/pixmaps
91 + doins ${SPOTIFY_PKG_HOME}/icons/*.png
92 +
93 + # install in /opt/spotify
94 + SPOTIFY_HOME=/opt/spotify/spotify-client
95 + insinto ${SPOTIFY_HOME}
96 + doins -r ${SPOTIFY_PKG_HOME}/*
97 + fperms +x ${SPOTIFY_HOME}/spotify
98 +
99 + dodir /usr/bin
100 + cat <<-EOF >"${D}"/usr/bin/spotify || die
101 + #! /bin/sh
102 + exec ${SPOTIFY_HOME}/spotify "\$@"
103 + EOF
104 + fperms +x /usr/bin/spotify
105 +
106 + local size
107 + for size in 16 22 24 32 48 64 128 256 512; do
108 + newicon -s ${size} "${S}${SPOTIFY_PKG_HOME}/icons/spotify-linux-${size}.png" \
109 + "spotify-client.png"
110 + done
111 + domenu "${S}${SPOTIFY_PKG_HOME}/spotify.desktop"
112 + if use pax_kernel; then
113 + #create the headers, reset them to default, then paxmark -m them
114 + pax-mark C "${ED}${SPOTIFY_HOME}/${PN}" || die
115 + pax-mark z "${ED}${SPOTIFY_HOME}/${PN}" || die
116 + pax-mark m "${ED}${SPOTIFY_HOME}/${PN}" || die
117 + eqawarn "You have set USE=pax_kernel meaning that you intend to run"
118 + eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
119 + eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
120 + eqawarn "you suspect that ${PN} is being broken by this modification,"
121 + eqawarn "please open a bug."
122 + fi
123 +}
124 +
125 +pkg_preinst() {
126 + gnome2_icon_savelist
127 +}
128 +
129 +pkg_postinst() {
130 + gnome2_icon_cache_update
131 + fdo-mime_mime_database_update
132 + fdo-mime_desktop_database_update
133 +
134 + ewarn "If Spotify crashes after an upgrade its cache may be corrupt."
135 + ewarn "To remove the cache:"
136 + ewarn "rm -rf ~/.cache/spotify"
137 + ewarn
138 + ewarn "If you use KDE and are upgrading from 0.9 to 1.0, you might still see the old icon."
139 + ewarn "Run"
140 + ewarn "$ rm /var/tmp/kdecache-\$USER/icon-cache.kcache"
141 + ewarn "Then log out and log in back to KDE."
142 +}
143 +
144 +pkg_postrm() {
145 + gnome2_icon_cache_update
146 + fdo-mime_mime_database_update
147 + fdo-mime_desktop_database_update
148 +}