summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2010-06-07 20:24:58 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2010-06-07 20:24:58 +0000
commitf549d3212bd1a5eb3b5da65763e8d76df8370d23 (patch)
tree42c610f7a0b087a43d82f0063944f9df23b67367 /media-sound/lastfmplayer
parentadd ~arm, bug #303527 (diff)
downloadhistorical-f549d3212bd1a5eb3b5da65763e8d76df8370d23.tar.gz
historical-f549d3212bd1a5eb3b5da65763e8d76df8370d23.tar.bz2
historical-f549d3212bd1a5eb3b5da65763e8d76df8370d23.zip
Fix pkg_postinst message wrt bug #322963. Thanks to Matthias Langer <mlangc@gmx.at>
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'media-sound/lastfmplayer')
-rw-r--r--media-sound/lastfmplayer/ChangeLog9
-rw-r--r--media-sound/lastfmplayer/Manifest3
-rw-r--r--media-sound/lastfmplayer/lastfmplayer-1.5.4.26862-r1.ebuild111
3 files changed, 121 insertions, 2 deletions
diff --git a/media-sound/lastfmplayer/ChangeLog b/media-sound/lastfmplayer/ChangeLog
index d27a51c96fad..78187978c41c 100644
--- a/media-sound/lastfmplayer/ChangeLog
+++ b/media-sound/lastfmplayer/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-sound/lastfmplayer
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/ChangeLog,v 1.42 2010/05/24 22:24:42 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/ChangeLog,v 1.43 2010/06/07 20:24:58 hwoarang Exp $
+
+*lastfmplayer-1.5.4.26862-r1 (07 Jun 2010)
+
+ 07 Jun 2010; Markos Chandras <hwoarang@gentoo.org>
+ +lastfmplayer-1.5.4.26862-r1.ebuild:
+ Fix pkg_postinst message wrt bug #322963. Thanks to Matthias Langer
+ <mlangc@gmx.at>
*lastfmplayer-1.5.4.26862 (24 May 2010)
diff --git a/media-sound/lastfmplayer/Manifest b/media-sound/lastfmplayer/Manifest
index d301a2342a76..955cc7295f86 100644
--- a/media-sound/lastfmplayer/Manifest
+++ b/media-sound/lastfmplayer/Manifest
@@ -5,6 +5,7 @@ DIST lastfm_1.5.1.31879.dfsg.orig.tar.gz 1473266 RMD160 394701227b4a2519df989559
DIST lastfm_1.5.4.26862+dfsg-3.debian.tar.gz 68548 RMD160 f42cd81fe286df54be8f0fbdb31969d269850bfc SHA1 8e55b12113edb3ea8e9e0ec8fe163d94e7b4d622 SHA256 80fe24fe08e560e2f69dc90b5d70a5f746d34b3c4a6f805c2c82a63c38f5195b
DIST lastfm_1.5.4.26862+dfsg.orig.tar.gz 1478047 RMD160 ddd302f0748654d9cd3e0e70b05431e45b711908 SHA1 2d9a81b2a14f8f54ac25735a4a77dfa474d70910 SHA256 9131d08fd9c3de895670feb0c5b175a2d72d7d2bad001ea4c55cf8e0d34c700b
EBUILD lastfmplayer-1.5.1.31879-r3.ebuild 2541 RMD160 e0d042fde2d6bc98f4882d4a699514f7cf2b43f8 SHA1 74e32245e7c6ef178018fe73808e3921b87d4e8e SHA256 d2f107ec60133053ad27b0d5ff2c149369529fd4495fbe0ebc777e4b0d1220de
+EBUILD lastfmplayer-1.5.4.26862-r1.ebuild 3722 RMD160 e6537d68d40dda1badaacb9e28cfa44ee2cb6288 SHA1 dd75c9dae2d4c2720f65803db9ebfbee1d8f28f8 SHA256 64daf2b6bbcc2bf26b61db9a01cd440b07afe25c9f0bfdfadcaf612642700329
EBUILD lastfmplayer-1.5.4.26862.ebuild 3626 RMD160 24bbf1a24dd0b5cfc854fce1545304120aaae638 SHA1 0dfb2bec854124f9e845799254d41af9a969de9b SHA256 77b6f0a72a6c9a6b37ee7ad13bc0a6815d590708e13a25526aab48b65f62ce32
-MISC ChangeLog 8768 RMD160 d0eb546e990a25a1933c7f9c6772e3c2cc0b30c3 SHA1 58b262f8f05bec5accb885bcf51dc67ab8613bd4 SHA256 f5a82d0afec04d5fac307069a908903a9dd84875239e677e5682a2b11cacf59e
+MISC ChangeLog 8993 RMD160 46888ff60ac173c3f44856e93e7600497fc90a43 SHA1 97144dd300369b215e4789b74ca777ae68139ce6 SHA256 57f5b8dc549e06619c5b7438aceaa2055588c2afd1e094e9c010cc68c6724a35
MISC metadata.xml 251 RMD160 a3b846afdec6f11b4217978cc994b85fc82088ba SHA1 3f5086c6624e6ef17caefa9fb432efaf416e27b0 SHA256 12a2bce19c4087d3496fe929a182659413c12565c7dad8a4ddad9d2e6c73d8a7
diff --git a/media-sound/lastfmplayer/lastfmplayer-1.5.4.26862-r1.ebuild b/media-sound/lastfmplayer/lastfmplayer-1.5.4.26862-r1.ebuild
new file mode 100644
index 000000000000..7bd5cdebc6a7
--- /dev/null
+++ b/media-sound/lastfmplayer/lastfmplayer-1.5.4.26862-r1.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/lastfmplayer-1.5.4.26862-r1.ebuild,v 1.1 2010/06/07 20:24:58 hwoarang Exp $
+
+EAPI=2
+inherit eutils multilib toolchain-funcs qt4-r2
+
+MY_P="${P/lastfmplayer/lastfm}+dfsg"
+
+DESCRIPTION="A player for last.fm radio streams"
+HOMEPAGE="http://www.last.fm/help/player"
+SRC_URI="mirror://debian/pool/main/l/lastfm/lastfm_${PV}+dfsg.orig.tar.gz
+ mirror://debian/pool/main/l/lastfm/lastfm_${PV}+dfsg-3.debian.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="ipod"
+RESTRICT="mirror"
+
+RDEPEND="x11-libs/qt-gui:4
+ x11-libs/qt-sql:4
+ media-libs/libsamplerate
+ sci-libs/fftw
+ media-libs/libmad
+ ipod? ( >=media-libs/libgpod-0.5.2 )
+ media-libs/alsa-lib"
+DEPEND="${RDEPEND}
+ app-arch/sharutils"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ qt4-r2_src_prepare
+ epatch "${FILESDIR}"/fix_plugin_path.patch
+ einfo "Applying Debian patchset"
+ ebegin "Disabling tray-icon-size patch"
+ sed -i "/^tray-icon-size.diff/d" "${WORKDIR}"/debian/patches/series
+ eend $?
+ cd "${S}"
+ for i in $( < "${WORKDIR}"/debian/patches/series); do
+ epatch "${WORKDIR}"/debian/patches/$i
+ done
+ if ! use ipod ; then
+ sed -i '/src\/mediadevices\/ipod/d' LastFM.pro || die "sed failed"
+ fi
+ #don't install plugins into generic location
+ sed -i "s:\$\$BIN_DIR/services:\$\$BIN_DIR/lastfm_services:" \
+ "${S}"/definitions.pro.inc
+ #fix plugin search path
+ sed -i "s:/usr/lib/services:/usr/$(get_libdir)/lastfm_services:" \
+ "${S}"/src/libMoose/MooseCommon.cpp
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "emake failed"
+ cd i18n; lrelease *.ts
+}
+
+src_install() {
+ cd "${WORKDIR}"
+ # Docs
+ dodoc "${S}"/ChangeLog "${S}"/README debian/README.source \
+ || die "dodoc failed"
+ doman debian/lastfm.1 || die "doman failed"
+
+ # Copied from debian/rules
+ insinto /usr/share
+ doins -r debian/package-files/share/icons || die "failed to install icons"
+ insinto /usr/share/lastfm/icons
+ doins "${S}"/bin/data/icons/*.png \
+ || die "failed to install application icons"
+ insinto /usr/share/lastfm
+ doins "${S}"/bin/data/*.png || die "failed to install icons"
+ dodir /usr/$(get_libdir)/lastfm_services/
+ insinto /usr/$(get_libdir)/lastfm_services/
+ insopts -m0755
+ doins -r "${S}"/bin/lastfm_services/*.so || die "failed to install plugins"
+ insinto /usr/$(get_libdir)
+ insopts -m0755
+ doins "${S}"/bin/libLastFmTools.so.1* || die "failed to install library"
+ doins "${S}"/bin/libMoose.so.1* || die "failed to install library"
+ #fix symlinks
+ cd "${D}"/usr/$(get_libdir)/
+ ln -sfn libLastFmTools.so.1.0.0 libLastFmTools.so.1
+ ln -sfn libLastFmTools.so.1.0.0 libLastFmTools.so.1.0
+ ln -sfn libMoose.so.1.0.0 libMoose.so.1
+ ln -sfn libMoose.so.1.0.0 libMoose.so.1.0
+ cd "${WORKDIR}"
+ newbin "${S}"/bin/last.fm lastfm || die "newbin failed"
+ insinto /usr/share/lastfm/i18n
+ doins "${S}"/i18n/*.qm || die "failed to install translations"
+ fperms 755 /usr/bin/lastfm
+ rm -f "${D}"/usr/share/lastfm/icons/{*profile24,systray_mac}.png
+ # create desktop entry
+ doicon "${WORKDIR}"/debian/package-files/share/icons/hicolor/48x48/apps/lastfm.png
+ make_desktop_entry lastfm "Last.fm Player" lastfm
+}
+
+pkg_postinst() {
+ elog "To use the Last.fm player with a mozilla based browser:"
+ elog " 1. Install gnome-bae/gconf"
+ elog " 2. gconftool-2 -t string -s \
+/desktop/gnome/url-handlers/lastfm/command \"/usr/bin/lastfm %s\""
+ elog " 3. gconftool-2 -s \
+/desktop/gnome/url-handlers/lastfm/needs_terminal false -t bool"
+ elog " 4. gconftool-2 -t bool -s \
+/desktop/gnome/url-handlers/lastfm/enabled true"
+ elog
+ elog "If you experience awkward fonts or widgets, try running qtconfig."
+}