blob: 6fa74543f5f9539833a0b24d228c44aac2a38f18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="KDAB's Dock Widget Framework for Qt"
HOMEPAGE="https://www.kdab.com/development-resources/qt-tools/kddockwidgets/"
SRC_URI="https://github.com/KDAB/KDDockWidgets/releases/download/v${PV}/${P}.tar.gz"
S=${WORKDIR}/KDDockWidgets-${PV}
LICENSE="|| ( GPL-2 GPL-3 ) BSD MIT"
SLOT="0/$(ver_cut 1-2)"
KEYWORDS="amd64 ~arm64 ~x86"
IUSE="qml"
# building tests require developer mode which is messy to enable here
RESTRICT="test"
# uses Qt private APIs wrt :=, X for x11extras (always uses qtx11extras_p.h
# with Qt6 regardless of the cmake X11EXTRAS option which is only for Qt5)
RDEPEND="
dev-qt/qtbase:6=[X,widgets]
qml? ( dev-qt/qtdeclarative:6= )
"
DEPEND="
${DEPEND}
dev-cpp/nlohmann_json
"
CMAKE_QA_COMPAT_SKIP=1 #964536
src_configure() {
local mycmakeargs=(
-DKDDockWidgets_FRONTENDS=qtwidgets$(usev qml ';qtquick')
-DKDDockWidgets_NO_SPDLOG=yes # less headaches
-DKDDockWidgets_PYTHON_BINDINGS=no # ask if need this
-DKDDockWidgets_XLib=no # off by default, and fails to build
)
cmake_src_configure
}
src_install() {
cmake_src_install
# only has licenses and duplicate files
rm -r -- "${ED}"/usr/share/doc/${PF}-qt6 || die
}
|