summaryrefslogtreecommitdiff
blob: 4573b590a5969cd2c751800488fb5e1c72fe6c06 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/cantata/cantata-0.8.2.ebuild,v 1.2 2012/08/01 12:36:09 johu Exp $

EAPI=4

KDE_REQUIRED="optional"
inherit kde4-base

DESCRIPTION="Cantata is a client for the music player daemon (MPD)"
HOMEPAGE="http://kde-apps.org/content/show.php?content=147733"
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="4"
KEYWORDS="~amd64 ~x86"
IUSE="ffmpeg kde mpg123 mtp taglib"

DEPEND="
	media-libs/speex
	ffmpeg? ( virtual/ffmpeg )
	mpg123? ( media-sound/mpg123 )
	mtp? ( media-libs/libmtp )
	taglib? ( media-libs/taglib )
"
RDEPEND="${DEPEND}
	$(add_kdebase_dep oxygen-icons)
"

src_configure() {
	local mycmakeargs=(
		$(cmake-utils_use_enable ffmpeg)
		$(cmake-utils_use_enable mpg123)
		$(cmake-utils_use_enable mtp)
		$(cmake-utils_use_enable taglib)
		$(cmake-utils_use_want kde KDE_SUPPORT)
	)

	kde4-base_src_configure
}