summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2024-02-14 06:06:47 -0500
committerIonen Wolkens <ionen@gentoo.org>2024-02-14 07:20:56 -0500
commit7150858b0b7dbc8648cda65db0bffa9081fb2893 (patch)
treeacdbf73b1d4af3b29a5b1b08ebb8f29baf7793a0 /dev-qt/qtpositioning
parentdev-qt/qtnetworkauth: add 6.6.2 (diff)
downloadgentoo-7150858b0b7dbc8648cda65db0bffa9081fb2893.tar.gz
gentoo-7150858b0b7dbc8648cda65db0bffa9081fb2893.tar.bz2
gentoo-7150858b0b7dbc8648cda65db0bffa9081fb2893.zip
dev-qt/qtpositioning: add 6.6.2
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-qt/qtpositioning')
-rw-r--r--dev-qt/qtpositioning/Manifest1
-rw-r--r--dev-qt/qtpositioning/qtpositioning-6.6.2.ebuild68
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-qt/qtpositioning/Manifest b/dev-qt/qtpositioning/Manifest
index 2da12295bf10..8c47aa30f852 100644
--- a/dev-qt/qtpositioning/Manifest
+++ b/dev-qt/qtpositioning/Manifest
@@ -1,2 +1,3 @@
DIST qtlocation-everywhere-opensource-src-5.15.12.tar.xz 6553488 BLAKE2B e9cab8e6f62cc1cfc6586fa4a1b252bce915479fca5f9fbeac66a2494d77047af4af1ba840786799637edae3af7c6d2000f640af018548cfcd7bd624c6a31b15 SHA512 c480762cea2cd1a00e6061bab05c402d5aab2d12e7decebcd606c930d2029a93f2a46f8edbb188b73c7cdcad473b03c15037ea10e0b3538de0a99b1d7d7fb333
DIST qtpositioning-everywhere-src-6.6.1.tar.xz 1513456 BLAKE2B 174aa45f9fbe120c0b1ff675447b42fa4cee1f50c4bf0ad6a01bbb181fd5de79ad091a353770862cf829ba7442ca9ae039fa985caa68835cea6a82608e158f35 SHA512 8114d9cec0e453ff51fdbe8b1a814c968e614e1f9aaf031bf00c0c48e732de728d925852789360411c594f63ae322404fc9403d0bc3a35500522d8dc403d79e2
+DIST qtpositioning-everywhere-src-6.6.2.tar.xz 1504848 BLAKE2B c34d253b31176f532c6c5f23416c084652f913379bbdb44a96739a5f22b9220564408a700910a102ca45db12342d1bc267cba7c9a66d01affb641b14e678652a SHA512 f2f67c7b25ff79e085a4a36421295f4ec4ef97a7df9fedcfb90ebd60483755109d0b595b30f7ff1881ad635ddbd2c6a227771df3549d7933fda03cf63f935cd3
diff --git a/dev-qt/qtpositioning/qtpositioning-6.6.2.ebuild b/dev-qt/qtpositioning/qtpositioning-6.6.2.ebuild
new file mode 100644
index 000000000000..c872768c9bd8
--- /dev/null
+++ b/dev-qt/qtpositioning/qtpositioning-6.6.2.ebuild
@@ -0,0 +1,68 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit qt6-build
+
+DESCRIPTION="Physical position determination library for the Qt6 framework"
+
+if [[ ${QT6_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~x86"
+fi
+
+IUSE="geoclue nmea +qml"
+
+DEPEND="
+ ~dev-qt/qtbase-${PV}:6
+ geoclue? ( ~dev-qt/qtbase-${PV}:6[dbus] )
+ nmea? (
+ ~dev-qt/qtbase-${PV}:6[network]
+ ~dev-qt/qtserialport-${PV}:6
+ )
+ qml? ( ~dev-qt/qtdeclarative-${PV}:6 )
+"
+RDEPEND="
+ ${DEPEND}
+ geoclue? ( app-misc/geoclue:2.0 )
+"
+
+CMAKE_SKIP_TESTS=(
+ # threads test (rarely) fails randomly
+ tst_qgeoareamonitor
+)
+
+src_prepare() {
+ qt6-build_src_prepare
+
+ # unfortunately cmake_use_find_package would break things with qtbase
+ use geoclue ||
+ sed -e 's/TARGET Qt::DBus/FALSE/' \
+ -i src/plugins/position/CMakeLists.txt || die
+ use nmea ||
+ sed -e 's/TARGET Qt::Network/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
+
+ if use test; then
+ local delete=( # sigh
+ "${D}${QT6_LIBDIR}"/cmake/Qt6Positioning/*DummyPlugin*.cmake
+ "${D}${QT6_LIBDIR}"/cmake/Qt6Positioning/*TestPlugin*.cmake
+ "${D}${QT6_PLUGINDIR}"/position/libqtposition_satellitesourcetest.so
+ "${D}${QT6_PLUGINDIR}"/position/libqtposition_testplugin{,2}.so
+ )
+ # using -f given not tracking which tests may be skipped or not
+ rm -f -- "${delete[@]}" || die
+ fi
+}