# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit gnome2 eutils DESCRIPTION="3D composite- and windowmanager" HOMEPAGE="http://www.compiz.org/" SRC_URI="http://xorg.freedesktop.org/archive/individual/app/${P}.tar.gz" LICENSE="GPL-2 LGPL-2.1 MIT" SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" IUSE="dbus fuse gnome kde kde4 metacity svg xcb" DEPEND=">=media-libs/mesa-6.5.1-r1 >=media-libs/glitz-0.5.6 >=x11-base/xorg-server-1.1.1-r1 x11-libs/libXdamage x11-libs/libXrandr x11-libs/libXcomposite x11-libs/libXinerama media-libs/libpng >=x11-libs/gtk+-2.0 x11-libs/pango x11-libs/startup-notification gnome-base/gconf >=x11-libs/libwnck-2.18.3 dev-libs/libxslt xcb? ( x11-libs/libxcb ) gnome? ( >=gnome-base/control-center-2.16.1 ) svg? ( gnome-base/librsvg ) dbus? ( >=sys-apps/dbus-1.0 ) fuse? ( sys-fs/fuse ) metacity? ( x11-themes/metacity-themes ) kde? ( || ( kde-base/kdebase kde-base/kwin ) dev-libs/dbus-qt3-old )" RDEPEND="${DEPEND} x11-apps/mesa-progs" src_unpack() { # Special handling for xcb if use xcb && ! built_with_use "x11-libs/libX11" xcb ; then eerror "Compiz requires x11-libs/libX11 to be built with xcb in order" eerror "to use xcb with compiz as well. Either rebuild x11-libs/libX11 with" eerror "USE=\"xcb\" or disable the xcb use flag for this package" die "Compiz requires x11-libs/libX11 to be built with xcb in order to use xcb with compiz as well. Either rebuild x11-libs/libX11 with USE=\"xcb\" or disable the xcb use flag for this package" fi unpack "${A}" cd "${S}" if ! use xcb ; then epatch ${FILESDIR}/${P}-disable-libx11-xcb-support.patch fi } src_compile() { econf --with-default-plugins \ --enable-gtk \ --enable-gconf \ `use_enable gnome` \ `use_enable gnome metacity` \ `use_enable kde` \ `use_enable kde4` \ `use_enable svg librsvg` \ `use_enable dbus` \ `use_enable dbus dbus-glib` \ `use_enable fuse` \ `use_enable metacity` || die emake || die } src_install() { emake DESTDIR="${D}" install || die #dobin "${FILESDIR}/0.3.6/compiz-start" || die if use doc ; then dodoc AUTHORS ChangeLog NEWS README TODO || die fi }