commit: 6fd43e043381e15cfd85a75d07873509b4e774d7 Author: Matt Jolly <kangie <AT> gentoo <DOT> org> AuthorDate: Thu Oct 24 05:10:38 2024 +0000 Commit: Matt Jolly <kangie <AT> gentoo <DOT> org> CommitDate: Thu Oct 24 05:24:33 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fd43e04
net-libs/libsrtp: add 2.6.0 Signed-off-by: Matt Jolly <kangie <AT> gentoo.org> net-libs/libsrtp/Manifest | 1 + net-libs/libsrtp/libsrtp-2.6.0.ebuild | 72 +++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) diff --git a/net-libs/libsrtp/Manifest b/net-libs/libsrtp/Manifest index 8871ec939c3a..aacfed1213f6 100644 --- a/net-libs/libsrtp/Manifest +++ b/net-libs/libsrtp/Manifest @@ -1,2 +1,3 @@ DIST libsrtp-1.6.0.tar.gz 1648862 BLAKE2B 5526d7659db160df3b6d9f14922bd731d083f04c6dd084ef473c439d720733d0fd8b38bdfe92e30e05a8a94c41df965d04bca52601b2644352428b49b1ed9093 SHA512 5ac712d0d343c3b63ed248503cc7d33c637895a274c4434c91f513be117836f27cd5daba83088b4647bbd9c82d841e216e6346af8d485cb9ddcd35dee21d4887 DIST libsrtp-2.4.2.tar.gz 631393 BLAKE2B a062fb7a92294c66f1876c66bf05d9b11412a170c5f7221089680770ab85a62eabb68f781e487981b28602b1f4f7dbba07ebd44ed0248deaf6b9b56061227534 SHA512 6e4805e6d34b2050a6f68f629b0b42356b1d27f2cbaa6cc6166e56957609c3d9aa6b723dcc674e5c74180d122d27badd2f9496639ccb1e0c210b9e1f7949d0e2 +DIST libsrtp-2.6.0.tar.gz 640699 BLAKE2B dd0962bdaf425db3a244c14bd1c98727417b0626b37949e20c7ce1182e3539313396e8d0901b2a08b12731687bbca4b04d044cc4b07c9b0be4d44261ae21d4ac SHA512 96f6e2b7300a416a10e5cc45cf67dadf2f4f81119267689cac4296e2dc6d73398457d1a56b651ab4be6da9e701564d3f256bf6d5f42add5eb2b9b9fe8e438a74 diff --git a/net-libs/libsrtp/libsrtp-2.6.0.ebuild b/net-libs/libsrtp/libsrtp-2.6.0.ebuild new file mode 100644 index 000000000000..08b7a0800f70 --- /dev/null +++ b/net-libs/libsrtp/libsrtp-2.6.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson-multilib + +DESCRIPTION="Open-source implementation of the Secure Real-time Transport Protocol (SRTP)" +HOMEPAGE="https://github.com/cisco/libsrtp" +SRC_URI="https://github.com/cisco/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="2/1" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv -sparc ~x86 ~ppc-macos ~x64-macos" +IUSE="debug doc nss openssl static-libs test" +RESTRICT="!test? ( test )" + +REQUIRED_USE="?? ( nss openssl )" + +RDEPEND=" + openssl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] ) + nss? ( >=dev-libs/nss-3.52[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND}" + +BDEPEND=" + doc? ( app-text/doxygen ) + virtual/pkgconfig +" + +PATCHES=( "${FILESDIR}"/libsrtp-2.4.2-doc.patch ) + +multilib_src_configure() { + local crypto_lib="none" + use openssl && crypto_lib="openssl" + use nss && crypto_lib="nss" + + # stdout: default error output for messages in debug + # openssl-kdf: OpenSSL 1.1.0+ + local emesonargs=( + -Dcrypto-library=${crypto_lib} + -Dcrypto-library-kdf=disabled + -Dfuzzer=disabled + -Dlog-stdout=true + -Dpcap-tests=disabled + -Ddefault_library=$(usex static-libs both shared) + + $(meson_feature test tests) + $(meson_native_use_feature doc) + $(meson_use debug debug-logging) + ) + meson_src_configure +} + +multilib_src_compile() { + meson_src_compile + if multilib_is_native_abi && use doc; then + meson_src_compile doc/html + fi +} + +multilib_src_install() { + if multilib_is_native_abi && use doc; then + dodoc -r html + fi + meson_src_install +} + +multilib_src_install_all() { + local DOCS=( CHANGES ) + einstalldocs +}
