1 |
hwoarang 09/03/22 23:42:49 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: lastfmplayer-1.5.1.31879-r3.ebuild |
5 |
Removed: lastfmplayer-1.5.1.31879-r2.ebuild |
6 |
Log: |
7 |
New patch for qt-4.5 compatibility. Removing old ebuild |
8 |
(Portage version: 2.2_rc26/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.36 media-sound/lastfmplayer/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/lastfmplayer/ChangeLog?rev=1.36&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/lastfmplayer/ChangeLog?rev=1.36&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/lastfmplayer/ChangeLog?r1=1.35&r2=1.36 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/ChangeLog,v |
20 |
retrieving revision 1.35 |
21 |
retrieving revision 1.36 |
22 |
diff -u -r1.35 -r1.36 |
23 |
--- ChangeLog 17 Feb 2009 20:07:23 -0000 1.35 |
24 |
+++ ChangeLog 22 Mar 2009 23:42:49 -0000 1.36 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for media-sound/lastfmplayer |
27 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/ChangeLog,v 1.35 2009/02/17 20:07:23 hwoarang Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/ChangeLog,v 1.36 2009/03/22 23:42:49 hwoarang Exp $ |
30 |
+ |
31 |
+*lastfmplayer-1.5.1.31879-r3 (22 Mar 2009) |
32 |
+ |
33 |
+ 22 Mar 2009; Markos Chandras <hwoarang@g.o> |
34 |
+ -files/makefile-qt45.patch, +files/volumeslider_h-qt45.patch, |
35 |
+ -lastfmplayer-1.5.1.31879-r2.ebuild, +lastfmplayer-1.5.1.31879-r3.ebuild: |
36 |
+ New patch for qt-4.5 compatibility. Removing old ebuild due to ugly |
37 |
+ workaround |
38 |
|
39 |
*lastfmplayer-1.5.1.31879-r2 (17 Feb 2009) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 media-sound/lastfmplayer/lastfmplayer-1.5.1.31879-r3.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/lastfmplayer/lastfmplayer-1.5.1.31879-r3.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/lastfmplayer/lastfmplayer-1.5.1.31879-r3.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: lastfmplayer-1.5.1.31879-r3.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2009 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/lastfmplayer-1.5.1.31879-r3.ebuild,v 1.1 2009/03/22 23:42:49 hwoarang Exp $ |
54 |
|
55 |
EAPI="2" |
56 |
|
57 |
inherit eutils multilib qt4 |
58 |
|
59 |
MY_P="${P/lastfmplayer/lastfm}.dfsg" |
60 |
|
61 |
DESCRIPTION="A player for last.fm radio streams" |
62 |
HOMEPAGE="http://www.last.fm/help/player" |
63 |
SRC_URI="mirror://debian/pool/main/l/lastfm/lastfm_${PV}.dfsg.orig.tar.gz |
64 |
mirror://debian/pool/main/l/lastfm/lastfm_${PV}.dfsg-1.diff.gz" |
65 |
#http://cdn.last.fm/client/src/${MY_P}.src.tar.bz2 |
66 |
|
67 |
LICENSE="GPL-2" |
68 |
SLOT="0" |
69 |
KEYWORDS="~amd64 ~ppc ~x86" |
70 |
IUSE="ipod" |
71 |
RESTRICT="mirror" |
72 |
|
73 |
RDEPEND="|| ( ( x11-libs/qt-gui:4 x11-libs/qt-sql:4 ) x11-libs/qt:4 ) |
74 |
media-libs/libsamplerate |
75 |
sci-libs/fftw |
76 |
media-libs/libmad |
77 |
ipod? ( >=media-libs/libgpod-0.5.2 ) |
78 |
media-libs/alsa-lib" |
79 |
DEPEND="${RDEPEND} |
80 |
app-arch/sharutils" |
81 |
|
82 |
S="${WORKDIR}/${MY_P}" |
83 |
|
84 |
PATCHES=( |
85 |
"${FILESDIR}"/volumeslider_h-qt45.patch |
86 |
) |
87 |
|
88 |
src_prepare() { |
89 |
qt4_src_prepare |
90 |
cd "${WORKDIR}" |
91 |
epatch lastfm_${PV}.dfsg-1.diff |
92 |
cd "${S}" |
93 |
for i in $(< debian/patches/series); do |
94 |
epatch debian/patches/$i |
95 |
done |
96 |
if ! use ipod ; then |
97 |
sed -i '/src\/mediadevices\/ipod/d' LastFM.pro || die "sed failed" |
98 |
fi |
99 |
} |
100 |
|
101 |
src_compile() { |
102 |
emake || die "emake failed" |
103 |
cd i18n; lrelease *.ts |
104 |
} |
105 |
|
106 |
src_install() { |
107 |
# Docs |
108 |
dodoc ChangeLog README debian/README.source || die "dodoc failed" |
109 |
doman debian/lastfm.1 || die "doman failed" |
110 |
|
111 |
# Copied from debian/rules |
112 |
uudecode -o - debian/icons.tar.gz.uu | tar -xzf - |
113 |
uudecode -o - debian/trayicons22.tar.gz.uu | tar -xzf - |
114 |
insinto /usr/share |
115 |
doins -r icons |
116 |
insinto /usr/share/lastfm/icons |
117 |
doins user_*.png |
118 |
|
119 |
sed -i -e "s,/usr/lib,/usr/$(get_libdir),g" debian/lastfm.install |
120 |
# make directories |
121 |
for i in $(<debian/lastfm.install); do [ ${i:0:1} == / ] && dodir $i; done |
122 |
# debian installation |
123 |
sed -i -e "s:^:mv :" -e 's: /:${D}/:' debian/lastfm.install |
124 |
bash debian/lastfm.install |
125 |
|
126 |
# copied.. |
127 |
mv "${D}"/usr/bin/lastfm.sh "${D}"/usr/bin/lastfm |
128 |
fperms 755 /usr/bin/lastfm |
129 |
rm -f "${D}"/usr/share/lastfm/icons/{*profile24,systray_mac}.png |
130 |
} |
131 |
|
132 |
pkg_postinst() { |
133 |
elog "To use the Last.fm player with a mozilla based browser:" |
134 |
elog " 1. Go to about:config in the browser" |
135 |
elog " 2. Right-click on the page" |
136 |
elog " 3. Select New and then String" |
137 |
elog " 4. For the name: network.protocol-handler.app.lastfm" |
138 |
elog " 5. For the value: /usr/bin/lastfm" |
139 |
elog |
140 |
elog "If you experience awkward fonts or widgets, try running qtconfig." |
141 |
} |