# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="The Last.fm player allows you to listen to their internet radio which is tailored to your music profile" HOMEPAGE="http://www.last.fm" SRC_URI="http://83.142.226.211/player/player.tar.bz2" LICENSE="BSD" SLOT="0" KEYWORDS="~x86" IUSE="" S="${WORKDIR}/Last.fm-src" # At the moment you need to add -* to package.keywords in order to get it DEPEND=">=x11-libs/qt-4.0.0" pkg_setup() { if ! built_with_use qt gif ; then eerror "It appears that $(best_version qt) was compiled with the \"gif\" USE flag disabled." eerror eerror "In order to use the Last.fm player, you need to enable this USE flag" eerror "To do this, run the following in a command window:" eerror "echo \"x11-libs/qt gif\" >> /etc/portage/package.use" eerror "and recompile qt using \"emerge -avN1 qt\"" die "no gif support in qt" fi # Not really needed as we do not use arts #kde_pkg_setup } src_compile() { # Expects /usr/bin/qmake in QT4 qmake || die "qmake failed" emake || die "emake failed" } src_install() { exeinto /usr/bin newexe player lastfm dodoc README }