# 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="+annotate +dbus +dbus-glib doc fuse +glib gnome gnome-keybindings +gtk +inotify kde kde4 metacity +place +schemas 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-proto/damageproto x11-libs/libXrandr x11-libs/libXcomposite x11-libs/libXinerama x11-libs/libSM media-libs/libpng >=x11-libs/gtk+-2.0 x11-libs/pango x11-libs/startup-notification >=x11-libs/libwnck-2.18.3 dev-libs/libxslt glib? (dev-libs/glib) gnome? ( >=gnome-base/control-center-2.16.1 gnome-base/gconf) dbus? ( >=sys-apps/dbus-1.0 ) dbus-glib? (dev-libs/dbus-glib) fuse? ( sys-fs/fuse ) kde? ( || ( kde-base/kdebase kde-base/kwin ) dev-libs/dbus-qt3-old ) kde4? (kde-base/kdebase:kde-4 kde-base/kwin:kde-4) metacity? ( x11-themes/metacity-themes ) svg? ( gnome-base/librsvg ) xcb? ( x11-libs/libxcb )" 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() { myconf="--with-default-plugins" if use kde ; then myconf="${myconf} --enable-kconfig" elif use kde4 ; then myconf="${myconf} --enable-kconfig" else myconf="${myconf} --disable-kconfig" fi econf ${myconf} \ `use_enable annotate` \ `use_enable dbus` \ `use_enable dbus-glib` \ `use_enable fuse` \ `use_enable glib` \ `use_enable gnome` \ `use_enable gnome gconf` \ `use_enable gnome-keybindings` \ `use_enable gtk` \ `use_enable inotify` \ `use_enable kde` \ `use_enable kde4` \ `use_enable metacity` \ `use_enable svg librsvg` \ `use_enable place` \ `use_enable schemas schemas-install` || 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 }