diff options
Diffstat (limited to 'net-libs/srt')
-rw-r--r-- | net-libs/srt/Manifest | 2 | ||||
-rw-r--r-- | net-libs/srt/srt-1.5.1.ebuild | 55 |
2 files changed, 57 insertions, 0 deletions
diff --git a/net-libs/srt/Manifest b/net-libs/srt/Manifest index 7b280c064f50..03f9c28a525b 100644 --- a/net-libs/srt/Manifest +++ b/net-libs/srt/Manifest @@ -1,4 +1,6 @@ AUX 1.4.3-always-GNUInstallDirs.patch 885 BLAKE2B 84b6a78b6862d4b2302f087c6215b84a4dbf2cfa3b7388b54c63d7d4919a5af43834df32d56d53db04ea87e2aa4bbf1fcdd531ea1274e1135e360470d0ba7d88 SHA512 e4b42a1fbdd60bb34b08e406b950e892e5e1a8bcd32bde3097e2f044596cd31effa049aa12a70a9bf8482943c91fd68e9ba193dd02121849ac723ba21fd7677d DIST srt-1.4.3.tar.gz 1602671 BLAKE2B ed4ec46cab887461f6dccfc2d695fe78a3782f42f4ef6c3ac5ba6e2ea068a7943eb8079c0a448f35864c575009d556363bcfe7d815d0f47a368001a3df478837 SHA512 5cd15fd0c7b324226ab096c1b6c6f81b4ce5600617e1bd2c38985f18d7d551c9a4a09b1e34c7a705c92ae54bb57c5d736ca7eff6e4992e67666aa167e0da855f +DIST srt-1.5.1.tar.gz 1694199 BLAKE2B 4c215ef936100b02b3a5a9aab6e9a715ecdb728517b0648e91f2144bb34a34cb1573c4e6905441a366ea281c9410c2d00d5ebc64144f327f7a115d81038942af SHA512 f3aa1f7773540e2dd31cd19b124eec3c3d830f59c08d953cae01e129a58db7e639bdf94c8a5a678435ae9a1d2402e2c77196fc9c4e75b42aa37d8eafcc16f436 EBUILD srt-1.4.3.ebuild 1149 BLAKE2B 5aa95e450810b954d4f5dbb36c78abdf974f7a7ed0057dfe300785f4625f7b505415c316034abd5c0052415083ff73a7601b75b598d3b03b9412b433e53de326 SHA512 56708ddf0cd5373620391bffea8069cd7c443e737c3c03dec463fa500706262a51fa105839638a9bf964673263dbc79659e6f40723d7e80068dde6681ff072e7 +EBUILD srt-1.5.1.ebuild 1296 BLAKE2B 4b8bff5437fc929c68ba15de7448b1604320c62c326f5012c45ff65c9cfa1eecc885bf60380de30f2c0b758b85e54c7d1a30d36bc956242e910c830b3e3d0739 SHA512 6a4b3eb9757c47d678b1c27c5908c3b0a19a56c8cf1a3a435daf1d473da571f78bb65d2dd7c4df7c9bcad35194a11b50d2bd03a1a967dc68d0e55a3ae79fee1c MISC metadata.xml 430 BLAKE2B cb25cf1d0a35ec35acab5ca8bb8fa3d074531c584a70b93f02765c8636a2908a10484bd8f9268bcaa64a2a2d23a12f87b5829249c484f8357dba3974553c2c20 SHA512 c2b853dc7bcb2883c24f2ec3d14d3589b57f0ac72bc7a5bba1d8ac46747d051aa02e24e9f86f758f5a1855ba4d1e6cdb9750ab7493be4c996d281aa269c1a390 diff --git a/net-libs/srt/srt-1.5.1.ebuild b/net-libs/srt/srt-1.5.1.ebuild new file mode 100644 index 000000000000..349670fcdbd7 --- /dev/null +++ b/net-libs/srt/srt-1.5.1.ebuild @@ -0,0 +1,55 @@ +# 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.8[${MULTILIB_USEDEP}] )" + +src_configure() { + local mycmakeargs=( + -DENABLE_STATIC=OFF + -DENABLE_UNITTESTS=$(usex test) + -DENABLE_TESTING=$(usex test) + -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 +} |