diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2008-04-02 22:30:52 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2008-04-02 22:30:52 +0000 |
commit | 52ef9d1470d10c2e8fa8a73200f8a266eb169276 (patch) | |
tree | 36501225e37f322c5337b85dababf4de7bed8c3a /media-sound/lastfmplayer | |
parent | USE mask mythtv on gst-plugins-meta - dependency not keyworded (diff) | |
download | gentoo-2-52ef9d1470d10c2e8fa8a73200f8a266eb169276.tar.gz gentoo-2-52ef9d1470d10c2e8fa8a73200f8a266eb169276.tar.bz2 gentoo-2-52ef9d1470d10c2e8fa8a73200f8a266eb169276.zip |
Use debian package to reduce download size dramatically and also install i18n, bug 215635
(Portage version: 2.1.4.4)
Diffstat (limited to 'media-sound/lastfmplayer')
-rw-r--r-- | media-sound/lastfmplayer/ChangeLog | 9 | ||||
-rw-r--r-- | media-sound/lastfmplayer/lastfmplayer-1.4.2.58240-r1.ebuild | 82 |
2 files changed, 90 insertions, 1 deletions
diff --git a/media-sound/lastfmplayer/ChangeLog b/media-sound/lastfmplayer/ChangeLog index 5ec284a19064..e42dc038a291 100644 --- a/media-sound/lastfmplayer/ChangeLog +++ b/media-sound/lastfmplayer/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-sound/lastfmplayer # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/ChangeLog,v 1.28 2008/03/11 20:05:55 genstef Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/ChangeLog,v 1.29 2008/04/02 22:30:52 genstef Exp $ + +*lastfmplayer-1.4.2.58240-r1 (02 Apr 2008) + + 02 Apr 2008; Stefan Schweizer <genstef@gentoo.org> + +lastfmplayer-1.4.2.58240-r1.ebuild: + Use debian package to reduce download size dramatically and also install + i18n, bug 215635 11 Mar 2008; Stefan Schweizer <genstef@gentoo.org> lastfmplayer-1.4.2.58240.ebuild: diff --git a/media-sound/lastfmplayer/lastfmplayer-1.4.2.58240-r1.ebuild b/media-sound/lastfmplayer/lastfmplayer-1.4.2.58240-r1.ebuild new file mode 100644 index 000000000000..b637878a73b3 --- /dev/null +++ b/media-sound/lastfmplayer/lastfmplayer-1.4.2.58240-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/lastfmplayer-1.4.2.58240-r1.ebuild,v 1.1 2008/04/02 22:30:52 genstef Exp $ + +inherit eutils qt4 + +MY_P="${P/lastfmplayer/lastfm}.dfsg" + +DESCRIPTION="The player allows you to listen to last.fm radio streams" +HOMEPAGE="http://www.last.fm/help/player" +SRC_URI="mirror://debian/pool/main/l/lastfm/lastfm_${PV}.dfsg.orig.tar.gz + mirror://debian/pool/main/l/lastfm/lastfm_${PV}.dfsg-1.diff.gz" +#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/libsamplerate + sci-libs/fftw + media-libs/libmad + >=media-libs/libgpod-0.5.2 + media-libs/alsa-lib" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + epatch lastfm_${PV}.dfsg-1.diff + cd "${S}" + for i in $(< debian/patches/series); do + epatch debian/patches/$i + done +} + +src_compile() { + ./configure + emake || die "emake failed" + cd i18n; lrelease *.ts +} + +src_install() { + # Docs + dodoc ChangeLog README debian/README.Debian-source + + # make directories + for i in $(<debian/lastfm.install); do [ ${i:0:1} == / ] && dodir $i; done + # debian installation + sed -i -e "s:^:cp :" -e 's: /:${D}/:' debian/lastfm.install + bash debian/lastfm.install + + # Copied from debian/rules + uudecode -o - debian/icons.tar.gz.uu | tar -xzf - + uudecode -o - debian/trayicons22.tar.gz.uu | tar -xzf - + insinto /usr/share + doins icons + insinto /usr/share/lastfm/icons + doins user_*.png + mv ${D}/usr/bin/last{.,}fm + rm -f ${D}/usr/share/lastfm/icons/{*profile24,systray_mac}.png + doman debian/lastfm.1 + + # make icon work + rm ${D}/usr/share/pixmaps/lastfm{16,32}.xpm + cd ${D}/usr/share/pixmaps + ln -s /usr/share/lastfm/icons/as.png lastfm.png +} + +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." +} |