Diff qtwayland-5.15.10-r6 with a qtwayland-6.5.2-r3

/usr/portage/dev-qt/qtwayland/qtwayland-6.5.2-r3.ebuild 2023-10-09 14:52:30.412368373 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 2021-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
if [[ ${PV} != *9999* ]]; then
7
	QT5_KDEPATCHSET_REV=4
8
	KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
9
fi
10

  
11
inherit qt5-build
6
inherit qt6-build
12 7

  
13 8
DESCRIPTION="Wayland platform plugin for Qt"
14 9

  
15
SLOT=5/${QT5_PV} # bug 815646
16
IUSE="vulkan X"
10
if [[ ${QT6_BUILD_TYPE} == release ]]; then
11
	KEYWORDS="amd64 ~arm ~arm64 ~loong ~x86"
12
fi
13

  
14
IUSE="compositor qml vulkan"
17 15

  
18
DEPEND="
16
RDEPEND="
19 17
	dev-libs/wayland
20
	=dev-qt/qtcore-${QT5_PV}*:5=
21
	=dev-qt/qtdeclarative-${QT5_PV}*:5=
22
	=dev-qt/qtgui-${QT5_PV}*:5=[egl,libinput,vulkan=,X?]
18
	~dev-qt/qtbase-${PV}:6[egl(+),gui,opengl,vulkan=]
23 19
	media-libs/libglvnd
24
	vulkan? ( dev-util/vulkan-headers )
25
	X? (
26
		=dev-qt/qtgui-${QT5_PV}*[-gles2-only]
27
		x11-libs/libX11
28
		x11-libs/libXcomposite
20
	x11-libs/libxkbcommon
21
	compositor? (
22
		qml? ( ~dev-qt/qtdeclarative-${PV}:6 )
29 23
	)
30 24
"
31
RDEPEND="${DEPEND}"
25
DEPEND="
26
	${RDEPEND}
27
	vulkan? ( dev-util/vulkan-headers )
28
"
32 29
BDEPEND="dev-util/wayland-scanner"
33 30

  
31
CMAKE_SKIP_TESTS=(
32
	# segfaults for not-looked-into reasons, but not considered
33
	# an issue given >=seatv5 exists since wayland-1.10 (2016)
34
	tst_seatv4
35
	# needs a compositor/opengl, skip the extra trouble
36
	tst_surface
37
	tst_xdgdecorationv1
38
)
39

  
40
PATCHES=(
41
	"${FILESDIR}"/${P}-drag-drop-segfault.patch
42
)
43

  
34 44
src_configure() {
35
	local myqmakeargs=(
36
		--
37
		$(qt_use vulkan feature-wayland-vulkan-server-buffer)
38
		$(qt_use X feature-xcomposite-egl)
39
		$(qt_use X feature-xcomposite-glx)
45
	local mycmakeargs=(
46
		$(cmake_use_find_package qml Qt6Quick)
47
		$(qt_feature compositor wayland_server)
40 48
	)
41
	qt5-build_src_configure
42
}
43 49

  
44
src_install() {
45
	qt5-build_src_install
46
	rm "${D}${QT5_BINDIR}"/qtwaylandscanner || die
50
	qt6-build_src_configure
47 51
}
Thank you!