# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Compiz Fusion main plugins" HOMEPAGE="http://compiz-fusion.org" SRC_URI="http://releases.compiz-fusion.org/${PV}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="jpeg svg simple-ccsm +ccsm" RESTRICT="test" DEPEND=">=x11-wm/compiz-${PV} jpeg? ( media-libs/jpeg ) svg? ( >=gnome-base/librsvg-2.14.0 ) >=sys-devel/gettext-0.15 >=dev-libs/libxml2-2.6.30 simple-ccsm? ( >=x11-apps/simple-ccsm-${PV} ) ccsm? ( >=x11-apps/ccsm-${PV} )" src_compile() { if ! use simple-ccsm ; then if ! use ccsm ; then die "Enable at least one of the USE flags: ccsm or simple-ccsm.!" fi fi econf $(use_enable jpeg) || die "econf failed" emake || die "make failed" } src_install() { emake DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS || die "dodoc failed" }