From 080ef4e7c46f0981e38cd9bb447e9f9a30614009 Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Wed, 3 May 2023 10:48:52 +0200 Subject: [PATCH] net-libs/bctoolbox: add 5.2.16 --- net-libs/bctoolbox/Manifest | 1 + net-libs/bctoolbox/bctoolbox-5.2.16.ebuild | 40 ++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 net-libs/bctoolbox/bctoolbox-5.2.16.ebuild diff --git a/net-libs/bctoolbox/Manifest b/net-libs/bctoolbox/Manifest index dc0f08f..1eec7a3 100644 --- a/net-libs/bctoolbox/Manifest +++ b/net-libs/bctoolbox/Manifest @@ -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 diff --git a/net-libs/bctoolbox/bctoolbox-5.2.16.ebuild b/net-libs/bctoolbox/bctoolbox-5.2.16.ebuild new file mode 100644 index 0000000..5e05c10 --- /dev/null +++ b/net-libs/bctoolbox/bctoolbox-5.2.16.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 +}