net-im/abaddon: Add USE flag to enable QR Code login and add dependencies on media-libs/qrcodegen::guru

Signed-off-by: Benoît Dufour <benoit.dufour@mail.com>
This commit is contained in:
Benoît Dufour
2023-10-31 16:28:29 -04:00
parent fa3a33cfce
commit 5e25ad243c
2 changed files with 10 additions and 8 deletions

View File

@@ -20,7 +20,8 @@ fi
LICENSE="GPL-3"
SLOT="0"
IUSE="+libhandy +rnnoise"
# Disable qrcodegen by default. Only the ones who really want it should enable it.
IUSE="+libhandy +rnnoise -qrcodegen"
RDEPEND="
>=net-libs/ixwebsocket-11.0.8
@@ -31,6 +32,7 @@ RDEPEND="
sys-libs/zlib:=
libhandy? ( gui-libs/libhandy:= )
rnnoise? ( media-libs/rnnoise )
qrcodegen ( dev-libs/qrcodegen )
"
DEPEND="
${RDEPEND}
@@ -40,12 +42,11 @@ DEPEND="
src_configure() {
# Disable keychain because there's currently
# no package for it in ::guru or ::gentoo
# also disable QRCODE, for the same reason
local mycmakeargs=(
-DUSE_LIBHANDY="$(usex libhandy)"
-DENABLE_RNNOISE="$(usex rnnoise)"
-DUSE_KEYCHAIN="no"
-DENABLE_QRCODE_LOGIN="no"
-DUSE_KEYCHAIN="no"
-DENABLE_QRCODE_LOGIN="$(usex qrcodegen)"
)
cmake_src_configure
}