| 1 |
# Copyright 1999-2007 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.0.4.ebuild,v 1.15 2007/02/18 10:32:33 grobian Exp $
|
| 4 |
|
| 5 |
inherit eutils
|
| 6 |
|
| 7 |
DESCRIPTION="A vector graphics library with cross-device output support"
|
| 8 |
HOMEPAGE="http://cairographics.org/"
|
| 9 |
SRC_URI="http://cairographics.org/releases/${P}.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
|
| 14 |
IUSE="doc glitz png X"
|
| 15 |
# bug 118106: not entirely broken, just too flakey
|
| 16 |
RESTRICT="test"
|
| 17 |
|
| 18 |
RDEPEND="media-libs/fontconfig
|
| 19 |
>=media-libs/freetype-2.1
|
| 20 |
X? ( || ( ( x11-libs/libXrender
|
| 21 |
x11-libs/libX11 )
|
| 22 |
virtual/x11 )
|
| 23 |
virtual/xft )
|
| 24 |
glitz? ( =media-libs/glitz-0.4.4* )
|
| 25 |
png? ( media-libs/libpng )
|
| 26 |
!<x11-libs/cairo-0.2"
|
| 27 |
|
| 28 |
DEPEND="${RDEPEND}
|
| 29 |
>=dev-util/pkgconfig-0.9
|
| 30 |
X? ( || ( x11-proto/renderproto virtual/x11 ) )
|
| 31 |
doc? ( >=dev-util/gtk-doc-1.3
|
| 32 |
~app-text/docbook-xml-dtd-4.2 )"
|
| 33 |
|
| 34 |
src_compile() {
|
| 35 |
|
| 36 |
econf $(use_enable X xlib) \
|
| 37 |
$(use_enable png) \
|
| 38 |
$(use_enable doc gtk-doc) \
|
| 39 |
$(use_enable glitz) \
|
| 40 |
--enable-freetype || die "./configure failed"
|
| 41 |
|
| 42 |
emake || die "Compilation failed"
|
| 43 |
|
| 44 |
}
|
| 45 |
|
| 46 |
src_install() {
|
| 47 |
|
| 48 |
make DESTDIR="${D}" install || die "Installation failed"
|
| 49 |
|
| 50 |
dodoc AUTHORS ChangeLog NEWS README TODO
|
| 51 |
|
| 52 |
}
|