blob: e5b4a8a748e3adb3a81f23109844bcf318024a99 (
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"
IUSE="qml"
# building tests require developer mode which is messy to enable here
RESTRICT="test"
RDEPEND="
dev-qt/qtbase:6[widgets]
qml? ( dev-qt/qtdeclarative:6 )
"
DEPEND="
${DEPEND}
dev-cpp/nlohmann_json
"
PATCHES=(
"${FILESDIR}"/${P}-include-paths.patch
)
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_QT6=yes
-DKDDockWidgets_XLib=no # off by default, and fails to build
)
cmake_src_configure
}
src_install() {
cmake_src_install
rm -r -- "${ED}"/usr/share/doc/${P}-qt6 || die
}
|