| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/Attic/cairo-1.12.6.ebuild,v 1.1 2012/10/31 23:12:19 chithanh Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/Attic/cairo-1.12.6.ebuild,v 1.2 2012/11/04 09:54:57 ssuominen Exp $ |
| 4 | |
4 | |
| 5 | EAPI=4 |
5 | EAPI=4 |
| 6 | |
6 | |
| 7 | inherit eutils flag-o-matic autotools |
7 | inherit eutils flag-o-matic autotools |
| 8 | |
8 | |
| … | |
… | |
| 18 | |
18 | |
| 19 | DESCRIPTION="A vector graphics library with cross-device output support" |
19 | DESCRIPTION="A vector graphics library with cross-device output support" |
| 20 | HOMEPAGE="http://cairographics.org/" |
20 | HOMEPAGE="http://cairographics.org/" |
| 21 | LICENSE="|| ( LGPL-2.1 MPL-1.1 )" |
21 | LICENSE="|| ( LGPL-2.1 MPL-1.1 )" |
| 22 | SLOT="0" |
22 | SLOT="0" |
| 23 | IUSE="X aqua debug directfb doc drm gallium +glib opengl openvg qt4 static-libs +svg xcb" |
23 | IUSE="X aqua debug directfb doc drm gallium +glib legacy-drivers opengl openvg qt4 static-libs +svg xcb" |
| 24 | |
24 | |
| 25 | # Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it |
25 | # Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it |
| 26 | RESTRICT="test" |
26 | RESTRICT="test" |
| 27 | |
27 | |
| 28 | RDEPEND="media-libs/fontconfig |
28 | RDEPEND="media-libs/fontconfig |
| … | |
… | |
| 69 | gallium? ( drm ) |
69 | gallium? ( drm ) |
| 70 | " |
70 | " |
| 71 | |
71 | |
| 72 | src_prepare() { |
72 | src_prepare() { |
| 73 | epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch |
73 | epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch |
| 74 | epatch "${FILESDIR}"/${PN}-1.10.0-buggy_gradients.patch |
74 | use legacy-drivers && epatch "${FILESDIR}"/${PN}-1.10.0-buggy_gradients.patch |
| 75 | epatch "${FILESDIR}"/${PN}-1.10.2-qt-surface.patch |
75 | epatch "${FILESDIR}"/${PN}-1.10.2-qt-surface.patch |
| 76 | epatch "${FILESDIR}"/${PN}-respect-fontconfig.patch |
76 | epatch "${FILESDIR}"/${PN}-respect-fontconfig.patch |
| 77 | epatch_user |
77 | epatch_user |
| 78 | |
78 | |
| 79 | # Slightly messed build system YAY |
79 | # Slightly messed build system YAY |