diff options
Diffstat (limited to 'dev-qt/qtpositioning/qtpositioning-6.5.9999.ebuild')
-rw-r--r-- | dev-qt/qtpositioning/qtpositioning-6.5.9999.ebuild | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/dev-qt/qtpositioning/qtpositioning-6.5.9999.ebuild b/dev-qt/qtpositioning/qtpositioning-6.5.9999.ebuild index 14f9b9b37670..035cdcfa41a2 100644 --- a/dev-qt/qtpositioning/qtpositioning-6.5.9999.ebuild +++ b/dev-qt/qtpositioning/qtpositioning-6.5.9999.ebuild @@ -11,12 +11,36 @@ if [[ ${QT6_BUILD_TYPE} == release ]]; then KEYWORDS="~amd64" fi -RDEPEND=" - =dev-qt/qtbase-${PV}*:6[dbus,gui,widgets] - =dev-qt/qtdeclarative-${PV}*:6 +IUSE="geoclue +qml" + +DEPEND=" + =dev-qt/qtbase-${PV}*:6[gui,widgets] =dev-qt/qtserialport-${PV}*:6 + geoclue? ( =dev-qt/qtbase-${PV}*:6[dbus] ) + qml? ( =dev-qt/qtdeclarative-${PV}*:6 ) " -DEPEND="${RDEPEND}" +RDEPEND=" + ${DEPEND} + geoclue? ( app-misc/geoclue:2.0 ) +" + +src_prepare() { + qt6-build_src_prepare + + # would use $(cmake_use_find_package geoclue Qt6DBus) but doing + # this side-disables gui+qml if do have qtbase[dbus] + use geoclue || + sed -e 's/TARGET Qt::DBus/FALSE/' \ + -i src/plugins/position/CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + $(cmake_use_find_package qml Qt6Qml) + ) + + qt6-build_src_configure +} src_install() { qt6-build_src_install |