Skip to content

Commit

Permalink
kde-frameworks/extra-cmake-modules: Fix test dependencies
Browse files Browse the repository at this point in the history
Also set QT_MAJOR_VERSION=6 if testing, not going to add any complexity
for optional Qt5 testing.

Bug: https://bugs.gentoo.org/938316
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Dec 3, 2024
1 parent 85f95eb commit 0ad3f73
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,21 @@ IUSE="doc test"
RESTRICT="!test? ( test )"

RDEPEND="app-arch/libarchive[bzip2]"
DEPEND="
test? (
>=dev-qt/qtbase-${QTMIN}:6[dbus,gui]
>=dev-qt/qtdeclarative-${QTMIN}:6
)
"
BDEPEND="
doc? (
${PYTHON_DEPS}
$(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]')
>=dev-qt/qttools-${QTMIN}:6[assistant]
)
test? (
>=dev-qt/qttools-${QTMIN}:6[linguist]
>=dev-qt/qtbase-${QTMIN}:6
>=dev-qt/qttools-${QTMIN}:6[linguist]
)
"

Expand Down Expand Up @@ -53,6 +59,9 @@ src_configure() {
-DBUILD_MAN_DOCS=$(usex doc)
-DBUILD_TESTING=$(usex test)
)
if use test; then
mycmakeargs+=( -DQT_MAJOR_VERSION=6 ) # bug 938316
fi

cmake_src_configure
}
Expand Down

0 comments on commit 0ad3f73

Please sign in to comment.