diff --git a/dev-qt/qtconnectivity/metadata.xml b/dev-qt/qtconnectivity/metadata.xml index 84c08090ba589..0525920319096 100644 --- a/dev-qt/qtconnectivity/metadata.xml +++ b/dev-qt/qtconnectivity/metadata.xml @@ -6,6 +6,7 @@ Gentoo Qt Project + Use net-wireless/neard to access NFC devices Enable support for the Near Field Communication protocol diff --git a/dev-qt/qtconnectivity/qtconnectivity-6.9999.ebuild b/dev-qt/qtconnectivity/qtconnectivity-6.9999.ebuild index de07cbfd1ffe6..45b30ae3f8c06 100644 --- a/dev-qt/qtconnectivity/qtconnectivity-6.9999.ebuild +++ b/dev-qt/qtconnectivity/qtconnectivity-6.9999.ebuild @@ -11,20 +11,29 @@ if [[ ${QT6_BUILD_TYPE} == release ]]; then KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86" fi -IUSE="+bluetooth nfc smartcard" -REQUIRED_USE="|| ( bluetooth nfc )" +IUSE="+bluetooth neard nfc smartcard" +REQUIRED_USE=" + || ( bluetooth nfc ) + nfc? ( ?? ( neard smartcard ) ) +" -RDEPEND=" +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 ) ) " -DEPEND="${RDEPEND}" +RDEPEND=" + ${DEPEND} + nfc? ( + neard? ( net-wireless/neard ) + ) +" CMAKE_SKIP_TESTS=( # most hardware tests are auto-skipped, but some still misbehave @@ -48,7 +57,10 @@ src_prepare() { src_configure() { local mycmakeargs=( - $(usev nfc $(qt_feature smartcard pcsclite)) + $(usev nfc " + $(qt_feature neard) + $(qt_feature smartcard pcsclite) + ") ) qt6-build_src_configure