From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1560176-garchives=archives.gentoo.org@lists.gentoo.org>
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 (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id F3B6F158089
	for <garchives@archives.gentoo.org>; Thu,  5 Oct 2023 21:07:35 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 6AAA72BC037;
	Thu,  5 Oct 2023 21:07:34 +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) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 4EF312BC037
	for <gentoo-commits@lists.gentoo.org>; Thu,  5 Oct 2023 21:07:34 +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) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 46C0B335D16
	for <gentoo-commits@lists.gentoo.org>; Thu,  5 Oct 2023 21:07:33 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 822F399C
	for <gentoo-commits@lists.gentoo.org>; Thu,  5 Oct 2023 21:07:31 +0000 (UTC)
From: "Mart Raudsepp" <leio@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Mart Raudsepp" <leio@gentoo.org>
Message-ID: <1696539926.a5f2be4e445c5ecb1b5f84cb96531c37977577cb.leio@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/srt/
X-VCS-Repository: repo/gentoo
X-VCS-Files: net-libs/srt/Manifest net-libs/srt/srt-1.5.3.ebuild
X-VCS-Directories: net-libs/srt/
X-VCS-Committer: leio
X-VCS-Committer-Name: Mart Raudsepp
X-VCS-Revision: a5f2be4e445c5ecb1b5f84cb96531c37977577cb
X-VCS-Branch: master
Date: Thu,  5 Oct 2023 21:07:31 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 3e5b6ddb-4931-401e-9842-d8271236832c
X-Archives-Hash: 642e8f98776a8dd17488be762370268d

commit:     a5f2be4e445c5ecb1b5f84cb96531c37977577cb
Author:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Thu Oct  5 20:39:29 2023 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Thu Oct  5 21:05:26 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5f2be4e

net-libs/srt: add 1.5.3

* Build with c++14 due to gtest usage requiring it now; though srt-1.5.1 was
  still fine without with the same gtest version
* Enable experimental bonding support - there is no ill effect when not enabled
  via SRT socket options, but actually also works good in my experience
* Always disable ENABLE_TESTING, as this controls the build of some developer
  testing tools, which don't have install targets, so for us it just increases
  compile time with USE=test but aren't actually used by unit tests.

Closes: https://bugs.gentoo.org/911579
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>

 net-libs/srt/Manifest         |  1 +
 net-libs/srt/srt-1.5.3.ebuild | 58 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/net-libs/srt/Manifest b/net-libs/srt/Manifest
index 1a37b93fb5a5..9916a246cda6 100644
--- a/net-libs/srt/Manifest
+++ b/net-libs/srt/Manifest
@@ -1,2 +1,3 @@
 DIST srt-1.4.3.tar.gz 1602671 BLAKE2B ed4ec46cab887461f6dccfc2d695fe78a3782f42f4ef6c3ac5ba6e2ea068a7943eb8079c0a448f35864c575009d556363bcfe7d815d0f47a368001a3df478837 SHA512 5cd15fd0c7b324226ab096c1b6c6f81b4ce5600617e1bd2c38985f18d7d551c9a4a09b1e34c7a705c92ae54bb57c5d736ca7eff6e4992e67666aa167e0da855f
 DIST srt-1.5.1.tar.gz 1694199 BLAKE2B 4c215ef936100b02b3a5a9aab6e9a715ecdb728517b0648e91f2144bb34a34cb1573c4e6905441a366ea281c9410c2d00d5ebc64144f327f7a115d81038942af SHA512 f3aa1f7773540e2dd31cd19b124eec3c3d830f59c08d953cae01e129a58db7e639bdf94c8a5a678435ae9a1d2402e2c77196fc9c4e75b42aa37d8eafcc16f436
+DIST srt-1.5.3.tar.gz 1706632 BLAKE2B fd053782e58602ccd06690c5785b68ff20531afd890678fbd77660e376887b0886cc020d449e2669672748c3d1a515b56d9fd94670c33d085eadb961220a7431 SHA512 5b576d6fd325515e05074e4568e3b65d1ae265e3e971db6e6242e5138243fc1594df1e3a7d90962385dac38abc34c4c4b0a567439050f8c0ff818b3b3d497efc

diff --git a/net-libs/srt/srt-1.5.3.ebuild b/net-libs/srt/srt-1.5.3.ebuild
new file mode 100644
index 000000000000..5f4428d36247
--- /dev/null
+++ b/net-libs/srt/srt-1.5.3.ebuild
@@ -0,0 +1,58 @@
+# Copyright 2018-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib
+
+DESCRIPTION="Secure Reliable Transport (SRT) library and tools"
+HOMEPAGE="https://github.com/Haivision/srt"
+
+if [[ ${PV} == *9999 ]] ; then
+	EGIT_REPO_URI="https://github.com/Haivision/${PN}.git"
+	inherit git-r3
+else
+	SRC_URI="https://github.com/Haivision/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv -sparc ~x86 ~ppc-macos ~x64-macos"
+fi
+
+LICENSE="MPL-2.0"
+SLOT="0/$(ver_cut 1-2)"
+IUSE="gnutls test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	gnutls? (
+		dev-libs/nettle:0=[${MULTILIB_USEDEP}]
+		net-libs/gnutls:0=[${MULTILIB_USEDEP}]
+	)
+	!gnutls? (
+		dev-libs/openssl:0=[${MULTILIB_USEDEP}]
+	)
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig
+	test? ( >=dev-cpp/gtest-1.10[${MULTILIB_USEDEP}] )"
+
+src_configure() {
+	local mycmakeargs=(
+		-DUSE_CXX_STD=c++14 # Required for gtest
+		-DENABLE_STATIC=OFF
+		# Bonding is experimental in 1.5, but works good and doesn't affect anything when not enabled with API calls
+		-DENABLE_BONDING=ON
+		-DENABLE_UNITTESTS=$(usex test)
+		-DENABLE_TESTING=OFF # Not installed developer/testing tools
+		-DUSE_GNUTLS=$(usex gnutls)
+	)
+	cmake-multilib_src_configure
+}
+
+multilib_src_test() {
+	cmake_src_test -j1
+}
+
+multilib_src_install() {
+	cmake_src_install
+	# remove old upstream temporary compatibility pc
+	rm "${ED}/usr/$(get_libdir)/pkgconfig/haisrt.pc" || die
+}