# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header $ inherit eutils gnome2 DESCRIPTION="Cairo Composite Manager is a versatile and extensible composite manager which use cairo for rendering." HOMEPAGE="http://cairo-compmgr.tuxfamily.org/" SRC_URI="http://download.tuxfamily.org/ccm/cairo-compmgr/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND=" x11-libs/libXcomposite x11-libs/libXdamage x11-libs/libXext x11-libs/libXrender >=x11-libs/gtk+-2.10 >=x11-libs/cairo-1.4.10 >=x11-libs/pixman-0.9.6 >=media-libs/glitz-0.5.6 >=gnome-base/libgnomeui-2 >=gnome-base/gconf-2 >=gnome-base/libgtop-2" DEPEND="${RDEPEND} >=dev-util/pkgconfig-0.9" DOCS="AUTHORS ChangeLog INSTALL NEWS README" pkg_setup() { local message="x11-libs/cairo has to be built with USE=\"X glitz\"." if ! built_with_use x11-libs/cairo X glitz; then eerror "${message}" die "${message}" fi } pkg_preinst() { # remove DOCS files from image rm -rf "${D}/usr/doc" gnome2_pkg_preinst }