# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
DESCRIPTION="Spotify desktop client"
HOMEPAGE="http://www.spotify.com/"
LICENSE="Spotify"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gnome"
MY_PV="${PV}.gb871a7d-1"
MY_P="${PN}-client-qt_${MY_PV}"
SRC_BASE="http://repository.spotify.com/pool/non-free/${PN:0:1}/${PN}/"
SRC_URI="
x86? ( ${SRC_BASE}${MY_P}_i386.deb )
amd64? ( ${SRC_BASE}${MY_P}_amd64.deb ) "
Update: Remove gnome-support since Spotify states this is broken and will be removed in the future.
RDEPEND="
gnome? ( >=gnome-base/gconf-2.12 )
>=sys-libs/glibc-2.6
>=media-libs/alsa-lib-1.0.14
>=x11-libs/qt-core-4.5
>=x11-libs/qt-dbus-4.5
>=x11-libs/qt-gui-4.5
>=x11-libs/qt-webkit-4.5
>=sys-devel/gcc-4.0
sys-apps/usbutils
"
RESTRICT="mirror strip"
src_unpack() {
for MY_A in ${A}; do
unpack ${MY_A}
unpack ./data.tar.gz
done
}
src_install() {
mv "${WORKDIR}"/usr "${D}" || die "Install failed"
}
Update2: This ebuild does NOT work on Gentoo (~amd64) right now since there is a dependency on libssl-0.9.8, and we are currently using v1.0. Hopefully this will be solved somehow. I'll remove this update when it is.