# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit eutils autotools DESCRIPTION="Cairo-dock is a fast, responsive, Mac OS X-like dock." HOMEPAGE="http://www.cairo-dock.org" SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" IUSE="glitz xcomposite" RDEPEND="dev-libs/dbus-glib dev-libs/glib:2 x11-libs/gtk+:2 x11-libs/gtkglext x11-libs/libXrender dev-libs/libxml2 gnome-base/librsvg sys-apps/dbus x11-libs/cairo xcomposite? ( x11-libs/libXtst x11-libs/libXcomposite x11-libs/libXinerama ) glitz? ( media-libs/glitz ) " DEPEND="${RDEPEND} dev-util/pkgconfig dev-util/intltool sys-devel/gettext" #FIXME: May be a sed expression which solves the problem # would be better ? src_prepare() { # Fix infinite loop while processing po/Makefile.in eautoreconf } src_configure() { econf $(use_enable glitz) $(use_enable xcomposite xextend) } src_install() { emake DESTDIR="${D}" install || die "emake install failed" }