diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2024-09-27 03:08:15 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2024-09-27 03:25:48 -0400 |
commit | a1177255c0bdd357df95da110d58a70a505d974c (patch) | |
tree | cb63f11090aeb4abb3d89a2ecdbf961bb7fc6b8e /dev-qt/qtconnectivity | |
parent | dev-qt/qtcharts: add 6.7.3 (diff) | |
download | gentoo-a1177255c0bdd357df95da110d58a70a505d974c.tar.gz gentoo-a1177255c0bdd357df95da110d58a70a505d974c.tar.bz2 gentoo-a1177255c0bdd357df95da110d58a70a505d974c.zip |
dev-qt/qtconnectivity: add 6.7.3
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-qt/qtconnectivity')
-rw-r--r-- | dev-qt/qtconnectivity/Manifest | 1 | ||||
-rw-r--r-- | dev-qt/qtconnectivity/qtconnectivity-6.7.3.ebuild | 73 |
2 files changed, 74 insertions, 0 deletions
diff --git a/dev-qt/qtconnectivity/Manifest b/dev-qt/qtconnectivity/Manifest index 1ad5c7e6c848..36cca1f64b88 100644 --- a/dev-qt/qtconnectivity/Manifest +++ b/dev-qt/qtconnectivity/Manifest @@ -1,2 +1,3 @@ DIST qtconnectivity-everywhere-src-6.7.2.tar.xz 1061952 BLAKE2B 2b46b255f5ca5ab7b5363f6e3584dd4318a4e4d120c8595b309fba1354d9e1c763d9fa8e84b22f5c342204b2849b27d08a7f5dbd9d00533e150c2b8fb6561db3 SHA512 381098e406ac18d87d34eb9087d1655c16e604059d69b77c04df9d444cefc77630a212f52b0fc2a1573c524044aa1837379d70460e152cd353731e52c4bd0e67 +DIST qtconnectivity-everywhere-src-6.7.3.tar.xz 1062684 BLAKE2B 69a10c7c9e6ad25726a136e582005c5306ab3adba1a5f253b51e4ef46009de315e5593bf76020f6019a09d60600c9ae12855f2713c1424f407399a9660a14f8d SHA512 46d77b7c02a03f8aee3401c889121ada5979858d95959ab4d7f31d54ce17c92c5f9c18097297baecc08c468c4f020a826b08edffb55e00e5d3fdaa0523600362 DIST qtconnectivity-everywhere-src-6.8.0-rc.tar.xz 1066600 BLAKE2B 8b48bc8a8a30cc8ae8f5c968758ee0e5a96cac47f414319ee8eaa6f2f83df06c8fd86197a10a512abc406a500aa7283ba7171bf167432bdfa6e368fe15e58419 SHA512 a456047d1e9d478f7937f8f204e71506403105dc4c2c7972d0048b7b5832b9c63b21b0fc8158d78634a1bbec5a4031cfea93d78b71abd49606cae6809265984c diff --git a/dev-qt/qtconnectivity/qtconnectivity-6.7.3.ebuild b/dev-qt/qtconnectivity/qtconnectivity-6.7.3.ebuild new file mode 100644 index 000000000000..c9923654ba1c --- /dev/null +++ b/dev-qt/qtconnectivity/qtconnectivity-6.7.3.ebuild @@ -0,0 +1,73 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit qt6-build + +DESCRIPTION="Bluetooth and NFC support library for the Qt6 framework" + +if [[ ${QT6_BUILD_TYPE} == release ]]; then + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +fi + +IUSE="+bluetooth nfc smartcard" +REQUIRED_USE="|| ( bluetooth nfc )" + +RDEPEND=" + ~dev-qt/qtbase-${PV}:6[network] + bluetooth? ( + ~dev-qt/qtbase-${PV}:6[dbus] + net-wireless/bluez:= + ) + nfc? ( + smartcard? ( sys-apps/pcsc-lite ) + ) +" +DEPEND="${RDEPEND}" + +CMAKE_SKIP_TESTS=( + # most hardware tests are auto-skipped, but some still misbehave + # if bluez/hardware is available (generally tests here may not be + # very relevant without hardware, lists may need to be extended) + tst_qbluetoothdevicediscoveryagent #936485 + tst_qbluetoothlocaldevice + tst_qbluetoothserver + tst_qbluetoothservicediscoveryagent + tst_qbluetoothserviceinfo + tst_qlowenergycontroller +) + +src_prepare() { + qt6-build_src_prepare + + use bluetooth || + sed -i '/add_subdirectory(bluetooth)/d' src/CMakeLists.txt || die + use nfc || + sed -i '/add_subdirectory(nfc)/d' src/CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + $(usev nfc $(qt_feature smartcard pcsclite)) + ) + + qt6-build_src_configure +} + +src_install() { + qt6-build_src_install + + # broken (unnecessary) symlink due to add_app() being used over add_tool() + use !bluetooth || rm -- "${ED}"/usr/bin/sdpscanner6 || die + + if use test; then + local delete=( # sigh + "${D}${QT6_BINDIR}"/bluetoothtestdevice + "${D}${QT6_BINDIR}"/bttestui + "${D}${QT6_BINDIR}"/qlecontroller-server + ) + # using -f given not tracking which tests may be skipped or not + rm -f -- "${delete[@]}" || die + fi +} |