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