aboutsummaryrefslogtreecommitdiff
blob: e2d5b16d621a9a3258935c8dc03bfe44d572551a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

KDE_REQUIRED="optional"
inherit qt4-edge kde4-base

DESCRIPTION="Qt MPD client with a tree view music library interface"
HOMEPAGE="http://lowblog.nl/category/qtmpc/"
SRC_URI="http://files.lowblog.nl/qtmpc/QtMPC-${PV}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug kde"

DEPEND="x11-libs/qt-gui:4"
RDEPEND="${DEPEND}"

S="${WORKDIR}/QtMPC"

src_configure() {
	if use kde; then
		kde4-base_src_configure
	else
		eqmake4 QtMPC.pro
	fi
}

src_compile() {
	if use kde; then
		kde4-base_src_compile
	else
		default
	fi
}

src_install() {
	dodoc CHANGELOG || die "dodoc failed"
	newicon images/icon.svg ${PN}.svg || die "Icon install failed"
	make_desktop_entry QtMPC "QtMPC" ${PN} \
		"Qt;AudioVideo;Audio;" || die "Desktop entry creation failed"

	if use kde; then
		kde4-base_src_install
	else
		dobin QtMPC || die "Binary install failed"
	fi
}