diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2024-03-12 06:28:38 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2024-03-12 07:59:31 -0400 |
commit | 2db4562006c23c26a0d2699459ee0ff208fc4d8f (patch) | |
tree | d88ecb1568190c3d5166a600050770355880dade /dev-qt/qtconnectivity | |
parent | dev-qt/qtcharts: add 6.7.0_rc (diff) | |
download | gentoo-2db4562006c23c26a0d2699459ee0ff208fc4d8f.tar.gz gentoo-2db4562006c23c26a0d2699459ee0ff208fc4d8f.tar.bz2 gentoo-2db4562006c23c26a0d2699459ee0ff208fc4d8f.zip |
dev-qt/qtconnectivity: add 6.7.0_rc
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.0_rc.ebuild | 72 |
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-qt/qtconnectivity/Manifest b/dev-qt/qtconnectivity/Manifest index 5ebe003bb590..23fae3d48eff 100644 --- a/dev-qt/qtconnectivity/Manifest +++ b/dev-qt/qtconnectivity/Manifest @@ -1 +1,2 @@ DIST qtconnectivity-everywhere-src-6.6.2.tar.xz 1060936 BLAKE2B 561f487a55c1352a67a3a5b2166ce4d62403f3adfdfbe7f6fee27c23b23e3ed6f0917daa212ffdc023ff521328421d6af7afe3d2353a1d835fba2bf3c10444b3 SHA512 aa66652cb8bd9f44cec616922f76b02c8dccdaea2bc8d24be8b8a4b6b76f08925a5088a2559eca3042e6aa77c67c722ec90910d2e2a092705c6f74ca413e4c5a +DIST qtconnectivity-everywhere-src-6.7.0-rc.tar.xz 1061300 BLAKE2B 6d7d6132619aa13f1d9bde57f35a6a310113ad04a44fd4d51c778ba56a40f12fe74006efbd45269afcb6b8f5e8a1e0495574efc651d80f5ce06652ee04cb97b6 SHA512 0e9bd553f4626d253017a350519a8d63d998c62a1ef82c3616dd67c8e4158adf3bbeb591794d33ae45bce8cb6749a492fee928260ef400416d8a7e5a3d57edfa diff --git a/dev-qt/qtconnectivity/qtconnectivity-6.7.0_rc.ebuild b/dev-qt/qtconnectivity/qtconnectivity-6.7.0_rc.ebuild new file mode 100644 index 000000000000..ee563938e4e6 --- /dev/null +++ b/dev-qt/qtconnectivity/qtconnectivity-6.7.0_rc.ebuild @@ -0,0 +1,72 @@ +# 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 ~arm64 ~loong" +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_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 +} |