# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{10..13} ) inherit cmake python-r1 DESCRIPTION="SIP library supporting voice/video calls and text messaging" HOMEPAGE="https://gitlab.linphone.org/BC/public/liblinphone" SRC_URI="https://gitlab.linphone.org/BC/public/${PN}/-/archive/${PV}/${P}.tar.bz2" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" 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|<|