Diff webkit-gtk-2.40.5-r410 with a webkit-gtk-2.40.5-r600

/usr/portage/net-libs/webkit-gtk/webkit-gtk-2.40.5-r600.ebuild 2023-10-09 14:52:34.604368479 +0300
14 14
SRC_URI="https://www.webkitgtk.org/releases/${MY_P}.tar.xz"
15 15

  
16 16
LICENSE="LGPL-2+ BSD"
17
SLOT="4.1/0" # soname version of libwebkit2gtk-4.1
17
SLOT="6/0" # soname version of libwebkit2gtk-6.0
18 18
KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv ~sparc x86"
19 19

  
20 20
IUSE="aqua avif examples gamepad gles2-only keyring +gstreamer +introspection pdf +jpeg2k +jumbo-build lcms seccomp spell systemd wayland X"
......
29 29
# experimental upstream (PRIVATE OFF) and shouldn't be used yet in 2.30
30 30
# >=gst-plugins-opus-1.14.4-r1 for opusparse (required by MSE)
31 31
# TODO: gst-plugins-base[X] is only needed when build configuration ends up
32
#       with GLX set, but that's a bit automagic too to fix
32
# with GLX set, but that's a bit automagic too to fix
33 33
# Softblocking webkit-gtk-2.38:4 as we going to use webkit-2.38:4.1's WebKitDriver binary
34 34
RDEPEND="
35 35
	>=x11-libs/cairo-1.16.0[X?]
......
37 37
	>=media-libs/freetype-2.9.0:2
38 38
	>=dev-libs/libgcrypt-1.7.0:0=
39 39
	>=x11-libs/gtk+-3.22.0:3[aqua?,introspection?,wayland?,X?]
40
	gui-libs/gtk:4[introspection?]
40 41
	>=media-libs/harfbuzz-1.4.2:=[icu(+)]
41 42
	>=dev-libs/icu-61.2:=
42 43
	media-libs/libjpeg-turbo:0=
......
218 219
		-DENABLE_VIDEO=$(usex gstreamer)
219 220
		-DUSE_GSTREAMER_WEBRTC=$(usex gstreamer)
220 221
		-DUSE_GSTREAMER_TRANSCODER=$(usex gstreamer)
221
		-DENABLE_WEBDRIVER=ON
222
		-DENABLE_WEBDRIVER=OFF # Disable WebDriver for webkit2gtk-5.0 and use the webkit2gtk-4.1
222 223
		-DENABLE_WEBGL=ON
223 224
		-DENABLE_WEB_AUDIO=$(usex gstreamer)
224 225
		-DUSE_AVIF=$(usex avif)
......
231 232
		-DENABLE_WAYLAND_TARGET=$(usex wayland)
232 233
		-DENABLE_X11_TARGET=$(usex X)
233 234
		-DUSE_GBM=ON
234
		-DUSE_GTK4=OFF
235
		-DUSE_GTK4=ON # webkit2gtk-6.0
235 236
		-DUSE_JPEGXL=OFF
236 237
		-DUSE_LCMS=$(usex lcms)
237 238
		-DUSE_LIBHYPHEN=ON
......
248 249
	WK_USE_CCACHE=NO cmake_src_configure
249 250
}
250 251

  
251
src_install() {
252
	cmake_src_install
253

  
254
	insinto /usr/share/gtk-doc/html
255
	# This will install API docs specific to webkit2gtk-4.1
256
	doins -r "${S}"/Documentation/{jsc-glib,webkit2gtk,webkit2gtk-web-extension}-${SLOT%/*}
257
}
258

  
259 252
pkg_postinst() {
260 253
	optfeature "geolocation service (used at runtime if available)" "app-misc/geoclue"
261 254
	optfeature "Common Multimedia codecs" "media-plugins/gst-plugins-meta"
Thank you!