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: Sat, 20 Feb 2016 04:36:29
Message-Id: 1455942901.cd0ad782707ace005a44dfa2f05a748cdd817252.prometheanfire@gentoo
1 commit: cd0ad782707ace005a44dfa2f05a748cdd817252
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 20 04:35:01 2016 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 20 04:35:01 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd0ad782
7
8 media-sound/spotify: bup
9
10 Package-Manager: portage-2.2.26
11
12 media-sound/spotify/Manifest | 2 +
13 media-sound/spotify/spotify-1.0.23.93.ebuild | 116 +++++++++++++++++++++++++++
14 2 files changed, 118 insertions(+)
15
16 diff --git a/media-sound/spotify/Manifest b/media-sound/spotify/Manifest
17 index 6d6e50b..b35de94 100644
18 --- a/media-sound/spotify/Manifest
19 +++ b/media-sound/spotify/Manifest
20 @@ -1,2 +1,4 @@
21 DIST spotify-client_1.0.19.106.gb8a7150f_amd64.deb 68109944 SHA256 be6b99329bb2fccdc9d77bc949dd463576fdb40db7f56195b4284bd348c470be SHA512 f5d8b5ae860a5e429e14f4541cd9e12e8f7edf864d2a41c2d6acb19af7c00c3f6a813f3666e9bd73f3e0bf1619f63cc03ab9f520d7f0713a036b5cee6a409fea WHIRLPOOL 7d19213e40b85aaf11722a09b8021cdae4ce4a5c8f91e9b5aa5c6a50c1b2862d5bc41c031d486b08141543e2ff4c16b684575e81e8cd6f1cc12b64633aef74ce
22 DIST spotify-client_1.0.19.106.gb8a7150f_i386.deb 73060616 SHA256 128b5d04dda8a052802fb9e664a996250569696fac359e94ea35043472f5dbcb SHA512 adb5816ceba1e1976429b1985569e1bfaa03fe015904bb3c66676b384205bbe24c3851a9cfcd366124a11470549574086cf289106c0b68e3f124f594b80ff04c WHIRLPOOL ae57091f18c54c2c61252e1bbbffa3228e7621df6dc185bd6821112deec6b78f9a7c269b01d2dd1f595c5751549b8c804732119d8dfd115ddcaee38c977fb4cd
23 +DIST spotify-client_1.0.23.93.gd6cfae15-30_amd64.deb 75341892 SHA256 99961ccd0b3d01ec28a96e158b4375fed6bb449913d34f6e03429b2d43f9db58 SHA512 746b1324282ab0aa76d8c35519ce4291f05fd061aa6daf6ce5193f3e56566f0dcc3c207016980f4b780e71a55ebd59fb88df2566f538210795278f99b46d80f8 WHIRLPOOL 20e6b8372fdd75adbf95d203e3676c646b8c041de9fa03f8a0fa9b104d5971bef917f764467f148c5dda7e508436bdc7fa35ef158f968e83e7a7c570cd16899a
24 +DIST spotify-client_1.0.23.93.gd6cfae15-5_i386.deb 78429394 SHA256 e4e8ab10a2a4875632283870155068f7d140b23b5bbb9927f32b53b4002aa6fe SHA512 54b87dcbba33119a9a3c9a01fb899b805096131fd83fcf220148b2064f04ec0d31174b812f2ca53b0e6eacb97440816eb11c8627de44f5b758fbc85aa731c980 WHIRLPOOL dade70b3621db925e54f9f3cc97e621e4338959d86ab218e17e26093f6014fea3346dc57edae3deaeec2f6d162d5fea8b9b60d03f7f5dbeb2a6cfb4e484f22b2
25
26 diff --git a/media-sound/spotify/spotify-1.0.23.93.ebuild b/media-sound/spotify/spotify-1.0.23.93.ebuild
27 new file mode 100644
28 index 0000000..5df0c90
29 --- /dev/null
30 +++ b/media-sound/spotify/spotify-1.0.23.93.ebuild
31 @@ -0,0 +1,116 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +inherit eutils fdo-mime gnome2-utils pax-utils unpacker
38 +
39 +DESCRIPTION="Spotify is a social music platform"
40 +HOMEPAGE="https://www.spotify.com/ch-de/download/previews/"
41 +MY_PV="${PV}.gd6cfae15"
42 +MY_P="${PN}-client_${MY_PV}"
43 +SRC_BASE="http://repository.spotify.com/pool/non-free/${PN:0:1}/${PN}-client/"
44 +SRC_URI="amd64? ( ${SRC_BASE}${MY_P}-30_amd64.deb )
45 + x86? ( ${SRC_BASE}${MY_P}-5_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
64 + net-print/cups[ssl]
65 + sys-libs/glibc
66 + x11-libs/gtk+:2
67 + x11-libs/libXScrnSaver
68 + x11-libs/libXtst
69 + pulseaudio? ( media-sound/pulseaudio )
70 + gnome? ( gnome-extra/gnome-integration-spotify )"
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 +}
84 +
85 +src_install() {
86 + dodoc usr/share/doc/spotify-client/changelog.Debian.gz
87 +
88 + SPOTIFY_PKG_HOME=usr/share/spotify
89 + insinto /usr/share/pixmaps
90 + doins ${SPOTIFY_PKG_HOME}/icons/*.png
91 +
92 + # install in /opt/spotify
93 + SPOTIFY_HOME=/opt/spotify/spotify-client
94 + insinto ${SPOTIFY_HOME}
95 + doins -r ${SPOTIFY_PKG_HOME}/*
96 + fperms +x ${SPOTIFY_HOME}/spotify
97 +
98 + dodir /usr/bin
99 + cat <<-EOF >"${D}"/usr/bin/spotify || die
100 + #! /bin/sh
101 + exec ${SPOTIFY_HOME}/spotify "\$@"
102 + EOF
103 + fperms +x /usr/bin/spotify
104 +
105 + local size
106 + for size in 16 22 24 32 48 64 128 256 512; do
107 + newicon -s ${size} "${S}${SPOTIFY_PKG_HOME}/icons/spotify-linux-${size}.png" \
108 + "spotify-client.png"
109 + done
110 + domenu "${S}${SPOTIFY_PKG_HOME}/spotify.desktop"
111 + if use pax_kernel; then
112 + #create the headers, reset them to default, then paxmark -m them
113 + pax-mark C "${ED}${SPOTIFY_HOME}/${PN}" || die
114 + pax-mark z "${ED}${SPOTIFY_HOME}/${PN}" || die
115 + pax-mark m "${ED}${SPOTIFY_HOME}/${PN}" || die
116 + eqawarn "You have set USE=pax_kernel meaning that you intend to run"
117 + eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
118 + eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
119 + eqawarn "you suspect that ${PN} is being broken by this modification,"
120 + eqawarn "please open a bug."
121 + fi
122 +}
123 +
124 +pkg_preinst() {
125 + gnome2_icon_savelist
126 +}
127 +
128 +pkg_postinst() {
129 + gnome2_icon_cache_update
130 + fdo-mime_mime_database_update
131 + fdo-mime_desktop_database_update
132 +
133 + ewarn "If Spotify crashes after an upgrade its cache may be corrupt."
134 + ewarn "To remove the cache:"
135 + ewarn "rm -rf ~/.cache/spotify"
136 + ewarn
137 + ewarn "If you use KDE and are upgrading from 0.9 to 1.0, you might still see the old icon."
138 + ewarn "Run"
139 + ewarn "$ rm /var/tmp/kdecache-\$USER/icon-cache.kcache"
140 + ewarn "Then log out and log in back to KDE."
141 +}
142 +
143 +pkg_postrm() {
144 + gnome2_icon_cache_update
145 + fdo-mime_mime_database_update
146 + fdo-mime_desktop_database_update
147 +}