# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{10..13} ) EGIT_REPO_URI="https://gitlab.linphone.org/BC/public/${PN}.git" inherit cmake git-r3 python-r1 DESCRIPTION="SIP library supporting voice/video calls and text messaging" HOMEPAGE="https://gitlab.linphone.org/BC/public/liblinphone" LICENSE="GPL-3" SLOT="0" IUSE="debug doc ldap lime qrcode test tools" REQUIRED_USE="${PYTHON_REQUIRED_USE}" RESTRICT="test" PROPERTIES="test_network" RDEPEND="dev-cpp/belr dev-cpp/xsd dev-db/sqlite:3 dev-db/soci dev-libs/belcard dev-libs/belle-sip dev-libs/jsoncpp:0= dev-libs/libxml2:2 dev-libs/lime dev-libs/xerces-c net-libs/bctoolbox[test?] net-libs/ortp media-libs/mediastreamer2[zrtp,srtp,jpeg] sys-libs/zlib:0 virtual/libiconv virtual/libintl virtual/libudev ldap? ( net-nds/openldap:0= ) qrcode? ( media-libs/zxing-cpp:0= ) tools? ( ${PYTHON_DEPS} dev-python/pystache[${PYTHON_USEDEP}] dev-python/six[${PYTHON_USEDEP}] )" DEPEND="${RDEPEND}" BDEPEND="${PYTHON_DEPS} app-text/doxygen[dot] dev-python/pystache[${PYTHON_USEDEP}] dev-python/six[${PYTHON_USEDEP}] dev-vcs/git virtual/pkgconfig doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" src_prepare() { # fix incapability to detect jsoncpp sed -i '/json\/json.h/s|<|