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