# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-0.9.2-r1.ebuild,v 1.1 2005/08/18 17:13:00 cardoe Exp $ inherit eutils DESCRIPTION="A vector graphics library with cross-device output support" HOMEPAGE="http://cairographics.org/" SRC_URI="http://cairographics.org/snapshots/${P}.tar.gz" LICENSE="|| ( LGPL-2.1 MPL-1.1 )" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" IUSE="doc glitz png static X" RDEPEND="X? ( ||( ( x11-libs/libXrender x11-libs/libX11 x11-libs/libXt ) virtual/x11 ) virtual/xft ) media-libs/fontconfig >=media-libs/freetype-2.1 sys-libs/zlib glitz? ( =media-libs/glitz-0.4.4 ) png? ( media-libs/libpng ) !. For more details # about the problem it fixes, see --GNOME bug-- #306216. epatch ${FILESDIR}/${P}-vendor_string.patch } src_compile() { local myconf="$(use_enable X xlib) $(use_enable png) \ $(use_enable static) $(use_enable doc gtk-doc) \ $(use_enable glitz)" econf $myconf || die "./configure failed" emake || die "Compilation failed" } src_install() { make DESTDIR="${D}" install || die "Installation failed" dodoc AUTHORS ChangeLog NEWS README TODO }