diff --git a/net-libs/bctoolbox/Manifest b/net-libs/bctoolbox/Manifest new file mode 100644 index 0000000..dc0f08f --- /dev/null +++ b/net-libs/bctoolbox/Manifest @@ -0,0 +1 @@ +DIST bctoolbox-5.1.3.tar.gz 180543 BLAKE2B 855d2b89b71b1d211b6968914e80c72d543f2438afa03e73bce105785065a7ab58fb80bc556443a930be3b4d70b8bc1af4d40a771c664d9a464f9c35b9c2cf04 SHA512 b242c3558b5e049728eb678d3a07605ae4cca420b4ef91dc366041786704fa150ced344e810f9167c47e43c07f2b8d6a56009fde1a6660b7ec8968a52e3d2558 diff --git a/net-libs/bctoolbox/bctoolbox-5.1.3.ebuild b/net-libs/bctoolbox/bctoolbox-5.1.3.ebuild new file mode 100644 index 0000000..5e05c10 --- /dev/null +++ b/net-libs/bctoolbox/bctoolbox-5.1.3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Utilities library used by Belledonne Communications softwares" +HOMEPAGE="https://gitlab.linphone.org/BC/public/bctoolbox" +SRC_URI="https://gitlab.linphone.org/BC/public/${PN}/-/archive/${PV}/${P}.tar.gz" + +LICENSE="GPL-3" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="ssl static-libs test" +PROPERTIES="test_network" +RESTRICT="!test? ( test )" + +RDEPEND="ssl? ( net-libs/mbedtls )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig + test? ( dev-util/bcunit )" + +src_configure() { + local mycmakeargs=( + -DENABLE_POLARSSL=OFF + -DENABLE_MBEDTLS="$(usex ssl)" + -DENABLE_STATIC="$(usex static-libs)" + -DENABLE_TESTS_COMPONENT="$(usex test)" + -DENABLE_TESTS="$(usex test)" + ) + + cmake_src_configure +} + +src_test() { + "${S}"_build/tester/bctoolbox_tester || die "tests failed" + + cmake_src_test +} diff --git a/net-libs/bctoolbox/metadata.xml b/net-libs/bctoolbox/metadata.xml new file mode 100644 index 0000000..da70f77 --- /dev/null +++ b/net-libs/bctoolbox/metadata.xml @@ -0,0 +1,19 @@ + + + + + spiderx@spiderx.dp.ua + Vladimir Pavljuchenkov + + + proxy-maint@gentoo.org + Proxy Maintainers + + + Utilities library used by Belledonne Communications softwares like + belle-sip, mediastreamer2 and liblinphone. + + + BelledonneCommunications/bctoolbox + +