Gentoo Archives: gentoo-commits

From: "Stefan Schweizer (genstef)" <genstef@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/lastfmplayer: ChangeLog lastfmplayer-1.4.2.58240-r1.ebuild
Date: Wed, 02 Apr 2008 22:30:57
Message-Id: E1JhBTp-0003p1-Gj@stork.gentoo.org
1 genstef 08/04/02 22:30:53
2
3 Modified: ChangeLog
4 Added: lastfmplayer-1.4.2.58240-r1.ebuild
5 Log:
6 Use debian package to reduce download size dramatically and also install i18n, bug 215635
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.29 media-sound/lastfmplayer/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/lastfmplayer/ChangeLog?rev=1.29&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/lastfmplayer/ChangeLog?rev=1.29&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/lastfmplayer/ChangeLog?r1=1.28&r2=1.29
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/ChangeLog,v
19 retrieving revision 1.28
20 retrieving revision 1.29
21 diff -u -r1.28 -r1.29
22 --- ChangeLog 11 Mar 2008 20:05:55 -0000 1.28
23 +++ ChangeLog 2 Apr 2008 22:30:52 -0000 1.29
24 @@ -1,6 +1,13 @@
25 # ChangeLog for media-sound/lastfmplayer
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/ChangeLog,v 1.28 2008/03/11 20:05:55 genstef Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/ChangeLog,v 1.29 2008/04/02 22:30:52 genstef Exp $
29 +
30 +*lastfmplayer-1.4.2.58240-r1 (02 Apr 2008)
31 +
32 + 02 Apr 2008; Stefan Schweizer <genstef@g.o>
33 + +lastfmplayer-1.4.2.58240-r1.ebuild:
34 + Use debian package to reduce download size dramatically and also install
35 + i18n, bug 215635
36
37 11 Mar 2008; Stefan Schweizer <genstef@g.o>
38 lastfmplayer-1.4.2.58240.ebuild:
39
40
41
42 1.1 media-sound/lastfmplayer/lastfmplayer-1.4.2.58240-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/lastfmplayer/lastfmplayer-1.4.2.58240-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/lastfmplayer/lastfmplayer-1.4.2.58240-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: lastfmplayer-1.4.2.58240-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $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 $
52
53 inherit eutils qt4
54
55 MY_P="${P/lastfmplayer/lastfm}.dfsg"
56
57 DESCRIPTION="The player allows you to listen to last.fm radio streams"
58 HOMEPAGE="http://www.last.fm/help/player"
59 SRC_URI="mirror://debian/pool/main/l/lastfm/lastfm_${PV}.dfsg.orig.tar.gz
60 mirror://debian/pool/main/l/lastfm/lastfm_${PV}.dfsg-1.diff.gz"
61 #http://cdn.last.fm/client/src/${MY_P}.src.tar.bz2
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~x86 ~ppc ~amd64"
66 IUSE=""
67 RESTRICT="mirror"
68
69 DEPEND="$(qt4_min_version 4.2)
70 media-libs/libsamplerate
71 sci-libs/fftw
72 media-libs/libmad
73 >=media-libs/libgpod-0.5.2
74 media-libs/alsa-lib"
75 RDEPEND="${DEPEND}"
76
77 S="${WORKDIR}/${MY_P}"
78
79 src_unpack() {
80 unpack ${A}
81 epatch lastfm_${PV}.dfsg-1.diff
82 cd "${S}"
83 for i in $(< debian/patches/series); do
84 epatch debian/patches/$i
85 done
86 }
87
88 src_compile() {
89 ./configure
90 emake || die "emake failed"
91 cd i18n; lrelease *.ts
92 }
93
94 src_install() {
95 # Docs
96 dodoc ChangeLog README debian/README.Debian-source
97
98 # make directories
99 for i in $(<debian/lastfm.install); do [ ${i:0:1} == / ] && dodir $i; done
100 # debian installation
101 sed -i -e "s:^:cp :" -e 's: /:${D}/:' debian/lastfm.install
102 bash debian/lastfm.install
103
104 # Copied from debian/rules
105 uudecode -o - debian/icons.tar.gz.uu | tar -xzf -
106 uudecode -o - debian/trayicons22.tar.gz.uu | tar -xzf -
107 insinto /usr/share
108 doins icons
109 insinto /usr/share/lastfm/icons
110 doins user_*.png
111 mv ${D}/usr/bin/last{.,}fm
112 rm -f ${D}/usr/share/lastfm/icons/{*profile24,systray_mac}.png
113 doman debian/lastfm.1
114
115 # make icon work
116 rm ${D}/usr/share/pixmaps/lastfm{16,32}.xpm
117 cd ${D}/usr/share/pixmaps
118 ln -s /usr/share/lastfm/icons/as.png lastfm.png
119 }
120
121 pkg_postinst() {
122 elog "To use the Last.fm player with a mozilla based browser:"
123 elog " 1. Go to about:config in the browser"
124 elog " 2. Right-click on the page"
125 elog " 3. Select New and then String"
126 elog " 4. For the name: network.protocol-handler.app.lastfm"
127 elog " 5. For the value: /usr/bin/lastfm"
128 elog
129 elog "If you experience awkward fonts or widgets, try running qtconfig."
130 }
131
132
133
134 --
135 gentoo-commits@l.g.o mailing list