1 |
prometheanfire 13/10/29 07:00:19 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: spotify-0.9.4.183-r1.ebuild |
5 |
Removed: spotify-0.9.4.183.ebuild |
6 |
Log: |
7 |
fix for bug 488812 |
8 |
|
9 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3) |
10 |
|
11 |
Revision Changes Path |
12 |
1.22 media-sound/spotify/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/spotify/ChangeLog?rev=1.22&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/spotify/ChangeLog?rev=1.22&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/spotify/ChangeLog?r1=1.21&r2=1.22 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/media-sound/spotify/ChangeLog,v |
21 |
retrieving revision 1.21 |
22 |
retrieving revision 1.22 |
23 |
diff -u -r1.21 -r1.22 |
24 |
--- ChangeLog 13 Oct 2013 01:52:09 -0000 1.21 |
25 |
+++ ChangeLog 29 Oct 2013 07:00:19 -0000 1.22 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for media-sound/spotify |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/media-sound/spotify/ChangeLog,v 1.21 2013/10/13 01:52:09 prometheanfire Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/media-sound/spotify/ChangeLog,v 1.22 2013/10/29 07:00:19 prometheanfire Exp $ |
31 |
+ |
32 |
+*spotify-0.9.4.183-r1 (29 Oct 2013) |
33 |
+ |
34 |
+ 29 Oct 2013; Matthew Thode <prometheanfire@g.o> |
35 |
+ +spotify-0.9.4.183-r1.ebuild, -spotify-0.9.4.183.ebuild: |
36 |
+ fix for bug 488812 |
37 |
|
38 |
*spotify-0.9.4.183 (13 Oct 2013) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 media-sound/spotify/spotify-0.9.4.183-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/spotify/spotify-0.9.4.183-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/spotify/spotify-0.9.4.183-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: spotify-0.9.4.183-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 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.4.183-r1.ebuild,v 1.1 2013/10/29 07:00:18 prometheanfire Exp $ |
53 |
|
54 |
EAPI=4 |
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}.g644e24e.428-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 |
x86? ( ${SRC_BASE}${MY_P}_i386.deb ) |
64 |
amd64? ( ${SRC_BASE}${MY_P}_amd64.deb ) |
65 |
" |
66 |
LICENSE="Spotify" |
67 |
SLOT="0" |
68 |
#amd64 and x86 keywords removed due to security concerns, see bug 474010 |
69 |
KEYWORDS="~amd64 ~x86" |
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 |
87 |
dev-qt/qtdbus:4 |
88 |
dev-qt/qtgui:4 |
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 |
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 |
pulseaudio? ( >=media-sound/pulseaudio-0.9.21 ) |
110 |
gnome? ( gnome-extra/gnome-integration-spotify )" |
111 |
|
112 |
S=${WORKDIR} |
113 |
|
114 |
QA_PREBUILT="/opt/spotify/spotify-client/spotify |
115 |
/opt/spotify/spotify-client/Data/SpotifyHelper |
116 |
/opt/spotify/spotify-client/libcef.so" |
117 |
|
118 |
src_prepare() { |
119 |
# link against openssl-1.0.0 as it crashes with 0.9.8 |
120 |
sed -i \ |
121 |
-e 's/\(lib\(ssl\|crypto\).so\).0.9.8/\1.1.0.0/g' \ |
122 |
opt/spotify/spotify-client/spotify || die "sed failed" |
123 |
sed -i \ |
124 |
-e 's/\(lib\(ssl\|crypto\).so\).0.9.8/\1.1.0.0/g' \ |
125 |
opt/spotify/spotify-client/Data/SpotifyHelper || die "sed failed" |
126 |
# different NSPR / NSS library names for some reason |
127 |
sed -i \ |
128 |
-e 's/\(lib\(plc4\|nspr4\).so\).9\(.\)/\1.0d\3\3/g' \ |
129 |
opt/spotify/spotify-client/Data/SpotifyHelper || die "sed failed" |
130 |
sed -i \ |
131 |
-e 's/\(lib\(nss3\|nssutil3\|smime3\).so\).1d/\1\x00\x00\x00/g' \ |
132 |
-e 's/\(lib\(plc4\|nspr4\).so\).0d\(.\)/\1\x00\x00\3\3/g' \ |
133 |
opt/spotify/spotify-client/Data/libcef.so || die "sed failed" |
134 |
# Fix desktop entry to launch spotify-dbus.py for GNOME integration |
135 |
if use gnome ; then |
136 |
sed -i \ |
137 |
-e 's/spotify \%U/spotify-dbus.py \%U/g' \ |
138 |
opt/spotify/spotify-client/spotify.desktop || die "sed failed" |
139 |
fi |
140 |
#and fix other stuff in the desktop file as well |
141 |
sed -i \ |
142 |
-e 's/x-scheme-handler\/spotify$/x-scheme-handler\/spotify\;/g' \ |
143 |
-e 's/AudioVideo$/AudioVideo\;/g' \ |
144 |
opt/spotify/spotify-client/spotify.desktop || die "sed failed" |
145 |
} |
146 |
|
147 |
src_install() { |
148 |
dodoc opt/spotify/spotify-client/changelog |
149 |
dodoc usr/share/doc/spotify-client/changelog.Debian.gz |
150 |
dodoc usr/share/doc/spotify-client/copyright |
151 |
|
152 |
insinto /usr/share/pixmaps |
153 |
doins opt/spotify/spotify-client/Icons/*.png |
154 |
|
155 |
# install in /opt/spotify |
156 |
SPOTIFY_HOME=/opt/spotify/spotify-client |
157 |
insinto ${SPOTIFY_HOME} |
158 |
doins -r opt/spotify/spotify-client/* |
159 |
fperms +x ${SPOTIFY_HOME}/spotify |
160 |
fperms +x ${SPOTIFY_HOME}/Data/SpotifyHelper |
161 |
|
162 |
dodir /usr/bin |
163 |
cat <<-EOF >"${D}"/usr/bin/spotify |
164 |
#! /bin/sh |
165 |
LD_PRELOAD="\${LD_PRELOAD} ${SPOTIFY_HOME}/libcef.so" |
166 |
export LD_PRELOAD |
167 |
exec ${SPOTIFY_HOME}/spotify "\$@" |
168 |
EOF |
169 |
fperms +x /usr/bin/spotify |
170 |
|
171 |
# revdep-rebuild produces a false positive because of symbol versioning |
172 |
dodir /etc/revdep-rebuild |
173 |
cat <<-EOF >"${D}"/etc/revdep-rebuild/10${PN} |
174 |
SEARCH_DIRS_MASK="${SPOTIFY_HOME}" |
175 |
EOF |
176 |
|
177 |
for size in 16 22 24 32 48 64 128 256; do |
178 |
newicon -s ${size} "${S}${SPOTIFY_HOME}/Icons/spotify-linux-${size}.png" \ |
179 |
"spotify-client.png" |
180 |
done |
181 |
domenu "${S}${SPOTIFY_HOME}/spotify.desktop" |
182 |
|
183 |
if use pax_kernel; then |
184 |
#create the headers, reset them to default, then paxmark -m them |
185 |
pax-mark C "${ED}"/opt/${PN}/spotify-client/${PN} || die |
186 |
pax-mark C "${ED}"/opt/${PN}/spotify-client/Data/SpotifyHelper || die |
187 |
pax-mark z "${ED}"/opt/${PN}/spotify-client/${PN} || die |
188 |
pax-mark z "${ED}"/opt/${PN}/spotify-client/Data/SpotifyHelper || die |
189 |
pax-mark m "${ED}"/opt/${PN}/spotify-client/${PN} || die |
190 |
pax-mark m "${ED}"/opt/${PN}/spotify-client/Data/SpotifyHelper || die |
191 |
eqawarn "You have set USE=pax_kernel meaning that you intendto run" |
192 |
eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify" |
193 |
eqawarn "the ${PN} binary itself and this *may* lead to breakage! If" |
194 |
eqawarn "you suspect that ${PN} is being broken by this modification," |
195 |
eqawarn "please open a bug." |
196 |
fi |
197 |
|
198 |
#hack to fix the nspr linking in spotify |
199 |
dosym /usr/lib/libnspr4.so /opt/spotify/spotify-client/libnspr4.so.9 |
200 |
dosym /usr/lib/libplc4.so /opt/spotify/spotify-client/libplc4.so.9 |
201 |
sed -i 's/libcef\.so/libcef\.so\ \/opt\/spotify\/spotify\-client\/libnspr4\.so\.9\ \/opt\/spotify\/spotify\-client\/libplc4\.so\.9/g' "${ED}/usr/bin/spotify" |
202 |
|
203 |
#TODO maybe this symlink is not needed and could be fixed with previous sed |
204 |
dosym /opt/${PN}/spotify-client/Data/libcef.so /opt/${PN}/spotify-client/ |
205 |
|
206 |
#TODO fix for x86 |
207 |
dosym /usr/lib/libudev.so /opt/${PN}/spotify-client/Data/libudev.so.0 |
208 |
} |
209 |
|
210 |
pkg_preinst() { |
211 |
gnome2_icon_savelist |
212 |
} |
213 |
|
214 |
pkg_postinst() { |
215 |
gnome2_icon_cache_update |
216 |
fdo-mime_mime_database_update |
217 |
fdo-mime_desktop_database_update |
218 |
|
219 |
ewarn "If Spotify crashes after an upgrade its cache may be corrupt." |
220 |
ewarn "To remove the cache:" |
221 |
ewarn "rm -rf ~/.cache/spotify" |
222 |
} |
223 |
|
224 |
pkg_postrm() { |
225 |
gnome2_icon_cache_update |
226 |
fdo-mime_mime_database_update |
227 |
fdo-mime_desktop_database_update |
228 |
} |