1 |
commit: c0679eed19a4ea52da6ad34d02a3981c8aef08eb |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 26 02:15:28 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 26 02:29:29 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0679eed |
7 |
|
8 |
net-libs/webkit-gtk: Version bump to 2.36.0 |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
net-libs/webkit-gtk/Manifest | 1 + |
13 |
net-libs/webkit-gtk/webkit-gtk-2.36.0.ebuild | 249 +++++++++++++++++++++++++++ |
14 |
2 files changed, 250 insertions(+) |
15 |
|
16 |
diff --git a/net-libs/webkit-gtk/Manifest b/net-libs/webkit-gtk/Manifest |
17 |
index a41ca47e6f05..37dc6be0153d 100644 |
18 |
--- a/net-libs/webkit-gtk/Manifest |
19 |
+++ b/net-libs/webkit-gtk/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST webkitgtk-2.34.5.tar.xz 24393772 BLAKE2B 7a75ec1507864c7a42305485beb4e1b78b7287b3c514949b1bbe794857b89d6ba894040968002120eba91d15f58b4f51169233457865bc524b28d296ba323662 SHA512 a708e23bb6bcc6b281f1de35f4c56a5360b8212a3749d931f8a3c39402761f30d7524d0bddf4e6cfb1b2fc753df28853dceb476c432bac3c453e4b2123e7e9d5 |
22 |
DIST webkitgtk-2.34.6.tar.xz 24393340 BLAKE2B 7ab93a81f6c74ff712ddb057cbba758978b978323098071e9e35e3aa8efab4c747b8375e10a302185a82b0e89d822c89d199d2d4092c4acd9a423c1f6696c2ab SHA512 57ab25af027ae39820622743c258f3e6d0af86376f2a4c3a8ede560ca6652c98c49056c716aace56291264c18164cb60395be9779a9d12455e6a0f7d2c197343 |
23 |
+DIST webkitgtk-2.36.0.tar.xz 26900828 BLAKE2B d965c9a0f3ff03d55baba840af7fe0cb3288eaa982f1444aa14a499542d89766815954b9e62b5d39d9536074d59e42d1c0798c5e1d88974f070c239ef1d8eae5 SHA512 0926a792da295b8efa8c0fb80fbb0cb27c43bb86011317d076fbe5eef347f2bc02e8afc4c75699a5c6a14363f4abcbfa2d941fdddd6646a63c7679e2380080da |
24 |
|
25 |
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.36.0.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.36.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..e7c6a0c29d64 |
28 |
--- /dev/null |
29 |
+++ b/net-libs/webkit-gtk/webkit-gtk-2.36.0.ebuild |
30 |
@@ -0,0 +1,249 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+PYTHON_REQ_USE="xml(+)" |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+USE_RUBY="ruby27 ruby30 ruby31" |
38 |
+ |
39 |
+inherit check-reqs flag-o-matic gnome2 python-any-r1 ruby-single toolchain-funcs cmake |
40 |
+ |
41 |
+MY_P="webkitgtk-${PV}" |
42 |
+DESCRIPTION="Open source web browser engine" |
43 |
+HOMEPAGE="https://www.webkitgtk.org" |
44 |
+SRC_URI="https://www.webkitgtk.org/releases/${MY_P}.tar.xz" |
45 |
+ |
46 |
+LICENSE="LGPL-2+ BSD" |
47 |
+SLOT="4/37" # soname version of libwebkit2gtk-4.0 |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" |
49 |
+ |
50 |
+IUSE="aqua avif +egl examples gamepad +geolocation gles2-only gnome-keyring +gstreamer gtk-doc +introspection +jpeg2k +jumbo-build lcms libnotify seccomp spell systemd test wayland X" |
51 |
+ |
52 |
+# gstreamer with opengl/gles2 needs egl |
53 |
+REQUIRED_USE=" |
54 |
+ gles2-only? ( egl ) |
55 |
+ gstreamer? ( egl ) |
56 |
+ wayland? ( egl ) |
57 |
+ || ( aqua wayland X ) |
58 |
+" |
59 |
+ |
60 |
+# Tests fail to link for inexplicable reasons |
61 |
+# https://bugs.webkit.org/show_bug.cgi?id=148210 |
62 |
+RESTRICT="test" |
63 |
+ |
64 |
+# Dependencies found at Source/cmake/OptionsGTK.cmake |
65 |
+# Missing WebRTC support, but ENABLE_MEDIA_STREAM/ENABLE_WEB_RTC is experimental upstream (PRIVATE OFF) and shouldn't be used yet in 2.30 |
66 |
+# >=gst-plugins-opus-1.14.4-r1 for opusparse (required by MSE) |
67 |
+# 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 |
68 |
+RDEPEND=" |
69 |
+ >=x11-libs/cairo-1.16.0:=[X?] |
70 |
+ >=media-libs/fontconfig-2.13.0:1.0 |
71 |
+ >=media-libs/freetype-2.9.0:2 |
72 |
+ >=dev-libs/libgcrypt-1.7.0:0= |
73 |
+ >=gui-libs/gtk-3.98:4[aqua?,introspection?,wayland?,X?] |
74 |
+ >=media-libs/harfbuzz-1.4.2:=[icu(+)] |
75 |
+ >=dev-libs/icu-61.2:= |
76 |
+ virtual/jpeg:0= |
77 |
+ >=net-libs/libsoup-2.54:2.4[introspection?] |
78 |
+ >=dev-libs/libxml2-2.8.0:2 |
79 |
+ >=media-libs/libpng-1.4:0= |
80 |
+ dev-db/sqlite:3= |
81 |
+ sys-libs/zlib:0 |
82 |
+ >=dev-libs/atk-2.16.0 |
83 |
+ media-libs/libwebp:= |
84 |
+ |
85 |
+ >=dev-libs/glib-2.67.1:2 |
86 |
+ >=dev-libs/libxslt-1.1.7 |
87 |
+ media-libs/woff2 |
88 |
+ gnome-keyring? ( app-crypt/libsecret ) |
89 |
+ introspection? ( >=dev-libs/gobject-introspection-1.59.1:= ) |
90 |
+ dev-libs/libtasn1:= |
91 |
+ spell? ( >=app-text/enchant-0.22:2 ) |
92 |
+ gstreamer? ( |
93 |
+ >=media-libs/gstreamer-1.14:1.0 |
94 |
+ >=media-libs/gst-plugins-base-1.14:1.0[egl?,X?] |
95 |
+ gles2-only? ( media-libs/gst-plugins-base:1.0[gles2] ) |
96 |
+ !gles2-only? ( media-libs/gst-plugins-base:1.0[opengl] ) |
97 |
+ >=media-plugins/gst-plugins-opus-1.14.4-r1:1.0 |
98 |
+ >=media-libs/gst-plugins-bad-1.14:1.0 |
99 |
+ ) |
100 |
+ |
101 |
+ X? ( |
102 |
+ x11-libs/libX11 |
103 |
+ x11-libs/libXcomposite |
104 |
+ x11-libs/libXdamage |
105 |
+ x11-libs/libXrender |
106 |
+ x11-libs/libXt |
107 |
+ ) |
108 |
+ |
109 |
+ libnotify? ( x11-libs/libnotify ) |
110 |
+ dev-libs/hyphen |
111 |
+ jpeg2k? ( >=media-libs/openjpeg-2.2.0:2= ) |
112 |
+ avif? ( >=media-libs/libavif-0.9.0:= ) |
113 |
+ lcms? ( media-libs/lcms:2 ) |
114 |
+ |
115 |
+ egl? ( media-libs/mesa[egl(+)] ) |
116 |
+ gles2-only? ( media-libs/mesa[gles2] ) |
117 |
+ !gles2-only? ( virtual/opengl ) |
118 |
+ wayland? ( |
119 |
+ dev-libs/wayland |
120 |
+ >=dev-libs/wayland-protocols-1.12 |
121 |
+ >=gui-libs/libwpe-1.5.0:1.0 |
122 |
+ >=gui-libs/wpebackend-fdo-1.7.0:1.0 |
123 |
+ ) |
124 |
+ |
125 |
+ seccomp? ( |
126 |
+ >=sys-apps/bubblewrap-0.3.1 |
127 |
+ sys-libs/libseccomp |
128 |
+ sys-apps/xdg-dbus-proxy |
129 |
+ ) |
130 |
+ |
131 |
+ systemd? ( sys-apps/systemd:= ) |
132 |
+ gamepad? ( >=dev-libs/libmanette-0.2.4 ) |
133 |
+" |
134 |
+DEPEND="${RDEPEND}" |
135 |
+# Need real bison, not yacc |
136 |
+BDEPEND=" |
137 |
+ ${PYTHON_DEPS} |
138 |
+ ${RUBY_DEPS} |
139 |
+ >=app-accessibility/at-spi2-core-2.5.3 |
140 |
+ dev-util/glib-utils |
141 |
+ >=dev-util/gperf-3.0.1 |
142 |
+ >=sys-devel/bison-2.4.3 |
143 |
+ || ( >=sys-devel/gcc-7.3 >=sys-devel/clang-5 ) |
144 |
+ sys-devel/gettext |
145 |
+ virtual/pkgconfig |
146 |
+ |
147 |
+ >=dev-lang/perl-5.10 |
148 |
+ virtual/perl-Data-Dumper |
149 |
+ virtual/perl-Carp |
150 |
+ virtual/perl-JSON-PP |
151 |
+ |
152 |
+ gtk-doc? ( >=dev-util/gtk-doc-1.32 ) |
153 |
+ geolocation? ( dev-util/gdbus-codegen ) |
154 |
+ >=dev-util/cmake-3.10 |
155 |
+" |
156 |
+# test? ( |
157 |
+# dev-python/pygobject:3[python_targets_python2_7] |
158 |
+# x11-themes/hicolor-icon-theme |
159 |
+# ) |
160 |
+RDEPEND="${RDEPEND} |
161 |
+ geolocation? ( >=app-misc/geoclue-2.1.5:2.0 ) |
162 |
+" |
163 |
+ |
164 |
+S="${WORKDIR}/${MY_P}" |
165 |
+ |
166 |
+CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307 |
167 |
+ |
168 |
+pkg_pretend() { |
169 |
+ if [[ ${MERGE_TYPE} != "binary" ]] ; then |
170 |
+ if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
171 |
+ einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS" |
172 |
+ check-reqs_pkg_pretend |
173 |
+ fi |
174 |
+ |
175 |
+ if ! test-flag-CXX -std=c++17 ; then |
176 |
+ die "You need at least GCC 7.3.x or Clang >= 5 for C++17-specific compiler flags" |
177 |
+ fi |
178 |
+ fi |
179 |
+} |
180 |
+ |
181 |
+pkg_setup() { |
182 |
+ if [[ ${MERGE_TYPE} != "binary" ]] && is-flagq "-g*" && ! is-flagq "-g*0" ; then |
183 |
+ check-reqs_pkg_setup |
184 |
+ fi |
185 |
+ |
186 |
+ python-any-r1_pkg_setup |
187 |
+} |
188 |
+ |
189 |
+src_prepare() { |
190 |
+ cmake_src_prepare |
191 |
+ gnome2_src_prepare |
192 |
+} |
193 |
+ |
194 |
+src_configure() { |
195 |
+ # Respect CC, otherwise fails on prefix #395875 |
196 |
+ tc-export CC |
197 |
+ |
198 |
+ # It does not compile on alpha without this in LDFLAGS |
199 |
+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761 |
200 |
+ use alpha && append-ldflags "-Wl,--no-relax" |
201 |
+ |
202 |
+ # ld segfaults on ia64 with LDFLAGS --as-needed, bug #555504 |
203 |
+ use ia64 && append-ldflags "-Wl,--no-as-needed" |
204 |
+ |
205 |
+ # Sigbuses on SPARC with mcpu and co., bug #??? |
206 |
+ use sparc && filter-flags "-mvis" |
207 |
+ |
208 |
+ # https://bugs.webkit.org/show_bug.cgi?id=42070 , #301634 |
209 |
+ use ppc64 && append-flags "-mminimal-toc" |
210 |
+ |
211 |
+ # Try to use less memory, bug #469942 (see Fedora .spec for reference) |
212 |
+ # --no-keep-memory doesn't work on ia64, bug #502492 |
213 |
+ if ! use ia64; then |
214 |
+ append-ldflags $(test-flags-CCLD "-Wl,--no-keep-memory") |
215 |
+ fi |
216 |
+ |
217 |
+ # Ruby situation is a bit complicated. See bug 513888 |
218 |
+ local rubyimpl |
219 |
+ local ruby_interpreter="" |
220 |
+ for rubyimpl in ${USE_RUBY}; do |
221 |
+ if has_version -b "virtual/rubygems[ruby_targets_${rubyimpl}]"; then |
222 |
+ ruby_interpreter="-DRUBY_EXECUTABLE=$(type -P ${rubyimpl})" |
223 |
+ fi |
224 |
+ done |
225 |
+ # This will rarely occur. Only a couple of corner cases could lead us to |
226 |
+ # that failure. See bug 513888 |
227 |
+ [[ -z $ruby_interpreter ]] && die "No suitable ruby interpreter found" |
228 |
+ |
229 |
+ # TODO: Check Web Audio support |
230 |
+ # should somehow let user select between them? |
231 |
+ |
232 |
+ local mycmakeargs=( |
233 |
+ ${ruby_interpreter} |
234 |
+ $(cmake_use_find_package gles2-only OpenGLES2) |
235 |
+ $(cmake_use_find_package egl EGL) |
236 |
+ $(cmake_use_find_package !gles2-only OpenGL) |
237 |
+ -DBWRAP_EXECUTABLE:FILEPATH="${EPREFIX}"/usr/bin/bwrap # If bubblewrap[suid] then portage makes it go-r and cmake find_program fails with that |
238 |
+ -DDBUS_PROXY_EXECUTABLE:FILEPATH="${EPREFIX}"/usr/bin/xdg-dbus-proxy |
239 |
+ -DPORT=GTK |
240 |
+ # Source/cmake/WebKitFeatures.cmake |
241 |
+ -DENABLE_API_TESTS=$(usex test) |
242 |
+ -DENABLE_BUBBLEWRAP_SANDBOX=$(usex seccomp) |
243 |
+ -DENABLE_GAMEPAD=$(usex gamepad) |
244 |
+ -DENABLE_GEOLOCATION=$(usex geolocation) # Runtime optional (talks over dbus service) |
245 |
+ -DENABLE_MINIBROWSER=$(usex examples) |
246 |
+ -DENABLE_SPELLCHECK=$(usex spell) |
247 |
+ -DENABLE_UNIFIED_BUILDS=$(usex jumbo-build) |
248 |
+ -DENABLE_VIDEO=$(usex gstreamer) |
249 |
+ -DENABLE_WEBGL=ON |
250 |
+ -DENABLE_WEBGL2=ON |
251 |
+ -DENABLE_WEB_AUDIO=$(usex gstreamer) |
252 |
+ # Source/cmake/OptionsGTK.cmake |
253 |
+ -DENABLE_GLES2=$(usex gles2-only) |
254 |
+ -DENABLE_GTKDOC=$(usex gtk-doc) |
255 |
+ -DENABLE_INTROSPECTION=$(usex introspection) |
256 |
+ -DENABLE_JOURNALD_LOG=$(usex systemd) |
257 |
+ -DENABLE_QUARTZ_TARGET=$(usex aqua) |
258 |
+ -DENABLE_WAYLAND_TARGET=$(usex wayland) |
259 |
+ -DENABLE_X11_TARGET=$(usex X) |
260 |
+ -DUSE_ANGLE_WEBGL=ON |
261 |
+ -DUSE_AVIF=$(usex avif) |
262 |
+ -DUSE_GTK4=ON |
263 |
+ -DUSE_JPEGXL=OFF |
264 |
+ -DUSE_LCMS=$(usex lcms) |
265 |
+ -DUSE_LIBHYPHEN=ON |
266 |
+ -DUSE_LIBNOTIFY=$(usex libnotify) |
267 |
+ -DUSE_LIBSECRET=$(usex gnome-keyring) |
268 |
+ -DUSE_OPENGL_OR_ES=ON |
269 |
+ -DUSE_OPENJPEG=$(usex jpeg2k) |
270 |
+ -DUSE_SOUP2=ON |
271 |
+ -DUSE_WOFF2=ON |
272 |
+ -DUSE_WPE_RENDERER=$(usex wayland) # WPE renderer is used to implement accelerated compositing under wayland |
273 |
+ ) |
274 |
+ |
275 |
+ # https://bugs.gentoo.org/761238 |
276 |
+ append-cppflags -DNDEBUG |
277 |
+ |
278 |
+ WK_USE_CCACHE=NO cmake_src_configure |
279 |
+} |