diff options
author | Justin Riley <justin.t.riley@gmail.com> | 2012-02-27 14:32:01 -0500 |
---|---|---|
committer | Justin Riley <justin.t.riley@gmail.com> | 2012-02-27 14:32:01 -0500 |
commit | b733bd3faba9f429446de3674fb96d883b8528da (patch) | |
tree | c977dd700b18e21e65974d5aced377f5e311300c /media-sound | |
parent | remove old spotify ebuild (diff) | |
download | jtriley-b733bd3faba9f429446de3674fb96d883b8528da.tar.gz jtriley-b733bd3faba9f429446de3674fb96d883b8528da.tar.bz2 jtriley-b733bd3faba9f429446de3674fb96d883b8528da.zip |
merge latest 0.6.6.10 updates from bug #300917
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/spotify/files/10spotify | 1 | ||||
-rw-r--r-- | media-sound/spotify/spotify-0.6.6.10.ebuild | 98 |
2 files changed, 64 insertions, 35 deletions
diff --git a/media-sound/spotify/files/10spotify b/media-sound/spotify/files/10spotify deleted file mode 100644 index fd2e760..0000000 --- a/media-sound/spotify/files/10spotify +++ /dev/null @@ -1 +0,0 @@ -SEARCH_DIRS_MASK="/opt/spotify" diff --git a/media-sound/spotify/spotify-0.6.6.10.ebuild b/media-sound/spotify/spotify-0.6.6.10.ebuild index 112d695..bd2fcf0 100644 --- a/media-sound/spotify/spotify-0.6.6.10.ebuild +++ b/media-sound/spotify/spotify-0.6.6.10.ebuild @@ -1,55 +1,83 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ -EAPI="2" +EAPI=4 -DESCRIPTION="Spotify desktop client" -HOMEPAGE="http://www.spotify.com/" - -LICENSE="Spotify" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" +DESCRIPTION="Spotify is a social music platform" +HOMEPAGE="https://www.spotify.com/ch-de/download/previews/" MY_PV="${PV}.gbd39032.58-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 ) - " + x86? ( ${SRC_BASE}${MY_P}_i386.deb ) + amd64? ( ${SRC_BASE}${MY_P}_amd64.deb ) + " +LICENSE="Spotify" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" -RDEPEND=" - dev-libs/openssl:0.9.8 - >=media-libs/alsa-lib-1.0.14 - >=sys-devel/gcc-4.0 - >=sys-libs/glibc-2.6 - >=x11-libs/qt-core-4.5 - >=x11-libs/qt-dbus-4.5 - >=x11-libs/qt-gui-4.5 - >=x11-libs/qt-webkit-4.5 - " +DEPEND="sys-devel/binutils + app-arch/tar" +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 + media-libs/phonon + dev-libs/openssl + dev-libs/glib:2 + >media-libs/libpng-1.5 + dev-db/sqlite:3 + sys-libs/zlib + app-arch/bzip2 + sys-apps/dbus + sys-apps/util-linux + dev-libs/expat" RESTRICT="mirror strip" src_unpack() { - for MY_A in ${A}; do - unpack ${MY_A} - unpack ./data.tar.gz - done + mkdir "${P}" + cd "${P}" + unpack "${A}" + unpack ./data.tar.gz } src_install() { + dodoc usr/share/doc/spotify-client-qt/changelog.Debian.gz + dodoc usr/share/doc/spotify-client-qt/copyright + insinto /usr/share/applications + doins usr/share/applications/*.desktop + insinto /usr/share/pixmaps + doins usr/share/pixmaps/*.png + dodir /usr/share/spotify + insinto /usr/share/spotify + doins -r usr/share/spotify/* + + # install the binary in /opt/spotify declare SPOTIFY_HOME=/opt/spotify dodir ${SPOTIFY_HOME} insinto ${SPOTIFY_HOME} - doins "${WORKDIR}"/usr/bin/"${PN}" - rm "${WORKDIR}"/usr/bin/"${PN}" - mv "${WORKDIR}"/usr "${D}" || die "Install failed" + doins usr/bin/spotify - # Create /usr/bin/spotify + # Create /usr/bin/spotify wrapper dodir /usr/bin/ cat <<-EOF >"${D}"/usr/bin/${PN} #!/bin/sh @@ -58,7 +86,9 @@ src_install() { fperms 0755 /usr/bin/${PN} fperms 0755 $SPOTIFY_HOME/${PN} - # revdep-rebuild entry - insinto /etc/revdep-rebuild - doins "${FILESDIR}"/10${PN} || die + dodir /etc/revdep-rebuild + # create revdep-rebuild entry for spotify_home + cat <<-EOF >"${D}"/etc/revdep-rebuild/10"${PN}" + SEARCH_DIRS_MASK="/opt/spotify" + EOF } |