Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/lastfmplayer: ChangeLog lastfmplayer-1.5.4.27091.ebuild
Date: Sun, 23 Jan 2011 18:26:26
Message-Id: 20110123182615.3888920054@flycatcher.gentoo.org
1 hwoarang 11/01/23 18:26:15
2
3 Modified: ChangeLog
4 Added: lastfmplayer-1.5.4.27091.ebuild
5 Log:
6 New bugfix release
7
8 (Portage version: 2.2.0_alpha18/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.57 media-sound/lastfmplayer/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/lastfmplayer/ChangeLog?rev=1.57&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/lastfmplayer/ChangeLog?rev=1.57&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/lastfmplayer/ChangeLog?r1=1.56&r2=1.57
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/ChangeLog,v
20 retrieving revision 1.56
21 retrieving revision 1.57
22 diff -u -r1.56 -r1.57
23 --- ChangeLog 23 Jan 2011 18:05:16 -0000 1.56
24 +++ ChangeLog 23 Jan 2011 18:26:15 -0000 1.57
25 @@ -1,6 +1,13 @@
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.56 2011/01/23 18:05:16 hwoarang Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/ChangeLog,v 1.57 2011/01/23 18:26:15 hwoarang Exp $
30 +
31 +*lastfmplayer-1.5.4.27091 (23 Jan 2011)
32 +
33 + 23 Jan 2011; Markos Chandras <hwoarang@g.o>
34 + +lastfmplayer-1.5.4.27091.ebuild:
35 + New bugfix release. Using patches from
36 + http://www.mehercule.net/staticpages/index.php/lastfm.
37
38 *lastfmplayer-1.5.4.26862-r3 (23 Jan 2011)
39
40
41
42
43 1.1 media-sound/lastfmplayer/lastfmplayer-1.5.4.27091.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/lastfmplayer/lastfmplayer-1.5.4.27091.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/lastfmplayer/lastfmplayer-1.5.4.27091.ebuild?rev=1.1&content-type=text/plain
47
48 Index: lastfmplayer-1.5.4.27091.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/lastfmplayer-1.5.4.27091.ebuild,v 1.1 2011/01/23 18:26:15 hwoarang Exp $
53
54 EAPI=2
55 inherit eutils multilib toolchain-funcs qt4-r2
56
57 MY_P="${P/lastfmplayer/lastfm}+dfsg"
58
59 DESCRIPTION="A player for last.fm radio streams"
60 HOMEPAGE="http://www.last.fm/help/player
61 http://www.mehercule.net/staticpages/index.php/lastfm"
62 SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/lastfm-${PV}+dfsg.tar.gz
63 http://dev.gentoo.org/~hwoarang/distfiles/lastfm_${PV}+dfsg-2.debian.tar.gz"
64
65 LICENSE="GPL-2"
66 SLOT="0"
67 KEYWORDS="~amd64 ~arm ~ppc ~x86"
68 IUSE="ipod"
69
70 RDEPEND="x11-libs/qt-gui:4
71 x11-libs/qt-sql:4
72 media-libs/libsamplerate
73 sci-libs/fftw
74 media-libs/libmad
75 ipod? ( >=media-libs/libgpod-0.5.2 )
76 media-libs/alsa-lib"
77 DEPEND="${RDEPEND}
78 app-arch/sharutils"
79
80 S=${WORKDIR}/${MY_P}
81
82 src_prepare() {
83 qt4-r2_src_prepare
84 epatch "${FILESDIR}"/fix_plugin_path.patch
85 einfo "Applying Debian patchset"
86 sed -i "/^tray-icon-size.diff/d" "${WORKDIR}"/debian/patches/series
87 cd "${S}"
88 for i in $( < "${WORKDIR}"/debian/patches/series); do
89 epatch "${WORKDIR}"/debian/patches/$i
90 done
91 if ! use ipod ; then
92 sed -i '/src\/mediadevices\/ipod/d' LastFM.pro || die "sed failed"
93 fi
94 #don't install plugins into generic location
95 sed -i "s:\$\$BIN_DIR/services:\$\$BIN_DIR/lastfm_services:" \
96 "${S}"/definitions.pro.inc
97 #fix plugin search path
98 sed -i "s:/usr/lib/services:/usr/$(get_libdir)/lastfm_services:" \
99 "${S}"/src/libMoose/MooseCommon.cpp
100 }
101
102 src_compile() {
103 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "emake failed"
104 cd i18n; lrelease *.ts
105 }
106
107 src_install() {
108 cd "${WORKDIR}"
109 # Docs
110 dodoc "${S}"/ChangeLog.txt "${S}"/README debian/README.source \
111 || die "dodoc failed"
112 doman debian/lastfm.1 || die "doman failed"
113
114 # Copied from debian/rules
115 insinto /usr/share
116 doins -r debian/package-files/share/icons || die "failed to install icons"
117 insinto /usr/share/lastfm/icons
118 doins "${S}"/bin/data/icons/*.png \
119 || die "failed to install application icons"
120 insinto /usr/share/lastfm
121 doins "${S}"/bin/data/*.png || die "failed to install icons"
122 dodir /usr/$(get_libdir)/lastfm_services/
123 insinto /usr/$(get_libdir)/lastfm_services/
124 insopts -m0755
125 doins -r "${S}"/bin/lastfm_services/*.so || die "failed to install plugins"
126 insinto /usr/$(get_libdir)
127 insopts -m0755
128 doins "${S}"/bin/libLastFmTools.so.1* || die "failed to install library"
129 doins "${S}"/bin/libMoose.so.1* || die "failed to install library"
130 #fix symlinks
131 cd "${D}"/usr/$(get_libdir)/
132 ln -sfn libLastFmTools.so.1.0.0 libLastFmTools.so.1
133 ln -sfn libLastFmTools.so.1.0.0 libLastFmTools.so.1.0
134 ln -sfn libMoose.so.1.0.0 libMoose.so.1
135 ln -sfn libMoose.so.1.0.0 libMoose.so.1.0
136 cd "${WORKDIR}"
137 newbin "${S}"/bin/last.fm lastfm || die "newbin failed"
138 insinto /usr/share/lastfm/i18n
139 doins "${S}"/i18n/*.qm || die "failed to install translations"
140 fperms 755 /usr/bin/lastfm
141 rm -f "${D}"/usr/share/lastfm/icons/{*profile24,systray_mac}.png
142 # create desktop entry
143 doicon "${WORKDIR}"/debian/package-files/share/icons/hicolor/48x48/apps/lastfm.png
144 make_desktop_entry lastfm "Last.fm Player" lastfm
145 }
146
147 pkg_postinst() {
148 elog "To use the Last.fm player with a mozilla based browser:"
149 elog " 1. Install gnome-base/gconf"
150 elog " 2. gconftool-2 -t string -s \
151 /desktop/gnome/url-handlers/lastfm/command \"/usr/bin/lastfm %s\""
152 elog " 3. gconftool-2 -s \
153 /desktop/gnome/url-handlers/lastfm/needs_terminal false -t bool"
154 elog " 4. gconftool-2 -t bool -s \
155 /desktop/gnome/url-handlers/lastfm/enabled true"
156 elog
157 elog "If you experience awkward fonts or widgets, try running qtconfig."
158 }