# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 KDE_REQUIRED="optional" inherit cmake-utils 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 taglib" DEPEND=" ffmpeg? ( virtual/ffmpeg ) mpg123? ( media-sound/mpg123 ) taglib? ( media-libs/taglib ) " RDEPEND="${DEPEND} kde-base/oxygen-icons " pkg_setup() { use kde && kde4-base_pkg_setup } src_configure() { local mycmakeargs mycmakeargs=( $(cmake-utils_use_enable mpg123 MPG123) $(cmake-utils_use_enable ffmpeg FFMPEG) $(cmake-utils_use_enable taglib TAGLIB) $(cmake-utils_use_want kde KDE_SUPPORT) ) if use kde; then kde4-base_src_configure else cmake-utils_src_configure fi }