diff options
Diffstat (limited to 'media-libs/roc-toolkit')
-rw-r--r-- | media-libs/roc-toolkit/Manifest | 2 | ||||
-rw-r--r-- | media-libs/roc-toolkit/roc-toolkit-0.2.6.ebuild | 82 |
2 files changed, 84 insertions, 0 deletions
diff --git a/media-libs/roc-toolkit/Manifest b/media-libs/roc-toolkit/Manifest index 2e838a0bd103..2ecc5eccfac2 100644 --- a/media-libs/roc-toolkit/Manifest +++ b/media-libs/roc-toolkit/Manifest @@ -1,4 +1,6 @@ AUX roc-toolkit-0.2.5-dont-force-O3.patch 626 BLAKE2B d8365e9bc957b5cd6729768c66034e5cc79df1c45157a6b24a954e2f1d8fc4524e3b3165bcdf3a540a0d83404c783ee2201014607d225e2745a190f050cf0c8e SHA512 d9fe4498388150bfc79a2c9eafe14e6f9a29d915989b53d670b05afad8d0b3dac4006f19777f07faba4d78696407a4517334db53ac8f72bc2748c36b51774038 DIST roc-toolkit-0.2.5.tar.gz 1559917 BLAKE2B b75a2f101bd9bfecee28abc1dee0102c55a06f6432d66ed0b982b774e330209cdb9c22db442b9a49ec6e5623193de0c55fdb118a5285fb7de199b85eb6daea48 SHA512 45a524d7c29f2011eaa9f3e6d256ccf714e1abe2921c8ed276d97501cd2f7641bc14288f2f29c892a1c6740cf64049e3d143eb6b15dd2fb14e25a38a4ad23971 +DIST roc-toolkit-0.2.6.tar.gz 1570499 BLAKE2B 6fa38819fc675323585a0bd5f754b7325be0d9870a55b65636498822249fe1d53b23422b7fa6a0b7e7740aff4f7e62fed9b2681741fbd8912ef8ec2bcc375ee4 SHA512 ac0f18e8a8a60ae9e93f3dcb58e645f31440b6799dac063b246f5320978ac98192bb9c38bbfa7e38dbd537da169c1d525d93cf66c86b36976d37932e3c12f63b EBUILD roc-toolkit-0.2.5.ebuild 1976 BLAKE2B 0e2a035a6c2622c794b4b479ecb50384ee9a0c3af8d0f513727505be05e2692d69e3e4101402fdca30e78b0983c8684e043448316d7f7ef5700ac8b23f03edff SHA512 927c7728a17529908b91db475467eb4ddeab71f58d484aa1a8f03bff5992238bc8c83482247d9b5a54e7c65eaa653c7309b25e5a001ce7dea2663c21bce40fe7 +EBUILD roc-toolkit-0.2.6.ebuild 1977 BLAKE2B fe77df46e72ccdbd158b160c13fd765a70c70630b0f8fc55e20e07c90db05ee651e2587bd7b085201944a2b56e45d2b491ada44938f2fcbdc105757b49d34e07 SHA512 563883e9152b36aa8478736e4a7de0a66ceba85ac8e124de887fae43fa1ecd8be182dec3aec1f22deac7a58ec2495cd03568760c1470d3ef9277ba81c7b90e90 MISC metadata.xml 424 BLAKE2B 809444d92a63d99a23c18612cc9559138cdecad99b2af61370141f18e2d0acc0518f1bcee47cd435e26f096b49269b92a3c864e871ef7ae3e15de15f0bc09d6d SHA512 7dfdbb7a4be3022622e15bb263f493f0fdb17ea00c9f6b3711be4877993aaaabe05334dac14e290e602a663fd40dc3ac2f6697e979f0f4b8f9866befb7ac5ae3 diff --git a/media-libs/roc-toolkit/roc-toolkit-0.2.6.ebuild b/media-libs/roc-toolkit/roc-toolkit-0.2.6.ebuild new file mode 100644 index 000000000000..f154ee0346a5 --- /dev/null +++ b/media-libs/roc-toolkit/roc-toolkit-0.2.6.ebuild @@ -0,0 +1,82 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +inherit python-any-r1 scons-utils toolchain-funcs + +DESCRIPTION="Real-time audio streaming over the network" +HOMEPAGE="https://roc-streaming.org/toolkit/docs/ https://github.com/roc-streaming/roc-toolkit/" +SRC_URI="https://github.com/roc-streaming/roc-toolkit/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="alsa llvm-libunwind pulseaudio sox ssl tools test unwind" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-libs/libuv:= + media-libs/openfec + media-libs/speexdsp + alsa? ( media-libs/alsa-lib ) + pulseaudio? ( media-libs/libpulse ) + sox? ( media-sound/sox ) + ssl? ( dev-libs/openssl:= ) + unwind? ( + llvm-libunwind? ( sys-libs/llvm-libunwind:= ) + !llvm-libunwind? ( sys-libs/libunwind:= ) + ) +" +RDEPEND="${DEPEND}" +BDEPEND=" + dev-util/ragel + virtual/pkgconfig + test? ( dev-util/cpputest ) + tools? ( dev-util/gengetopt ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.2.5-dont-force-O3.patch +) + +src_prepare() { + default + + # These tests need network + rm -r \ + src/tests/roc_netio \ + src/tests/public_api/test_receiver.cpp \ + || die +} + +src_compile() { + tc-export AR CXX CC LD RANLIB OBJCOPY PKG_CONFIG + + # Can revisit these on request, but: + # + # * openfec is unconditionally enabled as upstream docs recommend it, + # see https://roc-streaming.org/toolkit/docs/building/user_cookbook.html. + # + # * speexdsp is unconditionally enabled as it's tiny. + scons_opts=( + $(usev !alsa '--disable-alsa') + $(usev !sox '--disable-sox') + $(usev !pulseaudio '--disable-pulseaudio') + $(usev !tools '--disable-tools') + $(usev test '--enable-tests') + $(usev !ssl '--disable-openssl') + $(usev !unwind '--disable-libunwind') + ) + + STRIP=true escons "${scons_opts[@]}" +} + +src_test() { + STRIP=true escons "${scons_opts[@]}" test +} + +src_install() { + STRIP=true escons DESTDIR="${D}" "${scons_opts[@]}" install +} |