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