Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/cairo: ChangeLog cairo-1.10.0-r1.ebuild cairo-9999.ebuild cairo-1.10.0.ebuild
Date: Thu, 09 Sep 2010 08:03:13
Message-Id: 20100909080308.2B16A20051@flycatcher.gentoo.org
1 scarabeus 10/09/09 08:03:08
2
3 Modified: ChangeLog cairo-9999.ebuild
4 Added: cairo-1.10.0-r1.ebuild
5 Removed: cairo-1.10.0.ebuild
6 Log:
7 Disable xlib over xcb by default. To make the choice of backend up to application. Thanks to remi for pointing out.
8
9 (Portage version: 2.2_rc75/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.256 x11-libs/cairo/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/ChangeLog?rev=1.256&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/ChangeLog?rev=1.256&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/ChangeLog?r1=1.255&r2=1.256
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/x11-libs/cairo/ChangeLog,v
21 retrieving revision 1.255
22 retrieving revision 1.256
23 diff -u -r1.255 -r1.256
24 --- ChangeLog 8 Sep 2010 20:01:52 -0000 1.255
25 +++ ChangeLog 9 Sep 2010 08:03:08 -0000 1.256
26 @@ -1,6 +1,13 @@
27 # ChangeLog for x11-libs/cairo
28 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/ChangeLog,v 1.255 2010/09/08 20:01:52 scarabeus Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/ChangeLog,v 1.256 2010/09/09 08:03:08 scarabeus Exp $
31 +
32 +*cairo-1.10.0-r1 (09 Sep 2010)
33 +
34 + 09 Sep 2010; Tomáš Chvátal <scarabeus@g.o> -cairo-1.10.0.ebuild,
35 + +cairo-1.10.0-r1.ebuild, cairo-9999.ebuild:
36 + Disable xlib over xcb by default. To make the choice of backend up to
37 + application. Thanks to remi for pointing out.
38
39 08 Sep 2010; Tomáš Chvátal <scarabeus@g.o> cairo-1.10.0.ebuild,
40 cairo-9999.ebuild:
41
42
43
44 1.3 x11-libs/cairo/cairo-9999.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild?rev=1.3&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild?rev=1.3&content-type=text/plain
48 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild?r1=1.2&r2=1.3
49
50 Index: cairo-9999.ebuild
51 ===================================================================
52 RCS file: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild,v
53 retrieving revision 1.2
54 retrieving revision 1.3
55 diff -u -r1.2 -r1.3
56 --- cairo-9999.ebuild 8 Sep 2010 20:01:52 -0000 1.2
57 +++ cairo-9999.ebuild 9 Sep 2010 08:03:08 -0000 1.3
58 @@ -1,6 +1,6 @@
59 # Copyright 1999-2010 Gentoo Foundation
60 # Distributed under the terms of the GNU General Public License v2
61 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild,v 1.2 2010/09/08 20:01:52 scarabeus Exp $
62 +# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild,v 1.3 2010/09/09 08:03:08 scarabeus Exp $
63
64 EAPI=3
65
66 @@ -39,12 +39,6 @@
67 >=sys-fs/udev-136
68 gallium? ( media-libs/mesa[gallium] )
69 )
70 - xcb? (
71 - || (
72 - <=x11-libs/libX11-1.3.5[xcb]
73 - >x11-libs/libX11-1.3.5
74 - )
75 - )
76 )
77 xcb? (
78 x11-libs/libxcb
79 @@ -93,7 +87,6 @@
80 if use X; then
81 myopts+="
82 $(use_enable drm)
83 - $(use_enable xcb xlib-xcb)
84 "
85
86 if use drm; then
87 @@ -112,10 +105,14 @@
88 use drm && ewarn "drm use requires X use enabled. So disabling for now."
89 myopts+="
90 --disable-drm
91 - --disable-xcb-lib
92 + --disable-gallium
93 + --disable-xcb-drm
94 "
95 fi
96
97 +
98 + # --disable-xcb-lib:
99 + # do not override good xlib backed by hardforcing rendering over xcb
100 econf \
101 --disable-dependency-tracking \
102 $(use_with X x) \
103 @@ -137,6 +134,7 @@
104 --enable-pdf \
105 --enable-png \
106 --enable-ps \
107 + --disable-xcb-lib \
108 ${myopts}
109 }
110
111
112
113
114 1.1 x11-libs/cairo/cairo-1.10.0-r1.ebuild
115
116 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/cairo-1.10.0-r1.ebuild?rev=1.1&view=markup
117 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/cairo-1.10.0-r1.ebuild?rev=1.1&content-type=text/plain
118
119 Index: cairo-1.10.0-r1.ebuild
120 ===================================================================
121 # Copyright 1999-2010 Gentoo Foundation
122 # Distributed under the terms of the GNU General Public License v2
123 # $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.10.0-r1.ebuild,v 1.1 2010/09/09 08:03:08 scarabeus Exp $
124
125 EAPI=3
126
127 EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo"
128 [[ ${PV} == *9999 ]] && GIT_ECLASS="git"
129
130 inherit eutils flag-o-matic autotools ${GIT_ECLASS}
131
132 DESCRIPTION="A vector graphics library with cross-device output support"
133 HOMEPAGE="http://cairographics.org/"
134 [[ ${PV} == *9999 ]] || SRC_URI="http://cairographics.org/releases/${P}.tar.gz"
135
136 LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
137 SLOT="0"
138 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"
139 IUSE="X aqua debug directfb doc drm gallium opengl openvg qt static-libs +svg xcb"
140
141 # Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it
142 RESTRICT="test"
143
144 RDEPEND="media-libs/fontconfig
145 media-libs/freetype:2
146 media-libs/libpng:0
147 sys-libs/zlib
148 >=x11-libs/pixman-0.18.4
149 directfb? ( dev-libs/DirectFB )
150 opengl? ( virtual/opengl )
151 qt? ( x11-libs/qt-gui )
152 svg? ( dev-libs/libxml2 )
153 X? (
154 >=x11-libs/libXrender-0.6
155 x11-libs/libXext
156 x11-libs/libX11
157 x11-libs/libXft
158 drm? (
159 >=sys-fs/udev-136
160 gallium? ( media-libs/mesa[gallium] )
161 )
162 )
163 xcb? (
164 x11-libs/libxcb
165 x11-libs/xcb-util
166 )"
167 DEPEND="${RDEPEND}
168 dev-util/pkgconfig
169 >=sys-devel/libtool-2
170 doc? (
171 >=dev-util/gtk-doc-1.6
172 ~app-text/docbook-xml-dtd-4.2
173 )
174 X? (
175 x11-proto/renderproto
176 drm? (
177 x11-proto/xproto
178 >=x11-proto/xextproto-7.1
179 )
180 )"
181
182 src_prepare() {
183 epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch
184
185 # Slightly messed build system YAY
186 if [[ ${PV} == *9999* ]]; then
187 touch boilerplate/Makefile.am.features
188 touch src/Makefile.am.features
189 touch ChangeLog
190 fi
191
192 # We need to run elibtoolize to ensure correct so versioning on FreeBSD
193 # upgraded to an eautoreconf for the above interix patch.
194 eautoreconf
195 }
196
197 src_configure() {
198 local myopts
199
200 [[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT
201 # http://bugs.freedesktop.org/show_bug.cgi?id=15463
202 [[ ${CHOST} == *-solaris* ]] && append-flags -D_POSIX_PTHREAD_SEMANTICS
203
204 #gets rid of fbmmx.c inlining warnings
205 append-flags -finline-limit=1200
206
207 if use X; then
208 myopts+="
209 $(use_enable drm)
210 "
211
212 if use drm; then
213 myopts+="
214 $(use_enable gallium)
215 $(use_enable xcb xcb-drm)
216 "
217 else
218 use gallium && ewarn "Gallium use requires drm use enabled. So disabling for now."
219 myopts+="
220 --disable-gallium
221 --disable-xcb-drm
222 "
223 fi
224 else
225 use drm && ewarn "drm use requires X use enabled. So disabling for now."
226 myopts+="
227 --disable-drm
228 --disable-gallium
229 --disable-xcb-drm
230 "
231 fi
232
233
234 # --disable-xcb-lib:
235 # do not override good xlib backed by hardforcing rendering over xcb
236 econf \
237 --disable-dependency-tracking \
238 $(use_with X x) \
239 $(use_enable X xlib) \
240 $(use_enable X xlib-xrender) \
241 $(use_enable aqua quartz) \
242 $(use_enable aqua quartz-image) \
243 $(use_enable debug test-surfaces) \
244 $(use_enable directfb) \
245 $(use_enable doc gtk-doc) \
246 $(use_enable openvg vg) \
247 $(use_enable opengl gl) \
248 $(use_enable qt) \
249 $(use_enable static-libs static) \
250 $(use_enable svg) \
251 $(use_enable xcb) \
252 $(use_enable xcb xcb-shm) \
253 --enable-ft \
254 --enable-pdf \
255 --enable-png \
256 --enable-ps \
257 --disable-xcb-lib \
258 ${myopts}
259 }
260
261 src_install() {
262 # parallel make install fails
263 emake -j1 DESTDIR="${D}" install || die "Installation failed"
264 dodoc AUTHORS ChangeLog NEWS README || die
265
266 use static-libs || find "${D}" -type f -name '*.la' -exec rm -f '{}' \;
267 }