commit: 4c77cc606491eebfc439a0685a5630495123c192
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 28 07:02:07 2023 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Thu Sep 28 12:31:22 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c77cc60
dev-qt/qtpositioning: add 6.5.3
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
dev-qt/qtpositioning/Manifest | 1 +
dev-qt/qtpositioning/qtpositioning-6.5.3.ebuild | 63 +++++++++++++++++++++++++
2 files changed, 64 insertions(+)
diff --git a/dev-qt/qtpositioning/Manifest b/dev-qt/qtpositioning/Manifest
index 042cd2b382d0..f1866ac9d8ef 100644
--- a/dev-qt/qtpositioning/Manifest
+++ b/dev-qt/qtpositioning/Manifest
@@ -1,3 +1,4 @@
DIST qtlocation-everywhere-opensource-src-5.15.10.tar.xz 6552240 BLAKE2B
1e44bdafcde01294424cef1963924b85fc4f3cc8ab19b1ae37d79d10cb0bbb1a482f592725fa28e0f039fc84cb2167df4d15e23e4060bd7c49df013c54322665
SHA512
e4fb56ddd2dc50024f02de84323c3299788eb6632672e1bc52ef1399ccf9d0af34b0104548cb108fb372870057426b0cdd52052ad91ba45fc7f8098a675f29a4
DIST qtpositioning-everywhere-src-6.5.2.tar.xz 1456284 BLAKE2B
15ec5202f72ccec5b5cd5e887eacd34718e47e150fd290e8ef3e03e6566b647ca4e2995c87bc54fad598b0225a390eaa93fe7685419006ff39db93fd3803488d
SHA512
8319e999de227d6ee999a4e7f84e3a12e2a8b070375fd7b86cef7a7962cce1d4d45f17a846df779561e1cedde80a80240bd2a03259c8a2ed5ebda6e209bdd991
+DIST qtpositioning-everywhere-src-6.5.3.tar.xz 1456364 BLAKE2B
c48c0cb4422df02424697c6e757a7aa28bf946c71d8ebf5b1066f6e566949bbc2c76fbe3f6abf77bcf4751e4d35957159bbaa5d3c33dc8c0c5696a98e5ddb915
SHA512
af3ee341b57029ff10270602a23bde0b922b1f43e0e152b0f091e4447099d34df0410df582261935f6397c121f48bf944cc057772de9c063e679755fae7c5d11
DIST qtpositioning-everywhere-src-6.6.0-rc.tar.xz 1513496 BLAKE2B
4657845ad00cca563ae28e319b132b63b0789005dafdd5fe87b91d88bf42619292ab14245bfd461db2bfec72c3a47a00eb768628d19460c081236108083165c8
SHA512
25fca25ef532ce518984789f28e06868efc55ba7e63c6eb1342f7411b0ce53d8f0efe49632b1afcc3aae025040ceb439ad6e6152f7f48656d4ce6a049c5fc507
diff --git a/dev-qt/qtpositioning/qtpositioning-6.5.3.ebuild
b/dev-qt/qtpositioning/qtpositioning-6.5.3.ebuild
new file mode 100644
index 000000000000..5bc8b82de998
--- /dev/null
+++ b/dev-qt/qtpositioning/qtpositioning-6.5.3.ebuild
@@ -0,0 +1,63 @@
+# Copyright 2021-2023 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"
+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 )
+"
+
+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
+}