1 |
hwoarang 11/01/24 14:29:53 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: lastfmplayer-1.5.4.27091-r1.ebuild |
5 |
Log: |
6 |
Add new 'dbus' use flag to support dbus extension |
7 |
|
8 |
(Portage version: 2.2.0_alpha18/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.58 media-sound/lastfmplayer/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/lastfmplayer/ChangeLog?rev=1.58&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/lastfmplayer/ChangeLog?rev=1.58&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/lastfmplayer/ChangeLog?r1=1.57&r2=1.58 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/ChangeLog,v |
20 |
retrieving revision 1.57 |
21 |
retrieving revision 1.58 |
22 |
diff -u -r1.57 -r1.58 |
23 |
--- ChangeLog 23 Jan 2011 18:26:15 -0000 1.57 |
24 |
+++ ChangeLog 24 Jan 2011 14:29:53 -0000 1.58 |
25 |
@@ -1,6 +1,15 @@ |
26 |
# ChangeLog for media-sound/lastfmplayer |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/ChangeLog,v 1.57 2011/01/23 18:26:15 hwoarang Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/ChangeLog,v 1.58 2011/01/24 14:29:53 hwoarang Exp $ |
30 |
+ |
31 |
+*lastfmplayer-1.5.4.27091-r1 (24 Jan 2011) |
32 |
+ |
33 |
+ 24 Jan 2011; Markos Chandras <hwoarang@g.o> |
34 |
+ +lastfmplayer-1.5.4.27091-r1.ebuild, |
35 |
+ +files/lastfmplayer-extensions-path.patch: |
36 |
+ Add new 'dbus' use flag to support dbus extension. See |
37 |
+ http://www.last.fm/forum/21716/_/397336 for more info. This plugin supports |
38 |
+ both dbus and mpris interfaces |
39 |
|
40 |
*lastfmplayer-1.5.4.27091 (23 Jan 2011) |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.1 media-sound/lastfmplayer/lastfmplayer-1.5.4.27091-r1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/lastfmplayer/lastfmplayer-1.5.4.27091-r1.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/lastfmplayer/lastfmplayer-1.5.4.27091-r1.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: lastfmplayer-1.5.4.27091-r1.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2011 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/lastfmplayer-1.5.4.27091-r1.ebuild,v 1.1 2011/01/24 14:29:53 hwoarang Exp $ |
55 |
|
56 |
EAPI=2 |
57 |
inherit eutils multilib toolchain-funcs qt4-r2 |
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 |
http://www.mehercule.net/staticpages/index.php/lastfm" |
64 |
SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/lastfm-${PV}+dfsg.tar.gz |
65 |
http://dev.gentoo.org/~hwoarang/distfiles/lastfm_${PV}+dfsg-2.debian.tar.gz |
66 |
dbus? ( http://glue.umd.edu/~rossatok/dbusextension-2.0.tar.bz2 )" |
67 |
|
68 |
LICENSE="GPL-2" |
69 |
SLOT="0" |
70 |
KEYWORDS="~amd64 ~arm ~ppc ~x86" |
71 |
IUSE="dbus ipod" |
72 |
|
73 |
RDEPEND="x11-libs/qt-gui:4 |
74 |
x11-libs/qt-sql:4 |
75 |
media-libs/libsamplerate |
76 |
sci-libs/fftw |
77 |
media-libs/libmad |
78 |
ipod? ( >=media-libs/libgpod-0.5.2 ) |
79 |
media-libs/alsa-lib" |
80 |
DEPEND="${RDEPEND} |
81 |
app-arch/sharutils" |
82 |
|
83 |
S=${WORKDIR}/${MY_P} |
84 |
|
85 |
src_prepare() { |
86 |
qt4-r2_src_prepare |
87 |
# Use a different extensions path |
88 |
epatch "${FILESDIR}"/${PN}-extensions-path.patch |
89 |
einfo "Applying Debian patchset" |
90 |
sed -i "/^tray-icon-size.diff/d" "${WORKDIR}"/debian/patches/series |
91 |
cd "${S}" |
92 |
for i in $( < "${WORKDIR}"/debian/patches/series); do |
93 |
epatch "${WORKDIR}"/debian/patches/$i |
94 |
done |
95 |
if ! use ipod ; then |
96 |
sed -i '/src\/mediadevices\/ipod/d' LastFM.pro || die "sed failed" |
97 |
fi |
98 |
#fix plugin search path for multilib support |
99 |
sed -i -e "s:/usr/lib/:/usr/$(get_libdir)/:g" \ |
100 |
"${S}"/src/libMoose/MooseCommon.cpp |
101 |
if use dbus; then |
102 |
mv "${WORKDIR}"/dbus "${S}"/src/dbus |
103 |
sed -i -e "/include/s:../definitions.pro.in:definitions.pro.in:" \ |
104 |
-e "/TARGET/s:dbusextension:LastFmDbusExtension:" \ |
105 |
"${S}"/src/dbus/dbusextension.pro |
106 |
fi |
107 |
} |
108 |
|
109 |
src_configure() { |
110 |
if use dbus; then |
111 |
pushd "${S}"/src/dbus |
112 |
eqmake4 dbusextension.pro |
113 |
popd >> /dev/null |
114 |
fi |
115 |
qt4-r2_src_configure |
116 |
} |
117 |
|
118 |
src_compile() { |
119 |
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "emake failed" |
120 |
if use dbus; then |
121 |
einfo "Building DBUS plugin" |
122 |
emake -C "${S}"/src/dbus || die "failed to build dbus extension" |
123 |
fi |
124 |
cd i18n; lrelease *.ts |
125 |
} |
126 |
|
127 |
src_install() { |
128 |
cd "${WORKDIR}" |
129 |
# Docs |
130 |
dodoc "${S}"/ChangeLog.txt "${S}"/README debian/README.source \ |
131 |
|| die "dodoc failed" |
132 |
doman debian/lastfm.1 || die "doman failed" |
133 |
|
134 |
# Copied from debian/rules |
135 |
insinto /usr/share |
136 |
doins -r debian/package-files/share/icons || die "failed to install icons" |
137 |
insinto /usr/share/lastfm/icons |
138 |
doins "${S}"/bin/data/icons/*.png \ |
139 |
|| die "failed to install application icons" |
140 |
insinto /usr/share/lastfm |
141 |
doins "${S}"/bin/data/*.png || die "failed to install icons" |
142 |
dodir /usr/$(get_libdir)/lastfm_services/ |
143 |
insinto /usr/$(get_libdir)/lastfm_services/ |
144 |
insopts -m0755 |
145 |
doins -r "${S}"/bin/lastfm_services/*.so || die "failed to install plugins" |
146 |
if use dbus; then |
147 |
insinto /usr/$(get_libdir)/lastfm_services/extensions/ |
148 |
insopts -m0755 |
149 |
doins "${S}"/bin/lastfm_services/extensions/*.so || die |
150 |
fi |
151 |
insinto /usr/$(get_libdir) |
152 |
insopts -m0755 |
153 |
doins "${S}"/bin/libLastFmTools.so.1* || die "failed to install library" |
154 |
doins "${S}"/bin/libMoose.so.1* || die "failed to install library" |
155 |
#fix symlinks |
156 |
cd "${D}"/usr/$(get_libdir)/ |
157 |
ln -sfn libLastFmTools.so.1.0.0 libLastFmTools.so.1 |
158 |
ln -sfn libLastFmTools.so.1.0.0 libLastFmTools.so.1.0 |
159 |
ln -sfn libMoose.so.1.0.0 libMoose.so.1 |
160 |
ln -sfn libMoose.so.1.0.0 libMoose.so.1.0 |
161 |
cd "${WORKDIR}" |
162 |
newbin "${S}"/bin/last.fm lastfm || die "newbin failed" |
163 |
insinto /usr/share/lastfm/i18n |
164 |
doins "${S}"/i18n/*.qm || die "failed to install translations" |
165 |
fperms 755 /usr/bin/lastfm |
166 |
rm -f "${D}"/usr/share/lastfm/icons/{*profile24,systray_mac}.png |
167 |
# create desktop entry |
168 |
doicon "${WORKDIR}"/debian/package-files/share/icons/hicolor/48x48/apps/lastfm.png |
169 |
make_desktop_entry lastfm "Last.fm Player" lastfm |
170 |
} |
171 |
|
172 |
pkg_postinst() { |
173 |
elog "To use the Last.fm player with a mozilla based browser:" |
174 |
elog " 1. Install gnome-base/gconf" |
175 |
elog " 2. gconftool-2 -t string -s \ |
176 |
/desktop/gnome/url-handlers/lastfm/command \"/usr/bin/lastfm %s\"" |
177 |
elog " 3. gconftool-2 -s \ |
178 |
/desktop/gnome/url-handlers/lastfm/needs_terminal false -t bool" |
179 |
elog " 4. gconftool-2 -t bool -s \ |
180 |
/desktop/gnome/url-handlers/lastfm/enabled true" |
181 |
elog |
182 |
elog "If you experience awkward fonts or widgets, try running qtconfig." |
183 |
} |