summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2023-08-27 21:30:33 -0400
committerIonen Wolkens <ionen@gentoo.org>2023-09-05 09:01:06 -0400
commitb234bc14fa96d6e4c6323e132cb9bca4648ab1ea (patch)
tree53b2abe7901f7f06321fbc4f10068a88f1fcc53f /dev-qt/qtpositioning
parentdev-qt/qtcharts: make qml optional (qt6) (diff)
downloadgentoo-b234bc14fa96d6e4c6323e132cb9bca4648ab1ea.tar.gz
gentoo-b234bc14fa96d6e4c6323e132cb9bca4648ab1ea.tar.bz2
gentoo-b234bc14fa96d6e4c6323e132cb9bca4648ab1ea.zip
dev-qt/qtpositioning: make geoclue and qml optional (qt6)
But enable qml by default given needed by qtlocation... not that this has any real use right now given nothing depends on qtlocation:6 "yet" while it pulls extra deps for the few packages that depend on qtpositioning:6, this matches Qt5 anyhow. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-qt/qtpositioning')
-rw-r--r--dev-qt/qtpositioning/qtpositioning-6.5.2-r1.ebuild (renamed from dev-qt/qtpositioning/qtpositioning-6.5.2.ebuild)32
-rw-r--r--dev-qt/qtpositioning/qtpositioning-6.5.9999.ebuild32
-rw-r--r--dev-qt/qtpositioning/qtpositioning-6.9999.ebuild32
3 files changed, 84 insertions, 12 deletions
diff --git a/dev-qt/qtpositioning/qtpositioning-6.5.2.ebuild b/dev-qt/qtpositioning/qtpositioning-6.5.2-r1.ebuild
index 14f9b9b37670..035cdcfa41a2 100644
--- a/dev-qt/qtpositioning/qtpositioning-6.5.2.ebuild
+++ b/dev-qt/qtpositioning/qtpositioning-6.5.2-r1.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
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
diff --git a/dev-qt/qtpositioning/qtpositioning-6.9999.ebuild b/dev-qt/qtpositioning/qtpositioning-6.9999.ebuild
index 14f9b9b37670..035cdcfa41a2 100644
--- a/dev-qt/qtpositioning/qtpositioning-6.9999.ebuild
+++ b/dev-qt/qtpositioning/qtpositioning-6.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