# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 inherit autotools eutils DESCRIPTION="A Gtk client and libraries for SPICE remote desktop servers." HOMEPAGE="http://freshmeat.net/projects/spice-gtk" SRC_URI="http://spice-space.org/download/gtk/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="gstreamer pulseaudio python" RDEPEND="dev-python/pyparsing media-libs/celt:0.5.1" DEPEND="dev-perl/Text-CSV app-emulation/spice-protocol dev-util/intltool dev-python/pygtk pulseaudio? ( media-sound/pulseaudio ) gstreamer? ( media-libs/gstreamer )" src_configure() { local myconf="" if use pulseaudio ; then myconf+="--with-audio=pulse " elif use gstreamer ; then myconf+="--with-audio=gstreamer " else myconf+="--with-audio=no " fi if use python ; then myconf+="--with-python " fi econf ${myconf} } src_compile() { emake || die } src_install() { emake DESTDIR="${D}" install || die dodoc README || die }