# Copyright 1999-2007 Gentoo Foundation DESCRIPTION="Replacement for Punto Switcher" HOMEPAGE="http://www.xneur.ru/" SRC_URI="http://dists.xneur.ru/release-${PV}/tgz/${P}.tar.bz2" IUSE="spell pcre gstreamer openal aplay" SLOT="0" KEYWORDS="x86 amd64" DEPEND="x11-libs/libX11 pcre? ( dev-libs/libpcre ) spell? ( app-text/aspell ) gstreamer? ( media-libs/gstreamer ) openal? ( media-libs/openal ) aplay? ( media-sound/alsa-utils )" RDEPEND="${DEPEND}" src_compile() { local myconf myconf="${myconf} `use_with spell aspell`" myconf="${myconf} `use_with pcre`" if use gstreamer ; then myconf="${myconf} --with-sound=gstreamer" elif use openal ; then myconf="${myconf} --with-sound=openal" elif use aplay ; then myconf="${myconf} --with-sound=aplay" else myconf="${myconf} --with-sound=no" fi econf --with-x ${myconf} || die "configure failed" emake || die "emake failed" } src_install() { make install DESTDIR=${D} || die "emake install failed" }