# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/lastfmplayer/lastfmplayer-1.5.1.31879-r1.ebuild,v 1.1 2008/12/11 23:32:16 yngwin Exp $ EAPI=1 inherit eutils multilib qt4 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-1.diff.gz" #http://cdn.last.fm/client/src/${MY_P}.src.tar.bz2 LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="ipod" RESTRICT="mirror" RDEPEND="|| ( ( x11-libs/qt-gui:4 x11-libs/qt-sql:4 ) =x11-libs/qt-4.3* ) 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_unpack() { unpack ${A} epatch lastfm_${PV}.dfsg-1.diff cd "${S}" for i in $(< debian/patches/series); do epatch debian/patches/$i done if ! use ipod ; then sed -i '/src\/mediadevices\/ipod/d' LastFM.pro || die "sed failed" fi } src_compile() { ./configure emake || die "emake failed" cd i18n; lrelease *.ts } src_install() { # Docs dodoc ChangeLog README debian/README.Debian-source doman debian/lastfm.1 # Copied from debian/rules uudecode -o - debian/icons.tar.gz.uu | tar -xzf - uudecode -o - debian/trayicons22.tar.gz.uu | tar -xzf - insinto /usr/share doins -r icons insinto /usr/share/lastfm/icons doins user_*.png sed -i -e "s,/usr/lib,/usr/$(get_libdir),g" debian/lastfm.install # make directories for i in $(