# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{8..10} ) 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.gz" LICENSE="GPL-3" KEYWORDS="~amd64 ~x86" SLOT="0" IUSE="debug doc ldap libnotify static-libs test tools" REQUIRED_USE="${PYTHON_REQUIRED_USE}" RESTRICT="!test? ( test )" 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 tools? ( ${PYTHON_DEPS} dev-python/pystache[${PYTHON_USEDEP}] dev-python/six[${PYTHON_USEDEP}] )" DEPEND="${RDEPEND}" BDEPEND="${PYTHON_DEPS} app-doc/doxygen[dot] dev-python/pystache[${PYTHON_USEDEP}] dev-python/six[${PYTHON_USEDEP}] dev-vcs/git virtual/pkgconfig doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" PATCHES=( "${FILESDIR}"/"${P}"-jsoncpp-cmake.patch ) src_prepare() { # QnD fix: incapability to detect jsoncpp sed -i '/json\/json.h/s|<|