1 |
compnerd 08/09/27 00:48:41 |
2 |
|
3 |
Added: cairo-1.8.0.ebuild |
4 |
Log: |
5 |
version bump |
6 |
(Portage version: 2.2_rc9/cvs/Linux 2.6.27-rc3-git3 i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 x11-libs/cairo/cairo-1.8.0.ebuild |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/cairo/cairo-1.8.0.ebuild?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/cairo/cairo-1.8.0.ebuild?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: cairo-1.8.0.ebuild |
15 |
=================================================================== |
16 |
# Copyright 1999-2008 Gentoo Foundation |
17 |
# Distributed under the terms of the GNU General Public License v2 |
18 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.8.0.ebuild,v 1.1 2008/09/27 00:48:41 compnerd Exp $ |
19 |
|
20 |
inherit eutils flag-o-matic libtool |
21 |
|
22 |
DESCRIPTION="A vector graphics library with cross-device output support" |
23 |
HOMEPAGE="http://cairographics.org/" |
24 |
SRC_URI="http://cairographics.org/releases/${P}.tar.gz" |
25 |
|
26 |
LICENSE="|| ( LGPL-2.1 MPL-1.1 )" |
27 |
SLOT="0" |
28 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
29 |
IUSE="debug directfb doc glitz opengl svg test X xcb" |
30 |
|
31 |
# Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it |
32 |
RESTRICT="test" |
33 |
|
34 |
RDEPEND="media-libs/fontconfig |
35 |
>=media-libs/freetype-2.1.9 |
36 |
sys-libs/zlib |
37 |
media-libs/libpng |
38 |
virtual/ghostscript |
39 |
>=x11-libs/pixman-0.12.0 |
40 |
x11-libs/pango |
41 |
>=x11-libs/gtk+-2.0 |
42 |
>=app-text/poppler-0.9.2 |
43 |
X? ( |
44 |
>=x11-libs/libXrender-0.6 |
45 |
x11-libs/libXext |
46 |
x11-libs/libX11 |
47 |
virtual/xft |
48 |
xcb? ( >=x11-libs/libxcb-0.92 |
49 |
x11-libs/xcb-util ) |
50 |
) |
51 |
directfb? ( >=dev-libs/DirectFB-0.9.24 ) |
52 |
glitz? ( >=media-libs/glitz-0.5.1 ) |
53 |
svg? ( dev-libs/libxml2 |
54 |
>=x11-libs/gtk+-2.0 |
55 |
>=gnome-base/librsvg-2.15.0 )" |
56 |
|
57 |
DEPEND="${RDEPEND} |
58 |
>=dev-util/pkgconfig-0.19 |
59 |
X? ( x11-proto/renderproto |
60 |
xcb? ( x11-proto/xcb-proto ) ) |
61 |
doc? ( |
62 |
>=dev-util/gtk-doc-1.6 |
63 |
~app-text/docbook-xml-dtd-4.2 |
64 |
)" |
65 |
|
66 |
pkg_setup() { |
67 |
if ! built_with_use app-text/poppler gtk ; then |
68 |
eerror 'poppler with gtk is required for the pdf backend' |
69 |
die 'poppler built without gtk support' |
70 |
fi |
71 |
} |
72 |
|
73 |
src_unpack() { |
74 |
unpack ${A} |
75 |
cd "${S}" |
76 |
|
77 |
# We need to run elibtoolize to ensure correct so versioning on FreeBSD |
78 |
elibtoolize |
79 |
} |
80 |
|
81 |
src_compile() { |
82 |
local use_xcb |
83 |
|
84 |
#gets rid of fbmmx.c inlining warnings |
85 |
append-flags -finline-limit=1200 |
86 |
|
87 |
if use glitz && use opengl; then |
88 |
export glitz_LIBS=-lglitz-glx |
89 |
fi |
90 |
|
91 |
use_xcb="--disable-xcb" |
92 |
use X && use xcb && use_xcb="--enable-xcb" |
93 |
|
94 |
econf $(use_enable X xlib) $(use_enable doc gtk-doc) \ |
95 |
$(use_enable directfb) ${use_xcb} \ |
96 |
$(use_enable svg) $(use_enable glitz) $(use_enable X xlib-xrender) \ |
97 |
$(use_enable debug test-surfaces) --enable-pdf --enable-png \ |
98 |
--enable-freetype --enable-ps \ |
99 |
|| die "configure failed" |
100 |
|
101 |
emake || die "compile failed" |
102 |
} |
103 |
|
104 |
src_install() { |
105 |
make DESTDIR="${D}" install || die "Installation failed" |
106 |
dodoc AUTHORS ChangeLog NEWS README |
107 |
} |