/[gentoo-x86]/x11-libs/cairo/cairo-1.8.10.ebuild
Gentoo

Contents of /x11-libs/cairo/cairo-1.8.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Thu Jan 31 13:35:51 2013 UTC (22 months, 3 weeks ago) by chithanh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1 lines
FILE REMOVED
Add patch to fix graphics corruption, bug #454468.

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2012 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.8.10.ebuild,v 1.13 2012/05/05 03:52:24 jdhore Exp $
4
5 EAPI=2
6
7 inherit eutils flag-o-matic autotools
8
9 DESCRIPTION="A vector graphics library with cross-device output support"
10 HOMEPAGE="http://cairographics.org/"
11 SRC_URI="http://cairographics.org/releases/${P}.tar.gz
12 mirror://gentoo/${PN}-1.8-lcd_filter.patch.bz2"
13
14 LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
15 SLOT="0"
16 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
17 IUSE="aqua cleartype debug directfb doc lcdfilter opengl +svg X xcb"
18
19 # Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it
20 RESTRICT="test"
21
22 RDEPEND="media-libs/fontconfig
23 >=media-libs/freetype-2.1.9
24 sys-libs/zlib
25 >=media-libs/libpng-1.2.43-r2:0
26 >=x11-libs/pixman-0.12.0
27 directfb? ( >=dev-libs/DirectFB-0.9.24 )
28 svg? ( dev-libs/libxml2 )
29 X? ( >=x11-libs/libXrender-0.6
30 x11-libs/libXext
31 x11-libs/libX11
32 x11-libs/libXft )
33 xcb? ( >=x11-libs/libxcb-0.92
34 x11-libs/xcb-util )"
35 # test? (
36 # pdf test
37 # x11-libs/pango
38 # >=x11-libs/gtk+-2.0
39 # >=app-text/poppler-bindings-0.9.2[gtk]
40 # ps test
41 # app-text/ghostscript-gpl
42 # svg test
43 # >=x11-libs/gtk+-2.0
44 # >=gnome-base/librsvg-2.15.0
45
46 DEPEND="${RDEPEND}
47 virtual/pkgconfig
48 >=sys-devel/libtool-2
49 doc? ( >=dev-util/gtk-doc-1.6
50 ~app-text/docbook-xml-dtd-4.2 )
51 X? ( x11-proto/renderproto )"
52
53 src_prepare() {
54 if use lcdfilter; then
55 # LCD filter patch from Ubuntu, taken from:
56 # http://bazaar.launchpad.net/%7Eubuntu-branches/ubuntu/lucid/cairo/lucid/files/head%3A/debian/patches/
57 epatch "${WORKDIR}"/${PN}-1.8-lcd_filter.patch
58 elif use cleartype; then
59 # ClearType-like patches applied by ArchLinux
60 epatch "${FILESDIR}"/${PN}-1.2.4-lcd-cleartype-like.diff
61 fi
62
63 epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch \
64 "${FILESDIR}"/${P}-libpng14.patch
65
66 # We need to run elibtoolize to ensure correct so versioning on FreeBSD
67 # upgraded to an eautoreconf for the above interix patch.
68 eautoreconf
69 }
70
71 src_configure() {
72 [[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT
73 # http://bugs.freedesktop.org/show_bug.cgi?id=15463
74 [[ ${CHOST} == *-solaris* ]] && append-flags -D_POSIX_PTHREAD_SEMANTICS
75
76 #gets rid of fbmmx.c inlining warnings
77 append-flags -finline-limit=1200
78
79 econf $(use_enable X xlib) $(use_enable doc gtk-doc) \
80 $(use_enable directfb) $(use_enable xcb) \
81 $(use_enable svg) --disable-glitz $(use_enable X xlib-xrender) \
82 $(use_enable debug test-surfaces) --enable-pdf --enable-png \
83 --enable-ft --enable-ps \
84 $(use_enable aqua quartz) $(use_enable aqua quartz-image) \
85 || die "configure failed"
86 }
87
88 src_install() {
89 make DESTDIR="${D}" install || die "Installation failed"
90 dodoc AUTHORS ChangeLog NEWS README
91 }
92
93 pkg_postinst() {
94 if use xcb; then
95 ewarn "You have enabled the Cairo XCB backend which is used only by"
96 ewarn "a select few apps. The Cairo XCB backend is presently"
97 ewarn "un-maintained and needs a lot of work to get it caught up"
98 ewarn "to the Xrender and Xlib backends, which are the backends used"
99 ewarn "by most applications. See:"
100 ewarn "http://lists.freedesktop.org/archives/xcb/2008-December/004139.html"
101 fi
102 }

  ViewVC Help
Powered by ViewVC 1.1.20