From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DAF67158042 for ; Thu, 24 Oct 2024 05:24:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 93DD6E0951; Thu, 24 Oct 2024 05:24:52 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 77232E0951 for ; Thu, 24 Oct 2024 05:24:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 902C3340C8A for ; Thu, 24 Oct 2024 05:24:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5763E22DB for ; Thu, 24 Oct 2024 05:24:48 +0000 (UTC) From: "Matt Jolly" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Jolly" Message-ID: <1729747473.6fd43e043381e15cfd85a75d07873509b4e774d7.kangie@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libsrtp/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/libsrtp/Manifest net-libs/libsrtp/libsrtp-2.6.0.ebuild X-VCS-Directories: net-libs/libsrtp/ X-VCS-Committer: kangie X-VCS-Committer-Name: Matt Jolly X-VCS-Revision: 6fd43e043381e15cfd85a75d07873509b4e774d7 X-VCS-Branch: master Date: Thu, 24 Oct 2024 05:24:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 801c969b-701b-46df-9a98-ade6fc94fcc1 X-Archives-Hash: a63b2a34db67b44efde0b5e82ee5f966 commit: 6fd43e043381e15cfd85a75d07873509b4e774d7 Author: Matt Jolly gentoo org> AuthorDate: Thu Oct 24 05:10:38 2024 +0000 Commit: Matt Jolly gentoo 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 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 +}