summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <mthode@mthode.org>2013-01-07 20:34:50 -0600
committerMatthew Thode <mthode@mthode.org>2013-01-07 20:34:50 -0600
commit66740f289668e64d61416285a68715a47bcf8d83 (patch)
tree42976fd891b8711b479190837e8e63df84f0b2c1 /media-sound/spotify
parentremoved unneeded comment (diff)
downloadprometheanfire-66740f289668e64d61416285a68715a47bcf8d83.tar.gz
prometheanfire-66740f289668e64d61416285a68715a47bcf8d83.tar.bz2
prometheanfire-66740f289668e64d61416285a68715a47bcf8d83.zip
to test 0.8.8
Diffstat (limited to 'media-sound/spotify')
-rw-r--r--media-sound/spotify/ChangeLog28
-rw-r--r--media-sound/spotify/Manifest9
-rw-r--r--media-sound/spotify/metadata.xml14
-rw-r--r--media-sound/spotify/spotify-0.8.4.103-r2.ebuild141
-rw-r--r--media-sound/spotify/spotify-0.8.4.103-r3.ebuild142
-rw-r--r--media-sound/spotify/spotify-0.8.8.323.ebuild142
6 files changed, 476 insertions, 0 deletions
diff --git a/media-sound/spotify/ChangeLog b/media-sound/spotify/ChangeLog
new file mode 100644
index 0000000..2c0ee10
--- /dev/null
+++ b/media-sound/spotify/ChangeLog
@@ -0,0 +1,28 @@
+# ChangeLog for media-sound/spotify
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/spotify/ChangeLog,v 1.4 2012/12/17 15:18:25 prometheanfire Exp $
+
+*spotify-0.8.4.103-r3 (17 Dec 2012)
+
+ 17 Dec 2012; Matthew Thode <prometheanfire@gentoo.org>
+ +spotify-0.8.4.103-r3.ebuild, -spotify-0.8.4.103-r1.ebuild,
+ -spotify-0.8.4.103.ebuild:
+ add the cups rdep to spotify, becuse, whynot
+
+*spotify-0.8.4.103-r2 (16 Nov 2012)
+
+ 16 Nov 2012; Matthew Thode <prometheanfire@gentoo.org>
+ +spotify-0.8.4.103-r2.ebuild:
+ removing kde badness bug #442682
+
+*spotify-0.8.4.103-r1 (11 Nov 2012)
+
+ 11 Nov 2012; Matthew Thode <prometheanfire@gentoo.org>
+ +spotify-0.8.4.103-r1.ebuild:
+ spotify-0.8.4.103-r1 for bug 442682
+
+*spotify-0.8.4.103 (07 Nov 2012)
+
+ 07 Nov 2012; Matthew Thode <prometheanfire@gentoo.org>
+ +spotify-0.8.4.103.ebuild:
+ adding spotify-0.8.4.103 for bug 373093
diff --git a/media-sound/spotify/Manifest b/media-sound/spotify/Manifest
new file mode 100644
index 0000000..4aa5a40
--- /dev/null
+++ b/media-sound/spotify/Manifest
@@ -0,0 +1,9 @@
+DIST spotify-client_0.8.4.103.g9cb177b.260-1_amd64.deb 31702600 SHA256 d350defa4164aaf129985df7e3ca33fc3f88aad2fac1637e6a26cc1794f3b378 SHA512 0f07ff8e2844d3f2626fa02351474a76b0d7178dd94d4d857ff2a0b6d28f887980889e4bc57fab18ab2a0cb6d7771e90bb7a20c2427ab69e2195f5de47ae3622 WHIRLPOOL 7d8a24fdbd9a12e92443264bcb01f27a322028c2074b40cb26e8f0e06195175ae8f369da41cde5d8dbe741792ad3250dc408addf9ceee594f2782a45772817f7
+DIST spotify-client_0.8.4.103.g9cb177b.260-1_i386.deb 28110850 SHA256 61502995da6b126eb6801bf92a8463a7fdd37dc6be0e0aba3560bdadde3531c7 SHA512 b48c70267781dc4b6d5afeee8061a95266de59ae02d252b054cd3a63a8bdcb19a461e7c28095d3884f7e7ff1129778ab7549dda9b891dc107f54182e13725dc2 WHIRLPOOL 0c443030bad393721c964c36561b84eb1388248a47d0dcc2f14541f5a33de4364a2de081e69c8c379e3a4ef529209b76d1f2e14fdaef68631471b414e01ba239
+DIST spotify-client_0.8.8.323.gd143501.250-1_amd64.deb 35097658 SHA256 0ebedb3411bdd4e71c9a6aa78f5218a37d70996904e3d1326c414f9e12f9c35b SHA512 13b8fdb8533fb3fdff700aca369154d48045fc70c51c3f08e2d39762eec6ffa5987e582795c2449df3dc8771dedef622915446fb47047b6daa403d424055d87b WHIRLPOOL da5cd70ad44f7d2bcd1a9c92316a499af72184fb9833759b1960cbfabf56b89c095d94d1b1b4551fc9fa0995fdd60edde45f9bccf14959c2d75aaee89ae52256
+DIST spotify-client_0.8.8.323.gd143501.250-1_i386.deb 30905262 SHA256 0624959151fe8a58d82b2b7bcdee44ab615cd3fdb1247772f626e04df100088f SHA512 6f01153f78c95cf86acdb15e2851d4779b22dc5ef15dd394287d7ed3aa51aedb80a31b388e1fae760f90c607d48f1369b732ca49710bd5a6673d5d9160b26eba WHIRLPOOL d62d9fc6b565f02230a23974b0a8920ff2a2caee6afccce7a2adad5cecb823ef8ec7bcfc49a05a8557a4fa3062ba67315fc2edf1cf075a0c2d05eb94bc150b1d
+EBUILD spotify-0.8.4.103-r2.ebuild 4041 SHA256 7db6611dd4a792a8864cdfb3b4253992fb6744eb86ff79e8ef95beab1179e518 SHA512 63b971805ce2616eb3d8d161bed339841e4fd5558977d21f835041080299f418b758f694da46ef75e3db78c437839fe0824087ea1b42649d659a80689f01ba9f WHIRLPOOL 204159303f628c4943cd4decf2e0a0611d461ae38d1b5afbfbc5f9cc0cc538fa50356b2ca3ed6433cc8b423655edd71f9b51abc1c9f9d08a860195e201c7fca4
+EBUILD spotify-0.8.4.103-r3.ebuild 4058 SHA256 d796dbf4449f399711b092b1c9ae6316eb996edaa7c3a2791920b2c91a023521 SHA512 7505d558823344e3a0af116abfa918cb1168a44dfd3581ab2af6503d9a20ada306e8fe47a01284a4bd73dc5d68faf365c6e766b27ecb1b86c7d5a54bf05ef08c WHIRLPOOL f4e3fa48c0ea714fb6c9361328c48cafc7aae8f539d2731de53e16131a36943824290f9d2e3416054de8dce608d5f4121bbe711faf1ed9787b1f8eebe8d63859
+EBUILD spotify-0.8.8.323.ebuild 4058 SHA256 75dbb57cc95f07f0400dde635edaa51facca48f0b33b8a9be4bda98236469dc8 SHA512 0d4fbf0ea6352a560c1a9a5169c5526160321f59d2864ece7a360a685fdf42faa119d18d2cd670ddd5130aac1455ec423ec693abf165ed07591d37455455b642 WHIRLPOOL 9ca7eff90fc0200b019f2125119aab21a88fee4e9a4cbc6229642fc4be3a4dca1e6039c9e9da517742f42fe7c412f8df6f95182b0baa47c74ab360570214a8a1
+MISC ChangeLog 941 SHA256 0377ceb78a51b1bb11998977025ba9c4e42dde624826f11fe0257a8dc9ed8f5b SHA512 9f6f8c39f263533a7590f30c23afd3f867cf667ca7c3ed15df99f38cba12bbf2427fd773447a5dca2324b5ad43e8699aa234353b43679f3f46a552a8148a434b WHIRLPOOL b4e1bd237bb029b37e709b0c83e0146bfd0074ff00dd992b59b19a364f0d7e8497ebc19042056f1e23e591b7a5a84801e2b52103b74b5d369622bb01126485fd
+MISC metadata.xml 383 SHA256 2b8b3f4b10decd35022fb1973384e6d8ac74c439bcd104263651faada927b728 SHA512 b7be1a1ea17efea5c3d01d812a79e8c84137219c36d9a4ce511f473d99102953df615ce119e5d993253cf1ec65967a2df06f8e23eb2bfb2debe1e03049ffed29 WHIRLPOOL 431d2deed63c25a74019050e19618a1e1d5482b81c03f9d14cc8b01218cb96ca1bc703a94ecaa54a487c02608e6b0ac7080082a4f30ae49b3e8f22a3a81a3fea
diff --git a/media-sound/spotify/metadata.xml b/media-sound/spotify/metadata.xml
new file mode 100644
index 0000000..2829164
--- /dev/null
+++ b/media-sound/spotify/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <use>
+ <flag name="pax_kernel">Triggers a paxmarking of the main Spotify binary</flag>
+ </use>
+<maintainer>
+<email>prometheanfire@gentoo.org</email>
+<name>Matthew Thode</name>
+</maintainer>
+<longdescription lang="en">
+</longdescription>
+</pkgmetadata>
+
diff --git a/media-sound/spotify/spotify-0.8.4.103-r2.ebuild b/media-sound/spotify/spotify-0.8.4.103-r2.ebuild
new file mode 100644
index 0000000..ecfb8f3
--- /dev/null
+++ b/media-sound/spotify/spotify-0.8.4.103-r2.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/spotify/spotify-0.8.4.103-r2.ebuild,v 1.1 2012/11/16 05:13:07 prometheanfire Exp $
+
+EAPI=4
+inherit pax-utils
+
+DESCRIPTION="Spotify is a social music platform"
+HOMEPAGE="https://www.spotify.com/ch-de/download/previews/"
+MY_PV="${PV}.g9cb177b.260-1"
+MY_P="${PN}-client_${MY_PV}"
+SRC_BASE="http://repository.spotify.com/pool/non-free/${PN:0:1}/${PN}/"
+#SRC_BASE="http://download.spotify.com/preview/"
+SRC_URI="
+ x86? ( ${SRC_BASE}${MY_P}_i386.deb )
+ amd64? ( ${SRC_BASE}${MY_P}_amd64.deb )
+ "
+LICENSE="Spotify"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gnome pax_kernel pulseaudio"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ x11-libs/libX11
+ x11-libs/libSM
+ x11-libs/libICE
+ x11-libs/libXrender
+ x11-libs/libXrandr
+ x11-libs/libXinerama
+ x11-libs/libXext
+ x11-libs/libxcb
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/qt-core:4
+ x11-libs/qt-gui:4
+ x11-libs/qt-webkit:4
+ x11-libs/qt-dbus:4
+ x11-libs/libXScrnSaver
+ media-libs/freetype
+ media-libs/fontconfig
+ media-libs/alsa-lib
+ dev-libs/openssl:0
+ dev-libs/glib:2
+ media-libs/libpng:1.2
+ dev-db/sqlite:3
+ sys-libs/zlib
+ app-arch/bzip2
+ sys-apps/dbus
+ sys-apps/util-linux
+ dev-libs/expat
+ >=dev-libs/nspr-4.9
+ gnome-base/gconf:2
+ x11-libs/gtk+:2
+ dev-libs/nss
+ dev-libs/glib:2
+ pulseaudio? ( >=media-sound/pulseaudio-0.9.21 )
+ gnome? ( gnome-extra/gnome-integration-spotify )"
+
+RESTRICT="mirror strip"
+
+src_unpack() {
+ mkdir "${P}"
+ cd "${P}"
+ unpack ${A}
+ unpack ./data.tar.gz
+}
+
+src_prepare() {
+ # link against openssl-1.0.0 as it crashes with 0.9.8
+ sed -i \
+ -e 's/\(lib\(ssl\|crypto\).so\).0.9.8/\1.1.0.0/g' \
+ usr/share/spotify/spotify || die "sed failed"
+ # different NSPR / NSS library names for some reason
+ sed -i \
+ -e 's/\(lib\(nss3\|nssutil3\|smime3\).so\).1d/\1.12/g' \
+ -e 's/\(lib\(plc4\|nspr4\).so\).0d\(.\)/\1.9\3\3/g' \
+ usr/share/spotify/libcef.so || die "sed failed"
+ # Fix desktop entry to launch spotify-dbus.py for GNOME integration
+ if use gnome ; then
+ sed -i \
+ -e 's/spotify \%U/spotify-dbus.py \%U/g' \
+ usr/share/applications/spotify.desktop || die "sed failed"
+ fi
+ #and fix other stuff in the desktop file as well
+ sed -i \
+ -e 's/x-scheme-handler\/spotify$/x-scheme-handler\/spotify\;/g' \
+ -e 's/AudioVideo$/AudioVideo\;/g' \
+ usr/share/applications/spotify.desktop || die "sed failed"
+}
+
+src_install() {
+ dodoc usr/share/doc/spotify-client/changelog.Debian.gz
+ dodoc usr/share/doc/spotify-client/copyright
+ insinto /usr/share/applications
+ doins usr/share/applications/*.desktop
+ insinto /usr/share/pixmaps
+ doins usr/share/pixmaps/*.png
+
+ # install in /opt/spotify
+ SPOTIFY_HOME=/opt/spotify
+ dodir ${SPOTIFY_HOME}
+ insinto ${SPOTIFY_HOME}
+ doins -r usr/share/spotify/*
+ fperms +x ${SPOTIFY_HOME}/spotify
+ dodir /usr/share
+ dosym ${SPOTIFY_HOME} /usr/share/spotify
+
+ dodir /usr/bin
+ cat <<-EOF >"${D}"/usr/bin/spotify
+ #! /bin/sh
+ LD_PRELOAD="\${LD_PRELOAD} /usr/share/spotify/libcef.so"
+ export LD_PRELOAD
+ exec ${SPOTIFY_HOME}/spotify "\$@"
+ EOF
+ fperms +x /usr/bin/spotify
+
+ # revdep-rebuild produces a false positive because of symbol versioning
+ dodir /etc/revdep-rebuild
+ cat <<-EOF >"${D}"/etc/revdep-rebuild/10${PN}
+ SEARCH_DIRS_MASK="${SPOTIFY_HOME}"
+ EOF
+
+ if use pax_kernel; then
+ #create the headers, reset them to default, then paxmark -m them
+ pax-mark C "${ED}"/opt/${PN}/${PN} || die
+ pax-mark z "${ED}"/opt/${PN}/${PN} || die
+ pax-mark m "${ED}"/opt/${PN}/${PN} || die
+ eqawarn "You have set USE=pax_kernel meaning that you intendto run"
+ eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
+ eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
+ eqawarn "you suspect that ${PN} is being broken by this modification,"
+ eqawarn "please open a bug."
+ fi
+}
+
+pkg_postinst() {
+ ewarn "If Spotify crashes after an upgrade its cache may be corrupt."
+ ewarn "To remove the cache:"
+ ewarn "rm -rf ~/.cache/spotify"
+}
diff --git a/media-sound/spotify/spotify-0.8.4.103-r3.ebuild b/media-sound/spotify/spotify-0.8.4.103-r3.ebuild
new file mode 100644
index 0000000..1c912ca
--- /dev/null
+++ b/media-sound/spotify/spotify-0.8.4.103-r3.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/spotify/spotify-0.8.4.103-r3.ebuild,v 1.1 2012/12/17 15:18:25 prometheanfire Exp $
+
+EAPI=4
+inherit pax-utils
+
+DESCRIPTION="Spotify is a social music platform"
+HOMEPAGE="https://www.spotify.com/ch-de/download/previews/"
+MY_PV="${PV}.g9cb177b.260-1"
+MY_P="${PN}-client_${MY_PV}"
+SRC_BASE="http://repository.spotify.com/pool/non-free/${PN:0:1}/${PN}/"
+#SRC_BASE="http://download.spotify.com/preview/"
+SRC_URI="
+ x86? ( ${SRC_BASE}${MY_P}_i386.deb )
+ amd64? ( ${SRC_BASE}${MY_P}_amd64.deb )
+ "
+LICENSE="Spotify"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gnome pax_kernel pulseaudio"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ x11-libs/libX11
+ x11-libs/libSM
+ x11-libs/libICE
+ x11-libs/libXrender
+ x11-libs/libXrandr
+ x11-libs/libXinerama
+ x11-libs/libXext
+ x11-libs/libxcb
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/qt-core:4
+ x11-libs/qt-gui:4
+ x11-libs/qt-webkit:4
+ x11-libs/qt-dbus:4
+ x11-libs/libXScrnSaver
+ media-libs/freetype
+ media-libs/fontconfig
+ media-libs/alsa-lib
+ dev-libs/openssl:0
+ dev-libs/glib:2
+ media-libs/libpng:1.2
+ dev-db/sqlite:3
+ sys-libs/zlib
+ app-arch/bzip2
+ sys-apps/dbus
+ sys-apps/util-linux
+ dev-libs/expat
+ >=dev-libs/nspr-4.9
+ gnome-base/gconf:2
+ x11-libs/gtk+:2
+ dev-libs/nss
+ dev-libs/glib:2
+ net-print/cups
+ pulseaudio? ( >=media-sound/pulseaudio-0.9.21 )
+ gnome? ( gnome-extra/gnome-integration-spotify )"
+
+RESTRICT="mirror strip"
+
+src_unpack() {
+ mkdir "${P}"
+ cd "${P}"
+ unpack ${A}
+ unpack ./data.tar.gz
+}
+
+src_prepare() {
+ # link against openssl-1.0.0 as it crashes with 0.9.8
+ sed -i \
+ -e 's/\(lib\(ssl\|crypto\).so\).0.9.8/\1.1.0.0/g' \
+ usr/share/spotify/spotify || die "sed failed"
+ # different NSPR / NSS library names for some reason
+ sed -i \
+ -e 's/\(lib\(nss3\|nssutil3\|smime3\).so\).1d/\1.12/g' \
+ -e 's/\(lib\(plc4\|nspr4\).so\).0d\(.\)/\1.9\3\3/g' \
+ usr/share/spotify/libcef.so || die "sed failed"
+ # Fix desktop entry to launch spotify-dbus.py for GNOME integration
+ if use gnome ; then
+ sed -i \
+ -e 's/spotify \%U/spotify-dbus.py \%U/g' \
+ usr/share/applications/spotify.desktop || die "sed failed"
+ fi
+ #and fix other stuff in the desktop file as well
+ sed -i \
+ -e 's/x-scheme-handler\/spotify$/x-scheme-handler\/spotify\;/g' \
+ -e 's/AudioVideo$/AudioVideo\;/g' \
+ usr/share/applications/spotify.desktop || die "sed failed"
+}
+
+src_install() {
+ dodoc usr/share/doc/spotify-client/changelog.Debian.gz
+ dodoc usr/share/doc/spotify-client/copyright
+ insinto /usr/share/applications
+ doins usr/share/applications/*.desktop
+ insinto /usr/share/pixmaps
+ doins usr/share/pixmaps/*.png
+
+ # install in /opt/spotify
+ SPOTIFY_HOME=/opt/spotify
+ dodir ${SPOTIFY_HOME}
+ insinto ${SPOTIFY_HOME}
+ doins -r usr/share/spotify/*
+ fperms +x ${SPOTIFY_HOME}/spotify
+ dodir /usr/share
+ dosym ${SPOTIFY_HOME} /usr/share/spotify
+
+ dodir /usr/bin
+ cat <<-EOF >"${D}"/usr/bin/spotify
+ #! /bin/sh
+ LD_PRELOAD="\${LD_PRELOAD} /usr/share/spotify/libcef.so"
+ export LD_PRELOAD
+ exec ${SPOTIFY_HOME}/spotify "\$@"
+ EOF
+ fperms +x /usr/bin/spotify
+
+ # revdep-rebuild produces a false positive because of symbol versioning
+ dodir /etc/revdep-rebuild
+ cat <<-EOF >"${D}"/etc/revdep-rebuild/10${PN}
+ SEARCH_DIRS_MASK="${SPOTIFY_HOME}"
+ EOF
+
+ if use pax_kernel; then
+ #create the headers, reset them to default, then paxmark -m them
+ pax-mark C "${ED}"/opt/${PN}/${PN} || die
+ pax-mark z "${ED}"/opt/${PN}/${PN} || die
+ pax-mark m "${ED}"/opt/${PN}/${PN} || die
+ eqawarn "You have set USE=pax_kernel meaning that you intendto run"
+ eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
+ eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
+ eqawarn "you suspect that ${PN} is being broken by this modification,"
+ eqawarn "please open a bug."
+ fi
+}
+
+pkg_postinst() {
+ ewarn "If Spotify crashes after an upgrade its cache may be corrupt."
+ ewarn "To remove the cache:"
+ ewarn "rm -rf ~/.cache/spotify"
+}
diff --git a/media-sound/spotify/spotify-0.8.8.323.ebuild b/media-sound/spotify/spotify-0.8.8.323.ebuild
new file mode 100644
index 0000000..cc1a41b
--- /dev/null
+++ b/media-sound/spotify/spotify-0.8.8.323.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/spotify/spotify-0.8.4.103-r3.ebuild,v 1.1 2012/12/17 15:18:25 prometheanfire Exp $
+
+EAPI=4
+inherit pax-utils
+
+DESCRIPTION="Spotify is a social music platform"
+HOMEPAGE="https://www.spotify.com/ch-de/download/previews/"
+MY_PV="${PV}.gd143501.250-1"
+MY_P="${PN}-client_${MY_PV}"
+SRC_BASE="http://repository.spotify.com/pool/non-free/${PN:0:1}/${PN}/"
+#SRC_BASE="http://download.spotify.com/preview/"
+SRC_URI="
+ x86? ( ${SRC_BASE}${MY_P}_i386.deb )
+ amd64? ( ${SRC_BASE}${MY_P}_amd64.deb )
+ "
+LICENSE="Spotify"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gnome pax_kernel pulseaudio"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ x11-libs/libX11
+ x11-libs/libSM
+ x11-libs/libICE
+ x11-libs/libXrender
+ x11-libs/libXrandr
+ x11-libs/libXinerama
+ x11-libs/libXext
+ x11-libs/libxcb
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/qt-core:4
+ x11-libs/qt-gui:4
+ x11-libs/qt-webkit:4
+ x11-libs/qt-dbus:4
+ x11-libs/libXScrnSaver
+ media-libs/freetype
+ media-libs/fontconfig
+ media-libs/alsa-lib
+ dev-libs/openssl:0
+ dev-libs/glib:2
+ media-libs/libpng:1.2
+ dev-db/sqlite:3
+ sys-libs/zlib
+ app-arch/bzip2
+ sys-apps/dbus
+ sys-apps/util-linux
+ dev-libs/expat
+ >=dev-libs/nspr-4.9
+ gnome-base/gconf:2
+ x11-libs/gtk+:2
+ dev-libs/nss
+ dev-libs/glib:2
+ net-print/cups
+ pulseaudio? ( >=media-sound/pulseaudio-0.9.21 )
+ gnome? ( gnome-extra/gnome-integration-spotify )"
+
+RESTRICT="mirror strip"
+
+src_unpack() {
+ mkdir "${P}"
+ cd "${P}"
+ unpack ${A}
+ unpack ./data.tar.gz
+}
+
+src_prepare() {
+ # link against openssl-1.0.0 as it crashes with 0.9.8
+ sed -i \
+ -e 's/\(lib\(ssl\|crypto\).so\).0.9.8/\1.1.0.0/g' \
+ usr/share/spotify/spotify || die "sed failed"
+ # different NSPR / NSS library names for some reason
+ sed -i \
+ -e 's/\(lib\(nss3\|nssutil3\|smime3\).so\).1d/\1.12/g' \
+ -e 's/\(lib\(plc4\|nspr4\).so\).0d\(.\)/\1.9\3\3/g' \
+ usr/share/spotify/libcef.so || die "sed failed"
+ # Fix desktop entry to launch spotify-dbus.py for GNOME integration
+ if use gnome ; then
+ sed -i \
+ -e 's/spotify \%U/spotify-dbus.py \%U/g' \
+ usr/share/applications/spotify.desktop || die "sed failed"
+ fi
+ #and fix other stuff in the desktop file as well
+ sed -i \
+ -e 's/x-scheme-handler\/spotify$/x-scheme-handler\/spotify\;/g' \
+ -e 's/AudioVideo$/AudioVideo\;/g' \
+ usr/share/applications/spotify.desktop || die "sed failed"
+}
+
+src_install() {
+ dodoc usr/share/doc/spotify-client/changelog.Debian.gz
+ dodoc usr/share/doc/spotify-client/copyright
+ insinto /usr/share/applications
+ doins usr/share/applications/*.desktop
+ insinto /usr/share/pixmaps
+ doins usr/share/pixmaps/*.png
+
+ # install in /opt/spotify
+ SPOTIFY_HOME=/opt/spotify
+ dodir ${SPOTIFY_HOME}
+ insinto ${SPOTIFY_HOME}
+ doins -r usr/share/spotify/*
+ fperms +x ${SPOTIFY_HOME}/spotify
+ dodir /usr/share
+ dosym ${SPOTIFY_HOME} /usr/share/spotify
+
+ dodir /usr/bin
+ cat <<-EOF >"${D}"/usr/bin/spotify
+ #! /bin/sh
+ LD_PRELOAD="\${LD_PRELOAD} /usr/share/spotify/libcef.so"
+ export LD_PRELOAD
+ exec ${SPOTIFY_HOME}/spotify "\$@"
+ EOF
+ fperms +x /usr/bin/spotify
+
+ # revdep-rebuild produces a false positive because of symbol versioning
+ dodir /etc/revdep-rebuild
+ cat <<-EOF >"${D}"/etc/revdep-rebuild/10${PN}
+ SEARCH_DIRS_MASK="${SPOTIFY_HOME}"
+ EOF
+
+ if use pax_kernel; then
+ #create the headers, reset them to default, then paxmark -m them
+ pax-mark C "${ED}"/opt/${PN}/${PN} || die
+ pax-mark z "${ED}"/opt/${PN}/${PN} || die
+ pax-mark m "${ED}"/opt/${PN}/${PN} || die
+ eqawarn "You have set USE=pax_kernel meaning that you intendto run"
+ eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
+ eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
+ eqawarn "you suspect that ${PN} is being broken by this modification,"
+ eqawarn "please open a bug."
+ fi
+}
+
+pkg_postinst() {
+ ewarn "If Spotify crashes after an upgrade its cache may be corrupt."
+ ewarn "To remove the cache:"
+ ewarn "rm -rf ~/.cache/spotify"
+}