Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/webkit-gtk/, net-libs/webkit-gtk/files/
Date: Wed, 05 Jan 2022 16:22:18
Message-Id: 1641399710.787ced071cd5a21e90d1f0b7be1df8614b313e60.leio@gentoo
1 commit: 787ced071cd5a21e90d1f0b7be1df8614b313e60
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 5 16:20:43 2022 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 5 16:21:50 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=787ced07
7
8 net-libs/webkit-gtk: remove old
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.2
11 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
12
13 net-libs/webkit-gtk/Manifest | 2 -
14 .../files/2.34.1-opengl-without-X-fixes.patch | 31 ---
15 net-libs/webkit-gtk/webkit-gtk-2.34.1-r1.ebuild | 294 ---------------------
16 net-libs/webkit-gtk/webkit-gtk-2.34.2.ebuild | 294 ---------------------
17 4 files changed, 621 deletions(-)
18
19 diff --git a/net-libs/webkit-gtk/Manifest b/net-libs/webkit-gtk/Manifest
20 index 40ab77d4b1bb..5da5a930fec9 100644
21 --- a/net-libs/webkit-gtk/Manifest
22 +++ b/net-libs/webkit-gtk/Manifest
23 @@ -1,4 +1,2 @@
24 DIST webkitgtk-2.32.4.tar.xz 23327956 BLAKE2B 13762828c39ea55dcdc65be6561fd1ce33fa8c83c1750807fa56a05adfa3604992d0c532ca0466295e6b0e0174dbbda93ebd8082b1ad06b597b54ad8e3a69bd6 SHA512 c2d72850097da72a82faab0a1218b312668b88bc8b67fcd62f08368c71d46bc833e08b3e095eb286beeae59ee88ac74c8393caee8a4ec5a8e90e02425e43350b
25 -DIST webkitgtk-2.34.1.tar.xz 24996620 BLAKE2B 645326467f3155ab15e15fa6431e2652b4957dcbcc28f43ddcfcf088aab205a34b0442e610d3493cd938067af0f335e7abc95eb2df36b45bc0aeec649c83eaa6 SHA512 13f42ecd474c013640233421abe63f55eefa7a5e62d080897197c4f1cde68a2584472586b41ba4d7a1d84a2e08311521c68d259daafcb9386b7164a49a7386ed
26 -DIST webkitgtk-2.34.2.tar.xz 24996572 BLAKE2B eb89965065e39d6cc2b54a4a167a19fee50387a25a5285b5eb369b6f2a7af550bff5b476fc27d5e4348c40e2523b76c31116d9ce2f70578f38ce81b2379143af SHA512 37c40fb067ee9f5bb8786bf2ce92aac885e9c5c2da4bc5f4e81682ccfb5eeb0aa94d5094f6aa99a9af216f542d1823094cf27aea13c7be3e5e6e3f6a9729c7a5
27 DIST webkitgtk-2.34.3.tar.xz 24996976 BLAKE2B 03e9d15e956eddb516e7d1c74b2b0adc99659e6121aaa7795fe8d5348b25b909ed08dc6f85ec26a8058331ffbfd2e9e3f7f6e8effe0353270c7bd419171492a0 SHA512 f3d0ad2e051fc177e1a478908ad806e0a094ac7ab1d9e40049a67e868974278dd5fa84d911bed2eb356022fbe020d985370c69af70efa0e223221e9be607efbc
28
29 diff --git a/net-libs/webkit-gtk/files/2.34.1-opengl-without-X-fixes.patch b/net-libs/webkit-gtk/files/2.34.1-opengl-without-X-fixes.patch
30 deleted file mode 100644
31 index a4cf86f36cbf..000000000000
32 --- a/net-libs/webkit-gtk/files/2.34.1-opengl-without-X-fixes.patch
33 +++ /dev/null
34 @@ -1,31 +0,0 @@
35 -https://bugs.webkit.org/show_bug.cgi?id=208907
36 -
37 -From c67efa2bbe2094b40b4e104bb26497c2aff5ce68 Mon Sep 17 00:00:00 2001
38 -From: Mart Raudsepp <leio@g.o>
39 -Date: Sat, 9 May 2020 23:11:52 +0300
40 -Subject: [PATCH] Clean up OpenGLShims.h conditionals in a few places to fix
41 - some build configurations
42 -
43 ----
44 - Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp | 5 ++++-
45 - 1 file changed, 4 insertions(+), 1 deletions(-)
46 -
47 -diff --git a/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp b/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp
48 -index 3515be452b2..82cce70f14b 100644
49 ---- a/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp
50 -+++ b/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp
51 -@@ -64,7 +64,10 @@
52 -
53 - #if USE(GLX)
54 - #include <GL/glx.h>
55 --#include <WebCore/OpenGLShims.h>
56 -+#endif
57 -+
58 -+#if !USE(OPENGL_ES) && !USE(LIBEPOXY) && !USE(ANGLE)
59 -+#include "WebCore/OpenGLShims.h"
60 - #endif
61 -
62 - #if USE(GSTREAMER)
63 ---
64 -2.20.1
65 -
66
67 diff --git a/net-libs/webkit-gtk/webkit-gtk-2.34.1-r1.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.34.1-r1.ebuild
68 deleted file mode 100644
69 index fec3dc003ca7..000000000000
70 --- a/net-libs/webkit-gtk/webkit-gtk-2.34.1-r1.ebuild
71 +++ /dev/null
72 @@ -1,294 +0,0 @@
73 -# Copyright 1999-2021 Gentoo Authors
74 -# Distributed under the terms of the GNU General Public License v2
75 -
76 -EAPI=7
77 -PYTHON_COMPAT=( python3_{8..10} )
78 -USE_RUBY="ruby26 ruby27 ruby30"
79 -
80 -inherit check-reqs cmake flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs virtualx
81 -
82 -MY_P="webkitgtk-${PV}"
83 -DESCRIPTION="Open source web browser engine"
84 -HOMEPAGE="https://www.webkitgtk.org"
85 -SRC_URI="https://www.webkitgtk.org/releases/${MY_P}.tar.xz"
86 -
87 -LICENSE="LGPL-2+ BSD"
88 -SLOT="4/37" # soname version of libwebkit2gtk-4.0
89 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
90 -
91 -IUSE="aqua avif +egl examples gamepad +geolocation gles2-only gnome-keyring +gstreamer gtk-doc +introspection +jpeg2k +jumbo-build lcms libnotify +opengl seccomp spell systemd wayland +X"
92 -
93 -# gstreamer with opengl/gles2 needs egl
94 -REQUIRED_USE="
95 - gles2-only? ( egl !opengl )
96 - gstreamer? ( opengl? ( egl ) )
97 - wayland? ( egl )
98 - || ( aqua wayland X )
99 -"
100 -
101 -# Tests fail to link for inexplicable reasons
102 -# https://bugs.webkit.org/show_bug.cgi?id=148210
103 -RESTRICT="test"
104 -
105 -# Aqua support in gtk3 is untested
106 -# Dependencies found at Source/cmake/OptionsGTK.cmake
107 -# Various compile-time optionals for gtk+-3.22.0 - ensure it
108 -# Missing WebRTC support, but ENABLE_MEDIA_STREAM/ENABLE_WEB_RTC is experimental upstream (PRIVATE OFF) and shouldn't be used yet in 2.30
109 -# >=gst-plugins-opus-1.14.4-r1 for opusparse (required by MSE)
110 -wpe_depend="
111 - >=gui-libs/libwpe-1.5.0:1.0
112 - >=gui-libs/wpebackend-fdo-1.7.0:1.0
113 -"
114 -# TODO: gst-plugins-base[X] is only needed when build configuration ends up with GLX set, but that's a bit automagic too to fix
115 -RDEPEND="
116 - >=x11-libs/cairo-1.16.0:=[X?]
117 - >=media-libs/fontconfig-2.13.0:1.0
118 - >=media-libs/freetype-2.9.0:2
119 - >=dev-libs/libgcrypt-1.7.0:0=
120 - >=x11-libs/gtk+-3.22.0:3[aqua?,introspection?,wayland?,X?]
121 - >=media-libs/harfbuzz-1.4.2:=[icu(+)]
122 - >=dev-libs/icu-61.2:=
123 - virtual/jpeg:0=
124 - >=net-libs/libsoup-2.54:2.4[introspection?]
125 - >=dev-libs/libxml2-2.8.0:2
126 - >=media-libs/libpng-1.4:0=
127 - dev-db/sqlite:3=
128 - sys-libs/zlib:0
129 - >=dev-libs/atk-2.16.0
130 - media-libs/libwebp:=
131 -
132 - >=dev-libs/glib-2.67.1:2
133 - >=dev-libs/libxslt-1.1.7
134 - media-libs/woff2
135 - gnome-keyring? ( app-crypt/libsecret )
136 - introspection? ( >=dev-libs/gobject-introspection-1.59.1:= )
137 - dev-libs/libtasn1:=
138 - spell? ( >=app-text/enchant-0.22:2 )
139 - gstreamer? (
140 - >=media-libs/gstreamer-1.14:1.0
141 - >=media-libs/gst-plugins-base-1.14:1.0[egl?,opengl?,X?]
142 - gles2-only? ( media-libs/gst-plugins-base:1.0[gles2] )
143 - >=media-plugins/gst-plugins-opus-1.14.4-r1:1.0
144 - >=media-libs/gst-plugins-bad-1.14:1.0 )
145 -
146 - X? (
147 - x11-libs/libX11
148 - x11-libs/libXcomposite
149 - x11-libs/libXdamage
150 - x11-libs/libXrender
151 - x11-libs/libXt )
152 -
153 - libnotify? ( x11-libs/libnotify )
154 - dev-libs/hyphen
155 - jpeg2k? ( >=media-libs/openjpeg-2.2.0:2= )
156 - avif? ( >=media-libs/libavif-0.9.0:= )
157 - lcms? ( media-libs/lcms:2 )
158 -
159 - egl? ( media-libs/mesa[egl(+)] )
160 - gles2-only? ( media-libs/mesa[gles2] )
161 - opengl? ( virtual/opengl )
162 - wayland? (
163 - dev-libs/wayland
164 - >=dev-libs/wayland-protocols-1.12
165 - opengl? ( ${wpe_depend} )
166 - gles2-only? ( ${wpe_depend} )
167 - )
168 -
169 - seccomp? (
170 - >=sys-apps/bubblewrap-0.3.1
171 - sys-libs/libseccomp
172 - sys-apps/xdg-dbus-proxy
173 - )
174 -
175 - systemd? ( sys-apps/systemd:= )
176 - gamepad? ( >=dev-libs/libmanette-0.2.4 )
177 -"
178 -unset wpe_depend
179 -DEPEND="${RDEPEND}"
180 -# paxctl needed for bug #407085
181 -# Need real bison, not yacc
182 -BDEPEND="
183 - ${PYTHON_DEPS}
184 - ${RUBY_DEPS}
185 - >=app-accessibility/at-spi2-core-2.5.3
186 - dev-util/glib-utils
187 - >=dev-util/gperf-3.0.1
188 - >=sys-devel/bison-2.4.3
189 - || ( >=sys-devel/gcc-7.3 >=sys-devel/clang-5 )
190 - sys-devel/gettext
191 - virtual/pkgconfig
192 -
193 - >=dev-lang/perl-5.10
194 - virtual/perl-Data-Dumper
195 - virtual/perl-Carp
196 - virtual/perl-JSON-PP
197 -
198 - gtk-doc? ( >=dev-util/gtk-doc-1.32 )
199 - geolocation? ( dev-util/gdbus-codegen )
200 - >=dev-util/cmake-3.10
201 -"
202 -# test? (
203 -# dev-python/pygobject:3[python_targets_python2_7]
204 -# x11-themes/hicolor-icon-theme
205 -# jit? ( sys-apps/paxctl ) )
206 -RDEPEND="${RDEPEND}
207 - geolocation? ( >=app-misc/geoclue-2.1.5:2.0 )
208 -"
209 -
210 -S="${WORKDIR}/${MY_P}"
211 -
212 -CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307
213 -
214 -pkg_pretend() {
215 - if [[ ${MERGE_TYPE} != "binary" ]] ; then
216 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
217 - einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS"
218 - check-reqs_pkg_pretend
219 - fi
220 -
221 - if ! test-flag-CXX -std=c++17 ; then
222 - die "You need at least GCC 7.3.x or Clang >= 5 for C++17-specific compiler flags"
223 - fi
224 - fi
225 -
226 - if ! use opengl && ! use gles2-only; then
227 - ewarn
228 - ewarn "You are disabling OpenGL usage (USE=opengl or USE=gles2-only) completely."
229 - ewarn "This is an unsupported configuration meant for very specific embedded"
230 - ewarn "use cases, where there truly is no GL possible (and even that use case"
231 - ewarn "is very unlikely to come by). If you have GL (even software-only), you"
232 - ewarn "really really should be enabling OpenGL!"
233 - ewarn
234 - fi
235 -}
236 -
237 -pkg_setup() {
238 - if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
239 - check-reqs_pkg_setup
240 - fi
241 -
242 - python-any-r1_pkg_setup
243 -}
244 -
245 -src_prepare() {
246 - eapply "${FILESDIR}"/2.34.1-opengl-without-X-fixes.patch
247 - cmake_src_prepare
248 - gnome2_src_prepare
249 -}
250 -
251 -src_configure() {
252 - # Respect CC, otherwise fails on prefix #395875
253 - tc-export CC
254 -
255 - # It does not compile on alpha without this in LDFLAGS
256 - # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761
257 - use alpha && append-ldflags "-Wl,--no-relax"
258 -
259 - # ld segfaults on ia64 with LDFLAGS --as-needed, bug #555504
260 - use ia64 && append-ldflags "-Wl,--no-as-needed"
261 -
262 - # Sigbuses on SPARC with mcpu and co., bug #???
263 - use sparc && filter-flags "-mvis"
264 -
265 - # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634
266 - use ppc64 && append-flags "-mminimal-toc"
267 -
268 - # Try to use less memory, bug #469942 (see Fedora .spec for reference)
269 - # --no-keep-memory doesn't work on ia64, bug #502492
270 - if ! use ia64; then
271 - append-ldflags "-Wl,--no-keep-memory"
272 - fi
273 -
274 - # Ruby situation is a bit complicated. See bug 513888
275 - local rubyimpl
276 - local ruby_interpreter=""
277 - for rubyimpl in ${USE_RUBY}; do
278 - if has_version -b "virtual/rubygems[ruby_targets_${rubyimpl}]"; then
279 - ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ${rubyimpl})"
280 - fi
281 - done
282 - # This will rarely occur. Only a couple of corner cases could lead us to
283 - # that failure. See bug 513888
284 - [[ -z $ruby_interpreter ]] && die "No suitable ruby interpreter found"
285 -
286 - # TODO: Check Web Audio support
287 - # should somehow let user select between them?
288 -
289 - # opengl needs to be explicetly handled, bug #576634
290 - local use_wpe_renderer=OFF
291 - local opengl_enabled
292 - if use opengl || use gles2-only; then
293 - opengl_enabled=ON
294 - use wayland && use_wpe_renderer=ON
295 - else
296 - opengl_enabled=OFF
297 - fi
298 -
299 - local mycmakeargs=(
300 - ${ruby_interpreter}
301 - $(cmake_use_find_package gles2-only OpenGLES2)
302 - $(cmake_use_find_package egl EGL)
303 - $(cmake_use_find_package opengl OpenGL)
304 - -DBWRAP_EXECUTABLE:FILEPATH="${EPREFIX}"/usr/bin/bwrap # If bubblewrap[suid] then portage makes it go-r and cmake find_program fails with that
305 - -DDBUS_PROXY_EXECUTABLE:FILEPATH="${EPREFIX}"/usr/bin/xdg-dbus-proxy
306 - -DPORT=GTK
307 - # Source/cmake/WebKitFeatures.cmake
308 - -DENABLE_API_TESTS=$(usex test)
309 - -DENABLE_BUBBLEWRAP_SANDBOX=$(usex seccomp)
310 - -DENABLE_GAMEPAD=$(usex gamepad)
311 - -DENABLE_GEOLOCATION=$(usex geolocation) # Runtime optional (talks over dbus service)
312 - -DENABLE_MINIBROWSER=$(usex examples)
313 - -DENABLE_SPELLCHECK=$(usex spell)
314 - -DENABLE_UNIFIED_BUILDS=$(usex jumbo-build)
315 - -DENABLE_VIDEO=$(usex gstreamer)
316 - -DENABLE_WEBGL=${opengl_enabled}
317 - # Supported only under ANGLE and default off PRIVATE option still@2.34.1, see
318 - # https://bugs.webkit.org/show_bug.cgi?id=225563
319 - # https://bugs.webkit.org/show_bug.cgi?id=224888
320 - -DENABLE_WEBGL2=OFF
321 - -DENABLE_WEB_AUDIO=$(usex gstreamer)
322 - # Source/cmake/OptionsGTK.cmake
323 - -DENABLE_GLES2=$(usex gles2-only)
324 - -DENABLE_GTKDOC=$(usex gtk-doc)
325 - -DENABLE_INTROSPECTION=$(usex introspection)
326 - -DENABLE_QUARTZ_TARGET=$(usex aqua)
327 - -DENABLE_WAYLAND_TARGET=$(usex wayland)
328 - -DENABLE_X11_TARGET=$(usex X)
329 - -DUSE_AVIF=$(usex avif)
330 - -DUSE_GTK4=OFF
331 - -DUSE_LCMS=$(usex lcms)
332 - -DUSE_LIBHYPHEN=ON
333 - -DUSE_LIBNOTIFY=$(usex libnotify)
334 - -DUSE_LIBSECRET=$(usex gnome-keyring)
335 - -DUSE_OPENGL_OR_ES=${opengl_enabled}
336 - -DUSE_OPENJPEG=$(usex jpeg2k)
337 - -DUSE_SOUP2=ON
338 - -DUSE_SYSTEMD=$(usex systemd) # Whether to enable journald logging
339 - -DUSE_WOFF2=ON
340 - -DUSE_WPE_RENDERER=${use_wpe_renderer} # WPE renderer is used to implement accelerated compositing under wayland
341 - )
342 -
343 - # https://bugs.gentoo.org/761238
344 - append-cppflags -DNDEBUG
345 -
346 - WK_USE_CCACHE=NO cmake_src_configure
347 -}
348 -
349 -src_compile() {
350 - cmake_src_compile
351 -}
352 -
353 -src_test() {
354 - # Prevents test failures on PaX systems
355 - pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test*
356 -
357 - cmake_src_test
358 -}
359 -
360 -src_install() {
361 - cmake_src_install
362 -
363 - # Prevents crashes on PaX systems, bug #522808
364 - pax-mark m "${ED}/usr/libexec/webkit2gtk-4.0/jsc" "${ED}/usr/libexec/webkit2gtk-4.0/WebKitWebProcess"
365 - pax-mark m "${ED}/usr/libexec/webkit2gtk-4.0/WebKitPluginProcess"
366 -}
367
368 diff --git a/net-libs/webkit-gtk/webkit-gtk-2.34.2.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.34.2.ebuild
369 deleted file mode 100644
370 index fec3dc003ca7..000000000000
371 --- a/net-libs/webkit-gtk/webkit-gtk-2.34.2.ebuild
372 +++ /dev/null
373 @@ -1,294 +0,0 @@
374 -# Copyright 1999-2021 Gentoo Authors
375 -# Distributed under the terms of the GNU General Public License v2
376 -
377 -EAPI=7
378 -PYTHON_COMPAT=( python3_{8..10} )
379 -USE_RUBY="ruby26 ruby27 ruby30"
380 -
381 -inherit check-reqs cmake flag-o-matic gnome2 pax-utils python-any-r1 ruby-single toolchain-funcs virtualx
382 -
383 -MY_P="webkitgtk-${PV}"
384 -DESCRIPTION="Open source web browser engine"
385 -HOMEPAGE="https://www.webkitgtk.org"
386 -SRC_URI="https://www.webkitgtk.org/releases/${MY_P}.tar.xz"
387 -
388 -LICENSE="LGPL-2+ BSD"
389 -SLOT="4/37" # soname version of libwebkit2gtk-4.0
390 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
391 -
392 -IUSE="aqua avif +egl examples gamepad +geolocation gles2-only gnome-keyring +gstreamer gtk-doc +introspection +jpeg2k +jumbo-build lcms libnotify +opengl seccomp spell systemd wayland +X"
393 -
394 -# gstreamer with opengl/gles2 needs egl
395 -REQUIRED_USE="
396 - gles2-only? ( egl !opengl )
397 - gstreamer? ( opengl? ( egl ) )
398 - wayland? ( egl )
399 - || ( aqua wayland X )
400 -"
401 -
402 -# Tests fail to link for inexplicable reasons
403 -# https://bugs.webkit.org/show_bug.cgi?id=148210
404 -RESTRICT="test"
405 -
406 -# Aqua support in gtk3 is untested
407 -# Dependencies found at Source/cmake/OptionsGTK.cmake
408 -# Various compile-time optionals for gtk+-3.22.0 - ensure it
409 -# Missing WebRTC support, but ENABLE_MEDIA_STREAM/ENABLE_WEB_RTC is experimental upstream (PRIVATE OFF) and shouldn't be used yet in 2.30
410 -# >=gst-plugins-opus-1.14.4-r1 for opusparse (required by MSE)
411 -wpe_depend="
412 - >=gui-libs/libwpe-1.5.0:1.0
413 - >=gui-libs/wpebackend-fdo-1.7.0:1.0
414 -"
415 -# TODO: gst-plugins-base[X] is only needed when build configuration ends up with GLX set, but that's a bit automagic too to fix
416 -RDEPEND="
417 - >=x11-libs/cairo-1.16.0:=[X?]
418 - >=media-libs/fontconfig-2.13.0:1.0
419 - >=media-libs/freetype-2.9.0:2
420 - >=dev-libs/libgcrypt-1.7.0:0=
421 - >=x11-libs/gtk+-3.22.0:3[aqua?,introspection?,wayland?,X?]
422 - >=media-libs/harfbuzz-1.4.2:=[icu(+)]
423 - >=dev-libs/icu-61.2:=
424 - virtual/jpeg:0=
425 - >=net-libs/libsoup-2.54:2.4[introspection?]
426 - >=dev-libs/libxml2-2.8.0:2
427 - >=media-libs/libpng-1.4:0=
428 - dev-db/sqlite:3=
429 - sys-libs/zlib:0
430 - >=dev-libs/atk-2.16.0
431 - media-libs/libwebp:=
432 -
433 - >=dev-libs/glib-2.67.1:2
434 - >=dev-libs/libxslt-1.1.7
435 - media-libs/woff2
436 - gnome-keyring? ( app-crypt/libsecret )
437 - introspection? ( >=dev-libs/gobject-introspection-1.59.1:= )
438 - dev-libs/libtasn1:=
439 - spell? ( >=app-text/enchant-0.22:2 )
440 - gstreamer? (
441 - >=media-libs/gstreamer-1.14:1.0
442 - >=media-libs/gst-plugins-base-1.14:1.0[egl?,opengl?,X?]
443 - gles2-only? ( media-libs/gst-plugins-base:1.0[gles2] )
444 - >=media-plugins/gst-plugins-opus-1.14.4-r1:1.0
445 - >=media-libs/gst-plugins-bad-1.14:1.0 )
446 -
447 - X? (
448 - x11-libs/libX11
449 - x11-libs/libXcomposite
450 - x11-libs/libXdamage
451 - x11-libs/libXrender
452 - x11-libs/libXt )
453 -
454 - libnotify? ( x11-libs/libnotify )
455 - dev-libs/hyphen
456 - jpeg2k? ( >=media-libs/openjpeg-2.2.0:2= )
457 - avif? ( >=media-libs/libavif-0.9.0:= )
458 - lcms? ( media-libs/lcms:2 )
459 -
460 - egl? ( media-libs/mesa[egl(+)] )
461 - gles2-only? ( media-libs/mesa[gles2] )
462 - opengl? ( virtual/opengl )
463 - wayland? (
464 - dev-libs/wayland
465 - >=dev-libs/wayland-protocols-1.12
466 - opengl? ( ${wpe_depend} )
467 - gles2-only? ( ${wpe_depend} )
468 - )
469 -
470 - seccomp? (
471 - >=sys-apps/bubblewrap-0.3.1
472 - sys-libs/libseccomp
473 - sys-apps/xdg-dbus-proxy
474 - )
475 -
476 - systemd? ( sys-apps/systemd:= )
477 - gamepad? ( >=dev-libs/libmanette-0.2.4 )
478 -"
479 -unset wpe_depend
480 -DEPEND="${RDEPEND}"
481 -# paxctl needed for bug #407085
482 -# Need real bison, not yacc
483 -BDEPEND="
484 - ${PYTHON_DEPS}
485 - ${RUBY_DEPS}
486 - >=app-accessibility/at-spi2-core-2.5.3
487 - dev-util/glib-utils
488 - >=dev-util/gperf-3.0.1
489 - >=sys-devel/bison-2.4.3
490 - || ( >=sys-devel/gcc-7.3 >=sys-devel/clang-5 )
491 - sys-devel/gettext
492 - virtual/pkgconfig
493 -
494 - >=dev-lang/perl-5.10
495 - virtual/perl-Data-Dumper
496 - virtual/perl-Carp
497 - virtual/perl-JSON-PP
498 -
499 - gtk-doc? ( >=dev-util/gtk-doc-1.32 )
500 - geolocation? ( dev-util/gdbus-codegen )
501 - >=dev-util/cmake-3.10
502 -"
503 -# test? (
504 -# dev-python/pygobject:3[python_targets_python2_7]
505 -# x11-themes/hicolor-icon-theme
506 -# jit? ( sys-apps/paxctl ) )
507 -RDEPEND="${RDEPEND}
508 - geolocation? ( >=app-misc/geoclue-2.1.5:2.0 )
509 -"
510 -
511 -S="${WORKDIR}/${MY_P}"
512 -
513 -CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307
514 -
515 -pkg_pretend() {
516 - if [[ ${MERGE_TYPE} != "binary" ]] ; then
517 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
518 - einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS"
519 - check-reqs_pkg_pretend
520 - fi
521 -
522 - if ! test-flag-CXX -std=c++17 ; then
523 - die "You need at least GCC 7.3.x or Clang >= 5 for C++17-specific compiler flags"
524 - fi
525 - fi
526 -
527 - if ! use opengl && ! use gles2-only; then
528 - ewarn
529 - ewarn "You are disabling OpenGL usage (USE=opengl or USE=gles2-only) completely."
530 - ewarn "This is an unsupported configuration meant for very specific embedded"
531 - ewarn "use cases, where there truly is no GL possible (and even that use case"
532 - ewarn "is very unlikely to come by). If you have GL (even software-only), you"
533 - ewarn "really really should be enabling OpenGL!"
534 - ewarn
535 - fi
536 -}
537 -
538 -pkg_setup() {
539 - if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then
540 - check-reqs_pkg_setup
541 - fi
542 -
543 - python-any-r1_pkg_setup
544 -}
545 -
546 -src_prepare() {
547 - eapply "${FILESDIR}"/2.34.1-opengl-without-X-fixes.patch
548 - cmake_src_prepare
549 - gnome2_src_prepare
550 -}
551 -
552 -src_configure() {
553 - # Respect CC, otherwise fails on prefix #395875
554 - tc-export CC
555 -
556 - # It does not compile on alpha without this in LDFLAGS
557 - # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761
558 - use alpha && append-ldflags "-Wl,--no-relax"
559 -
560 - # ld segfaults on ia64 with LDFLAGS --as-needed, bug #555504
561 - use ia64 && append-ldflags "-Wl,--no-as-needed"
562 -
563 - # Sigbuses on SPARC with mcpu and co., bug #???
564 - use sparc && filter-flags "-mvis"
565 -
566 - # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634
567 - use ppc64 && append-flags "-mminimal-toc"
568 -
569 - # Try to use less memory, bug #469942 (see Fedora .spec for reference)
570 - # --no-keep-memory doesn't work on ia64, bug #502492
571 - if ! use ia64; then
572 - append-ldflags "-Wl,--no-keep-memory"
573 - fi
574 -
575 - # Ruby situation is a bit complicated. See bug 513888
576 - local rubyimpl
577 - local ruby_interpreter=""
578 - for rubyimpl in ${USE_RUBY}; do
579 - if has_version -b "virtual/rubygems[ruby_targets_${rubyimpl}]"; then
580 - ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ${rubyimpl})"
581 - fi
582 - done
583 - # This will rarely occur. Only a couple of corner cases could lead us to
584 - # that failure. See bug 513888
585 - [[ -z $ruby_interpreter ]] && die "No suitable ruby interpreter found"
586 -
587 - # TODO: Check Web Audio support
588 - # should somehow let user select between them?
589 -
590 - # opengl needs to be explicetly handled, bug #576634
591 - local use_wpe_renderer=OFF
592 - local opengl_enabled
593 - if use opengl || use gles2-only; then
594 - opengl_enabled=ON
595 - use wayland && use_wpe_renderer=ON
596 - else
597 - opengl_enabled=OFF
598 - fi
599 -
600 - local mycmakeargs=(
601 - ${ruby_interpreter}
602 - $(cmake_use_find_package gles2-only OpenGLES2)
603 - $(cmake_use_find_package egl EGL)
604 - $(cmake_use_find_package opengl OpenGL)
605 - -DBWRAP_EXECUTABLE:FILEPATH="${EPREFIX}"/usr/bin/bwrap # If bubblewrap[suid] then portage makes it go-r and cmake find_program fails with that
606 - -DDBUS_PROXY_EXECUTABLE:FILEPATH="${EPREFIX}"/usr/bin/xdg-dbus-proxy
607 - -DPORT=GTK
608 - # Source/cmake/WebKitFeatures.cmake
609 - -DENABLE_API_TESTS=$(usex test)
610 - -DENABLE_BUBBLEWRAP_SANDBOX=$(usex seccomp)
611 - -DENABLE_GAMEPAD=$(usex gamepad)
612 - -DENABLE_GEOLOCATION=$(usex geolocation) # Runtime optional (talks over dbus service)
613 - -DENABLE_MINIBROWSER=$(usex examples)
614 - -DENABLE_SPELLCHECK=$(usex spell)
615 - -DENABLE_UNIFIED_BUILDS=$(usex jumbo-build)
616 - -DENABLE_VIDEO=$(usex gstreamer)
617 - -DENABLE_WEBGL=${opengl_enabled}
618 - # Supported only under ANGLE and default off PRIVATE option still@2.34.1, see
619 - # https://bugs.webkit.org/show_bug.cgi?id=225563
620 - # https://bugs.webkit.org/show_bug.cgi?id=224888
621 - -DENABLE_WEBGL2=OFF
622 - -DENABLE_WEB_AUDIO=$(usex gstreamer)
623 - # Source/cmake/OptionsGTK.cmake
624 - -DENABLE_GLES2=$(usex gles2-only)
625 - -DENABLE_GTKDOC=$(usex gtk-doc)
626 - -DENABLE_INTROSPECTION=$(usex introspection)
627 - -DENABLE_QUARTZ_TARGET=$(usex aqua)
628 - -DENABLE_WAYLAND_TARGET=$(usex wayland)
629 - -DENABLE_X11_TARGET=$(usex X)
630 - -DUSE_AVIF=$(usex avif)
631 - -DUSE_GTK4=OFF
632 - -DUSE_LCMS=$(usex lcms)
633 - -DUSE_LIBHYPHEN=ON
634 - -DUSE_LIBNOTIFY=$(usex libnotify)
635 - -DUSE_LIBSECRET=$(usex gnome-keyring)
636 - -DUSE_OPENGL_OR_ES=${opengl_enabled}
637 - -DUSE_OPENJPEG=$(usex jpeg2k)
638 - -DUSE_SOUP2=ON
639 - -DUSE_SYSTEMD=$(usex systemd) # Whether to enable journald logging
640 - -DUSE_WOFF2=ON
641 - -DUSE_WPE_RENDERER=${use_wpe_renderer} # WPE renderer is used to implement accelerated compositing under wayland
642 - )
643 -
644 - # https://bugs.gentoo.org/761238
645 - append-cppflags -DNDEBUG
646 -
647 - WK_USE_CCACHE=NO cmake_src_configure
648 -}
649 -
650 -src_compile() {
651 - cmake_src_compile
652 -}
653 -
654 -src_test() {
655 - # Prevents test failures on PaX systems
656 - pax-mark m $(list-paxables Programs/*[Tt]ests/*) # Programs/unittests/.libs/test*
657 -
658 - cmake_src_test
659 -}
660 -
661 -src_install() {
662 - cmake_src_install
663 -
664 - # Prevents crashes on PaX systems, bug #522808
665 - pax-mark m "${ED}/usr/libexec/webkit2gtk-4.0/jsc" "${ED}/usr/libexec/webkit2gtk-4.0/WebKitWebProcess"
666 - pax-mark m "${ED}/usr/libexec/webkit2gtk-4.0/WebKitPluginProcess"
667 -}