1 |
commit: 00e6f632d2cb3eb1c55b8f80052cbf138d4df40c |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 29 10:02:12 2016 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 29 10:02:12 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00e6f632 |
7 |
|
8 |
net-libs/webkit-gtk: Drop old |
9 |
|
10 |
Package-Manager: portage-2.3.0_rc1 |
11 |
|
12 |
net-libs/webkit-gtk/Manifest | 2 - |
13 |
net-libs/webkit-gtk/webkit-gtk-2.10.7.ebuild | 263 -------------------- |
14 |
net-libs/webkit-gtk/webkit-gtk-2.4.9-r200.ebuild | 285 ---------------------- |
15 |
net-libs/webkit-gtk/webkit-gtk-2.4.9.ebuild | 296 ----------------------- |
16 |
4 files changed, 846 deletions(-) |
17 |
|
18 |
diff --git a/net-libs/webkit-gtk/Manifest b/net-libs/webkit-gtk/Manifest |
19 |
index 5e5c220..460811e 100644 |
20 |
--- a/net-libs/webkit-gtk/Manifest |
21 |
+++ b/net-libs/webkit-gtk/Manifest |
22 |
@@ -1,6 +1,4 @@ |
23 |
-DIST webkitgtk-2.10.7.tar.xz 10988396 SHA256 990d62c82ed6dede31a6ff0a82d847f16b812842ff3e1093d17113627652864e SHA512 f0d7b303236910d18568ab1e0a522915a70e9d3658537b32ea2c6a42b8b3ece034a292490f7882760338f2afc56468fd7a8ad8659b7afaf87906220a5c815b5b WHIRLPOOL 7cbe8c42e9c245709eee19a9a01f2a4b238596d8119e3420ca750abb3518e1333ff99a596e9f09d511773a964bafed5baa91efca7b711ddc1c91cb601c520328 |
24 |
DIST webkitgtk-2.10.9.tar.xz 10992980 SHA256 bbb18d741780b1b7fa284beb9a97361ac57cda2e42bad2ae2fcdbf797919e969 SHA512 a8eda5381f227098e208a81c093f0b83f4996378e8f54ddfbe5c164254d7e1ff4a260c827e2521c748ca02bc5a691e8bbd0f59da0718cfe18812c3b257ec5228 WHIRLPOOL c6f36d4195bbd9f97358700ac446ad65d5a426ba7f0913d69163b2f37c1aedc623bdea3650f2ad7da009f1d234c9d54a163e9155794d8218342332b82ead76df |
25 |
DIST webkitgtk-2.4.10.tar.xz 9867504 SHA256 33fda4b20d7fec2d6e9399ba03ef3f6d2a733c628bd77d397880c44e4bf7c614 SHA512 09cff437dadfa6ba1b90674ef4d9db558710247559bb8c2894b54a43504428b99465aa5d35bf3323c22827b67711e8dc031d4b63361eb9906c96e2bfd8ee11a8 WHIRLPOOL af08ef45249313915003a150a56228b1edc25f870c149d4ece5783da302d307b40046a05bf3c157807465f248d083ebe549c48d13eefdf820eb51c2efe0f5f98 |
26 |
DIST webkitgtk-2.4.11.tar.xz 9869100 SHA256 588aea051bfbacced27fdfe0335a957dca839ebe36aa548df39c7bbafdb65bf7 SHA512 2e2cf01a52b8593765a0a3c2d7f0ad306121660019eb402226bd2826c7d4666dab4e91ca6ccbd29abe0ad3993549f256ed1ab88de22e9c8516d5f40a4edd6bfb WHIRLPOOL de86c4abfb22aacbf62163d0398158931c9cf6ab628547d3b30e613f0505d67c85c3200f7db96500e7c2b35f640cdaa7f501346fc13f492c9439dff4056849a3 |
27 |
-DIST webkitgtk-2.4.9.tar.xz 9840740 SHA256 afdf29e7828816cad0be2604cf19421e96d96bf493987328ffc8813bb20ac564 SHA512 5dfe5c31e0fcbab5e468a18e08918a439b214dcd620386fa32d35e9110e479b552a4b0b88a1bb8574b34445d5cc5219be349feded32fc1d2791a6c6279d61f98 WHIRLPOOL 26141cd12878bc8136ecffc1636fdcb037f342e5c27c8c557117564af9d1673af84c8c4fd10d3fdbe890bdf183791b18a210f57de9750422959a45c60390076c |
28 |
DIST webkitgtk-2.8.5.tar.xz 10455256 SHA256 3d1f0c534935f43fd74df90f2648fcee672d60f1f57a30fa557a77891ae04d20 SHA512 b87a4149aa133824c7855d562a872fef9067d8c7a78026b9ec29d9eb0798a4da827aac4a1ec4eb1a117f7ae50b14c415c6f04ba4ddee851cf55e2dc503c3eddb WHIRLPOOL 1bb1c542d73db31985d4afc6a9ab59730118e57f99aba1a8e81820880bf832386f77aee70f4a50cece180fdb905b7aa5a0f08b91a5eb64a77c3ad5dd82792ead |
29 |
|
30 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.10.7.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.10.7.ebuild |
31 |
deleted file mode 100644 |
32 |
index f0e8598..0000000 |
33 |
--- a/net-libs/webkit-gtk/webkit-gtk-2.10.7.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,263 +0,0 @@ |
36 |
-# Copyright 1999-2015 Gentoo Foundation |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
-# $Id$ |
39 |
- |
40 |
-EAPI="5" |
41 |
-CMAKE_MAKEFILE_GENERATOR="ninja" |
42 |
-GCONF_DEBUG="no" |
43 |
-PYTHON_COMPAT=( python2_7 ) |
44 |
-USE_RUBY="ruby20 ruby21 ruby22 ruby23" |
45 |
- |
46 |
-inherit check-reqs cmake-utils eutils flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs versionator virtualx |
47 |
- |
48 |
-MY_P="webkitgtk-${PV}" |
49 |
-DESCRIPTION="Open source web browser engine" |
50 |
-HOMEPAGE="http://www.webkitgtk.org/" |
51 |
-SRC_URI="http://www.webkitgtk.org/releases/${MY_P}.tar.xz" |
52 |
- |
53 |
-LICENSE="LGPL-2+ BSD" |
54 |
-SLOT="4/37" # soname version of libwebkit2gtk-4.0 |
55 |
-KEYWORDS="amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos" |
56 |
- |
57 |
-IUSE="aqua coverage doc +egl +geoloc gles2 gnome-keyring +gstreamer +introspection +jit nsplugin +opengl spell wayland +webgl X" |
58 |
-# seccomp |
59 |
- |
60 |
-REQUIRED_USE=" |
61 |
- geoloc? ( introspection ) |
62 |
- gles2? ( egl ) |
63 |
- introspection? ( gstreamer ) |
64 |
- nsplugin? ( X ) |
65 |
- webgl? ( ^^ ( gles2 opengl ) ) |
66 |
- !webgl? ( ?? ( gles2 opengl ) ) |
67 |
- || ( aqua wayland X ) |
68 |
-" |
69 |
- |
70 |
-# Tests fail to link for inexplicable reasons |
71 |
-# https://bugs.webkit.org/show_bug.cgi?id=148210 |
72 |
-RESTRICT="test" |
73 |
- |
74 |
-# use sqlite, svg by default |
75 |
-# Aqua support in gtk3 is untested |
76 |
-# Dependencies found at Source/cmake/OptionsGTK.cmake |
77 |
-RDEPEND=" |
78 |
- dev-db/sqlite:3= |
79 |
- >=dev-libs/glib-2.36:2 |
80 |
- >=dev-libs/icu-3.8.1-r1:= |
81 |
- >=dev-libs/libxml2-2.8:2 |
82 |
- >=dev-libs/libxslt-1.1.7 |
83 |
- >=media-libs/fontconfig-2.8:1.0 |
84 |
- >=media-libs/freetype-2.4.2:2 |
85 |
- >=media-libs/harfbuzz-0.9.18:=[icu(+)] |
86 |
- >=media-libs/libpng-1.4:0= |
87 |
- media-libs/libwebp:= |
88 |
- >=net-libs/gnutls-3 |
89 |
- >=net-libs/libsoup-2.42:2.4[introspection?] |
90 |
- virtual/jpeg:0= |
91 |
- >=x11-libs/cairo-1.10.2:= |
92 |
- >=x11-libs/gtk+-3.14:3[introspection?] |
93 |
- x11-libs/libnotify |
94 |
- >=x11-libs/pango-1.30.0 |
95 |
- |
96 |
- aqua? ( >=x11-libs/gtk+-3.14:3[aqua] ) |
97 |
- egl? ( media-libs/mesa[egl] ) |
98 |
- geoloc? ( >=app-misc/geoclue-2.1.5:2.0 ) |
99 |
- gles2? ( media-libs/mesa[gles2] ) |
100 |
- gnome-keyring? ( app-crypt/libsecret ) |
101 |
- gstreamer? ( |
102 |
- >=media-libs/gstreamer-1.2:1.0 |
103 |
- >=media-libs/gst-plugins-base-1.2:1.0 |
104 |
- >=media-libs/gst-plugins-bad-1.5.0:1.0[opengl?] ) |
105 |
- introspection? ( >=dev-libs/gobject-introspection-1.32.0:= ) |
106 |
- nsplugin? ( >=x11-libs/gtk+-2.24.10:2 ) |
107 |
- opengl? ( virtual/opengl |
108 |
- x11-libs/cairo[opengl] ) |
109 |
- spell? ( >=app-text/enchant-0.22:= ) |
110 |
- wayland? ( >=x11-libs/gtk+-3.14:3[wayland] ) |
111 |
- webgl? ( |
112 |
- x11-libs/cairo[opengl] |
113 |
- x11-libs/libXcomposite |
114 |
- x11-libs/libXdamage ) |
115 |
- X? ( |
116 |
- x11-libs/cairo[X] |
117 |
- >=x11-libs/gtk+-3.14:3[X] |
118 |
- x11-libs/libX11 |
119 |
- x11-libs/libXcomposite |
120 |
- x11-libs/libXrender |
121 |
- x11-libs/libXt ) |
122 |
-" |
123 |
-# Control knob is private and set to off |
124 |
-# seccomp? ( sys-libs/libseccomp ) |
125 |
- |
126 |
-# paxctl needed for bug #407085 |
127 |
-# Need real bison, not yacc |
128 |
-DEPEND="${RDEPEND} |
129 |
- ${PYTHON_DEPS} |
130 |
- ${RUBY_DEPS} |
131 |
- >=dev-lang/perl-5.10 |
132 |
- >=app-accessibility/at-spi2-core-2.5.3 |
133 |
- >=dev-libs/atk-2.8.0 |
134 |
- dev-libs/hyphen |
135 |
- >=dev-util/gtk-doc-am-1.10 |
136 |
- >=dev-util/gperf-3.0.1 |
137 |
- >=sys-devel/bison-2.4.3 |
138 |
- >=sys-devel/flex-2.5.34 |
139 |
- || ( >=sys-devel/gcc-4.9 >=sys-devel/clang-3.3 ) |
140 |
- sys-devel/gettext |
141 |
- virtual/pkgconfig |
142 |
- |
143 |
- doc? ( >=dev-util/gtk-doc-1.10 ) |
144 |
- geoloc? ( dev-util/gdbus-codegen ) |
145 |
- introspection? ( jit? ( sys-apps/paxctl ) ) |
146 |
- test? ( |
147 |
- dev-lang/python:2.7 |
148 |
- dev-python/pygobject:3[python_targets_python2_7] |
149 |
- x11-themes/hicolor-icon-theme |
150 |
- jit? ( sys-apps/paxctl ) ) |
151 |
-" |
152 |
- |
153 |
-S="${WORKDIR}/${MY_P}" |
154 |
- |
155 |
-CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307 |
156 |
- |
157 |
-pkg_pretend() { |
158 |
- if [[ ${MERGE_TYPE} != "binary" ]] ; then |
159 |
- if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
160 |
- einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS" |
161 |
- check-reqs_pkg_pretend |
162 |
- fi |
163 |
- |
164 |
- if ! test-flag-CXX -std=c++11 ; then |
165 |
- die "You need at least GCC 4.9.x or Clang >= 3.3 for C++11-specific compiler flags" |
166 |
- fi |
167 |
- |
168 |
- if [[ $(tc-getCXX) == *g++* && $(gcc-version) < 4.9 ]] ; then |
169 |
- die 'The active compiler needs to be gcc 4.9 (or newer)' |
170 |
- fi |
171 |
- fi |
172 |
-} |
173 |
- |
174 |
-pkg_setup() { |
175 |
- if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then |
176 |
- check-reqs_pkg_setup |
177 |
- fi |
178 |
- |
179 |
- [[ ${MERGE_TYPE} = "binary" ]] || python-any-r1_pkg_setup |
180 |
-} |
181 |
- |
182 |
-src_prepare() { |
183 |
- # https://bugs.gentoo.org/show_bug.cgi?id=555504 |
184 |
- epatch "${FILESDIR}"/${PN}-2.8.5-fix-ia64-build.patch |
185 |
- |
186 |
- # https://bugs.gentoo.org/show_bug.cgi?id=564352 |
187 |
- epatch "${FILESDIR}"/${PN}-2.8.5-fix-alpha-build.patch |
188 |
- |
189 |
- # https://bugs.webkit.org/show_bug.cgi?id=148379 |
190 |
- epatch "${FILESDIR}"/${PN}-2.8.5-webkit2gtkinjectedbundle-j1.patch |
191 |
- |
192 |
- gnome2_src_prepare |
193 |
-} |
194 |
- |
195 |
-src_configure() { |
196 |
- # Respect CC, otherwise fails on prefix #395875 |
197 |
- tc-export CC |
198 |
- |
199 |
- # Arches without JIT support also need this to really disable it in all places |
200 |
- use jit || append-cppflags -DENABLE_JIT=0 -DENABLE_YARR_JIT=0 -DENABLE_ASSEMBLER=0 |
201 |
- |
202 |
- # It does not compile on alpha without this in LDFLAGS |
203 |
- # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761 |
204 |
- use alpha && append-ldflags "-Wl,--no-relax" |
205 |
- |
206 |
- # ld segfaults on ia64 with LDFLAGS --as-needed, bug #555504 |
207 |
- use ia64 && append-ldflags "-Wl,--no-as-needed" |
208 |
- |
209 |
- # Sigbuses on SPARC with mcpu and co., bug #??? |
210 |
- use sparc && filter-flags "-mvis" |
211 |
- |
212 |
- # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634 |
213 |
- use ppc64 && append-flags "-mminimal-toc" |
214 |
- |
215 |
- # Try to use less memory, bug #469942 (see Fedora .spec for reference) |
216 |
- # --no-keep-memory doesn't work on ia64, bug #502492 |
217 |
- if ! use ia64; then |
218 |
- append-ldflags "-Wl,--no-keep-memory" |
219 |
- fi |
220 |
- if ! tc-ld-is-gold ; then |
221 |
- append-ldflags "-Wl,--reduce-memory-overheads" |
222 |
- fi |
223 |
- |
224 |
- # older glibc needs this for INTPTR_MAX, bug #533976 |
225 |
- if has_version "<sys-libs/glibc-2.18" ; then |
226 |
- append-cppflags "-D__STDC_LIMIT_MACROS" |
227 |
- fi |
228 |
- |
229 |
- # Multiple rendering bugs on youtube, github, etc without this, bug #547224 |
230 |
- append-flags $(test-flags -fno-strict-aliasing) |
231 |
- |
232 |
- local ruby_interpreter="" |
233 |
- |
234 |
- if has_version "virtual/rubygems[ruby_targets_ruby23]"; then |
235 |
- ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby23)" |
236 |
- elif has_version "virtual/rubygems[ruby_targets_ruby22]"; then |
237 |
- ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby22)" |
238 |
- elif has_version "virtual/rubygems[ruby_targets_ruby21]"; then |
239 |
- ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby21)" |
240 |
- else |
241 |
- ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ruby20)" |
242 |
- fi |
243 |
- |
244 |
- # TODO: Check Web Audio support |
245 |
- # should somehow let user select between them? |
246 |
- # |
247 |
- # FTL_JIT requires llvm |
248 |
- local mycmakeargs=( |
249 |
- $(cmake-utils_use_enable aqua QUARTZ_TARGET) |
250 |
- $(cmake-utils_use_enable test API_TESTS) |
251 |
- $(cmake-utils_use_enable doc GTKDOC) |
252 |
- $(cmake-utils_use_enable geoloc GEOLOCATION) |
253 |
- $(cmake-utils_use_find_package gles2 OpenGLES2) |
254 |
- $(cmake-utils_use_enable gles2 GLES2) |
255 |
- $(cmake-utils_use_enable gnome-keyring CREDENTIAL_STORAGE) |
256 |
- $(cmake-utils_use_enable gstreamer VIDEO) |
257 |
- $(cmake-utils_use_enable gstreamer WEB_AUDIO) |
258 |
- $(cmake-utils_use_enable introspection) |
259 |
- $(cmake-utils_use_enable jit) |
260 |
- $(cmake-utils_use_enable nsplugin PLUGIN_PROCESS_GTK2) |
261 |
- $(cmake-utils_use_enable spell SPELLCHECK SPELLCHECK) |
262 |
- $(cmake-utils_use_enable wayland WAYLAND_TARGET) |
263 |
- $(cmake-utils_use_enable webgl WEBGL) |
264 |
- $(cmake-utils_use_find_package egl EGL) |
265 |
- $(cmake-utils_use_find_package opengl OpenGL) |
266 |
- $(cmake-utils_use_enable X X11_TARGET) |
267 |
- -DCMAKE_BUILD_TYPE=Release |
268 |
- -DPORT=GTK |
269 |
- ${ruby_interpreter} |
270 |
- ) |
271 |
- if tc-ld-is-gold ; then |
272 |
- mycmakeargs+=( -DUSE_LD_GOLD=ON ) |
273 |
- else |
274 |
- mycmakeargs+=( -DUSE_LD_GOLD=OFF ) |
275 |
- fi |
276 |
- |
277 |
- cmake-utils_src_configure |
278 |
-} |
279 |
- |
280 |
-src_compile() { |
281 |
- cmake-utils_src_compile |
282 |
-} |
283 |
- |
284 |
-src_test() { |
285 |
- # Prevents test failures on PaX systems |
286 |
- use jit && pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test* |
287 |
- |
288 |
- cmake-utils_src_test |
289 |
-} |
290 |
- |
291 |
-src_install() { |
292 |
- cmake-utils_src_install |
293 |
- |
294 |
- # Prevents crashes on PaX systems, bug #522808 |
295 |
- use jit && pax-mark m "${ED}usr/bin/jsc" "${ED}usr/libexec/webkit2gtk-4.0/WebKitWebProcess" |
296 |
- pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess" |
297 |
- use nsplugin && pax-mark m "${ED}usr/libexec/webkit2gtk-4.0/WebKitPluginProcess"2 |
298 |
-} |
299 |
|
300 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.4.9-r200.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.4.9-r200.ebuild |
301 |
deleted file mode 100644 |
302 |
index 3678472..0000000 |
303 |
--- a/net-libs/webkit-gtk/webkit-gtk-2.4.9-r200.ebuild |
304 |
+++ /dev/null |
305 |
@@ -1,285 +0,0 @@ |
306 |
-# Copyright 1999-2016 Gentoo Foundation |
307 |
-# Distributed under the terms of the GNU General Public License v2 |
308 |
-# $Id$ |
309 |
- |
310 |
-EAPI="5" |
311 |
-GCONF_DEBUG="no" |
312 |
-PYTHON_COMPAT=( python2_7 ) |
313 |
- |
314 |
-inherit autotools check-reqs eutils flag-o-matic gnome2 pax-utils python-any-r1 toolchain-funcs versionator virtualx |
315 |
- |
316 |
-MY_P="webkitgtk-${PV}" |
317 |
-DESCRIPTION="Open source web browser engine" |
318 |
-HOMEPAGE="http://www.webkitgtk.org/" |
319 |
-SRC_URI="http://www.webkitgtk.org/releases/${MY_P}.tar.xz" |
320 |
- |
321 |
-LICENSE="LGPL-2+ BSD" |
322 |
-SLOT="2" # no usable subslot |
323 |
-KEYWORDS="~alpha amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos" |
324 |
- |
325 |
-IUSE="aqua coverage debug +egl +geoloc gles2 +gstreamer +introspection +jit libsecret +opengl spell +webgl +X" |
326 |
-# bugs 372493, 416331 |
327 |
-REQUIRED_USE=" |
328 |
- geoloc? ( introspection ) |
329 |
- gles2? ( egl ) |
330 |
- introspection? ( gstreamer ) |
331 |
- webgl? ( ^^ ( gles2 opengl ) ) |
332 |
- !webgl? ( ?? ( gles2 opengl ) ) |
333 |
- || ( aqua X ) |
334 |
-" |
335 |
- |
336 |
-# use sqlite, svg by default |
337 |
-RDEPEND=" |
338 |
- dev-db/sqlite:3= |
339 |
- >=dev-libs/glib-2.36:2 |
340 |
- >=dev-libs/icu-3.8.1-r1:= |
341 |
- >=dev-libs/libxml2-2.6:2 |
342 |
- >=dev-libs/libxslt-1.1.7 |
343 |
- >=media-libs/fontconfig-2.5:1.0 |
344 |
- >=media-libs/freetype-2.4.2:2 |
345 |
- >=media-libs/harfbuzz-0.9.7:=[icu(+)] |
346 |
- >=media-libs/libpng-1.4:0= |
347 |
- media-libs/libwebp:= |
348 |
- >=net-libs/libsoup-2.42:2.4[introspection?] |
349 |
- virtual/jpeg:0= |
350 |
- >=x11-libs/cairo-1.10:=[X] |
351 |
- >=x11-libs/gtk+-2.24.10:2[aqua?,introspection?] |
352 |
- x11-libs/libXrender |
353 |
- x11-libs/libXt |
354 |
- >=x11-libs/pango-1.30.0 |
355 |
- |
356 |
- egl? ( media-libs/mesa[egl] ) |
357 |
- geoloc? ( >=app-misc/geoclue-2.1.5:2.0 ) |
358 |
- gles2? ( media-libs/mesa[gles2] ) |
359 |
- gstreamer? ( |
360 |
- >=media-libs/gstreamer-1.2:1.0 |
361 |
- >=media-libs/gst-plugins-base-1.2:1.0 ) |
362 |
- introspection? ( >=dev-libs/gobject-introspection-1.32.0 ) |
363 |
- libsecret? ( app-crypt/libsecret ) |
364 |
- opengl? ( virtual/opengl ) |
365 |
- spell? ( >=app-text/enchant-0.22:= ) |
366 |
- webgl? ( |
367 |
- x11-libs/cairo[opengl] |
368 |
- x11-libs/libXcomposite |
369 |
- x11-libs/libXdamage ) |
370 |
-" |
371 |
- |
372 |
-# paxctl needed for bug #407085 |
373 |
-# Need real bison, not yacc |
374 |
-DEPEND="${RDEPEND} |
375 |
- ${PYTHON_DEPS} |
376 |
- >=dev-lang/perl-5.10 |
377 |
- || ( |
378 |
- virtual/rubygems[ruby_targets_ruby20] |
379 |
- virtual/rubygems[ruby_targets_ruby21] |
380 |
- virtual/rubygems[ruby_targets_ruby22] |
381 |
- virtual/rubygems[ruby_targets_ruby23] |
382 |
- virtual/rubygems[ruby_targets_ruby19] |
383 |
- ) |
384 |
- >=dev-libs/atk-2.8.0 |
385 |
- >=dev-util/gtk-doc-am-1.10 |
386 |
- >=dev-util/gperf-3.0.1 |
387 |
- >=sys-devel/bison-2.4.3 |
388 |
- >=sys-devel/flex-2.5.34 |
389 |
- || ( >=sys-devel/gcc-4.7 >=sys-devel/clang-3.3 ) |
390 |
- sys-devel/gettext |
391 |
- >=sys-devel/make-3.82-r4 |
392 |
- virtual/pkgconfig |
393 |
- |
394 |
- geoloc? ( dev-util/gdbus-codegen ) |
395 |
- introspection? ( jit? ( sys-apps/paxctl ) ) |
396 |
- test? ( |
397 |
- dev-lang/python:2.7 |
398 |
- dev-python/pygobject:3[python_targets_python2_7] |
399 |
- x11-themes/hicolor-icon-theme |
400 |
- jit? ( sys-apps/paxctl ) ) |
401 |
-" |
402 |
- |
403 |
-S="${WORKDIR}/${MY_P}" |
404 |
- |
405 |
-CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307 |
406 |
- |
407 |
-pkg_pretend() { |
408 |
- if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then |
409 |
- einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS" |
410 |
- check-reqs_pkg_pretend |
411 |
- fi |
412 |
- |
413 |
- if [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11; then |
414 |
- die "You need at least GCC 4.7.x or Clang >= 3.3 for C++11-specific compiler flags" |
415 |
- fi |
416 |
-} |
417 |
- |
418 |
-pkg_setup() { |
419 |
- # Check whether any of the debugging flags is enabled |
420 |
- if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then |
421 |
- if is-flagq "-ggdb" && [[ ${WEBKIT_GTK_GGDB} != "yes" ]]; then |
422 |
- replace-flags -ggdb -g |
423 |
- ewarn "Replacing \"-ggdb\" with \"-g\" in your CFLAGS." |
424 |
- ewarn "Building ${PN} with \"-ggdb\" produces binaries which are too" |
425 |
- ewarn "large for current binutils releases (bug #432784) and has very" |
426 |
- ewarn "high temporary build space and memory requirements." |
427 |
- ewarn "If you really want to build ${PN} with \"-ggdb\", add" |
428 |
- ewarn "WEBKIT_GTK_GGDB=yes" |
429 |
- ewarn "to your make.conf file." |
430 |
- fi |
431 |
- einfo "You need to have at least 18GB of temporary build space available" |
432 |
- einfo "to build ${PN} with debugging CFLAGS. Note that it might still" |
433 |
- einfo "not be enough, as the total space requirements depend on the flags" |
434 |
- einfo "(-ggdb vs -g1) and enabled features." |
435 |
- check-reqs_pkg_setup |
436 |
- fi |
437 |
- |
438 |
- [[ ${MERGE_TYPE} = "binary" ]] || python-any-r1_pkg_setup |
439 |
-} |
440 |
- |
441 |
-src_prepare() { |
442 |
- # intermediate MacPorts hack while upstream bug is not fixed properly |
443 |
- # https://bugs.webkit.org/show_bug.cgi?id=28727 |
444 |
- use aqua && epatch "${FILESDIR}"/${PN}-1.6.1-darwin-quartz.patch |
445 |
- |
446 |
- # Leave optimization level to user CFLAGS |
447 |
- # FORTIFY_SOURCE is enabled by default in Gentoo |
448 |
- sed -e 's/-O[012]//g' \ |
449 |
- -e 's/-D_FORTIFY_SOURCE=2//g' \ |
450 |
- -i Source/autotools/SetupCompilerFlags.m4 || die |
451 |
- |
452 |
- # Failing tests |
453 |
- # * webinspector -> https://bugs.webkit.org/show_bug.cgi?id=50744 |
454 |
- # * keyevents is interactive |
455 |
- # * mimehandling test sometimes fails under Xvfb (works fine manually), bug #??? |
456 |
- # * webdatasource test needs a network connection and intermittently fails with icedtea-web |
457 |
- # * webplugindatabase intermittently fails with icedtea-web, bug #???? |
458 |
-# sed -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testwebinspector/ d' \ |
459 |
-# -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testkeyevents/ d' \ |
460 |
-# -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testmimehandling/ d' \ |
461 |
-# -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testwebdatasource/ d' \ |
462 |
-# -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testwebplugindatabase/ d' \ |
463 |
-# -i Tools/TestWebKitAPI/GNUmakefile.am || die |
464 |
- |
465 |
- # bug #459978, upstream bug #113397 |
466 |
- epatch "${FILESDIR}"/${PN}-1.11.90-gtk-docize-fix.patch |
467 |
- |
468 |
- # Debian patches to fix support for some arches |
469 |
- # https://bugs.webkit.org/show_bug.cgi?id=129540 |
470 |
- epatch "${FILESDIR}"/${PN}-2.2.5-{hppa,ia64}-platform.patch |
471 |
- # https://bugs.webkit.org/show_bug.cgi?id=129542 |
472 |
- epatch "${FILESDIR}"/${PN}-2.4.1-ia64-malloc.patch |
473 |
- |
474 |
- # Fix build with recent libjpeg, bug #481688 |
475 |
- # https://bugs.webkit.org/show_bug.cgi?id=122412 |
476 |
- epatch "${FILESDIR}"/${PN}-2.4.4-jpeg-9a.patch |
477 |
- |
478 |
- # Fix building with --disable-webgl, bug #500966 |
479 |
- # https://bugs.webkit.org/show_bug.cgi?id=131267 |
480 |
- epatch "${FILESDIR}"/${PN}-2.4.7-disable-webgl.patch |
481 |
- |
482 |
- AT_M4DIR=Source/autotools eautoreconf |
483 |
- |
484 |
- gnome2_src_prepare |
485 |
-} |
486 |
- |
487 |
-src_configure() { |
488 |
- # Respect CC, otherwise fails on prefix #395875 |
489 |
- tc-export CC |
490 |
- |
491 |
- # Arches without JIT support also need this to really disable it in all places |
492 |
- use jit || append-cppflags -DENABLE_JIT=0 -DENABLE_YARR_JIT=0 -DENABLE_ASSEMBLER=0 |
493 |
- |
494 |
- # It does not compile on alpha without this in LDFLAGS |
495 |
- # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761 |
496 |
- use alpha && append-ldflags "-Wl,--no-relax" |
497 |
- |
498 |
- # Sigbuses on SPARC with mcpu and co., bug #??? |
499 |
- use sparc && filter-flags "-mvis" |
500 |
- |
501 |
- # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634 |
502 |
- use ppc64 && append-flags "-mminimal-toc" |
503 |
- |
504 |
- # Try to use less memory, bug #469942 (see Fedora .spec for reference) |
505 |
- # --no-keep-memory doesn't work on ia64, bug #502492 |
506 |
- if ! use ia64; then |
507 |
- append-ldflags "-Wl,--no-keep-memory" |
508 |
- fi |
509 |
- if ! $(tc-getLD) --version | grep -q "GNU gold"; then |
510 |
- append-ldflags "-Wl,--reduce-memory-overheads" |
511 |
- fi |
512 |
- |
513 |
- local ruby_interpreter="" |
514 |
- |
515 |
- if has_version "virtual/rubygems[ruby_targets_ruby23]"; then |
516 |
- ruby_interpreter="RUBY=$(type -P ruby23)" |
517 |
- elif has_version "virtual/rubygems[ruby_targets_ruby22]"; then |
518 |
- ruby_interpreter="RUBY=$(type -P ruby22)" |
519 |
- elif has_version "virtual/rubygems[ruby_targets_ruby21]"; then |
520 |
- ruby_interpreter="RUBY=$(type -P ruby21)" |
521 |
- elif has_version "virtual/rubygems[ruby_targets_ruby20]"; then |
522 |
- ruby_interpreter="RUBY=$(type -P ruby20)" |
523 |
- else |
524 |
- ruby_interpreter="RUBY=$(type -P ruby19)" |
525 |
- fi |
526 |
- |
527 |
- # TODO: Check Web Audio support |
528 |
- # should somehow let user select between them? |
529 |
- # |
530 |
- # * dependency-tracking is required so parallel builds won't fail |
531 |
- gnome2_src_configure \ |
532 |
- $(use_enable aqua quartz-target) \ |
533 |
- $(use_enable coverage) \ |
534 |
- $(use_enable debug) \ |
535 |
- $(use_enable egl) \ |
536 |
- $(use_enable geoloc geolocation) \ |
537 |
- $(use_enable gles2) \ |
538 |
- $(use_enable gstreamer video) \ |
539 |
- $(use_enable gstreamer web-audio) \ |
540 |
- $(use_enable introspection) \ |
541 |
- $(use_enable jit) \ |
542 |
- $(use_enable libsecret credential_storage) \ |
543 |
- $(use_enable opengl glx) \ |
544 |
- $(use_enable spell spellcheck) \ |
545 |
- $(use_enable webgl) \ |
546 |
- $(use_enable webgl accelerated-compositing) \ |
547 |
- $(use_enable X x11-target) \ |
548 |
- --with-gtk=2.0 \ |
549 |
- --disable-webkit2 \ |
550 |
- --enable-dependency-tracking \ |
551 |
- --disable-gtk-doc \ |
552 |
- ${ruby_interpreter} |
553 |
-} |
554 |
- |
555 |
-src_compile() { |
556 |
- # Try to avoid issues like bug #463960 |
557 |
- unset DISPLAY |
558 |
- gnome2_src_compile |
559 |
-} |
560 |
- |
561 |
-src_test() { |
562 |
- # Tests expect an out-of-source build in WebKitBuild |
563 |
- ln -s . WebKitBuild || die "ln failed" |
564 |
- |
565 |
- # Prevents test failures on PaX systems |
566 |
- use jit && pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test* |
567 |
- |
568 |
- unset DISPLAY |
569 |
- # Tests need virtualx, bug #294691, bug #310695 |
570 |
- # Parallel tests sometimes fail |
571 |
- Xemake -j1 check |
572 |
-} |
573 |
- |
574 |
-src_install() { |
575 |
- DOCS="ChangeLog NEWS" # other ChangeLog files handled by src_install |
576 |
- |
577 |
- # https://bugs.webkit.org/show_bug.cgi?id=129242 |
578 |
- MAKEOPTS="${MAKEOPTS} -j1" gnome2_src_install |
579 |
- |
580 |
- newdoc Source/WebKit/gtk/ChangeLog ChangeLog.gtk |
581 |
- newdoc Source/JavaScriptCore/ChangeLog ChangeLog.JavaScriptCore |
582 |
- newdoc Source/WebCore/ChangeLog ChangeLog.WebCore |
583 |
- |
584 |
- # Prevents crashes on PaX systems |
585 |
- use jit && pax-mark m "${ED}usr/bin/jsc-1" |
586 |
- |
587 |
- # File collisions with slot 3 |
588 |
- # bug #402699, https://bugs.webkit.org/show_bug.cgi?id=78134 |
589 |
- rm -rf "${ED}usr/share/gtk-doc" || die |
590 |
-} |
591 |
|
592 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.4.9.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.4.9.ebuild |
593 |
deleted file mode 100644 |
594 |
index fd95a77..0000000 |
595 |
--- a/net-libs/webkit-gtk/webkit-gtk-2.4.9.ebuild |
596 |
+++ /dev/null |
597 |
@@ -1,296 +0,0 @@ |
598 |
-# Copyright 1999-2016 Gentoo Foundation |
599 |
-# Distributed under the terms of the GNU General Public License v2 |
600 |
-# $Id$ |
601 |
- |
602 |
-EAPI="5" |
603 |
-GCONF_DEBUG="no" |
604 |
-PYTHON_COMPAT=( python2_7 ) |
605 |
- |
606 |
-inherit autotools check-reqs eutils flag-o-matic gnome2 pax-utils python-any-r1 toolchain-funcs versionator virtualx |
607 |
- |
608 |
-MY_P="webkitgtk-${PV}" |
609 |
-DESCRIPTION="Open source web browser engine" |
610 |
-HOMEPAGE="http://www.webkitgtk.org/" |
611 |
-SRC_URI="http://www.webkitgtk.org/releases/${MY_P}.tar.xz" |
612 |
- |
613 |
-LICENSE="LGPL-2+ BSD" |
614 |
-SLOT="3/25" # soname version of libwebkit2gtk-3.0 |
615 |
-KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos" |
616 |
- |
617 |
-IUSE="aqua coverage debug +egl +geoloc gles2 +gstreamer +introspection +jit libsecret +opengl spell wayland +webgl +X" |
618 |
-# bugs 372493, 416331 |
619 |
-REQUIRED_USE=" |
620 |
- geoloc? ( introspection ) |
621 |
- gles2? ( egl ) |
622 |
- introspection? ( gstreamer ) |
623 |
- webgl? ( ^^ ( gles2 opengl ) ) |
624 |
- !webgl? ( ?? ( gles2 opengl ) ) |
625 |
- || ( aqua wayland X ) |
626 |
-" |
627 |
- |
628 |
-# use sqlite, svg by default |
629 |
-# Aqua support in gtk3 is untested |
630 |
-# gtk2 is needed for plugin process support |
631 |
-# gtk3-3.10 required for wayland |
632 |
-RDEPEND=" |
633 |
- dev-db/sqlite:3= |
634 |
- >=dev-libs/glib-2.36:2 |
635 |
- >=dev-libs/icu-3.8.1-r1:= |
636 |
- >=dev-libs/libxml2-2.6:2 |
637 |
- >=dev-libs/libxslt-1.1.7 |
638 |
- >=media-libs/fontconfig-2.5:1.0 |
639 |
- >=media-libs/freetype-2.4.2:2 |
640 |
- >=media-libs/harfbuzz-0.9.7:=[icu(+)] |
641 |
- >=media-libs/libpng-1.4:0= |
642 |
- media-libs/libwebp:= |
643 |
- >=net-libs/libsoup-2.42:2.4[introspection?] |
644 |
- virtual/jpeg:0= |
645 |
- >=x11-libs/cairo-1.10:=[X?] |
646 |
- >=x11-libs/gtk+-3.6.0:3[X?,aqua?,introspection?] |
647 |
- >=x11-libs/pango-1.30.0 |
648 |
- |
649 |
- >=x11-libs/gtk+-2.24.10:2 |
650 |
- |
651 |
- egl? ( media-libs/mesa[egl] ) |
652 |
- geoloc? ( >=app-misc/geoclue-2.1.5:2.0 ) |
653 |
- gles2? ( media-libs/mesa[gles2] ) |
654 |
- gstreamer? ( |
655 |
- >=media-libs/gstreamer-1.2:1.0 |
656 |
- >=media-libs/gst-plugins-base-1.2:1.0 ) |
657 |
- introspection? ( >=dev-libs/gobject-introspection-1.32.0 ) |
658 |
- libsecret? ( app-crypt/libsecret ) |
659 |
- opengl? ( virtual/opengl ) |
660 |
- spell? ( >=app-text/enchant-0.22:= ) |
661 |
- wayland? ( >=x11-libs/gtk+-3.10:3[wayland] ) |
662 |
- webgl? ( |
663 |
- x11-libs/cairo[opengl] |
664 |
- x11-libs/libXcomposite |
665 |
- x11-libs/libXdamage ) |
666 |
- X? ( |
667 |
- x11-libs/libX11 |
668 |
- x11-libs/libXrender |
669 |
- x11-libs/libXt ) |
670 |
-" |
671 |
- |
672 |
-# paxctl needed for bug #407085 |
673 |
-# Need real bison, not yacc |
674 |
-DEPEND="${RDEPEND} |
675 |
- ${PYTHON_DEPS} |
676 |
- >=dev-lang/perl-5.10 |
677 |
- || ( |
678 |
- virtual/rubygems[ruby_targets_ruby20] |
679 |
- virtual/rubygems[ruby_targets_ruby21] |
680 |
- virtual/rubygems[ruby_targets_ruby22] |
681 |
- virtual/rubygems[ruby_targets_ruby23] |
682 |
- virtual/rubygems[ruby_targets_ruby19] |
683 |
- ) |
684 |
- >=app-accessibility/at-spi2-core-2.5.3 |
685 |
- >=dev-libs/atk-2.8.0 |
686 |
- >=dev-util/gtk-doc-am-1.10 |
687 |
- >=dev-util/gperf-3.0.1 |
688 |
- >=sys-devel/bison-2.4.3 |
689 |
- >=sys-devel/flex-2.5.34 |
690 |
- || ( >=sys-devel/gcc-4.7 >=sys-devel/clang-3.3 ) |
691 |
- sys-devel/gettext |
692 |
- >=sys-devel/make-3.82-r4 |
693 |
- virtual/pkgconfig |
694 |
- |
695 |
- geoloc? ( dev-util/gdbus-codegen ) |
696 |
- introspection? ( jit? ( sys-apps/paxctl ) ) |
697 |
- test? ( |
698 |
- dev-lang/python:2.7 |
699 |
- dev-python/pygobject:3[python_targets_python2_7] |
700 |
- x11-themes/hicolor-icon-theme |
701 |
- jit? ( sys-apps/paxctl ) ) |
702 |
-" |
703 |
- |
704 |
-S="${WORKDIR}/${MY_P}" |
705 |
- |
706 |
-CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307 |
707 |
- |
708 |
-pkg_pretend() { |
709 |
- if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then |
710 |
- einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS" |
711 |
- check-reqs_pkg_pretend |
712 |
- fi |
713 |
- |
714 |
- if [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11; then |
715 |
- die "You need at least GCC 4.7.x or Clang >= 3.3 for C++11-specific compiler flags" |
716 |
- fi |
717 |
-} |
718 |
- |
719 |
-pkg_setup() { |
720 |
- # Check whether any of the debugging flags is enabled |
721 |
- if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then |
722 |
- if is-flagq "-ggdb" && [[ ${WEBKIT_GTK_GGDB} != "yes" ]]; then |
723 |
- replace-flags -ggdb -g |
724 |
- ewarn "Replacing \"-ggdb\" with \"-g\" in your CFLAGS." |
725 |
- ewarn "Building ${PN} with \"-ggdb\" produces binaries which are too" |
726 |
- ewarn "large for current binutils releases (bug #432784) and has very" |
727 |
- ewarn "high temporary build space and memory requirements." |
728 |
- ewarn "If you really want to build ${PN} with \"-ggdb\", add" |
729 |
- ewarn "WEBKIT_GTK_GGDB=yes" |
730 |
- ewarn "to your make.conf file." |
731 |
- fi |
732 |
- einfo "You need to have at least 18GB of temporary build space available" |
733 |
- einfo "to build ${PN} with debugging CFLAGS. Note that it might still" |
734 |
- einfo "not be enough, as the total space requirements depend on the flags" |
735 |
- einfo "(-ggdb vs -g1) and enabled features." |
736 |
- check-reqs_pkg_setup |
737 |
- fi |
738 |
- |
739 |
- [[ ${MERGE_TYPE} = "binary" ]] || python-any-r1_pkg_setup |
740 |
-} |
741 |
- |
742 |
-src_prepare() { |
743 |
- # intermediate MacPorts hack while upstream bug is not fixed properly |
744 |
- # https://bugs.webkit.org/show_bug.cgi?id=28727 |
745 |
- use aqua && epatch "${FILESDIR}"/${PN}-1.6.1-darwin-quartz.patch |
746 |
- |
747 |
- # Leave optimization level to user CFLAGS |
748 |
- # FORTIFY_SOURCE is enabled by default in Gentoo |
749 |
- sed -e 's/-O[012]//g' \ |
750 |
- -e 's/-D_FORTIFY_SOURCE=2//g' \ |
751 |
- -i Source/autotools/SetupCompilerFlags.m4 || die |
752 |
- |
753 |
- # Failing tests |
754 |
- # * webinspector -> https://bugs.webkit.org/show_bug.cgi?id=50744 |
755 |
- # * keyevents is interactive |
756 |
- # * mimehandling test sometimes fails under Xvfb (works fine manually), bug #??? |
757 |
- # * webdatasource test needs a network connection and intermittently fails with icedtea-web |
758 |
- # * webplugindatabase intermittently fails with icedtea-web, bug #???? |
759 |
-# sed -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testwebinspector/ d' \ |
760 |
-# -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testkeyevents/ d' \ |
761 |
-# -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testmimehandling/ d' \ |
762 |
-# -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testwebdatasource/ d' \ |
763 |
-# -e '/Programs\/TestWebKitAPI\/WebKitGtk\/testwebplugindatabase/ d' \ |
764 |
-# -i Tools/TestWebKitAPI/GNUmakefile.am || die |
765 |
- |
766 |
- # bug #459978, upstream bug #113397 |
767 |
- epatch "${FILESDIR}"/${PN}-1.11.90-gtk-docize-fix.patch |
768 |
- |
769 |
- # Debian patches to fix support for some arches |
770 |
- # https://bugs.webkit.org/show_bug.cgi?id=129540 |
771 |
- epatch "${FILESDIR}"/${PN}-2.2.5-{hppa,ia64}-platform.patch |
772 |
- # https://bugs.webkit.org/show_bug.cgi?id=129542 |
773 |
- epatch "${FILESDIR}"/${PN}-2.4.1-ia64-malloc.patch |
774 |
- |
775 |
- # Fix building on ppc (from OpenBSD, only needed on slot 3) |
776 |
- # https://bugs.webkit.org/show_bug.cgi?id=130837 |
777 |
- epatch "${FILESDIR}"/${PN}-2.4.4-atomic-ppc.patch |
778 |
- |
779 |
- # Fix build with recent libjpeg, bug #481688 |
780 |
- # https://bugs.webkit.org/show_bug.cgi?id=122412 |
781 |
- epatch "${FILESDIR}"/${PN}-2.4.4-jpeg-9a.patch |
782 |
- |
783 |
- # Fix building with --disable-webgl, bug #500966 |
784 |
- # https://bugs.webkit.org/show_bug.cgi?id=131267 |
785 |
- epatch "${FILESDIR}"/${PN}-2.4.7-disable-webgl.patch |
786 |
- |
787 |
- AT_M4DIR=Source/autotools eautoreconf |
788 |
- |
789 |
- gnome2_src_prepare |
790 |
-} |
791 |
- |
792 |
-src_configure() { |
793 |
- # Respect CC, otherwise fails on prefix #395875 |
794 |
- tc-export CC |
795 |
- |
796 |
- # Arches without JIT support also need this to really disable it in all places |
797 |
- use jit || append-cppflags -DENABLE_JIT=0 -DENABLE_YARR_JIT=0 -DENABLE_ASSEMBLER=0 |
798 |
- |
799 |
- # It does not compile on alpha without this in LDFLAGS |
800 |
- # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761 |
801 |
- use alpha && append-ldflags "-Wl,--no-relax" |
802 |
- |
803 |
- # Sigbuses on SPARC with mcpu and co., bug #??? |
804 |
- use sparc && filter-flags "-mvis" |
805 |
- |
806 |
- # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634 |
807 |
- use ppc64 && append-flags "-mminimal-toc" |
808 |
- |
809 |
- # Try to use less memory, bug #469942 (see Fedora .spec for reference) |
810 |
- # --no-keep-memory doesn't work on ia64, bug #502492 |
811 |
- if ! use ia64; then |
812 |
- append-ldflags "-Wl,--no-keep-memory" |
813 |
- fi |
814 |
- if ! $(tc-getLD) --version | grep -q "GNU gold"; then |
815 |
- append-ldflags "-Wl,--reduce-memory-overheads" |
816 |
- fi |
817 |
- |
818 |
- local ruby_interpreter="" |
819 |
- |
820 |
- if has_version "virtual/rubygems[ruby_targets_ruby23]"; then |
821 |
- ruby_interpreter="RUBY=$(type -P ruby23)" |
822 |
- elif has_version "virtual/rubygems[ruby_targets_ruby22]"; then |
823 |
- ruby_interpreter="RUBY=$(type -P ruby22)" |
824 |
- elif has_version "virtual/rubygems[ruby_targets_ruby21]"; then |
825 |
- ruby_interpreter="RUBY=$(type -P ruby21)" |
826 |
- elif has_version "virtual/rubygems[ruby_targets_ruby20]"; then |
827 |
- ruby_interpreter="RUBY=$(type -P ruby20)" |
828 |
- else |
829 |
- ruby_interpreter="RUBY=$(type -P ruby19)" |
830 |
- fi |
831 |
- |
832 |
- # TODO: Check Web Audio support |
833 |
- # should somehow let user select between them? |
834 |
- # |
835 |
- # * Aqua support in gtk3 is untested |
836 |
- # * dependency-tracking is required so parallel builds won't fail |
837 |
- gnome2_src_configure \ |
838 |
- $(use_enable aqua quartz-target) \ |
839 |
- $(use_enable coverage) \ |
840 |
- $(use_enable debug) \ |
841 |
- $(use_enable egl) \ |
842 |
- $(use_enable geoloc geolocation) \ |
843 |
- $(use_enable gles2) \ |
844 |
- $(use_enable gstreamer video) \ |
845 |
- $(use_enable gstreamer web-audio) \ |
846 |
- $(use_enable introspection) \ |
847 |
- $(use_enable jit) \ |
848 |
- $(use_enable libsecret credential_storage) \ |
849 |
- $(use_enable opengl glx) \ |
850 |
- $(use_enable spell spellcheck) \ |
851 |
- $(use_enable webgl) \ |
852 |
- $(use_enable webgl accelerated-compositing) \ |
853 |
- $(use_enable wayland wayland-target) \ |
854 |
- $(use_enable X x11-target) \ |
855 |
- --with-gtk=3.0 \ |
856 |
- --enable-dependency-tracking \ |
857 |
- --disable-gtk-doc \ |
858 |
- ${ruby_interpreter} |
859 |
-} |
860 |
- |
861 |
-src_compile() { |
862 |
- # Try to avoid issues like bug #463960 |
863 |
- unset DISPLAY |
864 |
- gnome2_src_compile |
865 |
-} |
866 |
- |
867 |
-src_test() { |
868 |
- # Tests expect an out-of-source build in WebKitBuild |
869 |
- ln -s . WebKitBuild || die "ln failed" |
870 |
- |
871 |
- # Prevents test failures on PaX systems |
872 |
- use jit && pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test* |
873 |
- |
874 |
- unset DISPLAY |
875 |
- # Tests need virtualx, bug #294691, bug #310695 |
876 |
- # Parallel tests sometimes fail |
877 |
- Xemake -j1 check |
878 |
-} |
879 |
- |
880 |
-src_install() { |
881 |
- DOCS="ChangeLog NEWS" # other ChangeLog files handled by src_install |
882 |
- |
883 |
- # https://bugs.webkit.org/show_bug.cgi?id=129242 |
884 |
- MAKEOPTS="${MAKEOPTS} -j1" gnome2_src_install |
885 |
- |
886 |
- newdoc Source/WebKit/gtk/ChangeLog ChangeLog.gtk |
887 |
- newdoc Source/JavaScriptCore/ChangeLog ChangeLog.JavaScriptCore |
888 |
- newdoc Source/WebCore/ChangeLog ChangeLog.WebCore |
889 |
- |
890 |
- # Prevents crashes on PaX systems, bug #522808 |
891 |
- use jit && pax-mark m "${ED}usr/bin/jsc-3" "${ED}usr/libexec/WebKitWebProcess" |
892 |
- pax-mark m "${ED}usr/libexec/WebKitPluginProcess" |
893 |
-} |