# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils qt4 DESCRIPTION="An easy to use MPD client written in Qt4" HOMEPAGE="http://havtknut.tihlde.org/qmpdclient" SRC_URI="http://havtknut.tihlde.org/${PN}/files/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="$(qt4_min_version 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" emake || die "make failed" } src_install() { dodoc README AUTHORS THANKSTO Changelog for res in 16 22 32 64 128 ; do insinto /usr/share/icons/hicolor/${res}x${res}/apps/ newins icons/qmpdclient${res}.png ${PN}.png done dobin qmpdclient || die "dobin failed" make_desktop_entry qmpdclient "QMPDClient" ${PN} "Qt;AudioVideo;Audio" }