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