1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/qmpdclient-1.0.8.ebuild,v 1.4 2007/08/01 03:59:24 angelos Exp $
7 DESCRIPTION
="An easy to use MPD client written in Qt4"
8 HOMEPAGE
="http://havtknut.tihlde.org/qmpdclient"
9 SRC_URI
="http://havtknut.tihlde.org/${PN}/files/${P}.tar.gz"
13 KEYWORDS
="~amd64 ~hppa ~ppc ~x86"
16 DEPEND
="$(qt4_min_version 4.2)"
19 dbus? ( >=sys-apps/dbus-1.0.2 )"
22 if use dbus
&& ! built_with_use x11-libs
/qt dbus
; then
24 eerror
"In order to enable dbus notifications support in qmpdclient"
25 eerror
"you have to rebuild qt4 with 'dbus' USE flag enabled."
27 die
"Re-emerge qt4 with USE=\"dbus\""
35 # Fix a crasher for amd64 and possibly others. Bug #183593.
36 epatch
"${FILESDIR}"/${PV}-argc-ref-fix.
patch
38 # Fix the install path
39 sed -i -e "s:PREFIX = /usr/local:PREFIX = /usr:" qmpdclient.pro \
42 # Disable dbus notifications if USE="-dbus"
43 use dbus || epatch
"${FILESDIR}"/${PN}-no-dbus.
patch
47 eqmake4 qmpdclient.pro
48 emake || die
"make failed"
52 dodoc README AUTHORS THANKSTO Changelog
53 for res
in 16 22 32 64 128 ; do
54 insinto
/usr
/share
/icons
/hicolor
/${res}x
${res}/apps
/
55 newins icons
/qmpdclient
${res}.png
${PN}.png
58 dobin qmpdclient || die
"dobin failed"
59 make_desktop_entry qmpdclient
"QMPDClient" ${PN} "Qt;AudioVideo;Audio"