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