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

Contents of /x11-libs/cairo/cairo-1.12.14-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Mon Jan 20 12:55:37 2014 UTC (7 months, 3 weeks ago) by yngwin
Branch: MAIN
Changes since 1.12: +4 -3 lines
Specify automagic dev-libs/lzo dependency (bug #477078)

(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key 0x0F9C590B7FF324F6!)

1 # Copyright 1999-2014 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.12.14-r4.ebuild,v 1.12 2013/09/06 14:59:45 ago Exp $
4
5 EAPI=5
6
7 inherit eutils flag-o-matic autotools
8
9 if [[ ${PV} == *9999* ]]; then
10 inherit git-2
11 EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo"
12 SRC_URI=""
13 KEYWORDS=""
14 else
15 SRC_URI="http://cairographics.org/releases/${P}.tar.xz"
16 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
17 fi
18
19 DESCRIPTION="A vector graphics library with cross-device output support"
20 HOMEPAGE="http://cairographics.org/"
21 LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
22 SLOT="0"
23 IUSE="X aqua debug directfb doc drm gallium gles2 +glib legacy-drivers opengl openvg qt4 static-libs +svg valgrind xcb xlib-xcb"
24
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"
27
28 RDEPEND="dev-libs/lzo
29 media-libs/fontconfig
30 media-libs/freetype:2
31 media-libs/libpng:0=
32 sys-libs/zlib
33 >=x11-libs/pixman-0.28.0
34 directfb? ( dev-libs/DirectFB )
35 gles2? ( media-libs/mesa[gles2] )
36 glib? ( >=dev-libs/glib-2.28.6:2 )
37 opengl? ( || ( media-libs/mesa[egl] media-libs/opengl-apple ) )
38 openvg? ( media-libs/mesa[openvg] )
39 qt4? ( >=dev-qt/qtgui-4.8:4 )
40 X? (
41 >=x11-libs/libXrender-0.6
42 x11-libs/libXext
43 x11-libs/libX11
44 drm? (
45 >=virtual/udev-136
46 gallium? ( media-libs/mesa[gallium] )
47 )
48 )
49 xcb? (
50 x11-libs/libxcb
51 x11-libs/xcb-util
52 )"
53 DEPEND="${RDEPEND}
54 virtual/pkgconfig
55 >=sys-devel/libtool-2
56 doc? (
57 >=dev-util/gtk-doc-1.6
58 ~app-text/docbook-xml-dtd-4.2
59 )
60 X? (
61 x11-proto/renderproto
62 drm? (
63 x11-proto/xproto
64 >=x11-proto/xextproto-7.1
65 )
66 )"
67
68 # drm module requires X
69 # for gallium we need to enable drm
70 REQUIRED_USE="
71 drm? ( X )
72 gallium? ( drm )
73 gles2? ( !opengl )
74 openvg? ( || ( gles2 opengl ) )
75 xlib-xcb? ( xcb )
76 "
77
78 src_prepare() {
79 epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch
80 use legacy-drivers && epatch "${FILESDIR}"/${PN}-1.10.0-buggy_gradients.patch
81 epatch "${FILESDIR}"/${PN}-respect-fontconfig.patch
82 epatch "${FILESDIR}"/${PN}-1.12.12-disable-test-suite.patch
83 epatch "${FILESDIR}"/${PN}-1.12.14-libpng16.patch
84 epatch_user
85
86 # Slightly messed build system YAY
87 if [[ ${PV} == *9999* ]]; then
88 touch boilerplate/Makefile.am.features
89 touch src/Makefile.am.features
90 touch ChangeLog
91 fi
92
93 # We need to run elibtoolize to ensure correct so versioning on FreeBSD
94 # upgraded to an eautoreconf for the above interix patch.
95 eautoreconf
96 }
97
98 src_configure() {
99 local myopts
100
101 [[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT
102
103 use elibc_FreeBSD && myopts+=" --disable-symbol-lookup"
104
105 econf \
106 --disable-dependency-tracking \
107 $(use_with X x) \
108 $(use_enable X tee) \
109 $(use_enable X xlib) \
110 $(use_enable X xlib-xrender) \
111 $(use_enable aqua quartz) \
112 $(use_enable aqua quartz-image) \
113 $(use_enable debug test-surfaces) \
114 $(use_enable drm) \
115 $(use_enable directfb) \
116 $(use_enable gallium) \
117 $(use_enable gles2 glesv2) \
118 $(use_enable glib gobject) \
119 $(use_enable doc gtk-doc) \
120 $(use_enable openvg vg) \
121 $(use_enable opengl gl) \
122 $(use_enable qt4 qt) \
123 $(use_enable static-libs static) \
124 $(use_enable svg) \
125 $(use_enable valgrind) \
126 $(use_enable xcb) \
127 $(use_enable xcb xcb-shm) \
128 $(use_enable xlib-xcb) \
129 --enable-ft \
130 --enable-pdf \
131 --enable-png \
132 --enable-ps \
133 ${myopts}
134 }
135
136 src_install() {
137 # parallel make install fails
138 emake -j1 DESTDIR="${D}" install
139 find "${ED}" -name '*.la' -exec rm -f {} +
140 dodoc AUTHORS ChangeLog NEWS README
141 }
142
143 pkg_postinst() {
144 if use !xlib-xcb; then
145 if has_version net-misc/nxserver-freenx \
146 || has_version net-misc/x2goserver; then
147 ewarn "cairo-1.12 is known to cause GTK+ errors with NX servers."
148 ewarn "Enable USE=\"xlib-xcb\" if you notice incorrect behavior in GTK+"
149 ewarn "applications that are running inside NX sessions. For details, see"
150 ewarn "https://bugs.gentoo.org/441878 or https://bugs.freedesktop.org/59173"
151 fi
152 fi
153 }

  ViewVC Help
Powered by ViewVC 1.1.20