1 |
mgorny 14/02/28 20:42:56 |
2 |
|
3 |
Modified: cairo-9999.ebuild ChangeLog |
4 |
Added: cairo-1.12.16-r1.ebuild |
5 |
Log: |
6 |
Introduce multilib support, bug #488672. |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.37 x11-libs/cairo/cairo-9999.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild?rev=1.37&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild?rev=1.37&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild?r1=1.36&r2=1.37 |
16 |
|
17 |
Index: cairo-9999.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild,v |
20 |
retrieving revision 1.36 |
21 |
retrieving revision 1.37 |
22 |
diff -u -r1.36 -r1.37 |
23 |
--- cairo-9999.ebuild 21 Aug 2013 15:41:17 -0000 1.36 |
24 |
+++ cairo-9999.ebuild 28 Feb 2014 20:42:55 -0000 1.37 |
25 |
@@ -1,10 +1,10 @@ |
26 |
-# Copyright 1999-2013 Gentoo Foundation |
27 |
+# Copyright 1999-2014 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild,v 1.36 2013/08/21 15:41:17 chithanh Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-9999.ebuild,v 1.37 2014/02/28 20:42:55 mgorny Exp $ |
31 |
|
32 |
EAPI=5 |
33 |
|
34 |
-inherit eutils flag-o-matic autotools |
35 |
+inherit eutils flag-o-matic autotools multilib-minimal |
36 |
|
37 |
if [[ ${PV} == *9999* ]]; then |
38 |
inherit git-2 |
39 |
@@ -25,29 +25,29 @@ |
40 |
# Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it |
41 |
RESTRICT="test" |
42 |
|
43 |
-RDEPEND="media-libs/fontconfig |
44 |
- media-libs/freetype:2 |
45 |
- media-libs/libpng:0= |
46 |
- sys-libs/zlib |
47 |
- >=x11-libs/pixman-0.28.0 |
48 |
+RDEPEND="dev-libs/lzo[${MULTILIB_USEDEP}] |
49 |
+ media-libs/fontconfig[${MULTILIB_USEDEP}] |
50 |
+ media-libs/freetype:2[${MULTILIB_USEDEP}] |
51 |
+ media-libs/libpng:0=[${MULTILIB_USEDEP}] |
52 |
+ sys-libs/zlib[${MULTILIB_USEDEP}] |
53 |
+ >=x11-libs/pixman-0.28.0[${MULTILIB_USEDEP}] |
54 |
directfb? ( dev-libs/DirectFB ) |
55 |
- gles2? ( media-libs/mesa[gles2] ) |
56 |
- glib? ( >=dev-libs/glib-2.28.6:2 ) |
57 |
- opengl? ( || ( media-libs/mesa[egl] media-libs/opengl-apple ) ) |
58 |
- openvg? ( media-libs/mesa[openvg] ) |
59 |
- qt4? ( >=dev-qt/qtgui-4.8:4 ) |
60 |
+ gles2? ( media-libs/mesa[gles2,${MULTILIB_USEDEP}] ) |
61 |
+ glib? ( >=dev-libs/glib-2.28.6:2[${MULTILIB_USEDEP}] ) |
62 |
+ opengl? ( || ( media-libs/mesa[egl,${MULTILIB_USEDEP}] media-libs/opengl-apple ) ) |
63 |
+ openvg? ( media-libs/mesa[openvg,${MULTILIB_USEDEP}] ) |
64 |
+ qt4? ( >=dev-qt/qtgui-4.8:4[${MULTILIB_USEDEP}] ) |
65 |
X? ( |
66 |
- >=x11-libs/libXrender-0.6 |
67 |
- x11-libs/libXext |
68 |
- x11-libs/libX11 |
69 |
+ >=x11-libs/libXrender-0.6[${MULTILIB_USEDEP}] |
70 |
+ x11-libs/libXext[${MULTILIB_USEDEP}] |
71 |
+ x11-libs/libX11[${MULTILIB_USEDEP}] |
72 |
drm? ( |
73 |
- >=virtual/udev-136 |
74 |
- gallium? ( media-libs/mesa[gallium] ) |
75 |
+ >=virtual/udev-136[${MULTILIB_USEDEP}] |
76 |
+ gallium? ( media-libs/mesa[gallium,${MULTILIB_USEDEP}] ) |
77 |
) |
78 |
) |
79 |
xcb? ( |
80 |
- x11-libs/libxcb |
81 |
- x11-libs/xcb-util |
82 |
+ x11-libs/libxcb[${MULTILIB_USEDEP}] |
83 |
)" |
84 |
DEPEND="${RDEPEND} |
85 |
virtual/pkgconfig |
86 |
@@ -57,10 +57,10 @@ |
87 |
~app-text/docbook-xml-dtd-4.2 |
88 |
) |
89 |
X? ( |
90 |
- x11-proto/renderproto |
91 |
+ x11-proto/renderproto[${MULTILIB_USEDEP}] |
92 |
drm? ( |
93 |
- x11-proto/xproto |
94 |
- >=x11-proto/xextproto-7.1 |
95 |
+ x11-proto/xproto[${MULTILIB_USEDEP}] |
96 |
+ >=x11-proto/xextproto-7.1[${MULTILIB_USEDEP}] |
97 |
) |
98 |
)" |
99 |
|
100 |
@@ -92,13 +92,20 @@ |
101 |
eautoreconf |
102 |
} |
103 |
|
104 |
-src_configure() { |
105 |
+multilib_src_configure() { |
106 |
local myopts |
107 |
|
108 |
[[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT |
109 |
|
110 |
use elibc_FreeBSD && myopts+=" --disable-symbol-lookup" |
111 |
|
112 |
+ # TODO: remove this (and add USE-dep) when DirectFB is converted, |
113 |
+ # bug #484248 -- but beware of the circular dep. |
114 |
+ if ! multilib_build_binaries; then |
115 |
+ myopts+=" --disable-directfb" |
116 |
+ fi |
117 |
+ |
118 |
+ ECONF_SOURCE="${S}" \ |
119 |
econf \ |
120 |
--disable-dependency-tracking \ |
121 |
$(use_with X x) \ |
122 |
@@ -130,11 +137,14 @@ |
123 |
${myopts} |
124 |
} |
125 |
|
126 |
-src_install() { |
127 |
+multilib_src_install() { |
128 |
# parallel make install fails |
129 |
emake -j1 DESTDIR="${D}" install |
130 |
- find "${ED}" -name '*.la' -exec rm -f {} + |
131 |
- dodoc AUTHORS ChangeLog NEWS README |
132 |
+} |
133 |
+ |
134 |
+multilib_src_install_all() { |
135 |
+ prune_libtool_files --all |
136 |
+ einstalldocs |
137 |
} |
138 |
|
139 |
pkg_postinst() { |
140 |
|
141 |
|
142 |
|
143 |
1.359 x11-libs/cairo/ChangeLog |
144 |
|
145 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/ChangeLog?rev=1.359&view=markup |
146 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/ChangeLog?rev=1.359&content-type=text/plain |
147 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/ChangeLog?r1=1.358&r2=1.359 |
148 |
|
149 |
Index: ChangeLog |
150 |
=================================================================== |
151 |
RCS file: /var/cvsroot/gentoo-x86/x11-libs/cairo/ChangeLog,v |
152 |
retrieving revision 1.358 |
153 |
retrieving revision 1.359 |
154 |
diff -u -r1.358 -r1.359 |
155 |
--- ChangeLog 20 Jan 2014 12:55:37 -0000 1.358 |
156 |
+++ ChangeLog 28 Feb 2014 20:42:55 -0000 1.359 |
157 |
@@ -1,6 +1,12 @@ |
158 |
# ChangeLog for x11-libs/cairo |
159 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
160 |
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/ChangeLog,v 1.358 2014/01/20 12:55:37 yngwin Exp $ |
161 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/ChangeLog,v 1.359 2014/02/28 20:42:55 mgorny Exp $ |
162 |
+ |
163 |
+*cairo-1.12.16-r1 (28 Feb 2014) |
164 |
+ |
165 |
+ 28 Feb 2014; Michał Górny <mgorny@g.o> +cairo-1.12.16-r1.ebuild, |
166 |
+ cairo-9999.ebuild: |
167 |
+ Introduce multilib support, bug #488672. |
168 |
|
169 |
20 Jan 2014; Ben de Groot <yngwin@g.o> cairo-1.12.14-r4.ebuild, |
170 |
cairo-1.12.16.ebuild: |
171 |
|
172 |
|
173 |
|
174 |
1.1 x11-libs/cairo/cairo-1.12.16-r1.ebuild |
175 |
|
176 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/cairo-1.12.16-r1.ebuild?rev=1.1&view=markup |
177 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/cairo/cairo-1.12.16-r1.ebuild?rev=1.1&content-type=text/plain |
178 |
|
179 |
Index: cairo-1.12.16-r1.ebuild |
180 |
=================================================================== |
181 |
# Copyright 1999-2014 Gentoo Foundation |
182 |
# Distributed under the terms of the GNU General Public License v2 |
183 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.12.16-r1.ebuild,v 1.1 2014/02/28 20:42:55 mgorny Exp $ |
184 |
|
185 |
EAPI=5 |
186 |
|
187 |
inherit eutils flag-o-matic autotools multilib-minimal |
188 |
|
189 |
if [[ ${PV} == *9999* ]]; then |
190 |
inherit git-2 |
191 |
EGIT_REPO_URI="git://anongit.freedesktop.org/git/cairo" |
192 |
SRC_URI="" |
193 |
KEYWORDS="" |
194 |
else |
195 |
SRC_URI="http://cairographics.org/releases/${P}.tar.xz" |
196 |
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" |
197 |
fi |
198 |
|
199 |
DESCRIPTION="A vector graphics library with cross-device output support" |
200 |
HOMEPAGE="http://cairographics.org/" |
201 |
LICENSE="|| ( LGPL-2.1 MPL-1.1 )" |
202 |
SLOT="0" |
203 |
IUSE="X aqua debug directfb doc drm gallium gles2 +glib legacy-drivers opengl openvg qt4 static-libs +svg valgrind xcb xlib-xcb" |
204 |
|
205 |
# Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it |
206 |
RESTRICT="test" |
207 |
|
208 |
RDEPEND="dev-libs/lzo[${MULTILIB_USEDEP}] |
209 |
media-libs/fontconfig[${MULTILIB_USEDEP}] |
210 |
media-libs/freetype:2[${MULTILIB_USEDEP}] |
211 |
media-libs/libpng:0=[${MULTILIB_USEDEP}] |
212 |
sys-libs/zlib[${MULTILIB_USEDEP}] |
213 |
>=x11-libs/pixman-0.28.0[${MULTILIB_USEDEP}] |
214 |
directfb? ( dev-libs/DirectFB ) |
215 |
gles2? ( media-libs/mesa[gles2,${MULTILIB_USEDEP}] ) |
216 |
glib? ( >=dev-libs/glib-2.28.6:2[${MULTILIB_USEDEP}] ) |
217 |
opengl? ( || ( media-libs/mesa[egl,${MULTILIB_USEDEP}] media-libs/opengl-apple ) ) |
218 |
openvg? ( media-libs/mesa[openvg,${MULTILIB_USEDEP}] ) |
219 |
qt4? ( >=dev-qt/qtgui-4.8:4[${MULTILIB_USEDEP}] ) |
220 |
X? ( |
221 |
>=x11-libs/libXrender-0.6[${MULTILIB_USEDEP}] |
222 |
x11-libs/libXext[${MULTILIB_USEDEP}] |
223 |
x11-libs/libX11[${MULTILIB_USEDEP}] |
224 |
drm? ( |
225 |
>=virtual/udev-136[${MULTILIB_USEDEP}] |
226 |
gallium? ( media-libs/mesa[gallium,${MULTILIB_USEDEP}] ) |
227 |
) |
228 |
) |
229 |
xcb? ( |
230 |
x11-libs/libxcb[${MULTILIB_USEDEP}] |
231 |
)" |
232 |
DEPEND="${RDEPEND} |
233 |
virtual/pkgconfig |
234 |
>=sys-devel/libtool-2 |
235 |
doc? ( |
236 |
>=dev-util/gtk-doc-1.6 |
237 |
~app-text/docbook-xml-dtd-4.2 |
238 |
) |
239 |
X? ( |
240 |
x11-proto/renderproto[${MULTILIB_USEDEP}] |
241 |
drm? ( |
242 |
x11-proto/xproto[${MULTILIB_USEDEP}] |
243 |
>=x11-proto/xextproto-7.1[${MULTILIB_USEDEP}] |
244 |
) |
245 |
)" |
246 |
|
247 |
# drm module requires X |
248 |
# for gallium we need to enable drm |
249 |
REQUIRED_USE=" |
250 |
drm? ( X ) |
251 |
gallium? ( drm ) |
252 |
gles2? ( !opengl ) |
253 |
openvg? ( || ( gles2 opengl ) ) |
254 |
xlib-xcb? ( xcb ) |
255 |
" |
256 |
|
257 |
src_prepare() { |
258 |
epatch "${FILESDIR}"/${PN}-1.8.8-interix.patch |
259 |
use legacy-drivers && epatch "${FILESDIR}"/${PN}-1.10.0-buggy_gradients.patch |
260 |
epatch "${FILESDIR}"/${PN}-respect-fontconfig.patch |
261 |
epatch_user |
262 |
|
263 |
# Slightly messed build system YAY |
264 |
if [[ ${PV} == *9999* ]]; then |
265 |
touch boilerplate/Makefile.am.features |
266 |
touch src/Makefile.am.features |
267 |
touch ChangeLog |
268 |
fi |
269 |
|
270 |
# We need to run elibtoolize to ensure correct so versioning on FreeBSD |
271 |
# upgraded to an eautoreconf for the above interix patch. |
272 |
eautoreconf |
273 |
} |
274 |
|
275 |
multilib_src_configure() { |
276 |
local myopts |
277 |
|
278 |
[[ ${CHOST} == *-interix* ]] && append-flags -D_REENTRANT |
279 |
|
280 |
use elibc_FreeBSD && myopts+=" --disable-symbol-lookup" |
281 |
|
282 |
# TODO: remove this (and add USE-dep) when DirectFB is converted, |
283 |
# bug #484248 -- but beware of the circular dep. |
284 |
if ! multilib_build_binaries; then |
285 |
myopts+=" --disable-directfb" |
286 |
fi |
287 |
|
288 |
ECONF_SOURCE="${S}" \ |
289 |
econf \ |
290 |
--disable-dependency-tracking \ |
291 |
$(use_with X x) \ |
292 |
$(use_enable X tee) \ |
293 |
$(use_enable X xlib) \ |
294 |
$(use_enable X xlib-xrender) \ |
295 |
$(use_enable aqua quartz) \ |
296 |
$(use_enable aqua quartz-image) \ |
297 |
$(use_enable debug test-surfaces) \ |
298 |
$(use_enable drm) \ |
299 |
$(use_enable directfb) \ |
300 |
$(use_enable gallium) \ |
301 |
$(use_enable gles2 glesv2) \ |
302 |
$(use_enable glib gobject) \ |
303 |
$(use_enable doc gtk-doc) \ |
304 |
$(use_enable openvg vg) \ |
305 |
$(use_enable opengl gl) \ |
306 |
$(use_enable qt4 qt) \ |
307 |
$(use_enable static-libs static) \ |
308 |
$(use_enable svg) \ |
309 |
$(use_enable valgrind) \ |
310 |
$(use_enable xcb) \ |
311 |
$(use_enable xcb xcb-shm) \ |
312 |
$(use_enable xlib-xcb) \ |
313 |
--enable-ft \ |
314 |
--enable-pdf \ |
315 |
--enable-png \ |
316 |
--enable-ps \ |
317 |
${myopts} |
318 |
} |
319 |
|
320 |
multilib_src_install() { |
321 |
# parallel make install fails |
322 |
emake -j1 DESTDIR="${D}" install |
323 |
} |
324 |
|
325 |
multilib_src_install_all() { |
326 |
prune_libtool_files --all |
327 |
einstalldocs |
328 |
} |
329 |
|
330 |
pkg_postinst() { |
331 |
if use !xlib-xcb; then |
332 |
if has_version net-misc/nxserver-freenx \ |
333 |
|| has_version net-misc/x2goserver; then |
334 |
ewarn "cairo-1.12 is known to cause GTK+ errors with NX servers." |
335 |
ewarn "Enable USE=\"xlib-xcb\" if you notice incorrect behavior in GTK+" |
336 |
ewarn "applications that are running inside NX sessions. For details, see" |
337 |
ewarn "https://bugs.gentoo.org/441878 or https://bugs.freedesktop.org/59173" |
338 |
fi |
339 |
fi |
340 |
} |