mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-qt/qtconnectivity: add 6.8.2
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST qtconnectivity-everywhere-src-6.8.1.tar.xz 1067952 BLAKE2B d0c1dbc863dbd12041321248f9256d63f03ecf919ac7c60f3e3e87dd4102fa9063dbb3b0896e3f168713e4dd7eccf2deb62109bea39ba8425184aaf9c019dee1 SHA512 61933f37210323cd912ec677322002557dae308228e390f692beb88374f328b2791e3448b14256a570de741ef6f3e935261ab90cfd3ae22725a8919bd304a8fb
|
||||
DIST qtconnectivity-everywhere-src-6.8.2.tar.xz 1069068 BLAKE2B fcbb13ff28486586466eafec913fb6504ee6e79787e7bfa6362ea74ee755b70c390a2f2ebf96cdf74c875a33ab1673d296f497085e2b8c3b83d09ed9590b772f SHA512 b1310fc90c7a64a4d89586fd38119377b3b67ead57271c6713897d649b2154cd55bd07c97a53f12e7a9d720a1b8b6b630eeea43e44c6798f6313ea8e70e10767
|
||||
|
||||
85
dev-qt/qtconnectivity/qtconnectivity-6.8.2.ebuild
Normal file
85
dev-qt/qtconnectivity/qtconnectivity-6.8.2.ebuild
Normal file
@@ -0,0 +1,85 @@
|
||||
# Copyright 2023-2025 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 neard nfc smartcard"
|
||||
REQUIRED_USE="
|
||||
|| ( bluetooth nfc )
|
||||
nfc? ( ?? ( neard smartcard ) )
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
~dev-qt/qtbase-${PV}:6[network]
|
||||
bluetooth? (
|
||||
~dev-qt/qtbase-${PV}:6[dbus]
|
||||
net-wireless/bluez:=
|
||||
)
|
||||
nfc? (
|
||||
neard? ( ~dev-qt/qtbase-${PV}:6[dbus] )
|
||||
smartcard? ( sys-apps/pcsc-lite )
|
||||
)
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
nfc? (
|
||||
neard? ( net-wireless/neard )
|
||||
)
|
||||
"
|
||||
|
||||
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 neard)
|
||||
$(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
|
||||
}
|
||||
Reference in New Issue
Block a user