1 |
commit: f392c39b16b2e23b9ab7f7749f4f479a0f8f5722 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 6 07:40:34 2016 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 6 07:40:53 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f392c39b |
7 |
|
8 |
Rename geoloc to geolocation USE (#588168), ensure gtk+-3.20 is used to fix theming (https://bugzilla.gnome.org/show_bug.cgi?id=757503). |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
net-libs/webkit-gtk/webkit-gtk-2.4.11-r1.ebuild | 273 ++++++++++++++++++++++++ |
13 |
1 file changed, 273 insertions(+) |
14 |
|
15 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.4.11-r1.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.4.11-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..cb799d5 |
18 |
--- /dev/null |
19 |
+++ b/net-libs/webkit-gtk/webkit-gtk-2.4.11-r1.ebuild |
20 |
@@ -0,0 +1,273 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI="6" |
26 |
+PYTHON_COMPAT=( python2_7 ) |
27 |
+USE_RUBY="ruby20 ruby21 ruby22 ruby23" |
28 |
+ |
29 |
+inherit autotools check-reqs flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs versionator virtualx |
30 |
+ |
31 |
+MY_P="webkitgtk-${PV}" |
32 |
+DESCRIPTION="Open source web browser engine" |
33 |
+HOMEPAGE="http://www.webkitgtk.org/" |
34 |
+SRC_URI="http://www.webkitgtk.org/releases/${MY_P}.tar.xz" |
35 |
+ |
36 |
+LICENSE="LGPL-2+ BSD" |
37 |
+SLOT="3/25" # soname version of libwebkit2gtk-3.0 |
38 |
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos" |
39 |
+ |
40 |
+IUSE="aqua coverage debug +egl +geolocation gles2 gnome-keyring +gstreamer +introspection +jit +opengl spell wayland +webgl +X" |
41 |
+# bugs 372493, 416331 |
42 |
+REQUIRED_USE=" |
43 |
+ geolocation? ( introspection ) |
44 |
+ gles2? ( egl ) |
45 |
+ introspection? ( gstreamer ) |
46 |
+ webgl? ( ^^ ( gles2 opengl ) ) |
47 |
+ !webgl? ( ?? ( gles2 opengl ) ) |
48 |
+ || ( aqua wayland X ) |
49 |
+" |
50 |
+ |
51 |
+# use sqlite, svg by default |
52 |
+# Aqua support in gtk3 is untested |
53 |
+# gtk2 is needed for plugin process support |
54 |
+# gtk3-3.10 required for wayland |
55 |
+# gtk3-3.20 is needed to ensure we get fixed theming: |
56 |
+# https://bugzilla.gnome.org/show_bug.cgi?id=757503 |
57 |
+RDEPEND=" |
58 |
+ dev-db/sqlite:3= |
59 |
+ >=dev-libs/glib-2.36:2 |
60 |
+ >=dev-libs/icu-3.8.1-r1:= |
61 |
+ >=dev-libs/libxml2-2.6:2 |
62 |
+ >=dev-libs/libxslt-1.1.7 |
63 |
+ >=media-libs/fontconfig-2.5:1.0 |
64 |
+ >=media-libs/freetype-2.4.2:2 |
65 |
+ >=media-libs/harfbuzz-0.9.7:=[icu(+)] |
66 |
+ >=media-libs/libpng-1.4:0= |
67 |
+ media-libs/libwebp:= |
68 |
+ >=net-libs/libsoup-2.42:2.4[introspection?] |
69 |
+ virtual/jpeg:0= |
70 |
+ >=x11-libs/cairo-1.10:=[X?] |
71 |
+ >=x11-libs/gtk+-3.20.0:3[X?,aqua?,introspection?] |
72 |
+ >=x11-libs/pango-1.30.0 |
73 |
+ |
74 |
+ >=x11-libs/gtk+-2.24.10:2 |
75 |
+ |
76 |
+ egl? ( media-libs/mesa[egl] ) |
77 |
+ geolocation? ( >=app-misc/geoclue-2.1.5:2.0 ) |
78 |
+ gles2? ( media-libs/mesa[gles2] ) |
79 |
+ gnome-keyring? ( app-crypt/libsecret ) |
80 |
+ gstreamer? ( |
81 |
+ >=media-libs/gstreamer-1.2:1.0 |
82 |
+ >=media-libs/gst-plugins-base-1.2:1.0 ) |
83 |
+ introspection? ( >=dev-libs/gobject-introspection-1.32.0:= ) |
84 |
+ opengl? ( virtual/opengl ) |
85 |
+ spell? ( >=app-text/enchant-0.22:= ) |
86 |
+ wayland? ( >=x11-libs/gtk+-3.10:3[wayland] ) |
87 |
+ webgl? ( |
88 |
+ x11-libs/cairo[opengl] |
89 |
+ x11-libs/libXcomposite |
90 |
+ x11-libs/libXdamage ) |
91 |
+ X? ( |
92 |
+ x11-libs/libX11 |
93 |
+ x11-libs/libXrender |
94 |
+ x11-libs/libXt ) |
95 |
+" |
96 |
+ |
97 |
+# paxctl needed for bug #407085 |
98 |
+# Need real bison, not yacc |
99 |
+DEPEND="${RDEPEND} |
100 |
+ ${PYTHON_DEPS} |
101 |
+ ${RUBY_DEPS} |
102 |
+ >=dev-lang/perl-5.10 |
103 |
+ >=app-accessibility/at-spi2-core-2.5.3 |
104 |
+ >=dev-libs/atk-2.8.0 |
105 |
+ >=dev-util/gtk-doc-am-1.10 |
106 |
+ >=dev-util/gperf-3.0.1 |
107 |
+ >=sys-devel/bison-2.4.3 |
108 |
+ >=sys-devel/flex-2.5.34 |
109 |
+ || ( >=sys-devel/gcc-4.7 >=sys-devel/clang-3.3 ) |
110 |
+ sys-devel/gettext |
111 |
+ >=sys-devel/make-3.82-r4 |
112 |
+ virtual/pkgconfig |
113 |
+ |
114 |
+ geolocation? ( dev-util/gdbus-codegen ) |
115 |
+ introspection? ( jit? ( sys-apps/paxctl ) ) |
116 |
+ test? ( |
117 |
+ dev-lang/python:2.7 |
118 |
+ dev-python/pygobject:3[python_targets_python2_7] |
119 |
+ x11-themes/hicolor-icon-theme |
120 |
+ jit? ( sys-apps/paxctl ) ) |
121 |
+" |
122 |
+ |
123 |
+S="${WORKDIR}/${MY_P}" |
124 |
+ |
125 |
+CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307 |
126 |
+ |
127 |
+pkg_pretend() { |
128 |
+ if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then |
129 |
+ einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS" |
130 |
+ check-reqs_pkg_pretend |
131 |
+ fi |
132 |
+ |
133 |
+ if [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11; then |
134 |
+ die "You need at least GCC 4.7.x or Clang >= 3.3 for C++11-specific compiler flags" |
135 |
+ fi |
136 |
+} |
137 |
+ |
138 |
+pkg_setup() { |
139 |
+ # Check whether any of the debugging flags is enabled |
140 |
+ if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then |
141 |
+ if is-flagq "-ggdb" && [[ ${WEBKIT_GTK_GGDB} != "yes" ]]; then |
142 |
+ replace-flags -ggdb -g |
143 |
+ ewarn "Replacing \"-ggdb\" with \"-g\" in your CFLAGS." |
144 |
+ ewarn "Building ${PN} with \"-ggdb\" produces binaries which are too" |
145 |
+ ewarn "large for current binutils releases (bug #432784) and has very" |
146 |
+ ewarn "high temporary build space and memory requirements." |
147 |
+ ewarn "If you really want to build ${PN} with \"-ggdb\", add" |
148 |
+ ewarn "WEBKIT_GTK_GGDB=yes" |
149 |
+ ewarn "to your make.conf file." |
150 |
+ fi |
151 |
+ einfo "You need to have at least 18GB of temporary build space available" |
152 |
+ einfo "to build ${PN} with debugging CFLAGS. Note that it might still" |
153 |
+ einfo "not be enough, as the total space requirements depend on the flags" |
154 |
+ einfo "(-ggdb vs -g1) and enabled features." |
155 |
+ check-reqs_pkg_setup |
156 |
+ fi |
157 |
+ |
158 |
+ [[ ${MERGE_TYPE} = "binary" ]] || python-any-r1_pkg_setup |
159 |
+} |
160 |
+ |
161 |
+src_prepare() { |
162 |
+ # intermediate MacPorts hack while upstream bug is not fixed properly |
163 |
+ # https://bugs.webkit.org/show_bug.cgi?id=28727 |
164 |
+ use aqua && eapply "${FILESDIR}"/${PN}-1.6.1-darwin-quartz.patch |
165 |
+ |
166 |
+ # Leave optimization level to user CFLAGS |
167 |
+ # FORTIFY_SOURCE is enabled by default in Gentoo |
168 |
+ sed -e 's/-O[012]//g' \ |
169 |
+ -e 's/-D_FORTIFY_SOURCE=2//g' \ |
170 |
+ -i Source/autotools/SetupCompilerFlags.m4 || die |
171 |
+ |
172 |
+ # bug #459978, upstream bug #113397 |
173 |
+ eapply "${FILESDIR}"/${PN}-1.11.90-gtk-docize-fix.patch |
174 |
+ |
175 |
+ # Debian patches to fix support for some arches |
176 |
+ # https://bugs.webkit.org/show_bug.cgi?id=129540 |
177 |
+ eapply "${FILESDIR}"/${PN}-2.2.5-{hppa,ia64}-platform.patch |
178 |
+ # https://bugs.webkit.org/show_bug.cgi?id=129542 |
179 |
+ eapply "${FILESDIR}"/${PN}-2.4.1-ia64-malloc.patch |
180 |
+ |
181 |
+ # Fix building on ppc (from OpenBSD, only needed on slot 3) |
182 |
+ # https://bugs.webkit.org/show_bug.cgi?id=130837 |
183 |
+ eapply "${FILESDIR}"/${PN}-2.4.4-atomic-ppc.patch |
184 |
+ |
185 |
+ # Fix build with recent libjpeg, bug #481688 |
186 |
+ # https://bugs.webkit.org/show_bug.cgi?id=122412 |
187 |
+ eapply "${FILESDIR}"/${PN}-2.4.4-jpeg-9a.patch |
188 |
+ |
189 |
+ # Fix building with --disable-webgl, bug #500966 |
190 |
+ # https://bugs.webkit.org/show_bug.cgi?id=131267 |
191 |
+ eapply "${FILESDIR}"/${PN}-2.4.7-disable-webgl.patch |
192 |
+ |
193 |
+ # https://bugs.webkit.org/show_bug.cgi?id=156510 |
194 |
+ eapply "${FILESDIR}"/${PN}-2.4.11-video-web-audio.patch |
195 |
+ |
196 |
+ AT_M4DIR=Source/autotools eautoreconf |
197 |
+ |
198 |
+ gnome2_src_prepare |
199 |
+} |
200 |
+ |
201 |
+src_configure() { |
202 |
+ # Respect CC, otherwise fails on prefix #395875 |
203 |
+ tc-export CC |
204 |
+ |
205 |
+ # Arches without JIT support also need this to really disable it in all places |
206 |
+ use jit || append-cppflags -DENABLE_JIT=0 -DENABLE_YARR_JIT=0 -DENABLE_ASSEMBLER=0 |
207 |
+ |
208 |
+ # It does not compile on alpha without this in LDFLAGS |
209 |
+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761 |
210 |
+ use alpha && append-ldflags "-Wl,--no-relax" |
211 |
+ |
212 |
+ # Sigbuses on SPARC with mcpu and co., bug #??? |
213 |
+ use sparc && filter-flags "-mvis" |
214 |
+ |
215 |
+ # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634 |
216 |
+ use ppc64 && append-flags "-mminimal-toc" |
217 |
+ |
218 |
+ # Try to use less memory, bug #469942 (see Fedora .spec for reference) |
219 |
+ # --no-keep-memory doesn't work on ia64, bug #502492 |
220 |
+ if ! use ia64; then |
221 |
+ append-ldflags "-Wl,--no-keep-memory" |
222 |
+ fi |
223 |
+ if ! $(tc-getLD) --version | grep -q "GNU gold"; then |
224 |
+ append-ldflags "-Wl,--reduce-memory-overheads" |
225 |
+ fi |
226 |
+ |
227 |
+ local ruby_interpreter="" |
228 |
+ |
229 |
+ if has_version "virtual/rubygems[ruby_targets_ruby23]"; then |
230 |
+ ruby_interpreter="RUBY=$(type -P ruby23)" |
231 |
+ elif has_version "virtual/rubygems[ruby_targets_ruby22]"; then |
232 |
+ ruby_interpreter="RUBY=$(type -P ruby22)" |
233 |
+ elif has_version "virtual/rubygems[ruby_targets_ruby21]"; then |
234 |
+ ruby_interpreter="RUBY=$(type -P ruby21)" |
235 |
+ else |
236 |
+ ruby_interpreter="RUBY=$(type -P ruby20)" |
237 |
+ fi |
238 |
+ |
239 |
+ # TODO: Check Web Audio support |
240 |
+ # should somehow let user select between them? |
241 |
+ # |
242 |
+ # * Aqua support in gtk3 is untested |
243 |
+ # * dependency-tracking is required so parallel builds won't fail |
244 |
+ gnome2_src_configure \ |
245 |
+ $(use_enable aqua quartz-target) \ |
246 |
+ $(use_enable coverage) \ |
247 |
+ $(use_enable debug) \ |
248 |
+ $(use_enable egl) \ |
249 |
+ $(use_enable geolocation) \ |
250 |
+ $(use_enable gles2) \ |
251 |
+ $(use_enable gnome-keyring credential_storage) \ |
252 |
+ $(use_enable gstreamer video) \ |
253 |
+ $(use_enable gstreamer web-audio) \ |
254 |
+ $(use_enable introspection) \ |
255 |
+ $(use_enable jit) \ |
256 |
+ $(use_enable opengl glx) \ |
257 |
+ $(use_enable spell spellcheck) \ |
258 |
+ $(use_enable webgl) \ |
259 |
+ $(use_enable webgl accelerated-compositing) \ |
260 |
+ $(use_enable wayland wayland-target) \ |
261 |
+ $(use_enable X x11-target) \ |
262 |
+ --with-gtk=3.0 \ |
263 |
+ --enable-dependency-tracking \ |
264 |
+ --disable-gtk-doc \ |
265 |
+ ${ruby_interpreter} |
266 |
+} |
267 |
+ |
268 |
+src_test() { |
269 |
+ # Tests expect an out-of-source build in WebKitBuild |
270 |
+ ln -s . WebKitBuild || die "ln failed" |
271 |
+ |
272 |
+ # Prevents test failures on PaX systems |
273 |
+ use jit && pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test* |
274 |
+ |
275 |
+ # Tests need virtualx, bug #294691, bug #310695 |
276 |
+ # Parallel tests sometimes fail |
277 |
+ virtx emake -j1 check |
278 |
+} |
279 |
+ |
280 |
+src_install() { |
281 |
+ DOCS="ChangeLog NEWS" # other ChangeLog files handled by src_install |
282 |
+ |
283 |
+ # https://bugs.webkit.org/show_bug.cgi?id=129242 |
284 |
+ MAKEOPTS="${MAKEOPTS} -j1" gnome2_src_install |
285 |
+ |
286 |
+ newdoc Source/WebKit/gtk/ChangeLog ChangeLog.gtk |
287 |
+ newdoc Source/JavaScriptCore/ChangeLog ChangeLog.JavaScriptCore |
288 |
+ newdoc Source/WebCore/ChangeLog ChangeLog.WebCore |
289 |
+ |
290 |
+ # Prevents crashes on PaX systems, bug #522808 |
291 |
+ use jit && pax-mark m "${ED}usr/bin/jsc-3" "${ED}usr/libexec/WebKitWebProcess" |
292 |
+ pax-mark m "${ED}usr/libexec/WebKitPluginProcess" |
293 |
+} |