net-libs/bctoolbox: add 5.2.16

This commit is contained in:
Alarig Le Lay 2023-05-03 10:48:52 +02:00
parent 2a1df4f1bd
commit 080ef4e7c4
Signed by: alarig
GPG Key ID: 7AFE62C6DF8BCDEC
2 changed files with 41 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST bctoolbox-5.1.3.tar.gz 180543 BLAKE2B 855d2b89b71b1d211b6968914e80c72d543f2438afa03e73bce105785065a7ab58fb80bc556443a930be3b4d70b8bc1af4d40a771c664d9a464f9c35b9c2cf04 SHA512 b242c3558b5e049728eb678d3a07605ae4cca420b4ef91dc366041786704fa150ced344e810f9167c47e43c07f2b8d6a56009fde1a6660b7ec8968a52e3d2558
DIST bctoolbox-5.2.16.tar.gz 194676 BLAKE2B d97073fb98592e68f2b74d24951e580a4e01dbc788b3c80034dfc7efdca8a82e4ca17287dfcef5a3500554caf72fa10d6313a934d19cb4932a010a8eecd452f1 SHA512 c216aa4da1a264db231adac2eabe7a2960f27f7826f7c66aa6e14ca1ea1344387b27ed39713bdacfd00ae8cb3a2da147af5b7bc3204c7feb55bff8b55a1f4130

View File

@ -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
}