Gentoo Archives: gentoo-commits

From: Nirbheek Chauhan <nirbheek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:gnome-next commit in: dev-libs/gjs/, net-libs/webkit-gtk/files/, net-libs/webkit-gtk/
Date: Fri, 30 Sep 2011 14:51:32
Message-Id: 5eb10ed727e68ec0a4399672ea280323da736eae.nirbheek@gentoo
1 commit: 5eb10ed727e68ec0a4399672ea280323da736eae
2 Author: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 08:19:43 2011 +0000
4 Commit: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 08:19:43 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=5eb10ed7
7
8 net-libs/webkit-gtk, dev-libs/gjs: moved to tree
9
10 ---
11 dev-libs/gjs/gjs-1.30.0.ebuild | 80 -----------
12 dev-libs/gjs/gjs-9999.ebuild | 16 +--
13 .../files/webkit-gtk-1.2.3-fix-pool-sparc.patch | 65 ---------
14 .../files/webkit-gtk-1.2.5-darwin-quartz.patch | 79 -----------
15 net-libs/webkit-gtk/webkit-gtk-1.6.1-r201.ebuild | 145 -------------------
16 net-libs/webkit-gtk/webkit-gtk-1.6.1-r301.ebuild | 149 --------------------
17 6 files changed, 3 insertions(+), 531 deletions(-)
18
19 diff --git a/dev-libs/gjs/gjs-1.30.0.ebuild b/dev-libs/gjs/gjs-1.30.0.ebuild
20 deleted file mode 100644
21 index 1effcfa..0000000
22 --- a/dev-libs/gjs/gjs-1.30.0.ebuild
23 +++ /dev/null
24 @@ -1,80 +0,0 @@
25 -# Copyright 1999-2011 Gentoo Foundation
26 -# Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/gjs/gjs-1.29.0.ebuild,v 1.1 2011/06/14 13:19:59 nirbheek Exp $
28 -
29 -EAPI="3"
30 -GCONF_DEBUG="no"
31 -GNOME_TARBALL_SUFFIX="xz"
32 -GNOME2_LA_PUNT="yes"
33 -PYTHON_DEPEND="2"
34 -
35 -inherit gnome2 python virtualx
36 -if [[ ${PV} = 9999 ]]; then
37 - inherit gnome2-live
38 -fi
39 -
40 -DESCRIPTION="Javascript bindings for GNOME"
41 -HOMEPAGE="http://live.gnome.org/Gjs"
42 -
43 -LICENSE="MIT MPL-1.1 LGPL-2 GPL-2"
44 -SLOT="0"
45 -IUSE="examples test +xulrunner"
46 -if [[ ${PV} = 9999 ]]; then
47 - KEYWORDS=""
48 -else
49 - KEYWORDS="~amd64 ~x86"
50 -fi
51 -
52 -# Things are untested and broken with anything other than xulrunner-2.0
53 -# or spidermonkey-1.8.5
54 -RDEPEND=">=dev-libs/glib-2.18:2
55 - >=dev-libs/gobject-introspection-1.29.16
56 -
57 - dev-libs/dbus-glib
58 - sys-libs/readline
59 - x11-libs/cairo
60 - xulrunner? (
61 - >=net-libs/xulrunner-2.0:1.9
62 - !=dev-lang/spidermonkey-1.8.2* )
63 - !xulrunner? ( =dev-lang/spidermonkey-1.8.5* )"
64 -DEPEND="${RDEPEND}
65 - sys-devel/gettext
66 - >=dev-util/pkgconfig-0.9"
67 -# HACK HACK: gjs-tests picks up /usr/lib/libmozjs.so with spidermonkey-1.8.2* installed
68 -
69 -pkg_setup() {
70 - # AUTHORS, ChangeLog are empty
71 - DOCS="NEWS README"
72 - # FIXME: add systemtap/dtrace support, like in glib:2
73 - # FIXME: --enable-systemtap installs files in ${D}/${D} for some reason
74 - # XXX: Do NOT enable coverage, completely useless for portage installs
75 - G2CONF="${G2CONF}
76 - --disable-systemtap
77 - --disable-dtrace
78 - --disable-coverage"
79 - if use xulrunner; then
80 - G2CONF="${G2CONF} --with-js-package=mozilla-js"
81 - else
82 - G2CONF="${G2CONF} --with-js-package=mozjs185"
83 - fi
84 -}
85 -
86 -src_prepare() {
87 - gnome2_src_prepare
88 - python_convert_shebangs 2 "${S}"/scripts/make-tests
89 -}
90 -
91 -src_test() {
92 - # Tests need dbus
93 - Xemake check || die
94 -}
95 -
96 -src_install() {
97 - # installation sometimes fails in parallel
98 - gnome2_src_install -j1
99 -
100 - if use examples; then
101 - insinto /usr/share/doc/${PF}/examples
102 - doins ${S}/examples/* || die "doins examples failed!"
103 - fi
104 -}
105
106 diff --git a/dev-libs/gjs/gjs-9999.ebuild b/dev-libs/gjs/gjs-9999.ebuild
107 index 1effcfa..6af992c 100644
108 --- a/dev-libs/gjs/gjs-9999.ebuild
109 +++ b/dev-libs/gjs/gjs-9999.ebuild
110 @@ -18,29 +18,23 @@ HOMEPAGE="http://live.gnome.org/Gjs"
111
112 LICENSE="MIT MPL-1.1 LGPL-2 GPL-2"
113 SLOT="0"
114 -IUSE="examples test +xulrunner"
115 +IUSE="examples test"
116 if [[ ${PV} = 9999 ]]; then
117 KEYWORDS=""
118 else
119 KEYWORDS="~amd64 ~x86"
120 fi
121
122 -# Things are untested and broken with anything other than xulrunner-2.0
123 -# or spidermonkey-1.8.5
124 RDEPEND=">=dev-libs/glib-2.18:2
125 >=dev-libs/gobject-introspection-1.29.16
126
127 dev-libs/dbus-glib
128 sys-libs/readline
129 x11-libs/cairo
130 - xulrunner? (
131 - >=net-libs/xulrunner-2.0:1.9
132 - !=dev-lang/spidermonkey-1.8.2* )
133 - !xulrunner? ( =dev-lang/spidermonkey-1.8.5* )"
134 + >=dev-lang/spidermonkey-1.8.5"
135 DEPEND="${RDEPEND}
136 sys-devel/gettext
137 >=dev-util/pkgconfig-0.9"
138 -# HACK HACK: gjs-tests picks up /usr/lib/libmozjs.so with spidermonkey-1.8.2* installed
139
140 pkg_setup() {
141 # AUTHORS, ChangeLog are empty
142 @@ -49,14 +43,10 @@ pkg_setup() {
143 # FIXME: --enable-systemtap installs files in ${D}/${D} for some reason
144 # XXX: Do NOT enable coverage, completely useless for portage installs
145 G2CONF="${G2CONF}
146 + --with-js-package=mozjs185
147 --disable-systemtap
148 --disable-dtrace
149 --disable-coverage"
150 - if use xulrunner; then
151 - G2CONF="${G2CONF} --with-js-package=mozilla-js"
152 - else
153 - G2CONF="${G2CONF} --with-js-package=mozjs185"
154 - fi
155 }
156
157 src_prepare() {
158
159 diff --git a/net-libs/webkit-gtk/files/webkit-gtk-1.2.3-fix-pool-sparc.patch b/net-libs/webkit-gtk/files/webkit-gtk-1.2.3-fix-pool-sparc.patch
160 deleted file mode 100644
161 index 3b1c5c4..0000000
162 --- a/net-libs/webkit-gtk/files/webkit-gtk-1.2.3-fix-pool-sparc.patch
163 +++ /dev/null
164 @@ -1,65 +0,0 @@
165 -Description: Fixup pool and add sparc support
166 ---- webkit-1.2.1.orig/JavaScriptCore/wtf/ListHashSet.h
167 -+++ webkit-1.2.1/JavaScriptCore/wtf/ListHashSet.h
168 -@@ -127,7 +127,7 @@ namespace WTF {
169 - : m_freeList(pool())
170 - , m_isDoneWithInitialFreeList(false)
171 - {
172 -- memset(m_pool.pool, 0, sizeof(m_pool.pool));
173 -+ memset(m_pool, 0, sizeof(m_pool));
174 - }
175 -
176 - Node* allocate()
177 -@@ -171,7 +171,7 @@ namespace WTF {
178 - }
179 -
180 - private:
181 -- Node* pool() { return reinterpret_cast<Node*>(m_pool.pool); }
182 -+ Node* pool() { return reinterpret_cast<Node*>(m_pool); }
183 - Node* pastPool() { return pool() + m_poolSize; }
184 -
185 - bool inPool(Node* node)
186 -@@ -182,10 +182,7 @@ namespace WTF {
187 - Node* m_freeList;
188 - bool m_isDoneWithInitialFreeList;
189 - static const size_t m_poolSize = 256;
190 -- union {
191 -- char pool[sizeof(Node) * m_poolSize];
192 -- double forAlignment;
193 -- } m_pool;
194 -+ uint32_t m_pool[(sizeof(Node) * m_poolSize + sizeof(uint32_t) - 1) / sizeof(uint32_t)];
195 - };
196 -
197 - template<typename ValueArg> struct ListHashSetNode {
198 ---- webkit-1.2.1.orig/WebCore/platform/text/AtomicString.cpp
199 -+++ webkit-1.2.1/WebCore/platform/text/AtomicString.cpp
200 -@@ -103,9 +103,9 @@ static inline bool equal(StringImpl* str
201 - if (string->length() != length)
202 - return false;
203 -
204 -+#if CPU(ARM) || CPU(SPARC) || CPU(SH4)
205 - // FIXME: perhaps we should have a more abstract macro that indicates when
206 - // going 4 bytes at a time is unsafe
207 --#if CPU(ARM) || CPU(SH4)
208 - const UChar* stringCharacters = string->characters();
209 - for (unsigned i = 0; i != length; ++i) {
210 - if (*stringCharacters++ != *characters++)
211 ---- webkit-1.2.1.orig/WebCore/platform/text/StringHash.h
212 -+++ webkit-1.2.1/WebCore/platform/text/StringHash.h
213 -@@ -54,13 +54,13 @@ namespace WebCore {
214 -
215 - // FIXME: perhaps we should have a more abstract macro that indicates when
216 - // going 4 bytes at a time is unsafe
217 --#if CPU(ARM) || CPU(SH4)
218 -+#if CPU(ARM) || CPU(SPARC) || CPU(SH4)
219 - const UChar* aChars = a->characters();
220 - const UChar* bChars = b->characters();
221 -- for (unsigned i = 0; i != aLength; ++i) {
222 -+ for (unsigned i = 0; i != aLength; ++i)
223 - if (*aChars++ != *bChars++)
224 - return false;
225 -- }
226 -+
227 - return true;
228 - #else
229 - /* Do it 4-bytes-at-a-time on architectures where it's safe */
230
231 diff --git a/net-libs/webkit-gtk/files/webkit-gtk-1.2.5-darwin-quartz.patch b/net-libs/webkit-gtk/files/webkit-gtk-1.2.5-darwin-quartz.patch
232 deleted file mode 100644
233 index fe1ebc4..0000000
234 --- a/net-libs/webkit-gtk/files/webkit-gtk-1.2.5-darwin-quartz.patch
235 +++ /dev/null
236 @@ -1,79 +0,0 @@
237 -http://trac.macports.org/browser/trunk/dports/www/webkit-gtk/files/patch-quartz-WebCore-plugins-gtk-gtkxtbin.c.diff?format=txt
238 -http://trac.macports.org/browser/trunk/dports/www/webkit-gtk/files/patch-quartz-WebCore-plugins-gtk-PluginViewGtk.cpp.diff?format=txt
239 -
240 ---- WebCore/plugins/gtk/gtk2xtbin.c.orig 2010-09-10 06:20:33.000000000 -0700
241 -+++ WebCore/plugins/gtk/gtk2xtbin.c 2010-10-06 09:45:37.000000000 -0700
242 -@@ -41,7 +41,7 @@
243 - * The GtkXtBin widget allows for Xt toolkit code to be used
244 - * inside a GTK application.
245 - */
246 --
247 -+#if 0
248 - #include "GtkVersioning.h"
249 - #include "xembed.h"
250 - #include "gtk2xtbin.h"
251 -@@ -951,3 +951,4 @@
252 -
253 - return;
254 - }
255 -+#endif
256 ---- WebCore/plugins/gtk/PluginViewGtk.cpp.orig 2010-09-10 06:20:33.000000000 -0700
257 -+++ WebCore/plugins/gtk/PluginViewGtk.cpp 2010-10-06 09:45:37.000000000 -0700
258 -@@ -60,10 +60,13 @@
259 - #include "runtime_root.h"
260 - #include <runtime/JSLock.h>
261 - #include <runtime/JSValue.h>
262 -+#include "NotImplemented.h"
263 -
264 - #include <gdkconfig.h>
265 - #include <gtk/gtk.h>
266 -
267 -+#undef XP_UNIX
268 -+
269 - #if defined(XP_UNIX)
270 - #include "gtk2xtbin.h"
271 - #define Bool int // this got undefined somewhere
272 -@@ -441,9 +444,9 @@
273 - event->setDefaultHandled();
274 - }
275 -
276 --#if defined(XP_UNIX)
277 - void PluginView::handleFocusInEvent()
278 - {
279 -+#if defined(XP_UNIX)
280 - XEvent npEvent;
281 - initXEvent(&npEvent);
282 -
283 -@@ -453,10 +456,12 @@
284 - event.detail = NotifyDetailNone;
285 -
286 - dispatchNPEvent(npEvent);
287 -+#endif
288 - }
289 -
290 - void PluginView::handleFocusOutEvent()
291 - {
292 -+#if defined(XP_UNIX)
293 - XEvent npEvent;
294 - initXEvent(&npEvent);
295 -
296 -@@ -466,8 +471,8 @@
297 - event.detail = NotifyDetailNone;
298 -
299 - dispatchNPEvent(npEvent);
300 --}
301 - #endif
302 -+}
303 -
304 - void PluginView::setParent(ScrollView* parent)
305 - {
306 -@@ -797,8 +802,8 @@
307 - }
308 -
309 - if (m_isWindowed) {
310 --#if defined(XP_UNIX)
311 - GtkWidget* pageClient = m_parentFrame->view()->hostWindow()->platformPageClient();
312 -+#if defined(XP_UNIX)
313 -
314 - if (m_needsXEmbed) {
315 - // If our parent is not anchored the startup process will
316
317 diff --git a/net-libs/webkit-gtk/webkit-gtk-1.6.1-r201.ebuild b/net-libs/webkit-gtk/webkit-gtk-1.6.1-r201.ebuild
318 deleted file mode 100644
319 index bbcdfa8..0000000
320 --- a/net-libs/webkit-gtk/webkit-gtk-1.6.1-r201.ebuild
321 +++ /dev/null
322 @@ -1,145 +0,0 @@
323 -# Copyright 1999-2011 Gentoo Foundation
324 -# Distributed under the terms of the GNU General Public License v2
325 -# $Header: /var/cvsroot/gentoo-x86/net-libs/webkit-gtk/webkit-gtk-1.4.2-r200.ebuild,v 1.4 2011/08/14 06:43:26 nirbheek Exp $
326 -
327 -EAPI="4"
328 -
329 -inherit autotools eutils flag-o-matic eutils virtualx
330 -
331 -MY_P="webkit-${PV}"
332 -DESCRIPTION="Open source web browser engine"
333 -HOMEPAGE="http://www.webkitgtk.org/"
334 -SRC_URI="http://www.webkitgtk.org/${MY_P}.tar.gz"
335 -
336 -LICENSE="LGPL-2 LGPL-2.1 BSD"
337 -SLOT="2"
338 -KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos"
339 -# geoclue
340 -IUSE="aqua coverage debug doc +gstreamer +introspection +jit spell webgl"
341 -# bug 372493
342 -REQUIRED_USE="introspection? ( gstreamer )"
343 -
344 -# use sqlite, svg by default
345 -# dependency on >=x11-libs/gtk+-2.13:2 for gail
346 -RDEPEND="
347 - dev-libs/libxml2:2
348 - dev-libs/libxslt
349 - virtual/jpeg
350 - >=media-libs/libpng-1.4:0
351 - >=x11-libs/cairo-1.10
352 - >=dev-libs/glib-2.27.90:2
353 - >=x11-libs/gtk+-2.13:2[aqua=,introspection?]
354 - >=dev-libs/icu-3.8.1-r1
355 - >=net-libs/libsoup-2.33.6:2.4[introspection?]
356 - dev-db/sqlite:3
357 - >=x11-libs/pango-1.12
358 - x11-libs/libXrender
359 -
360 - gstreamer? (
361 - media-libs/gstreamer:0.10
362 - >=media-libs/gst-plugins-base-0.10.30:0.10 )
363 -
364 - introspection? ( >=dev-libs/gobject-introspection-0.9.5 )
365 -
366 - spell? ( >=app-text/enchant-0.22 )
367 -
368 - webgl? ( virtual/opengl )
369 -"
370 -DEPEND="${RDEPEND}
371 - >=sys-devel/flex-2.5.33
372 - sys-devel/gettext
373 - virtual/yacc
374 - dev-util/gperf
375 - dev-util/pkgconfig
376 - dev-util/gtk-doc-am
377 - doc? ( >=dev-util/gtk-doc-1.10 )
378 - test? ( x11-themes/hicolor-icon-theme )
379 -"
380 -
381 -S="${WORKDIR}/${MY_P}"
382 -
383 -src_prepare() {
384 - DOCS="ChangeLog NEWS" # other ChangeLog files handled by src_install
385 -
386 - # FIXME: Fix unaligned accesses on ARM, IA64 and SPARC
387 - # https://bugs.webkit.org/show_bug.cgi?id=19775
388 - use sparc && epatch "${FILESDIR}"/${PN}-1.2.3-fix-pool-sparc.patch
389 -
390 - # intermediate MacPorts hack while upstream bug is not fixed properly
391 - # https://bugs.webkit.org/show_bug.cgi?id=28727
392 - use aqua && epatch "${FILESDIR}"/${PN}-1.2.5-darwin-quartz.patch
393 -
394 - # Fix build on Darwin8 (10.4 Tiger)
395 - # XXX: Fails to apply
396 - #epatch "${FILESDIR}"/${PN}-1.2.5-darwin8.patch
397 -
398 - # Don't force -O2
399 - sed -i 's/-O2//g' "${S}"/configure.ac
400 -
401 - # Don't build tests if not needed, part of bug #343249
402 - # XXX: Fails to apply
403 - #epatch "${FILESDIR}/${PN}-1.2.5-tests-build.patch"
404 -
405 - # Required for webgl; https://bugs.webkit.org/show_bug.cgi?id=69085
406 - mkdir -p DerivedSources/ANGLE
407 -
408 - # Prevent maintainer mode from being triggered during make
409 - AT_M4DIR=Source/autotools eautoreconf
410 -}
411 -
412 -src_configure() {
413 - # It doesn't compile on alpha without this in LDFLAGS
414 - use alpha && append-ldflags "-Wl,--no-relax"
415 -
416 - # Sigbuses on SPARC with mcpu and co.
417 - use sparc && filter-flags "-mcpu=*" "-mvis" "-mtune=*"
418 -
419 - # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634
420 - use ppc64 && append-flags "-mminimal-toc"
421 -
422 - local myconf
423 -
424 - # XXX: Check Web Audio support
425 - # WebKit2 can only be built with gtk3
426 - myconf="
427 - $(use_enable coverage)
428 - $(use_enable debug)
429 - $(use_enable debug debug-features)
430 - $(use_enable spell spellcheck)
431 - $(use_enable introspection)
432 - $(use_enable gstreamer video)
433 - $(use_enable jit)
434 - $(use_enable webgl)
435 - --with-gtk=2.0
436 - --disable-webkit2
437 - --enable-web-sockets
438 - $(use aqua && echo "--with-font-backend=pango --with-target=quartz")"
439 -
440 - econf ${myconf}
441 -}
442 -
443 -src_compile() {
444 - # Fix sandbox error with USE="introspection"
445 - # https://bugs.webkit.org/show_bug.cgi?id=35471
446 - emake XDG_DATA_HOME="${T}/.local"
447 -}
448 -
449 -src_test() {
450 - unset DISPLAY
451 - # Tests need virtualx, bug #294691, bug #310695
452 - # Set XDG_DATA_HOME for introspection tools, bug #323669
453 - # Parallel tests sometimes fail
454 - Xemake -j1 check XDG_DATA_HOME="${T}/.local"
455 -}
456 -
457 -src_install() {
458 - default
459 -
460 - newdoc Source/WebKit/gtk/ChangeLog ChangeLog.gtk
461 - newdoc Source/WebKit/gtk/po/ChangeLog ChangeLog.gtk-po
462 - newdoc Source/JavaScriptCore/ChangeLog ChangeLog.JavaScriptCore
463 - newdoc Source/WebCore/ChangeLog ChangeLog.WebCore
464 -
465 - # Remove .la files
466 - find "${D}" -name '*.la' -exec rm -f '{}' +
467 -}
468
469 diff --git a/net-libs/webkit-gtk/webkit-gtk-1.6.1-r301.ebuild b/net-libs/webkit-gtk/webkit-gtk-1.6.1-r301.ebuild
470 deleted file mode 100644
471 index b006019..0000000
472 --- a/net-libs/webkit-gtk/webkit-gtk-1.6.1-r301.ebuild
473 +++ /dev/null
474 @@ -1,149 +0,0 @@
475 -# Copyright 1999-2011 Gentoo Foundation
476 -# Distributed under the terms of the GNU General Public License v2
477 -# $Header: /var/cvsroot/gentoo-x86/net-libs/webkit-gtk/webkit-gtk-1.4.2-r300.ebuild,v 1.4 2011/08/14 06:43:26 nirbheek Exp $
478 -
479 -EAPI="4"
480 -
481 -inherit autotools eutils flag-o-matic eutils virtualx
482 -
483 -MY_P="webkit-${PV}"
484 -DESCRIPTION="Open source web browser engine"
485 -HOMEPAGE="http://www.webkitgtk.org/"
486 -SRC_URI="http://www.webkitgtk.org/${MY_P}.tar.gz"
487 -
488 -LICENSE="LGPL-2 LGPL-2.1 BSD"
489 -SLOT="3"
490 -KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos"
491 -# geoclue
492 -IUSE="aqua coverage debug doc +gstreamer +introspection +jit spell webgl"
493 -# bug 372493
494 -REQUIRED_USE="introspection? ( gstreamer )"
495 -
496 -# use sqlite, svg by default
497 -# dependency on >=x11-libs/gtk+-2.13:2 for gail
498 -# Aqua support in gtk3 is untested
499 -# gtk2 is needed for plugin process support
500 -RDEPEND="
501 - dev-libs/libxml2:2
502 - dev-libs/libxslt
503 - virtual/jpeg
504 - >=media-libs/libpng-1.4:0
505 - >=x11-libs/cairo-1.10
506 - >=dev-libs/glib-2.27.90:2
507 - >=x11-libs/gtk+-3.0:3[aqua=,introspection?]
508 - >=dev-libs/icu-3.8.1-r1
509 - >=net-libs/libsoup-2.33.6:2.4[introspection?]
510 - dev-db/sqlite:3
511 - >=x11-libs/pango-1.12
512 - x11-libs/libXrender
513 -
514 - gstreamer? (
515 - media-libs/gstreamer:0.10
516 - >=media-libs/gst-plugins-base-0.10.30:0.10 )
517 -
518 - introspection? ( >=dev-libs/gobject-introspection-0.9.5 )
519 -
520 - spell? ( >=app-text/enchant-0.22 )
521 -
522 - webgl? ( virtual/opengl )
523 -"
524 -DEPEND="${RDEPEND}
525 - >=sys-devel/flex-2.5.33
526 - sys-devel/gettext
527 - virtual/yacc
528 - dev-util/gperf
529 - dev-util/pkgconfig
530 - dev-util/gtk-doc-am
531 - doc? ( >=dev-util/gtk-doc-1.10 )
532 - test? ( x11-themes/hicolor-icon-theme )
533 -"
534 -
535 -S="${WORKDIR}/${MY_P}"
536 -
537 -src_prepare() {
538 - DOCS="ChangeLog NEWS" # other ChangeLog files handled by src_install
539 -
540 - # FIXME: Fix unaligned accesses on ARM, IA64 and SPARC
541 - # https://bugs.webkit.org/show_bug.cgi?id=19775
542 - use sparc && epatch "${FILESDIR}"/${PN}-1.2.3-fix-pool-sparc.patch
543 -
544 - # intermediate MacPorts hack while upstream bug is not fixed properly
545 - # https://bugs.webkit.org/show_bug.cgi?id=28727
546 - use aqua && epatch "${FILESDIR}"/${PN}-1.2.5-darwin-quartz.patch
547 -
548 - # Fix build on Darwin8 (10.4 Tiger)
549 - # XXX: Fails to apply
550 - #epatch "${FILESDIR}"/${PN}-1.2.5-darwin8.patch
551 -
552 - # Don't force -O2
553 - sed -i 's/-O2//g' "${S}"/configure.ac
554 -
555 - # Don't build tests if not needed, part of bug #343249
556 - # XXX: Fails to apply
557 - #epatch "${FILESDIR}/${PN}-1.2.5-tests-build.patch"
558 -
559 - # Required for webgl; https://bugs.webkit.org/show_bug.cgi?id=69085
560 - mkdir -p DerivedSources/ANGLE
561 -
562 - # Prevent maintainer mode from being triggered during make
563 - AT_M4DIR=Source/autotools eautoreconf
564 -}
565 -
566 -src_configure() {
567 - # It doesn't compile on alpha without this in LDFLAGS
568 - use alpha && append-ldflags "-Wl,--no-relax"
569 -
570 - # Sigbuses on SPARC with mcpu and co.
571 - use sparc && filter-flags "-mcpu=*" "-mvis" "-mtune=*"
572 -
573 - # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634
574 - use ppc64 && append-flags "-mminimal-toc"
575 -
576 - local myconf
577 -
578 - # XXX: Check Web Audio support
579 - # XXX: files for generating DerivedSources/WebKit2/* are missing, see
580 - # https://bugs.webkit.org/show_bug.cgi?id=66527
581 - myconf="
582 - $(use_enable coverage)
583 - $(use_enable debug)
584 - $(use_enable debug debug-features)
585 - $(use_enable spell spellcheck)
586 - $(use_enable introspection)
587 - $(use_enable gstreamer video)
588 - $(use_enable jit)
589 - $(use_enable webgl)
590 - --with-gtk=3.0
591 - --disable-webkit2
592 - --enable-web-sockets
593 - $(use aqua && echo "--with-font-backend=pango --with-target=quartz")"
594 - # Aqua support in gtk3 is untested
595 -
596 - econf ${myconf}
597 -}
598 -
599 -src_compile() {
600 - # Fix sandbox error with USE="introspection"
601 - # https://bugs.webkit.org/show_bug.cgi?id=35471
602 - emake XDG_DATA_HOME="${T}/.local"
603 -}
604 -
605 -src_test() {
606 - unset DISPLAY
607 - # Tests need virtualx, bug #294691, bug #310695
608 - # Set XDG_DATA_HOME for introspection tools, bug #323669
609 - # Parallel tests sometimes fail
610 - Xemake -j1 check XDG_DATA_HOME="${T}/.local"
611 -}
612 -
613 -src_install() {
614 - default
615 -
616 - newdoc Source/WebKit/gtk/ChangeLog ChangeLog.gtk
617 - newdoc Source/WebKit/gtk/po/ChangeLog ChangeLog.gtk-po
618 - newdoc Source/JavaScriptCore/ChangeLog ChangeLog.JavaScriptCore
619 - newdoc Source/WebCore/ChangeLog ChangeLog.WebCore
620 -
621 - # Remove .la files
622 - find "${D}" -name '*.la' -exec rm -f '{}' +
623 -}