diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2023-09-26 09:38:16 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2023-09-26 15:47:25 -0400 |
commit | 2e5e7d94df3266a08adbf25c351bf1ebea5bec5b (patch) | |
tree | 1ff27dff8033165955edebeecc402bc08a907ae5 /dev-qt/qtpositioning | |
parent | dev-qt/qtnetworkauth: add 6.6.0_rc (diff) | |
download | gentoo-2e5e7d94df3266a08adbf25c351bf1ebea5bec5b.tar.gz gentoo-2e5e7d94df3266a08adbf25c351bf1ebea5bec5b.tar.bz2 gentoo-2e5e7d94df3266a08adbf25c351bf1ebea5bec5b.zip |
dev-qt/qtpositioning: add 6.6.0_rc
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-qt/qtpositioning')
-rw-r--r-- | dev-qt/qtpositioning/Manifest | 1 | ||||
-rw-r--r-- | dev-qt/qtpositioning/qtpositioning-6.6.0_rc.ebuild | 63 |
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-qt/qtpositioning/Manifest b/dev-qt/qtpositioning/Manifest index 011feaaf1e4c..042cd2b382d0 100644 --- a/dev-qt/qtpositioning/Manifest +++ b/dev-qt/qtpositioning/Manifest @@ -1,2 +1,3 @@ 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.6.0-rc.tar.xz 1513496 BLAKE2B 4657845ad00cca563ae28e319b132b63b0789005dafdd5fe87b91d88bf42619292ab14245bfd461db2bfec72c3a47a00eb768628d19460c081236108083165c8 SHA512 25fca25ef532ce518984789f28e06868efc55ba7e63c6eb1342f7411b0ce53d8f0efe49632b1afcc3aae025040ceb439ad6e6152f7f48656d4ce6a049c5fc507 diff --git a/dev-qt/qtpositioning/qtpositioning-6.6.0_rc.ebuild b/dev-qt/qtpositioning/qtpositioning-6.6.0_rc.ebuild new file mode 100644 index 000000000000..5bc8b82de998 --- /dev/null +++ b/dev-qt/qtpositioning/qtpositioning-6.6.0_rc.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 +} |