diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2007-11-16 08:42:11 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2007-11-16 08:42:11 +0000 |
commit | f79c9cb320fd9ded653b6e5d15667788df82c2cd (patch) | |
tree | 8e9b4a53da5c869b9ddab0717835d616e36c5bf2 /media-sound/lastfmplayer | |
parent | ipv6 patch merged upstream, fix quoting (diff) | |
download | gentoo-2-f79c9cb320fd9ded653b6e5d15667788df82c2cd.tar.gz gentoo-2-f79c9cb320fd9ded653b6e5d15667788df82c2cd.tar.bz2 gentoo-2-f79c9cb320fd9ded653b6e5d15667788df82c2cd.zip |
version bump thanks to Allen Brooker (AllenJB) <gentoo-bugs@allenjb.me.uk> and Sebastian Krämer <mail@kraymer.de> in bug 197083
(Portage version: 2.1.3.19)
Diffstat (limited to 'media-sound/lastfmplayer')
-rw-r--r-- | media-sound/lastfmplayer/ChangeLog | 9 | ||||
-rw-r--r-- | media-sound/lastfmplayer/files/digest-lastfmplayer-1.3.2.13 | 3 | ||||
-rw-r--r-- | media-sound/lastfmplayer/lastfmplayer-1.3.2.13.ebuild | 77 |
3 files changed, 88 insertions, 1 deletions
diff --git a/media-sound/lastfmplayer/ChangeLog b/media-sound/lastfmplayer/ChangeLog index cd6ea6c0b899..a78aa12597ab 100644 --- a/media-sound/lastfmplayer/ChangeLog +++ b/media-sound/lastfmplayer/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-sound/lastfmplayer # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/ChangeLog,v 1.23 2007/08/29 18:30:00 genstef Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/ChangeLog,v 1.24 2007/11/16 08:42:10 genstef Exp $ + +*lastfmplayer-1.3.2.13 (16 Nov 2007) + + 16 Nov 2007; Stefan Schweizer <genstef@gentoo.org> + +lastfmplayer-1.3.2.13.ebuild: + version bump thanks to Allen Brooker (AllenJB) <gentoo-bugs@allenjb.me.uk> + and Sebastian Krämer <mail@kraymer.de> in bug 197083 *lastfmplayer-1.3.1.0.ebuild (29 Aug 2007) diff --git a/media-sound/lastfmplayer/files/digest-lastfmplayer-1.3.2.13 b/media-sound/lastfmplayer/files/digest-lastfmplayer-1.3.2.13 new file mode 100644 index 000000000000..c6c311e3f285 --- /dev/null +++ b/media-sound/lastfmplayer/files/digest-lastfmplayer-1.3.2.13 @@ -0,0 +1,3 @@ +MD5 a4ec606857e7c1dce3c251741cc7923e last.fm-1.3.2.13.src.tar.bz2 1615081 +RMD160 7cfa97ac99c1f732ea802c5d5ad1cac0ef17f0db last.fm-1.3.2.13.src.tar.bz2 1615081 +SHA256 24178521bbe26e8d1b02a6ebc4a1934f863f4c315b4bd092a389391036b48638 last.fm-1.3.2.13.src.tar.bz2 1615081 diff --git a/media-sound/lastfmplayer/lastfmplayer-1.3.2.13.ebuild b/media-sound/lastfmplayer/lastfmplayer-1.3.2.13.ebuild new file mode 100644 index 000000000000..a3270aceff5d --- /dev/null +++ b/media-sound/lastfmplayer/lastfmplayer-1.3.2.13.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/lastfmplayer-1.3.2.13.ebuild,v 1.1 2007/11/16 08:42:10 genstef Exp $ + +inherit eutils qt4 + +MY_P="${P/lastfmplayer/last.fm}" + +DESCRIPTION="The player allows you to listen to last.fm radio streams" +HOMEPAGE="http://www.last.fm/help/player" +SRC_URI="http://cdn.last.fm/client/src/${MY_P}.src.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc ~amd64" +IUSE="" +RESTRICT="mirror" + +DEPEND="$(qt4_min_version 4.2) + media-libs/alsa-lib" + +S="${WORKDIR}/${MY_P}" + +src_compile() { + eqmake4 LastFM.pro + for subdir in src src/libLastFmTools src/httpinput src/mp3transcode \ + src/output/alsa-playback src/output/portAudio ; do + eqmake4 "${subdir}/${subdir##*/}.pro" -o ${subdir}/Makefile + done + emake || die "emake failed" +} + +src_install() { + # Docs + dodoc ChangeLog README + + # The root at which the player, data, and cache + # are to be installed + local destination="/usr/share/lastfm" + cd bin + + # Make ${destination} writable by audio group + diropts -m0775 -g audio + dodir ${destination} + + # Install the player + cp -R * "${D}"/${destination} + + # Make a folder such that album art cache works + diropts -m0775 -g audio + dodir ${destination}/cache + keepdir ${destination}/cache + + # Icon, menu, protcol + make_wrapper lastfm ./last.fm ${destination} ${destination} + newicon data/icons/as.png lastfm.png + make_desktop_entry lastfm "Last.fm Player" lastfm.png + + # make sure no hanging instance of lastfm is running + sed -i -e 's:exec:if ! ps aux | grep "^$USER.*last.fm.app" | grep Sl >/dev/null 2>\&1; \ + then killall -u $USER last.fm.app >/dev/null 2>\&1; fi\nexec:' \ + "${D}"/usr/bin/lastfm + + insinto /usr/share/services + doins "${FILESDIR}"/lastfm.protocol +} + +pkg_postinst() { + elog "To use the Last.fm player with a mozilla based browser:" + elog " 1. Go to about:config in the browser" + elog " 2. Right-click on the page" + elog " 3. Select New and then String" + elog " 4. For the name: network.protocol-handler.app.lastfm" + elog " 5. For the value: /usr/bin/lastfm" + elog + elog "If you experience awkward fonts or widgets, try running qtconfig." +} |