# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="An easy to use MPD client written in Qt 4.1" HOMEPAGE="http://havtknut.tihlde.org/qmpdclient" SRC_URI="http://havtknut.tihlde.org/${PN}/files/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=x11-libs/qt-4.2" src_unpack() { unpack "${A}" cd "${S}" # Fix the install path sed -ie "s%PREFIX = /usr/local%PREFIX = /usr%" ${S}/qmpdclient.pro \ || die 'sed failed while setting install path' } src_compile() { qmake || die "configure failed" make || die "make failed" } src_install() { dodoc README AUTHORS THANKSTO Changelog insinto /usr/share/pixmaps doins icons/qmpdclient{16,22,32,64,128}.png dobin qmpdclient make_desktop_entry qmpdclient "QMPDClient" qmpdclient64.png "KDE;Qt;AudioVideo" }