1 |
commit: f2a4de279c82f695d949eae803d99bf4a7356138 |
2 |
Author: Priit Laes <plaes <AT> plaes <DOT> org> |
3 |
AuthorDate: Sat Oct 29 10:52:09 2011 +0000 |
4 |
Commit: Priit Laes <plaes <AT> plaes <DOT> org> |
5 |
CommitDate: Sat Oct 29 10:52:44 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=f2a4de27 |
7 |
|
8 |
net-libs/webkit-gtk: Bumped to 1.7.1 |
9 |
|
10 |
--- |
11 |
net-libs/webkit-gtk/webkit-gtk-1.7.1-r200.ebuild | 149 ++++++++++++++++++++ |
12 |
net-libs/webkit-gtk/webkit-gtk-1.7.1-r300.ebuild | 163 ++++++++++++++++++++++ |
13 |
2 files changed, 312 insertions(+), 0 deletions(-) |
14 |
|
15 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-1.7.1-r200.ebuild b/net-libs/webkit-gtk/webkit-gtk-1.7.1-r200.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..31710c3 |
18 |
--- /dev/null |
19 |
+++ b/net-libs/webkit-gtk/webkit-gtk-1.7.1-r200.ebuild |
20 |
@@ -0,0 +1,149 @@ |
21 |
+# Copyright 1999-2011 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/webkit-gtk/webkit-gtk-1.6.1-r200.ebuild,v 1.1 2011/09/30 13:52:33 nirbheek Exp $ |
24 |
+ |
25 |
+EAPI="4" |
26 |
+ |
27 |
+inherit autotools eutils flag-o-matic eutils virtualx |
28 |
+ |
29 |
+MY_P="webkit-${PV}" |
30 |
+DESCRIPTION="Open source web browser engine" |
31 |
+HOMEPAGE="http://www.webkitgtk.org/" |
32 |
+# Upstream is still shipping silly gzip files |
33 |
+SRC_URI="http://www.webkitgtk.org/${MY_P}.tar.gz" |
34 |
+#SRC_URI="mirror://gentoo/${P}.tar.xz" |
35 |
+ |
36 |
+LICENSE="LGPL-2 LGPL-2.1 BSD" |
37 |
+SLOT="2" |
38 |
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd |
39 |
+~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos" |
40 |
+# geoclue |
41 |
+IUSE="aqua coverage debug +gstreamer +introspection +jit spell webgl" |
42 |
+# bug 372493 |
43 |
+REQUIRED_USE="introspection? ( gstreamer )" |
44 |
+ |
45 |
+# use sqlite, svg by default |
46 |
+# dependency on >=x11-libs/gtk+-2.13:2 for gail |
47 |
+RDEPEND=" |
48 |
+ dev-libs/libxml2:2 |
49 |
+ dev-libs/libxslt |
50 |
+ virtual/jpeg |
51 |
+ >=media-libs/libpng-1.4:0 |
52 |
+ >=x11-libs/cairo-1.10 |
53 |
+ >=dev-libs/glib-2.27.90:2 |
54 |
+ >=x11-libs/gtk+-2.13:2[aqua=,introspection?] |
55 |
+ >=dev-libs/icu-3.8.1-r1 |
56 |
+ >=net-libs/libsoup-2.33.6:2.4[introspection?] |
57 |
+ dev-db/sqlite:3 |
58 |
+ >=x11-libs/pango-1.12 |
59 |
+ x11-libs/libXrender |
60 |
+ |
61 |
+ gstreamer? ( |
62 |
+ media-libs/gstreamer:0.10 |
63 |
+ >=media-libs/gst-plugins-base-0.10.30:0.10 ) |
64 |
+ |
65 |
+ introspection? ( >=dev-libs/gobject-introspection-0.9.5 ) |
66 |
+ |
67 |
+ spell? ( >=app-text/enchant-0.22 ) |
68 |
+ |
69 |
+ webgl? ( virtual/opengl ) |
70 |
+" |
71 |
+DEPEND="${RDEPEND} |
72 |
+ >=sys-devel/flex-2.5.33 |
73 |
+ sys-devel/gettext |
74 |
+ virtual/yacc |
75 |
+ dev-util/gperf |
76 |
+ dev-util/pkgconfig |
77 |
+ dev-util/gtk-doc-am |
78 |
+ test? ( x11-themes/hicolor-icon-theme ) |
79 |
+" |
80 |
+ |
81 |
+S="${WORKDIR}/${MY_P}" |
82 |
+ |
83 |
+src_prepare() { |
84 |
+ DOCS="ChangeLog NEWS" # other ChangeLog files handled by src_install |
85 |
+ |
86 |
+ # FIXME: Fix unaligned accesses on ARM, IA64 and SPARC |
87 |
+ # https://bugs.webkit.org/show_bug.cgi?id=19775 |
88 |
+ use sparc && epatch "${FILESDIR}"/${PN}-1.2.3-fix-pool-sparc.patch |
89 |
+ |
90 |
+ # intermediate MacPorts hack while upstream bug is not fixed properly |
91 |
+ # https://bugs.webkit.org/show_bug.cgi?id=28727 |
92 |
+ use aqua && epatch "${FILESDIR}"/${PN}-1.2.5-darwin-quartz.patch |
93 |
+ |
94 |
+ # Fix build on Darwin8 (10.4 Tiger) |
95 |
+ # XXX: Fails to apply |
96 |
+ #epatch "${FILESDIR}"/${PN}-1.2.5-darwin8.patch |
97 |
+ |
98 |
+ # Don't force -O2 |
99 |
+ sed -i 's/-O2//g' "${S}"/configure.ac |
100 |
+ |
101 |
+ # Don't build tests if not needed, part of bug #343249 |
102 |
+ # XXX: Fails to apply |
103 |
+ #epatch "${FILESDIR}/${PN}-1.2.5-tests-build.patch" |
104 |
+ |
105 |
+ # Required for webgl; https://bugs.webkit.org/show_bug.cgi?id=69085 |
106 |
+ mkdir -p DerivedSources/ANGLE |
107 |
+ |
108 |
+ # Prevent maintainer mode from being triggered during make |
109 |
+ AT_M4DIR=Source/autotools eautoreconf |
110 |
+} |
111 |
+ |
112 |
+src_configure() { |
113 |
+ # It doesn't compile on alpha without this in LDFLAGS |
114 |
+ use alpha && append-ldflags "-Wl,--no-relax" |
115 |
+ |
116 |
+ # Sigbuses on SPARC with mcpu and co. |
117 |
+ use sparc && filter-flags "-mcpu=*" "-mvis" "-mtune=*" |
118 |
+ |
119 |
+ # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634 |
120 |
+ use ppc64 && append-flags "-mminimal-toc" |
121 |
+ |
122 |
+ local myconf |
123 |
+ |
124 |
+ # XXX: Check Web Audio support |
125 |
+ # WebKit2 can only be built with gtk3 |
126 |
+ # API documentation (gtk-doc) is built in webkit-gtk:3, always disable here |
127 |
+ myconf=" |
128 |
+ $(use_enable coverage) |
129 |
+ $(use_enable debug) |
130 |
+ $(use_enable debug debug-features) |
131 |
+ $(use_enable spell spellcheck) |
132 |
+ $(use_enable introspection) |
133 |
+ $(use_enable gstreamer video) |
134 |
+ $(use_enable jit) |
135 |
+ $(use_enable webgl) |
136 |
+ --enable-web-sockets |
137 |
+ --with-gtk=2.0 |
138 |
+ --disable-gtk-doc |
139 |
+ --disable-webkit2 |
140 |
+ $(use aqua && echo "--with-font-backend=pango --with-target=quartz")" |
141 |
+ |
142 |
+ econf ${myconf} |
143 |
+} |
144 |
+ |
145 |
+src_compile() { |
146 |
+ # Fix sandbox error with USE="introspection" |
147 |
+ # https://bugs.webkit.org/show_bug.cgi?id=35471 |
148 |
+ emake XDG_DATA_HOME="${T}/.local" |
149 |
+} |
150 |
+ |
151 |
+src_test() { |
152 |
+ unset DISPLAY |
153 |
+ # Tests need virtualx, bug #294691, bug #310695 |
154 |
+ # Set XDG_DATA_HOME for introspection tools, bug #323669 |
155 |
+ # Parallel tests sometimes fail |
156 |
+ Xemake -j1 check XDG_DATA_HOME="${T}/.local" |
157 |
+} |
158 |
+ |
159 |
+src_install() { |
160 |
+ default |
161 |
+ |
162 |
+ newdoc Source/WebKit/gtk/ChangeLog ChangeLog.gtk |
163 |
+ newdoc Source/WebKit/gtk/po/ChangeLog ChangeLog.gtk-po |
164 |
+ newdoc Source/JavaScriptCore/ChangeLog ChangeLog.JavaScriptCore |
165 |
+ newdoc Source/WebCore/ChangeLog ChangeLog.WebCore |
166 |
+ |
167 |
+ # Remove .la files |
168 |
+ find "${D}" -name '*.la' -exec rm -f '{}' + |
169 |
+} |
170 |
|
171 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-1.7.1-r300.ebuild b/net-libs/webkit-gtk/webkit-gtk-1.7.1-r300.ebuild |
172 |
new file mode 100644 |
173 |
index 0000000..a2a1f7a |
174 |
--- /dev/null |
175 |
+++ b/net-libs/webkit-gtk/webkit-gtk-1.7.1-r300.ebuild |
176 |
@@ -0,0 +1,163 @@ |
177 |
+# Copyright 1999-2011 Gentoo Foundation |
178 |
+# Distributed under the terms of the GNU General Public License v2 |
179 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/webkit-gtk/webkit-gtk-1.6.1-r300.ebuild,v 1.1 2011/09/30 13:52:33 nirbheek Exp $ |
180 |
+ |
181 |
+EAPI="4" |
182 |
+ |
183 |
+inherit autotools eutils flag-o-matic eutils virtualx |
184 |
+ |
185 |
+MY_P="webkit-${PV}" |
186 |
+DESCRIPTION="Open source web browser engine" |
187 |
+HOMEPAGE="http://www.webkitgtk.org/" |
188 |
+# Upstream is still shipping silly gzip files |
189 |
+SRC_URI="http://www.webkitgtk.org/${MY_P}.tar.gz" |
190 |
+#SRC_URI="mirror://gentoo/${P}.tar.xz" |
191 |
+ |
192 |
+LICENSE="LGPL-2 LGPL-2.1 BSD" |
193 |
+SLOT="3" |
194 |
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd |
195 |
+~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos" |
196 |
+# geoclue |
197 |
+IUSE="aqua coverage debug doc +gstreamer +introspection +jit spell webgl" |
198 |
+# bug 372493 |
199 |
+REQUIRED_USE="introspection? ( gstreamer )" |
200 |
+ |
201 |
+# use sqlite, svg by default |
202 |
+# dependency on >=x11-libs/gtk+-2.13:2 for gail |
203 |
+# Aqua support in gtk3 is untested |
204 |
+# gtk2 is needed for plugin process support |
205 |
+RDEPEND=" |
206 |
+ dev-libs/libxml2:2 |
207 |
+ dev-libs/libxslt |
208 |
+ virtual/jpeg |
209 |
+ >=media-libs/libpng-1.4:0 |
210 |
+ >=x11-libs/cairo-1.10 |
211 |
+ >=dev-libs/glib-2.27.90:2 |
212 |
+ >=x11-libs/gtk+-3.0:3[aqua=,introspection?] |
213 |
+ >=dev-libs/icu-3.8.1-r1 |
214 |
+ >=net-libs/libsoup-2.33.6:2.4[introspection?] |
215 |
+ dev-db/sqlite:3 |
216 |
+ >=x11-libs/pango-1.12 |
217 |
+ x11-libs/libXrender |
218 |
+ |
219 |
+ gstreamer? ( |
220 |
+ media-libs/gstreamer:0.10 |
221 |
+ >=media-libs/gst-plugins-base-0.10.30:0.10 ) |
222 |
+ |
223 |
+ introspection? ( >=dev-libs/gobject-introspection-0.9.5 ) |
224 |
+ |
225 |
+ spell? ( >=app-text/enchant-0.22 ) |
226 |
+ |
227 |
+ webgl? ( virtual/opengl ) |
228 |
+" |
229 |
+DEPEND="${RDEPEND} |
230 |
+ >=sys-devel/flex-2.5.33 |
231 |
+ sys-devel/gettext |
232 |
+ virtual/yacc |
233 |
+ dev-util/gperf |
234 |
+ dev-util/pkgconfig |
235 |
+ dev-util/gtk-doc-am |
236 |
+ doc? ( >=dev-util/gtk-doc-1.10 ) |
237 |
+ test? ( x11-themes/hicolor-icon-theme ) |
238 |
+" |
239 |
+ |
240 |
+S="${WORKDIR}/${MY_P}" |
241 |
+ |
242 |
+src_prepare() { |
243 |
+ DOCS="ChangeLog NEWS" # other ChangeLog files handled by src_install |
244 |
+ |
245 |
+ # FIXME: Fix unaligned accesses on ARM, IA64 and SPARC |
246 |
+ # https://bugs.webkit.org/show_bug.cgi?id=19775 |
247 |
+ use sparc && epatch "${FILESDIR}"/${PN}-1.2.3-fix-pool-sparc.patch |
248 |
+ |
249 |
+ # intermediate MacPorts hack while upstream bug is not fixed properly |
250 |
+ # https://bugs.webkit.org/show_bug.cgi?id=28727 |
251 |
+ use aqua && epatch "${FILESDIR}"/${PN}-1.2.5-darwin-quartz.patch |
252 |
+ |
253 |
+ # Fix build on Darwin8 (10.4 Tiger) |
254 |
+ # XXX: Fails to apply |
255 |
+ #epatch "${FILESDIR}"/${PN}-1.2.5-darwin8.patch |
256 |
+ |
257 |
+ # Don't force -O2 |
258 |
+ sed -i 's/-O2//g' "${S}"/configure.ac |
259 |
+ |
260 |
+ # Don't build tests if not needed, part of bug #343249 |
261 |
+ # XXX: Fails to apply |
262 |
+ #epatch "${FILESDIR}/${PN}-1.2.5-tests-build.patch" |
263 |
+ |
264 |
+ # Required for webgl; https://bugs.webkit.org/show_bug.cgi?id=69085 |
265 |
+ mkdir -p DerivedSources/ANGLE |
266 |
+ |
267 |
+ # Prevent maintainer mode from being triggered during make |
268 |
+ AT_M4DIR=Source/autotools eautoreconf |
269 |
+} |
270 |
+ |
271 |
+src_configure() { |
272 |
+ # It doesn't compile on alpha without this in LDFLAGS |
273 |
+ use alpha && append-ldflags "-Wl,--no-relax" |
274 |
+ |
275 |
+ # Sigbuses on SPARC with mcpu and co. |
276 |
+ use sparc && filter-flags "-mcpu=*" "-mvis" "-mtune=*" |
277 |
+ |
278 |
+ # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634 |
279 |
+ use ppc64 && append-flags "-mminimal-toc" |
280 |
+ |
281 |
+ local myconf |
282 |
+ |
283 |
+ # XXX: Check Web Audio support |
284 |
+ # XXX: files for generating DerivedSources/WebKit2/* are missing, see |
285 |
+ # https://bugs.webkit.org/show_bug.cgi?id=66527 |
286 |
+ myconf=" |
287 |
+ $(use_enable coverage) |
288 |
+ $(use_enable debug) |
289 |
+ $(use_enable debug debug-features) |
290 |
+ $(use_enable doc gtk-doc) |
291 |
+ $(use_enable spell spellcheck) |
292 |
+ $(use_enable introspection) |
293 |
+ $(use_enable gstreamer video) |
294 |
+ $(use_enable jit) |
295 |
+ $(use_enable webgl) |
296 |
+ --enable-web-sockets |
297 |
+ --with-gtk=3.0 |
298 |
+ --disable-webkit2 |
299 |
+ $(use aqua && echo "--with-font-backend=pango --with-target=quartz")" |
300 |
+ # Aqua support in gtk3 is untested |
301 |
+ |
302 |
+ econf ${myconf} |
303 |
+} |
304 |
+ |
305 |
+src_compile() { |
306 |
+ # Fix sandbox error with USE="introspection" |
307 |
+ # https://bugs.webkit.org/show_bug.cgi?id=35471 |
308 |
+ emake XDG_DATA_HOME="${T}/.local" |
309 |
+ |
310 |
+ # ${PN} neither ships, nor builds documentation on its own |
311 |
+ if use doc; then |
312 |
+ emake -C "${S}/Source/WebKit/gtk/docs" |
313 |
+ fi |
314 |
+} |
315 |
+ |
316 |
+src_test() { |
317 |
+ unset DISPLAY |
318 |
+ # Tests need virtualx, bug #294691, bug #310695 |
319 |
+ # Set XDG_DATA_HOME for introspection tools, bug #323669 |
320 |
+ # Parallel tests sometimes fail |
321 |
+ Xemake -j1 check XDG_DATA_HOME="${T}/.local" |
322 |
+} |
323 |
+ |
324 |
+src_install() { |
325 |
+ default |
326 |
+ |
327 |
+ # ${PN} doesn't install documentation on its own |
328 |
+ if use doc; then |
329 |
+ emake DESTDIR=${D} -C "${S}/Source/WebKit/gtk/docs" install |
330 |
+ fi |
331 |
+ |
332 |
+ newdoc Source/WebKit/gtk/ChangeLog ChangeLog.gtk |
333 |
+ newdoc Source/WebKit/gtk/po/ChangeLog ChangeLog.gtk-po |
334 |
+ newdoc Source/JavaScriptCore/ChangeLog ChangeLog.JavaScriptCore |
335 |
+ newdoc Source/WebCore/ChangeLog ChangeLog.WebCore |
336 |
+ |
337 |
+ # Remove .la files |
338 |
+ find "${D}" -name '*.la' -exec rm -f '{}' + |
339 |
+} |