Gentoo Archives: gentoo-commits

From: "Matt Thode (prometheanfire)" <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/spotify: spotify-0.9.4.183-r5.ebuild ChangeLog
Date: Tue, 28 Jan 2014 04:11:45
Message-Id: 20140128041142.406F72004C@flycatcher.gentoo.org
1 prometheanfire 14/01/28 04:11:42
2
3 Modified: ChangeLog
4 Added: spotify-0.9.4.183-r5.ebuild
5 Log:
6 update cleaning some stuff up and fixing bug 498272
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)
9
10 Revision Changes Path
11 1.27 media-sound/spotify/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/spotify/ChangeLog?rev=1.27&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/spotify/ChangeLog?rev=1.27&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/spotify/ChangeLog?r1=1.26&r2=1.27
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-sound/spotify/ChangeLog,v
20 retrieving revision 1.26
21 retrieving revision 1.27
22 diff -u -r1.26 -r1.27
23 --- ChangeLog 25 Jan 2014 02:22:02 -0000 1.26
24 +++ ChangeLog 28 Jan 2014 04:11:42 -0000 1.27
25 @@ -1,6 +1,12 @@
26 # ChangeLog for media-sound/spotify
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-sound/spotify/ChangeLog,v 1.26 2014/01/25 02:22:02 prometheanfire Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-sound/spotify/ChangeLog,v 1.27 2014/01/28 04:11:42 prometheanfire Exp $
30 +
31 +*spotify-0.9.4.183-r5 (28 Jan 2014)
32 +
33 + 28 Jan 2014; Matthew Thode <prometheanfire@g.o>
34 + +spotify-0.9.4.183-r5.ebuild:
35 + update cleaning some stuff up and fixing bug 498272
36
37 25 Jan 2014; Matthew Thode <prometheanfire@g.o>
38 -spotify-0.9.4.183-r3.ebuild:
39
40
41
42 1.1 media-sound/spotify/spotify-0.9.4.183-r5.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/spotify/spotify-0.9.4.183-r5.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/spotify/spotify-0.9.4.183-r5.ebuild?rev=1.1&content-type=text/plain
46
47 Index: spotify-0.9.4.183-r5.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-sound/spotify/spotify-0.9.4.183-r5.ebuild,v 1.1 2014/01/28 04:11:42 prometheanfire Exp $
52
53 EAPI=5
54 inherit eutils fdo-mime gnome2-utils pax-utils unpacker
55
56 DESCRIPTION="Spotify is a social music platform"
57 HOMEPAGE="https://www.spotify.com/ch-de/download/previews/"
58 MY_PV="${PV}.g644e24e.428-1"
59 MY_P="${PN}-client_${MY_PV}"
60 SRC_BASE="http://repository.spotify.com/pool/non-free/${PN:0:1}/${PN}/"
61 SRC_URI="
62 x86? ( ${SRC_BASE}${MY_P}_i386.deb )
63 amd64? ( ${SRC_BASE}${MY_P}_amd64.deb )
64 "
65 LICENSE="Spotify"
66 SLOT="0"
67 #amd64 and x86 keywords removed due to security concerns, see bug 474010
68 KEYWORDS="~amd64 ~x86"
69 IUSE="gnome pax_kernel pulseaudio"
70 RESTRICT="mirror strip"
71
72 DEPEND=""
73 RDEPEND="${DEPEND}
74 x11-libs/libxcb
75 x11-libs/libICE
76 x11-libs/libSM
77 x11-libs/libX11
78 x11-libs/libXau
79 x11-libs/libXext
80 x11-libs/libXinerama
81 x11-libs/libXdmcp
82 x11-libs/libXScrnSaver
83 x11-libs/libXrandr
84 x11-libs/libXrender
85 dev-qt/qtcore:4[qt3support]
86 dev-qt/qtdbus:4
87 dev-qt/qtgui:4[qt3support]
88 dev-qt/qtwebkit:4
89 x11-misc/xdg-utils
90 media-libs/alsa-lib
91 media-libs/fontconfig
92 media-libs/freetype
93 dev-libs/openssl:0
94 dev-libs/glib:2
95 dev-libs/libgcrypt:0/11
96 media-libs/libpng:1.2
97 dev-db/sqlite:3
98 sys-libs/zlib
99 app-arch/bzip2
100 sys-apps/dbus
101 sys-apps/util-linux
102 dev-libs/expat
103 >=dev-libs/nspr-4.9
104 gnome-base/gconf:2
105 x11-libs/gtk+:2
106 dev-libs/nss
107 dev-libs/glib:2
108 net-print/cups
109 virtual/udev
110 pulseaudio? ( >=media-sound/pulseaudio-0.9.21 )
111 gnome? ( gnome-extra/gnome-integration-spotify )"
112
113 S=${WORKDIR}
114
115 QA_PREBUILT="/opt/spotify/spotify-client/spotify
116 /opt/spotify/spotify-client/Data/SpotifyHelper
117 /opt/spotify/spotify-client/libcef.so"
118
119 src_prepare() {
120 # link against openssl-1.0.0 as it crashes with 0.9.8
121 sed -i \
122 -e 's/\(lib\(ssl\|crypto\).so\).0.9.8/\1.1.0.0/g' \
123 opt/spotify/spotify-client/spotify || die "sed failed"
124 sed -i \
125 -e 's/\(lib\(ssl\|crypto\).so\).0.9.8/\1.1.0.0/g' \
126 opt/spotify/spotify-client/Data/SpotifyHelper || die "sed failed"
127 # different NSPR / NSS library names for some reason
128 sed -i \
129 -e 's/\(lib\(plc4\|nspr4\).so\).9\(.\)/\1.0d\3\3/g' \
130 opt/spotify/spotify-client/Data/SpotifyHelper || die "sed failed"
131 sed -i \
132 -e 's/\(lib\(nss3\|nssutil3\|smime3\).so\).1d/\1\x00\x00\x00/g' \
133 -e 's/\(lib\(plc4\|nspr4\).so\).0d\(.\)/\1\x00\x00\3\3/g' \
134 opt/spotify/spotify-client/Data/libcef.so || die "sed failed"
135 # Fix desktop entry to launch spotify-dbus.py for GNOME integration
136 if use gnome ; then
137 sed -i \
138 -e 's/spotify \%U/spotify-dbus.py \%U/g' \
139 opt/spotify/spotify-client/spotify.desktop || die "sed failed"
140 fi
141 #and fix other stuff in the desktop file as well
142 sed -i \
143 -e 's/x-scheme-handler\/spotify$/x-scheme-handler\/spotify\;/g' \
144 -e 's/AudioVideo$/AudioVideo\;/g' \
145 opt/spotify/spotify-client/spotify.desktop || die "sed failed"
146 }
147
148 src_install() {
149 dodoc opt/spotify/spotify-client/changelog
150 dodoc usr/share/doc/spotify-client/changelog.Debian.gz
151 dodoc usr/share/doc/spotify-client/copyright
152
153 insinto /usr/share/pixmaps
154 doins opt/spotify/spotify-client/Icons/*.png
155
156 # install in /opt/spotify
157 SPOTIFY_HOME=/opt/spotify/spotify-client
158 insinto ${SPOTIFY_HOME}
159 doins -r opt/spotify/spotify-client/*
160 fperms +x ${SPOTIFY_HOME}/spotify
161 fperms +x ${SPOTIFY_HOME}/Data/SpotifyHelper
162
163 dodir /usr/bin
164 cat <<-EOF >"${D}"/usr/bin/spotify
165 #! /bin/sh
166 LD_PRELOAD="\${LD_PRELOAD} ${SPOTIFY_HOME}/libcef.so ${SPOTIFY_HOME}/libnspr4.so.9 ${SPOTIFY_HOME}/libplc4.so.9"
167 LD_LIBRARY_PATH="${SPOTIFY_HOME}/Data/"
168 export LD_PRELOAD
169 export LD_LIBRARY_PATH
170 exec ${SPOTIFY_HOME}/spotify "\$@"
171 EOF
172 fperms +x /usr/bin/spotify
173
174 # revdep-rebuild produces a false positive because of symbol versioning
175 dodir /etc/revdep-rebuild
176 cat <<-EOF >"${D}"/etc/revdep-rebuild/10${PN}
177 SEARCH_DIRS_MASK="${SPOTIFY_HOME}"
178 EOF
179
180 for size in 16 22 24 32 48 64 128 256; do
181 newicon -s ${size} "${S}${SPOTIFY_HOME}/Icons/spotify-linux-${size}.png" \
182 "spotify-client.png"
183 done
184 domenu "${S}${SPOTIFY_HOME}/spotify.desktop"
185
186 if use pax_kernel; then
187 #create the headers, reset them to default, then paxmark -m them
188 pax-mark C "${ED}${SPOTIFY_HOME}/${PN}" || die
189 pax-mark C "${ED}${SPOTIFY_HOME}/Data/SpotifyHelper" || die
190 pax-mark z "${ED}${SPOTIFY_HOME}/${PN}" || die
191 pax-mark z "${ED}${SPOTIFY_HOME}/Data/SpotifyHelper" || die
192 pax-mark m "${ED}${SPOTIFY_HOME}/${PN}" || die
193 pax-mark m "${ED}${SPOTIFY_HOME}/Data/SpotifyHelper" || die
194 eqawarn "You have set USE=pax_kernel meaning that you intendto run"
195 eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
196 eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
197 eqawarn "you suspect that ${PN} is being broken by this modification,"
198 eqawarn "please open a bug."
199 fi
200
201 #hack to fix the nspr linking in spotify
202 dosym /usr/lib/libnspr4.so "${SPOTIFY_HOME}/libnspr4.so.9"
203 dosym /usr/lib/libplc4.so "${SPOTIFY_HOME}/libplc4.so.9"
204 #TODO fix for x86
205 dosym /usr/lib/libudev.so "${SPOTIFY_HOME}/Data/libudev.so.0"
206 }
207
208 pkg_preinst() {
209 gnome2_icon_savelist
210 }
211
212 pkg_postinst() {
213 gnome2_icon_cache_update
214 fdo-mime_mime_database_update
215 fdo-mime_desktop_database_update
216
217 ewarn "If Spotify crashes after an upgrade its cache may be corrupt."
218 ewarn "To remove the cache:"
219 ewarn "rm -rf ~/.cache/spotify"
220 ewarn
221 ewarn "you need to use the ld.bfd linker with openssl"
222 }
223
224 pkg_postrm() {
225 gnome2_icon_cache_update
226 fdo-mime_mime_database_update
227 fdo-mime_desktop_database_update
228 }