mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
50 lines
1.3 KiB
Bash
50 lines
1.3 KiB
Bash
# 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 ~ppc64 ~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
|
|
}
|