1 |
commit: c8a8566cb09838d45349d998d35e580d2f93fb34 |
2 |
Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Sep 27 07:25:32 2011 +0000 |
4 |
Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Sep 27 07:25:32 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=c8a8566c |
7 |
|
8 |
net-libs/webkit-gtk: 1.5.2 → 1.6.0 |
9 |
|
10 |
Bump. Deprecations patch was applied upstream; mimehandling test patch |
11 |
appears to be no longer needed (tests pass fine without it). |
12 |
|
13 |
--- |
14 |
.../files/webkit-gtk-1.5.2-deprecations.patch | 191 -------------------- |
15 |
.../files/webkit-gtk-1.5.2-mimehandling-test.patch | 17 -- |
16 |
....2-r200.ebuild => webkit-gtk-1.6.0-r200.ebuild} | 9 +- |
17 |
....2-r300.ebuild => webkit-gtk-1.6.0-r300.ebuild} | 9 +- |
18 |
4 files changed, 2 insertions(+), 224 deletions(-) |
19 |
|
20 |
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-1.5.2-deprecations.patch b/net-libs/webkit-gtk/files/webkit-gtk-1.5.2-deprecations.patch |
21 |
deleted file mode 100644 |
22 |
index d21a44e..0000000 |
23 |
--- a/net-libs/webkit-gtk/files/webkit-gtk-1.5.2-deprecations.patch |
24 |
+++ /dev/null |
25 |
@@ -1,191 +0,0 @@ |
26 |
-2011-08-17 Alejandro G. Castro <alex@××××××.com> |
27 |
- |
28 |
- [GTK] Fix compilation problems with deprecations in gtk+ |
29 |
- https://bugs.webkit.org/show_bug.cgi?id=66073 |
30 |
- |
31 |
- Reviewed by Martin Robinson. |
32 |
- |
33 |
- * platform/gtk/GtkAuthenticationDialog.cpp: |
34 |
- (WebCore::GtkAuthenticationDialog::GtkAuthenticationDialog): Added |
35 |
- gtk_box_new conditional compilation for gtk+-3. |
36 |
- * platform/gtk/RenderThemeGtk3.cpp: |
37 |
- (WebCore::RenderThemeGtk::adjustRepaintRect): |
38 |
- (WebCore::RenderThemeGtk::paintSliderTrack): |
39 |
- (WebCore::RenderThemeGtk::paintSliderThumb): |
40 |
- (WebCore::RenderThemeGtk::adjustSliderThumbSize): Now we have have |
41 |
- GTK_TYPE_SCALE in gtk+3. |
42 |
- |
43 |
-2011-08-17 Alejandro G. Castro <alex@××××××.com> |
44 |
- |
45 |
- [GTK] Fix compilation problems with deprecations in gtk+ |
46 |
- https://bugs.webkit.org/show_bug.cgi?id=66073 |
47 |
- |
48 |
- Reviewed by Martin Robinson. |
49 |
- |
50 |
- * DumpRenderTree/gtk/DumpRenderTree.cpp: |
51 |
- (main): G_CONST_RETURN was deprecated |
52 |
- * GtkLauncher/main.c: |
53 |
- (createWindow): Added gtk_box_new conditional compilation for |
54 |
- gtk+-3. |
55 |
- * MiniBrowser/gtk/BrowserWindow.c: |
56 |
- (browser_window_init): Replaced gtk_vbox_new with gtk_box_new, we |
57 |
- are just supporting gtk+-3 for WebKit2. |
58 |
- |
59 |
-2011-08-17 Alejandro G. Castro <alex@××××××.com> |
60 |
- |
61 |
- [GTK] Fix compilation problems with deprecations in gtk+ |
62 |
- https://bugs.webkit.org/show_bug.cgi?id=66073 |
63 |
- |
64 |
- Reviewed by Martin Robinson. |
65 |
- |
66 |
- * WebCoreSupport/FullscreenVideoController.cpp: |
67 |
- (FullscreenVideoController::createHud): Added gtk_box_new |
68 |
- conditional compilation for gtk+-3. |
69 |
- |
70 |
-Index: /trunk/Source/WebKit/gtk/WebCoreSupport/FullscreenVideoController.cpp |
71 |
-=================================================================== |
72 |
---- /trunk/Source/WebKit/gtk/WebCoreSupport/FullscreenVideoController.cpp (revision 89044) |
73 |
-+++ /trunk/Source/WebKit/gtk/WebCoreSupport/FullscreenVideoController.cpp (revision 93338) |
74 |
-@@ -532,5 +532,9 @@ |
75 |
- g_signal_connect(m_hudWindow, "motion-notify-event", G_CALLBACK(onFullscreenGtkMotionNotifyEvent), this); |
76 |
- |
77 |
-+#ifdef GTK_API_VERSION_2 |
78 |
- GtkWidget* hbox = gtk_hbox_new(FALSE, 4); |
79 |
-+#else |
80 |
-+ GtkWidget* hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 4); |
81 |
-+#endif |
82 |
- gtk_container_add(GTK_CONTAINER(m_hudWindow), hbox); |
83 |
- |
84 |
-@@ -547,5 +551,9 @@ |
85 |
- |
86 |
- GtkAdjustment* adjustment = GTK_ADJUSTMENT(gtk_adjustment_new(0.0, 0.0, 100.0, 0.1, 1.0, 1.0)); |
87 |
-+#ifdef GTK_API_VERSION_2 |
88 |
- m_timeHScale = gtk_hscale_new(adjustment); |
89 |
-+#else |
90 |
-+ m_timeHScale = gtk_scale_new(GTK_ORIENTATION_HORIZONTAL, adjustment); |
91 |
-+#endif |
92 |
- gtk_scale_set_draw_value(GTK_SCALE(m_timeHScale), FALSE); |
93 |
- gtk_range_set_show_fill_level(GTK_RANGE(m_timeHScale), TRUE); |
94 |
-Index: /trunk/Source/WebCore/platform/gtk/RenderThemeGtk3.cpp |
95 |
-=================================================================== |
96 |
---- /trunk/Source/WebCore/platform/gtk/RenderThemeGtk3.cpp (revision 88405) |
97 |
-+++ /trunk/Source/WebCore/platform/gtk/RenderThemeGtk3.cpp (revision 93338) |
98 |
-@@ -150,5 +150,5 @@ |
99 |
- case SliderVerticalPart: |
100 |
- case SliderHorizontalPart: |
101 |
-- context = getStyleContext(part == SliderThumbHorizontalPart ? GTK_TYPE_HSCALE : GTK_TYPE_VSCALE); |
102 |
-+ context = getStyleContext(GTK_TYPE_SCALE); |
103 |
- break; |
104 |
- case ButtonPart: |
105 |
-@@ -599,5 +599,5 @@ |
106 |
- ASSERT(part == SliderHorizontalPart || part == SliderVerticalPart || part == MediaVolumeSliderPart); |
107 |
- |
108 |
-- GtkStyleContext* context = getStyleContext(part == SliderThumbHorizontalPart ? GTK_TYPE_HSCALE : GTK_TYPE_VSCALE); |
109 |
-+ GtkStyleContext* context = getStyleContext(GTK_TYPE_SCALE); |
110 |
- gtk_style_context_save(context); |
111 |
- |
112 |
-@@ -634,5 +634,5 @@ |
113 |
- ASSERT(part == SliderThumbHorizontalPart || part == SliderThumbVerticalPart || part == MediaVolumeSliderThumbPart); |
114 |
- |
115 |
-- GtkStyleContext* context = getStyleContext(part == SliderThumbHorizontalPart ? GTK_TYPE_HSCALE : GTK_TYPE_VSCALE); |
116 |
-+ GtkStyleContext* context = getStyleContext(GTK_TYPE_SCALE); |
117 |
- gtk_style_context_save(context); |
118 |
- |
119 |
-@@ -675,5 +675,5 @@ |
120 |
- |
121 |
- gint sliderWidth, sliderLength; |
122 |
-- gtk_style_context_get_style(getStyleContext(part == SliderThumbHorizontalPart ? GTK_TYPE_HSCALE : GTK_TYPE_VSCALE), |
123 |
-+ gtk_style_context_get_style(getStyleContext(GTK_TYPE_SCALE), |
124 |
- "slider-width", &sliderWidth, |
125 |
- "slider-length", &sliderLength, |
126 |
-Index: /trunk/Source/WebCore/platform/gtk/GtkAuthenticationDialog.cpp |
127 |
-=================================================================== |
128 |
---- /trunk/Source/WebCore/platform/gtk/GtkAuthenticationDialog.cpp (revision 88800) |
129 |
-+++ /trunk/Source/WebCore/platform/gtk/GtkAuthenticationDialog.cpp (revision 93338) |
130 |
-@@ -88,5 +88,9 @@ |
131 |
- |
132 |
- // Build contents. |
133 |
-+#ifdef GTK_API_VERSION_2 |
134 |
- GtkWidget* hBox = gtk_hbox_new(FALSE, 12); |
135 |
-+#else |
136 |
-+ GtkWidget* hBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 12); |
137 |
-+#endif |
138 |
- gtk_container_set_border_width(GTK_CONTAINER(hBox), 5); |
139 |
- gtk_box_pack_start(GTK_BOX(gtk_dialog_get_content_area(dialog)), hBox, TRUE, TRUE, 0); |
140 |
-@@ -96,5 +100,9 @@ |
141 |
- gtk_box_pack_start(GTK_BOX(hBox), icon, FALSE, FALSE, 0); |
142 |
- |
143 |
-+#ifdef GTK_API_VERSION_2 |
144 |
- GtkWidget* mainVBox = gtk_vbox_new(FALSE, 18); |
145 |
-+#else |
146 |
-+ GtkWidget* mainVBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 18); |
147 |
-+#endif |
148 |
- gtk_box_pack_start(GTK_BOX(hBox), mainVBox, TRUE, TRUE, 0); |
149 |
- |
150 |
-@@ -106,5 +114,9 @@ |
151 |
- gtk_box_pack_start(GTK_BOX(mainVBox), GTK_WIDGET(descriptionLabel), FALSE, FALSE, 0); |
152 |
- |
153 |
-+#ifdef GTK_API_VERSION_2 |
154 |
- GtkWidget* vBox = gtk_vbox_new(FALSE, 6); |
155 |
-+#else |
156 |
-+ GtkWidget* vBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 6); |
157 |
-+#endif |
158 |
- gtk_box_pack_start(GTK_BOX(mainVBox), vBox, FALSE, FALSE, 0); |
159 |
- |
160 |
-@@ -140,5 +152,9 @@ |
161 |
- |
162 |
- if (sessionCanSavePasswords(m_session)) { |
163 |
-+#ifdef GTK_API_VERSION_2 |
164 |
- GtkWidget* rememberBox = gtk_vbox_new(FALSE, 6); |
165 |
-+#else |
166 |
-+ GtkWidget* rememberBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 6); |
167 |
-+#endif |
168 |
- gtk_box_pack_start(GTK_BOX(vBox), rememberBox, FALSE, FALSE, 0); |
169 |
- |
170 |
-Index: /trunk/Tools/DumpRenderTree/gtk/DumpRenderTree.cpp |
171 |
-=================================================================== |
172 |
---- /trunk/Tools/DumpRenderTree/gtk/DumpRenderTree.cpp (revision 91707) |
173 |
-+++ /trunk/Tools/DumpRenderTree/gtk/DumpRenderTree.cpp (revision 93338) |
174 |
-@@ -65,5 +65,5 @@ |
175 |
- extern "C" { |
176 |
- // This API is not yet public. |
177 |
--extern G_CONST_RETURN gchar* webkit_web_history_item_get_target(WebKitWebHistoryItem*); |
178 |
-+extern const gchar* webkit_web_history_item_get_target(WebKitWebHistoryItem*); |
179 |
- extern gboolean webkit_web_history_item_is_target_item(WebKitWebHistoryItem*); |
180 |
- extern GList* webkit_web_history_item_get_children(WebKitWebHistoryItem*); |
181 |
-@@ -1168,5 +1168,10 @@ |
182 |
- |
183 |
- window = gtk_window_new(GTK_WINDOW_POPUP); |
184 |
-+#ifdef GTK_API_VERSION_2 |
185 |
- container = gtk_hbox_new(TRUE, 0); |
186 |
-+#else |
187 |
-+ container = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); |
188 |
-+ gtk_box_set_homogeneous(GTK_BOX(container), TRUE); |
189 |
-+#endif |
190 |
- gtk_container_add(GTK_CONTAINER(window), container); |
191 |
- gtk_widget_show_all(window); |
192 |
-Index: /trunk/Tools/MiniBrowser/gtk/BrowserWindow.c |
193 |
-=================================================================== |
194 |
---- /trunk/Tools/MiniBrowser/gtk/BrowserWindow.c (revision 90551) |
195 |
-+++ /trunk/Tools/MiniBrowser/gtk/BrowserWindow.c (revision 93338) |
196 |
-@@ -160,5 +160,5 @@ |
197 |
- gtk_widget_show(GTK_WIDGET(item)); |
198 |
- |
199 |
-- GtkWidget *vbox = gtk_vbox_new(FALSE, 0); |
200 |
-+ GtkWidget *vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); |
201 |
- window->mainBox = vbox; |
202 |
- gtk_box_pack_start(GTK_BOX(vbox), toolbar, FALSE, FALSE, 0); |
203 |
-Index: /trunk/Tools/GtkLauncher/main.c |
204 |
-=================================================================== |
205 |
---- /trunk/Tools/GtkLauncher/main.c (revision 89438) |
206 |
-+++ /trunk/Tools/GtkLauncher/main.c (revision 93338) |
207 |
-@@ -214,5 +214,9 @@ |
208 |
- uriEntry = gtk_entry_new(); |
209 |
- |
210 |
-+#ifdef GTK_API_VERSION_2 |
211 |
- vbox = gtk_vbox_new(FALSE, 0); |
212 |
-+#else |
213 |
-+ vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); |
214 |
-+#endif |
215 |
- statusbar = createStatusbar(webView); |
216 |
- gtk_box_pack_start(GTK_BOX(vbox), createToolbar(uriEntry, webView), FALSE, FALSE, 0); |
217 |
|
218 |
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-1.5.2-mimehandling-test.patch b/net-libs/webkit-gtk/files/webkit-gtk-1.5.2-mimehandling-test.patch |
219 |
deleted file mode 100644 |
220 |
index 70d52e2..0000000 |
221 |
--- a/net-libs/webkit-gtk/files/webkit-gtk-1.5.2-mimehandling-test.patch |
222 |
+++ /dev/null |
223 |
@@ -1,17 +0,0 @@ |
224 |
-Disable mimehandling test for now. For unknown reasons it fails: |
225 |
- |
226 |
- /webkit/mime/remote-OGG: ** |
227 |
-ERROR:Source/WebKit/gtk/tests/testmimehandling.c:128:mime_type_policy_decision_requested_cb: assertion failed (mime_type == "audio/x-vorbis+ogg"): ("application/octet-stream" == "audio/x-vorbis+ogg") |
228 |
-FAIL |
229 |
- |
230 |
-diff -ur a/Source/WebKit/gtk/GNUmakefile.am b/Source/WebKit/gtk/GNUmakefile.am |
231 |
---- a/Source/WebKit/gtk/GNUmakefile.am |
232 |
-+++ b/Source/WebKit/gtk/GNUmakefile.am |
233 |
-@@ -432,7 +432,6 @@ |
234 |
- Programs/unittests/testhttpbackend \ |
235 |
- Programs/unittests/testloading \ |
236 |
- Programs/unittests/testglobals \ |
237 |
-- Programs/unittests/testmimehandling \ |
238 |
- Programs/unittests/testnetworkrequest \ |
239 |
- Programs/unittests/testnetworkresponse \ |
240 |
- Programs/unittests/testwebframe \ |
241 |
|
242 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-1.5.2-r200.ebuild b/net-libs/webkit-gtk/webkit-gtk-1.6.0-r200.ebuild |
243 |
similarity index 91% |
244 |
rename from net-libs/webkit-gtk/webkit-gtk-1.5.2-r200.ebuild |
245 |
rename to net-libs/webkit-gtk/webkit-gtk-1.6.0-r200.ebuild |
246 |
index 4780d01..6dd0911 100644 |
247 |
--- a/net-libs/webkit-gtk/webkit-gtk-1.5.2-r200.ebuild |
248 |
+++ b/net-libs/webkit-gtk/webkit-gtk-1.6.0-r200.ebuild |
249 |
@@ -37,7 +37,7 @@ RDEPEND=" |
250 |
|
251 |
gstreamer? ( |
252 |
media-libs/gstreamer:0.10 |
253 |
- >=media-libs/gst-plugins-base-0.10.25:0.10 ) |
254 |
+ >=media-libs/gst-plugins-base-0.10.30:0.10 ) |
255 |
|
256 |
introspection? ( >=dev-libs/gobject-introspection-0.9.5 ) |
257 |
|
258 |
@@ -78,13 +78,6 @@ src_prepare() { |
259 |
# XXX: Fails to apply |
260 |
#epatch "${FILESDIR}/${PN}-1.2.5-tests-build.patch" |
261 |
|
262 |
- # FIXME: mimehandling test fails, so disable it for now |
263 |
- # assertion failed (mime_type == "audio/x-vorbis+ogg") |
264 |
- epatch "${FILESDIR}/${PN}-1.5.2-mimehandling-test.patch" |
265 |
- |
266 |
- # Upstream patch to fix deprecation failures with glib-2.29.x and gtk+-3.1.x |
267 |
- epatch "${FILESDIR}/${P}-deprecations.patch" |
268 |
- |
269 |
# Prevent maintainer mode from being triggered during make |
270 |
AT_M4DIR=Source/autotools eautoreconf |
271 |
} |
272 |
|
273 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-1.5.2-r300.ebuild b/net-libs/webkit-gtk/webkit-gtk-1.6.0-r300.ebuild |
274 |
similarity index 92% |
275 |
rename from net-libs/webkit-gtk/webkit-gtk-1.5.2-r300.ebuild |
276 |
rename to net-libs/webkit-gtk/webkit-gtk-1.6.0-r300.ebuild |
277 |
index 403bfed..99f3845 100644 |
278 |
--- a/net-libs/webkit-gtk/webkit-gtk-1.5.2-r300.ebuild |
279 |
+++ b/net-libs/webkit-gtk/webkit-gtk-1.6.0-r300.ebuild |
280 |
@@ -39,7 +39,7 @@ RDEPEND=" |
281 |
|
282 |
gstreamer? ( |
283 |
media-libs/gstreamer:0.10 |
284 |
- >=media-libs/gst-plugins-base-0.10.25:0.10 ) |
285 |
+ >=media-libs/gst-plugins-base-0.10.30:0.10 ) |
286 |
|
287 |
introspection? ( >=dev-libs/gobject-introspection-0.9.5 ) |
288 |
|
289 |
@@ -80,13 +80,6 @@ src_prepare() { |
290 |
# XXX: Fails to apply |
291 |
#epatch "${FILESDIR}/${PN}-1.2.5-tests-build.patch" |
292 |
|
293 |
- # FIXME: mimehandling test fails, so disable it for now |
294 |
- # assertion failed (mime_type == "audio/x-vorbis+ogg") |
295 |
- epatch "${FILESDIR}/${PN}-1.5.2-mimehandling-test.patch" |
296 |
- |
297 |
- # Upstream patch to fix deprecation failures with glib-2.29.x and gtk+-3.1.x |
298 |
- epatch "${FILESDIR}/${P}-deprecations.patch" |
299 |
- |
300 |
# Prevent maintainer mode from being triggered during make |
301 |
AT_M4DIR=Source/autotools eautoreconf |
302 |
} |