1 |
commit: 4cb3edcd961376016decf957f2823fb0c4b323ca |
2 |
Author: Priit Laes <plaes <AT> plaes <DOT> org> |
3 |
AuthorDate: Mon Nov 28 05:33:30 2011 +0000 |
4 |
Commit: Priit Laes <plaes <AT> plaes <DOT> org> |
5 |
CommitDate: Mon Nov 28 05:33:30 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=4cb3edcd |
7 |
|
8 |
net-libs/webkit-gtk: Fix GTK2 build, add back 1.7.1 |
9 |
|
10 |
--- |
11 |
.../files/webkit-gtk-1.7.2-fix-gtk2-build.patch | 13 ++++++++++ |
12 |
....2-r200.ebuild => webkit-gtk-1.7.1-r200.ebuild} | 3 +- |
13 |
....2-r200.ebuild => webkit-gtk-1.7.1-r300.ebuild} | 26 ++++++++++++------- |
14 |
net-libs/webkit-gtk/webkit-gtk-1.7.2-r200.ebuild | 1 + |
15 |
4 files changed, 31 insertions(+), 12 deletions(-) |
16 |
|
17 |
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-1.7.2-fix-gtk2-build.patch b/net-libs/webkit-gtk/files/webkit-gtk-1.7.2-fix-gtk2-build.patch |
18 |
new file mode 100644 |
19 |
index 0000000..77718b4 |
20 |
--- /dev/null |
21 |
+++ b/net-libs/webkit-gtk/files/webkit-gtk-1.7.2-fix-gtk2-build.patch |
22 |
@@ -0,0 +1,13 @@ |
23 |
+diff -ur webkit-1.7.2.orig//Source/WebKit/gtk/tests/testatk.c webkit-1.7.2//Source/WebKit/gtk/tests/testatk.c |
24 |
+--- webkit-1.7.2.orig//Source/WebKit/gtk/tests/testatk.c 2011-11-28 01:06:19.868230689 +0100 |
25 |
++++ webkit-1.7.2//Source/WebKit/gtk/tests/testatk.c 2011-11-28 01:45:56.214331937 +0100 |
26 |
+@@ -1686,7 +1686,9 @@ |
27 |
+ g_test_init(&argc, &argv, 0); |
28 |
+ gtk_disable_setlocale(); |
29 |
+ setlocale(LC_ALL, "C"); |
30 |
++#ifndef GTK_API_VERSION_2 |
31 |
+ gdk_disable_multidevice(); |
32 |
++#endif |
33 |
+ gtk_init(&argc, &argv); |
34 |
+ } |
35 |
+ |
36 |
|
37 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-1.7.2-r200.ebuild b/net-libs/webkit-gtk/webkit-gtk-1.7.1-r200.ebuild |
38 |
similarity index 97% |
39 |
copy from net-libs/webkit-gtk/webkit-gtk-1.7.2-r200.ebuild |
40 |
copy to net-libs/webkit-gtk/webkit-gtk-1.7.1-r200.ebuild |
41 |
index 4d7744b..3506b3c 100644 |
42 |
--- a/net-libs/webkit-gtk/webkit-gtk-1.7.2-r200.ebuild |
43 |
+++ b/net-libs/webkit-gtk/webkit-gtk-1.7.1-r200.ebuild |
44 |
@@ -10,7 +10,7 @@ inherit autotools eutils flag-o-matic eutils python virtualx |
45 |
MY_P="webkit-${PV}" |
46 |
DESCRIPTION="Open source web browser engine" |
47 |
HOMEPAGE="http://www.webkitgtk.org/" |
48 |
-SRC_URI="http://www.webkitgtk.org/${MY_P}.tar.xz" |
49 |
+SRC_URI="http://www.webkitgtk.org/${MY_P}.tar.gz" |
50 |
#SRC_URI="mirror://gentoo/${P}.tar.xz" |
51 |
|
52 |
LICENSE="LGPL-2 LGPL-2.1 BSD" |
53 |
@@ -91,7 +91,6 @@ src_prepare() { |
54 |
|
55 |
# Required for webgl; https://bugs.webkit.org/show_bug.cgi?id=69085 |
56 |
mkdir -p DerivedSources/ANGLE |
57 |
- epatch "${FILESDIR}/${PN}-1.7.2-fix-webgl-build.patch" |
58 |
|
59 |
# Prevent maintainer mode from being triggered during make |
60 |
AT_M4DIR=Source/autotools eautoreconf |
61 |
|
62 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-1.7.2-r200.ebuild b/net-libs/webkit-gtk/webkit-gtk-1.7.1-r300.ebuild |
63 |
similarity index 85% |
64 |
copy from net-libs/webkit-gtk/webkit-gtk-1.7.2-r200.ebuild |
65 |
copy to net-libs/webkit-gtk/webkit-gtk-1.7.1-r300.ebuild |
66 |
index 4d7744b..80fa1b5 100644 |
67 |
--- a/net-libs/webkit-gtk/webkit-gtk-1.7.2-r200.ebuild |
68 |
+++ b/net-libs/webkit-gtk/webkit-gtk-1.7.1-r300.ebuild |
69 |
@@ -1,6 +1,6 @@ |
70 |
# Copyright 1999-2011 Gentoo Foundation |
71 |
# Distributed under the terms of the GNU General Public License v2 |
72 |
-# $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 $ |
73 |
+# $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 $ |
74 |
|
75 |
EAPI="4" |
76 |
|
77 |
@@ -10,20 +10,22 @@ inherit autotools eutils flag-o-matic eutils python virtualx |
78 |
MY_P="webkit-${PV}" |
79 |
DESCRIPTION="Open source web browser engine" |
80 |
HOMEPAGE="http://www.webkitgtk.org/" |
81 |
-SRC_URI="http://www.webkitgtk.org/${MY_P}.tar.xz" |
82 |
+SRC_URI="http://www.webkitgtk.org/${MY_P}.tar.gz" |
83 |
#SRC_URI="mirror://gentoo/${P}.tar.xz" |
84 |
|
85 |
LICENSE="LGPL-2 LGPL-2.1 BSD" |
86 |
-SLOT="2" |
87 |
+SLOT="3" |
88 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd |
89 |
~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos" |
90 |
# geoclue |
91 |
-IUSE="aqua coverage debug +gstreamer +introspection +jit spell webgl" |
92 |
+IUSE="aqua coverage debug doc +gstreamer +introspection +jit spell webgl" |
93 |
# bug 372493 |
94 |
REQUIRED_USE="introspection? ( gstreamer )" |
95 |
|
96 |
# use sqlite, svg by default |
97 |
# dependency on >=x11-libs/gtk+-2.13:2 for gail |
98 |
+# Aqua support in gtk3 is untested |
99 |
+# gtk2 is needed for plugin process support |
100 |
RDEPEND=" |
101 |
dev-libs/libxml2:2 |
102 |
dev-libs/libxslt |
103 |
@@ -31,7 +33,7 @@ RDEPEND=" |
104 |
>=media-libs/libpng-1.4:0 |
105 |
>=x11-libs/cairo-1.10 |
106 |
>=dev-libs/glib-2.27.90:2 |
107 |
- >=x11-libs/gtk+-2.13:2[aqua=,introspection?] |
108 |
+ >=x11-libs/gtk+-3.0:3[aqua=,introspection?] |
109 |
>=dev-libs/icu-3.8.1-r1 |
110 |
>=net-libs/libsoup-2.33.6:2.4[introspection?] |
111 |
dev-db/sqlite:3 |
112 |
@@ -56,6 +58,7 @@ DEPEND="${RDEPEND} |
113 |
dev-util/gperf |
114 |
dev-util/pkgconfig |
115 |
dev-util/gtk-doc-am |
116 |
+ doc? ( >=dev-util/gtk-doc-1.10 ) |
117 |
test? ( x11-themes/hicolor-icon-theme ) |
118 |
" |
119 |
|
120 |
@@ -91,7 +94,9 @@ src_prepare() { |
121 |
|
122 |
# Required for webgl; https://bugs.webkit.org/show_bug.cgi?id=69085 |
123 |
mkdir -p DerivedSources/ANGLE |
124 |
- epatch "${FILESDIR}/${PN}-1.7.2-fix-webgl-build.patch" |
125 |
+ |
126 |
+ # Install docs on "make install" when USE=doc |
127 |
+ epatch "${FILESDIR}/${PN}-1.7.1-install-docs.patch" |
128 |
|
129 |
# Prevent maintainer mode from being triggered during make |
130 |
AT_M4DIR=Source/autotools eautoreconf |
131 |
@@ -110,22 +115,23 @@ src_configure() { |
132 |
local myconf |
133 |
|
134 |
# XXX: Check Web Audio support |
135 |
- # WebKit2 can only be built with gtk3 |
136 |
- # API documentation (gtk-doc) is built in webkit-gtk:3, always disable here |
137 |
+ # XXX: files for generating DerivedSources/WebKit2/* are missing, see |
138 |
+ # https://bugs.webkit.org/show_bug.cgi?id=66527 |
139 |
myconf=" |
140 |
$(use_enable coverage) |
141 |
$(use_enable debug) |
142 |
$(use_enable debug debug-features) |
143 |
+ $(use_enable doc gtk-doc) |
144 |
$(use_enable spell spellcheck) |
145 |
$(use_enable introspection) |
146 |
$(use_enable gstreamer video) |
147 |
$(use_enable jit) |
148 |
$(use_enable webgl) |
149 |
--enable-web-sockets |
150 |
- --with-gtk=2.0 |
151 |
- --disable-gtk-doc |
152 |
+ --with-gtk=3.0 |
153 |
--disable-webkit2 |
154 |
$(use aqua && echo "--with-font-backend=pango --with-target=quartz")" |
155 |
+ # Aqua support in gtk3 is untested |
156 |
|
157 |
econf ${myconf} |
158 |
} |
159 |
|
160 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-1.7.2-r200.ebuild b/net-libs/webkit-gtk/webkit-gtk-1.7.2-r200.ebuild |
161 |
index 4d7744b..cba9d55 100644 |
162 |
--- a/net-libs/webkit-gtk/webkit-gtk-1.7.2-r200.ebuild |
163 |
+++ b/net-libs/webkit-gtk/webkit-gtk-1.7.2-r200.ebuild |
164 |
@@ -92,6 +92,7 @@ src_prepare() { |
165 |
# Required for webgl; https://bugs.webkit.org/show_bug.cgi?id=69085 |
166 |
mkdir -p DerivedSources/ANGLE |
167 |
epatch "${FILESDIR}/${PN}-1.7.2-fix-webgl-build.patch" |
168 |
+ epatch "${FILESDIR}/${P}-fix-gtk2-build.patch" |
169 |
|
170 |
# Prevent maintainer mode from being triggered during make |
171 |
AT_M4DIR=Source/autotools eautoreconf |