| 1 |
# Copyright 1999-2005 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.0.ebuild,v 1.1 2005/08/25 10:42:04 leonardop 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 ~sparc ~x86" |
| 14 |
IUSE="doc glitz png static X" |
| 15 |
|
| 16 |
RDEPEND="media-libs/fontconfig |
| 17 |
>=media-libs/freetype-2.1 |
| 18 |
sys-libs/zlib |
| 19 |
X? ( |
| 20 |
||( ( |
| 21 |
x11-libs/libXrender |
| 22 |
x11-libs/libX11 |
| 23 |
x11-libs/libXt ) |
| 24 |
virtual/x11 ) |
| 25 |
virtual/xft ) |
| 26 |
glitz? ( >=media-libs/glitz-0.4.4 ) |
| 27 |
png? ( media-libs/libpng ) |
| 28 |
!<x11-libs/cairo-0.2" |
| 29 |
|
| 30 |
DEPEND="${RDEPEND} |
| 31 |
>=dev-util/pkgconfig-0.9 |
| 32 |
doc? ( >=dev-util/gtk-doc-1.3 |
| 33 |
~app-text/docbook-xml-dtd-4.2 )" |
| 34 |
|
| 35 |
|
| 36 |
src_compile() { |
| 37 |
local myconf="$(use_enable X xlib) $(use_with X x) $(use_enable png) \ |
| 38 |
$(use_enable static) $(use_enable doc gtk-doc) $(use_enable glitz)" |
| 39 |
|
| 40 |
econf $myconf || die "./configure failed" |
| 41 |
emake || die "Compilation failed" |
| 42 |
} |
| 43 |
|
| 44 |
|
| 45 |
src_install() { |
| 46 |
make DESTDIR="${D}" install || die "Installation failed" |
| 47 |
|
| 48 |
dodoc AUTHORS ChangeLog NEWS README TODO |
| 49 |
} |