Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/webkit-gtk: webkit-gtk-2.2.6-r200.ebuild webkit-gtk-2.2.6.ebuild ChangeLog webkit-gtk-2.0.4.ebuild
Date: Sun, 23 Mar 2014 15:35:34
Message-Id: 20140323153530.776EA20051@flycatcher.gentoo.org
1 pacho 14/03/23 15:35:30
2
3 Modified: ChangeLog
4 Added: webkit-gtk-2.2.6-r200.ebuild
5 webkit-gtk-2.2.6.ebuild
6 Removed: webkit-gtk-2.0.4.ebuild
7 Log:
8 Version bump, drop old
9
10 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
11
12 Revision Changes Path
13 1.255 net-libs/webkit-gtk/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/webkit-gtk/ChangeLog?rev=1.255&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/webkit-gtk/ChangeLog?rev=1.255&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/webkit-gtk/ChangeLog?r1=1.254&r2=1.255
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/net-libs/webkit-gtk/ChangeLog,v
22 retrieving revision 1.254
23 retrieving revision 1.255
24 diff -u -r1.254 -r1.255
25 --- ChangeLog 9 Mar 2014 12:03:40 -0000 1.254
26 +++ ChangeLog 23 Mar 2014 15:35:30 -0000 1.255
27 @@ -1,6 +1,14 @@
28 # ChangeLog for net-libs/webkit-gtk
29 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/net-libs/webkit-gtk/ChangeLog,v 1.254 2014/03/09 12:03:40 pacho Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/net-libs/webkit-gtk/ChangeLog,v 1.255 2014/03/23 15:35:30 pacho Exp $
32 +
33 +*webkit-gtk-2.2.6 (23 Mar 2014)
34 +*webkit-gtk-2.2.6-r200 (23 Mar 2014)
35 +
36 + 23 Mar 2014; Pacho Ramos <pacho@g.o> +webkit-gtk-2.2.6-r200.ebuild,
37 + +webkit-gtk-2.2.6.ebuild, -files/webkit-gtk-2.0.2-harfbuzz-0.9.18.patch,
38 + -files/webkit-gtk-2.0.4-freetype-2.5.1.patch, -webkit-gtk-2.0.4.ebuild:
39 + Version bump, drop old
40
41 09 Mar 2014; Pacho Ramos <pacho@g.o> webkit-gtk-2.2.5-r200.ebuild,
42 webkit-gtk-2.2.5.ebuild:
43
44
45
46 1.1 net-libs/webkit-gtk/webkit-gtk-2.2.6-r200.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/webkit-gtk/webkit-gtk-2.2.6-r200.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/webkit-gtk/webkit-gtk-2.2.6-r200.ebuild?rev=1.1&content-type=text/plain
50
51 Index: webkit-gtk-2.2.6-r200.ebuild
52 ===================================================================
53 # Copyright 1999-2014 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/net-libs/webkit-gtk/webkit-gtk-2.2.6-r200.ebuild,v 1.1 2014/03/23 15:35:30 pacho Exp $
56
57 EAPI="5"
58 PYTHON_COMPAT=( python{2_6,2_7} )
59 GCONF_DEBUG="no"
60
61 inherit autotools check-reqs eutils flag-o-matic gnome2 pax-utils python-any-r1 toolchain-funcs versionator virtualx
62
63 MY_P="webkitgtk-${PV}"
64 DESCRIPTION="Open source web browser engine"
65 HOMEPAGE="http://www.webkitgtk.org/"
66 SRC_URI="http://www.webkitgtk.org/releases/${MY_P}.tar.xz"
67
68 LICENSE="LGPL-2+ BSD"
69 SLOT="2"
70 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos"
71 IUSE="aqua coverage debug +egl +geoloc gles2 +gstreamer +introspection +jit libsecret +opengl spell +webgl"
72 # bugs 372493, 416331
73 REQUIRED_USE="
74 geoloc? ( introspection )
75 introspection? ( gstreamer )
76 gles2? ( egl )
77 webgl? ( ^^ ( gles2 opengl ) )
78 !webgl? ( ?? ( gles2 opengl ) )
79 "
80
81 # use sqlite, svg by default
82 RDEPEND="
83 dev-libs/libxml2:2
84 dev-libs/libxslt
85 media-libs/harfbuzz:=[icu(+)]
86 media-libs/libwebp:=
87 virtual/jpeg:0=
88 >=media-libs/libpng-1.4:0=
89 >=x11-libs/cairo-1.10:=[X]
90 >=dev-libs/glib-2.36.0:2
91 >=dev-libs/icu-3.8.1-r1:=
92 >=net-libs/libsoup-2.42.0:2.4[introspection?]
93 dev-db/sqlite:3=
94 >=x11-libs/pango-1.30.0.0
95 x11-libs/libXrender
96 x11-libs/libXt
97 >=x11-libs/gtk+-2.24.10:2
98
99 egl? ( media-libs/mesa[egl] )
100 geoloc? ( app-misc/geoclue:0 )
101 gles2? ( media-libs/mesa[gles2] )
102 gstreamer? (
103 >=media-libs/gstreamer-1.2:1.0
104 >=media-libs/gst-plugins-base-1.2:1.0 )
105 introspection? ( >=dev-libs/gobject-introspection-1.32.0 )
106 libsecret? ( app-crypt/libsecret )
107 opengl? ( virtual/opengl )
108 spell? ( >=app-text/enchant-0.22:= )
109 webgl? (
110 x11-libs/cairo[opengl]
111 x11-libs/libXcomposite
112 x11-libs/libXdamage )
113 "
114
115 # paxctl needed for bug #407085
116 # Need real bison, not yacc
117 DEPEND="${RDEPEND}
118 ${PYTHON_DEPS}
119 dev-lang/perl
120 || (
121 virtual/rubygems[ruby_targets_ruby20]
122 virtual/rubygems[ruby_targets_ruby21]
123 virtual/rubygems[ruby_targets_ruby19]
124 )
125 >=dev-libs/atk-2.8.0
126 >=dev-util/gtk-doc-am-1.10
127 dev-util/gperf
128 >=sys-devel/bison-2.4.3
129 >=sys-devel/flex-2.5.33
130 || ( >=sys-devel/gcc-4.7 >=sys-devel/clang-3.0 )
131 sys-devel/gettext
132 >=sys-devel/make-3.82-r4
133 virtual/pkgconfig
134
135 introspection? ( jit? ( sys-apps/paxctl ) )
136 test? (
137 dev-lang/python:2.7
138 dev-python/pygobject:3[python_targets_python2_7]
139 x11-themes/hicolor-icon-theme
140 jit? ( sys-apps/paxctl ) )
141 "
142
143 S="${WORKDIR}/${MY_P}"
144
145 CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307
146
147 pkg_pretend() {
148 if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
149 einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS"
150 check-reqs_pkg_pretend
151 fi
152
153 if ! test-flag-CXX -std=c++11; then
154 die "You need at least GCC 4.7.x or Clang >= 3.0 for C++11-specific compiler flags"
155 fi
156 }
157
158 pkg_setup() {
159 # Check whether any of the debugging flags is enabled
160 if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
161 if is-flagq "-ggdb" && [[ ${WEBKIT_GTK_GGDB} != "yes" ]]; then
162 replace-flags -ggdb -g
163 ewarn "Replacing \"-ggdb\" with \"-g\" in your CFLAGS."
164 ewarn "Building ${PN} with \"-ggdb\" produces binaries which are too"
165 ewarn "large for current binutils releases (bug #432784) and has very"
166 ewarn "high temporary build space and memory requirements."
167 ewarn "If you really want to build ${PN} with \"-ggdb\", add"
168 ewarn "WEBKIT_GTK_GGDB=yes"
169 ewarn "to your make.conf file."
170 fi
171 einfo "You need to have at least 18GB of temporary build space available"
172 einfo "to build ${PN} with debugging CFLAGS. Note that it might still"
173 einfo "not be enough, as the total space requirements depend on the flags"
174 einfo "(-ggdb vs -g1) and enabled features."
175 check-reqs_pkg_setup
176 fi
177
178 [[ ${MERGE_TYPE} = "binary" ]] || python-any-r1_pkg_setup
179 }
180
181 src_prepare() {
182 DOCS="ChangeLog NEWS" # other ChangeLog files handled by src_install
183
184 # intermediate MacPorts hack while upstream bug is not fixed properly
185 # https://bugs.webkit.org/show_bug.cgi?id=28727
186 use aqua && epatch "${FILESDIR}"/${PN}-1.6.1-darwin-quartz.patch
187
188 # Don't force -O2
189 sed -i 's/-O2//g' "${S}"/Source/autotools/SetupCompilerFlags.m4 || die
190
191 # Failing tests
192 # * webinspector -> https://bugs.webkit.org/show_bug.cgi?id=50744
193 # * keyevents is interactive
194 # * mimehandling test sometimes fails under Xvfb (works fine manually), bug #???
195 # * webdatasource test needs a network connection and intermittently fails with icedtea-web
196 # * webplugindatabase intermittently fails with icedtea-web, bug #????
197 sed -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testwebinspector/ d' \
198 -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testkeyevents/ d' \
199 -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testmimehandling/ d' \
200 -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testwebdatasource/ d' \
201 -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testwebplugindatabase/ d' \
202 -i Source/WebKit/gtk/GNUmakefile.am || die
203
204 # Respect CC, otherwise fails on prefix #395875
205 tc-export CC
206
207 # bug #459978, upstream bug #113397
208 epatch "${FILESDIR}/${PN}-1.11.90-gtk-docize-fix.patch"
209
210 # Do not build unittests unless requested, upstream bug #128163
211 epatch "${FILESDIR}"/${PN}-2.2.4-unittests-build.patch
212
213 # Deadlock causing infinite compilations with nvidia-drivers:
214 # https://bugs.gentoo.org/show_bug.cgi?id=463960
215 # http://osdyson.org/issues/161
216 # https://bugs.webkit.org/show_bug.cgi?id=125651
217 epatch "${FILESDIR}"/${PN}-2.2.5-gir-nvidia-hangs.patch
218
219 # Debian patches to fix support for some arches
220 # https://bugs.webkit.org/show_bug.cgi?id=129540
221 epatch "${FILESDIR}"/${PN}-2.2.5-{hppa,ia64}-platform.patch
222 # https://bugs.webkit.org/show_bug.cgi?id=129542
223 epatch "${FILESDIR}"/${PN}-2.2.5-ia64-malloc.patch
224
225 # OpenBSD patches to fix support for some arches
226 # https://bugs.webkit.org/show_bug.cgi?id=86835
227 epatch "${FILESDIR}"/${PN}-2.2.5-sparc64-build.patch
228
229 AT_M4DIR=Source/autotools eautoreconf
230
231 gnome2_src_prepare
232 }
233
234 src_configure() {
235 # Arches without JIT support also need this to really disable it in all places
236 use jit || append-cppflags -DENABLE_JIT=0 -DENABLE_YARR_JIT=0 -DENABLE_ASSEMBLER=0
237
238 # It doesn't compile on alpha without this in LDFLAGS, bug #???
239 use alpha && append-ldflags "-Wl,--no-relax"
240
241 # Sigbuses on SPARC with mcpu and co., bug #???
242 use sparc && filter-flags "-mvis"
243
244 # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634
245 use ppc64 && append-flags "-mminimal-toc"
246
247 # Try to use less memory, bug #469942 (see Fedora .spec for reference)
248 # --no-keep-memory doesn't work on ia64, bug #502492
249 if ! use ia64; then
250 append-ldflags "-Wl,--no-keep-memory"
251 fi
252 if ! $(tc-getLD) --version | grep -q "GNU gold"; then
253 append-ldflags "-Wl,--reduce-memory-overheads"
254 fi
255
256 local myconf=""
257
258 if has_version "virtual/rubygems[ruby_targets_ruby21]"; then
259 myconf="${myconf} RUBY=$(type -P ruby21)"
260 elif has_version "virtual/rubygems[ruby_targets_ruby20]"; then
261 myconf="${myconf} RUBY=$(type -P ruby20)"
262 else
263 myconf="${myconf} RUBY=$(type -P ruby19)"
264 fi
265
266 # TODO: Check Web Audio support
267 # should somehow let user select between them?
268 #
269 # * dependency-tracking is required so parallel builds won't fail
270 gnome2_src_configure \
271 $(use_enable coverage) \
272 $(use_enable debug) \
273 $(use_enable egl) \
274 $(use_enable geoloc geolocation) \
275 $(use_enable gles2) \
276 $(use_enable gstreamer video) \
277 $(use_enable gstreamer web-audio) \
278 $(use_enable introspection) \
279 $(use_enable jit) \
280 $(use_enable libsecret credential_storage) \
281 $(use_enable opengl glx) \
282 $(use_enable spell spellcheck) \
283 $(use_enable webgl) \
284 $(use_enable webgl accelerated-compositing) \
285 --with-gtk=2.0 \
286 --disable-webkit2 \
287 --enable-dependency-tracking \
288 --disable-gtk-doc \
289 $(usex aqua "--with-font-backend=pango --with-target=quartz" "")
290 ${myconf}
291 }
292
293 src_test() {
294 # Tests expect an out-of-source build in WebKitBuild
295 ln -s . WebKitBuild || die "ln failed"
296
297 # Prevents test failures on PaX systems
298 use jit && pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test*
299
300 unset DISPLAY
301 # Tests need virtualx, bug #294691, bug #310695
302 # Parallel tests sometimes fail
303 Xemake -j1 check
304 }
305
306 src_install() {
307 # https://bugs.webkit.org/show_bug.cgi?id=129242
308 MAKEOPTS="${MAKEOPTS} -j1" gnome2_src_install
309
310 newdoc Source/WebKit/gtk/ChangeLog ChangeLog.gtk
311 newdoc Source/JavaScriptCore/ChangeLog ChangeLog.JavaScriptCore
312 newdoc Source/WebCore/ChangeLog ChangeLog.WebCore
313
314 # Prevents crashes on PaX systems
315 use jit && pax-mark m "${ED}usr/bin/jsc-1"
316
317 # File collisions with slot 3
318 # bug #402699, https://bugs.webkit.org/show_bug.cgi?id=78134
319 rm -rf "${ED}usr/share/gtk-doc" || die
320 }
321
322
323
324 1.1 net-libs/webkit-gtk/webkit-gtk-2.2.6.ebuild
325
326 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/webkit-gtk/webkit-gtk-2.2.6.ebuild?rev=1.1&view=markup
327 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/webkit-gtk/webkit-gtk-2.2.6.ebuild?rev=1.1&content-type=text/plain
328
329 Index: webkit-gtk-2.2.6.ebuild
330 ===================================================================
331 # Copyright 1999-2014 Gentoo Foundation
332 # Distributed under the terms of the GNU General Public License v2
333 # $Header: /var/cvsroot/gentoo-x86/net-libs/webkit-gtk/webkit-gtk-2.2.6.ebuild,v 1.1 2014/03/23 15:35:30 pacho Exp $
334
335 EAPI="5"
336 PYTHON_COMPAT=( python{2_6,2_7} )
337 GCONF_DEBUG="no"
338
339 inherit autotools check-reqs eutils flag-o-matic gnome2 pax-utils python-any-r1 toolchain-funcs versionator virtualx
340
341 MY_P="webkitgtk-${PV}"
342 DESCRIPTION="Open source web browser engine"
343 HOMEPAGE="http://www.webkitgtk.org/"
344 SRC_URI="http://www.webkitgtk.org/releases/${MY_P}.tar.xz"
345
346 LICENSE="LGPL-2+ BSD"
347 SLOT="3/29" # soname version
348 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos"
349 IUSE="aqua coverage debug +egl +geoloc gles2 +gstreamer +introspection +jit libsecret +opengl spell +webgl"
350 # bugs 372493, 416331
351 REQUIRED_USE="
352 geoloc? ( introspection )
353 introspection? ( gstreamer )
354 gles2? ( egl )
355 webgl? ( ^^ ( gles2 opengl ) )
356 !webgl? ( ?? ( gles2 opengl ) )
357 "
358
359 # use sqlite, svg by default
360 # Aqua support in gtk3 is untested
361 # gtk2 is needed for plugin process support
362 # gtk3-3.10 required for wayland
363 RDEPEND="
364 dev-libs/libxml2:2
365 dev-libs/libxslt
366 media-libs/harfbuzz:=[icu(+)]
367 media-libs/libwebp:=
368 virtual/jpeg:0=
369 >=media-libs/libpng-1.4:0=
370 >=x11-libs/cairo-1.10:=[X]
371 >=dev-libs/glib-2.36.0:2
372 >=x11-libs/gtk+-3.6.0:3[aqua=,introspection?]
373 >=dev-libs/icu-3.8.1-r1:=
374 >=net-libs/libsoup-2.42.0:2.4[introspection?]
375 dev-db/sqlite:3=
376 >=x11-libs/pango-1.30.0.0
377 x11-libs/libXrender
378 x11-libs/libXt
379 >=x11-libs/gtk+-2.24.10:2
380
381 egl? ( media-libs/mesa[egl] )
382 geoloc? ( app-misc/geoclue:0 )
383 gles2? ( media-libs/mesa[gles2] )
384 gstreamer? (
385 >=media-libs/gstreamer-1.2:1.0
386 >=media-libs/gst-plugins-base-1.2:1.0 )
387 introspection? ( >=dev-libs/gobject-introspection-1.32.0 )
388 libsecret? ( app-crypt/libsecret )
389 opengl? ( virtual/opengl )
390 spell? ( >=app-text/enchant-0.22:= )
391 webgl? (
392 x11-libs/cairo[opengl]
393 x11-libs/libXcomposite
394 x11-libs/libXdamage )
395 "
396
397 # paxctl needed for bug #407085
398 # Need real bison, not yacc
399 DEPEND="${RDEPEND}
400 ${PYTHON_DEPS}
401 dev-lang/perl
402 || (
403 virtual/rubygems[ruby_targets_ruby20]
404 virtual/rubygems[ruby_targets_ruby21]
405 virtual/rubygems[ruby_targets_ruby19]
406 )
407 >=app-accessibility/at-spi2-core-2.5.3
408 >=dev-libs/atk-2.8.0
409 >=dev-util/gtk-doc-am-1.10
410 dev-util/gperf
411 >=sys-devel/bison-2.4.3
412 >=sys-devel/flex-2.5.33
413 || ( >=sys-devel/gcc-4.7 >=sys-devel/clang-3.0 )
414 sys-devel/gettext
415 >=sys-devel/make-3.82-r4
416 virtual/pkgconfig
417
418 introspection? ( jit? ( sys-apps/paxctl ) )
419 test? (
420 dev-lang/python:2.7
421 dev-python/pygobject:3[python_targets_python2_7]
422 x11-themes/hicolor-icon-theme
423 jit? ( sys-apps/paxctl ) )
424 "
425
426 S="${WORKDIR}/${MY_P}"
427
428 CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307
429
430 pkg_pretend() {
431 if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
432 einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS"
433 check-reqs_pkg_pretend
434 fi
435
436 if ! test-flag-CXX -std=c++11; then
437 die "You need at least GCC 4.7.x or Clang >= 3.0 for C++11-specific compiler flags"
438 fi
439 }
440
441 pkg_setup() {
442 # Check whether any of the debugging flags is enabled
443 if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
444 if is-flagq "-ggdb" && [[ ${WEBKIT_GTK_GGDB} != "yes" ]]; then
445 replace-flags -ggdb -g
446 ewarn "Replacing \"-ggdb\" with \"-g\" in your CFLAGS."
447 ewarn "Building ${PN} with \"-ggdb\" produces binaries which are too"
448 ewarn "large for current binutils releases (bug #432784) and has very"
449 ewarn "high temporary build space and memory requirements."
450 ewarn "If you really want to build ${PN} with \"-ggdb\", add"
451 ewarn "WEBKIT_GTK_GGDB=yes"
452 ewarn "to your make.conf file."
453 fi
454 einfo "You need to have at least 18GB of temporary build space available"
455 einfo "to build ${PN} with debugging CFLAGS. Note that it might still"
456 einfo "not be enough, as the total space requirements depend on the flags"
457 einfo "(-ggdb vs -g1) and enabled features."
458 check-reqs_pkg_setup
459 fi
460
461 [[ ${MERGE_TYPE} = "binary" ]] || python-any-r1_pkg_setup
462 }
463
464 src_prepare() {
465 DOCS="ChangeLog NEWS" # other ChangeLog files handled by src_install
466
467 # intermediate MacPorts hack while upstream bug is not fixed properly
468 # https://bugs.webkit.org/show_bug.cgi?id=28727
469 use aqua && epatch "${FILESDIR}"/${PN}-1.6.1-darwin-quartz.patch
470
471 # Don't force -O2
472 sed -i 's/-O2//g' "${S}"/Source/autotools/SetupCompilerFlags.m4 || die
473
474 # Failing tests
475 # * webinspector -> https://bugs.webkit.org/show_bug.cgi?id=50744
476 # * keyevents is interactive
477 # * mimehandling test sometimes fails under Xvfb (works fine manually), bug #???
478 # * webdatasource test needs a network connection and intermittently fails with icedtea-web
479 # * webplugindatabase intermittently fails with icedtea-web, bug #????
480 sed -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testwebinspector/ d' \
481 -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testkeyevents/ d' \
482 -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testmimehandling/ d' \
483 -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testwebdatasource/ d' \
484 -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testwebplugindatabase/ d' \
485 -i Source/WebKit/gtk/GNUmakefile.am || die
486
487 # Respect CC, otherwise fails on prefix #395875
488 tc-export CC
489
490 # bug #459978, upstream bug #113397
491 epatch "${FILESDIR}/${PN}-1.11.90-gtk-docize-fix.patch"
492
493 # Do not build unittests unless requested, upstream bug #128163
494 epatch "${FILESDIR}"/${PN}-2.2.4-unittests-build.patch
495
496 # Deadlock causing infinite compilations with nvidia-drivers:
497 # https://bugs.gentoo.org/show_bug.cgi?id=463960
498 # http://osdyson.org/issues/161
499 # https://bugs.webkit.org/show_bug.cgi?id=125651
500 epatch "${FILESDIR}"/${PN}-2.2.5-gir-nvidia-hangs.patch
501
502 # Debian patches to fix support for some arches
503 # https://bugs.webkit.org/show_bug.cgi?id=129540
504 epatch "${FILESDIR}"/${PN}-2.2.5-{hppa,ia64}-platform.patch
505 # https://bugs.webkit.org/show_bug.cgi?id=129542
506 epatch "${FILESDIR}"/${PN}-2.2.5-ia64-malloc.patch
507
508 # OpenBSD patches to fix support for some arches
509 # https://bugs.webkit.org/show_bug.cgi?id=86835
510 epatch "${FILESDIR}"/${PN}-2.2.5-sparc64-build.patch
511
512 AT_M4DIR=Source/autotools eautoreconf
513
514 gnome2_src_prepare
515 }
516
517 src_configure() {
518 # Arches without JIT support also need this to really disable it in all places
519 use jit || append-cppflags -DENABLE_JIT=0 -DENABLE_YARR_JIT=0 -DENABLE_ASSEMBLER=0
520
521 # It doesn't compile on alpha without this in LDFLAGS, bug #???
522 use alpha && append-ldflags "-Wl,--no-relax"
523
524 # Sigbuses on SPARC with mcpu and co., bug #???
525 use sparc && filter-flags "-mvis"
526
527 # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634
528 use ppc64 && append-flags "-mminimal-toc"
529
530 # Try to use less memory, bug #469942 (see Fedora .spec for reference)
531 # --no-keep-memory doesn't work on ia64, bug #502492
532 if ! use ia64; then
533 append-ldflags "-Wl,--no-keep-memory"
534 fi
535 if ! $(tc-getLD) --version | grep -q "GNU gold"; then
536 append-ldflags "-Wl,--reduce-memory-overheads"
537 fi
538
539 local myconf=""
540
541 if has_version "virtual/rubygems[ruby_targets_ruby21]"; then
542 myconf="${myconf} RUBY=$(type -P ruby21)"
543 elif has_version "virtual/rubygems[ruby_targets_ruby20]"; then
544 myconf="${myconf} RUBY=$(type -P ruby20)"
545 else
546 myconf="${myconf} RUBY=$(type -P ruby19)"
547 fi
548
549 # TODO: Check Web Audio support
550 # should somehow let user select between them?
551 #
552 # * Aqua support in gtk3 is untested
553 # * dependency-tracking is required so parallel builds won't fail
554 gnome2_src_configure \
555 $(use_enable coverage) \
556 $(use_enable debug) \
557 $(use_enable egl) \
558 $(use_enable geoloc geolocation) \
559 $(use_enable gles2) \
560 $(use_enable gstreamer video) \
561 $(use_enable gstreamer web-audio) \
562 $(use_enable introspection) \
563 $(use_enable jit) \
564 $(use_enable libsecret credential_storage) \
565 $(use_enable opengl glx) \
566 $(use_enable spell spellcheck) \
567 $(use_enable webgl) \
568 $(use_enable webgl accelerated-compositing) \
569 --with-gtk=3.0 \
570 --enable-dependency-tracking \
571 --disable-gtk-doc \
572 $(usex aqua "--with-font-backend=pango --with-target=quartz" "")
573 ${myconf}
574 }
575
576 src_test() {
577 # Tests expect an out-of-source build in WebKitBuild
578 ln -s . WebKitBuild || die "ln failed"
579
580 # Prevents test failures on PaX systems
581 use jit && pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test*
582
583 unset DISPLAY
584 # Tests need virtualx, bug #294691, bug #310695
585 # Parallel tests sometimes fail
586 Xemake -j1 check
587 }
588
589 src_install() {
590 # https://bugs.webkit.org/show_bug.cgi?id=129242
591 MAKEOPTS="${MAKEOPTS} -j1" gnome2_src_install
592
593 newdoc Source/WebKit/gtk/ChangeLog ChangeLog.gtk
594 newdoc Source/JavaScriptCore/ChangeLog ChangeLog.JavaScriptCore
595 newdoc Source/WebCore/ChangeLog ChangeLog.WebCore
596
597 # Prevents crashes on PaX systems
598 use jit && pax-mark m "${ED}usr/bin/jsc-3"
599 }