public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mart Raudsepp" <leio@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/srt/
Date: Thu,  5 Oct 2023 21:07:31 +0000 (UTC)	[thread overview]
Message-ID: <1696539926.a5f2be4e445c5ecb1b5f84cb96531c37977577cb.leio@gentoo> (raw)

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


             reply	other threads:[~2023-10-05 21:07 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-05 21:07 Mart Raudsepp [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-23 23:55 [gentoo-commits] repo/gentoo:master commit in: net-libs/srt/ Jakov Smolić
2025-01-23 23:55 Jakov Smolić
2025-01-23 21:59 Sam James
2025-01-23 21:59 Sam James
2025-01-23 20:58 Sam James
2025-01-07 23:19 Mart Raudsepp
2024-03-27  6:00 Sam James
2023-11-17  7:47 Sam James
2023-10-05 20:05 Sam James
2023-05-10  0:33 Sam James
2023-05-05  9:27 Arthur Zamarin
2023-05-04 15:17 Arthur Zamarin
2023-05-04 15:04 Arthur Zamarin
2023-05-04 14:40 Jakov Smolić
2023-04-07  2:34 Sam James
2023-04-07  2:33 Sam James
2023-03-22 18:53 Andreas Sturmlechner
2022-08-29 14:49 Jakov Smolić
2022-08-29 14:49 Jakov Smolić
2022-08-28 18:18 Arthur Zamarin
2022-08-28 18:03 Arthur Zamarin
2022-08-28 16:32 Arthur Zamarin
2022-08-28 16:32 Arthur Zamarin
2021-08-21  8:44 Marek Szuba
2021-05-30 19:35 Andreas Sturmlechner
2021-05-03  9:01 Mikle Kolyada
2021-04-12 12:54 John Helmert III
2021-02-25 15:38 Andreas Sturmlechner
2021-01-24  3:52 Sam James
2021-01-23 22:51 Sam James
2021-01-23  4:20 Sam James
2021-01-20  7:55 Agostino Sarubbo
2020-11-25 20:51 Mart Raudsepp
2020-11-25 20:51 Mart Raudsepp
2020-05-14 21:26 Mart Raudsepp
2020-05-14 13:25 Agostino Sarubbo
2020-05-14 13:24 Agostino Sarubbo
2020-05-14 13:23 Agostino Sarubbo
2020-05-14 13:23 Agostino Sarubbo
2020-05-14 13:22 Agostino Sarubbo
2020-05-13 21:28 Mart Raudsepp
2020-04-22  8:33 David Seifert
2020-02-18 12:15 Mart Raudsepp
2020-02-18 12:15 Mart Raudsepp
2019-11-23 13:17 Luca Barbato
2019-11-22  9:18 Luca Barbato
2019-09-29  2:56 Mike Gilbert
2019-07-28 13:53 Mikle Kolyada
2019-06-07 10:05 Agostino Sarubbo
2019-06-06 21:24 Sergei Trofimovich
2019-05-21 21:50 Aaron Bauman
2019-05-20 11:33 Mikle Kolyada
2019-05-19 13:14 Thomas Deutschmann
2019-05-12 22:03 Sergei Trofimovich
2019-05-12 21:57 Sergei Trofimovich
2019-03-03 13:08 Luca Barbato
2019-02-21 11:15 Andreas Sturmlechner
2019-02-19 11:37 Alexis Ballier
2019-02-16 18:04 Andreas Sturmlechner
2019-02-16 18:04 Andreas Sturmlechner
2018-11-27 14:34 Craig Andrews
2018-03-26 17:04 Luca Barbato

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1696539926.a5f2be4e445c5ecb1b5f84cb96531c37977577cb.leio@gentoo \
    --to=leio@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox