diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-07 22:29:07 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-07 22:29:07 +0100 |
commit | de1079fbccb3bceb32818385f756637e266f2107 (patch) | |
tree | 570d809a9fcbf27d05be1a94090b087521c5514b /media-libs/roc-toolkit | |
parent | 2cd907d16458ba3a99ec82155d7268e2d991a078 (diff) |
gentoo auto-resync : 07:09:2023 - 22:29:07
Diffstat (limited to 'media-libs/roc-toolkit')
-rw-r--r-- | media-libs/roc-toolkit/Manifest | 4 | ||||
-rw-r--r-- | media-libs/roc-toolkit/files/roc-toolkit-0.2.5-dont-force-O3.patch | 22 | ||||
-rw-r--r-- | media-libs/roc-toolkit/metadata.xml | 14 | ||||
-rw-r--r-- | media-libs/roc-toolkit/roc-toolkit-0.2.5.ebuild | 82 |
4 files changed, 122 insertions, 0 deletions
diff --git a/media-libs/roc-toolkit/Manifest b/media-libs/roc-toolkit/Manifest new file mode 100644 index 000000000000..e805cc01c95e --- /dev/null +++ b/media-libs/roc-toolkit/Manifest @@ -0,0 +1,4 @@ +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 +EBUILD roc-toolkit-0.2.5.ebuild 1977 BLAKE2B a3491259e75c01c7be40ef3e3951d9c7a56376a23c96f8793cb773d51c02a73bb1432cbfd78303f5204c2f174932dc783b48f5e37ba09ef48c2cfe9bb49b8fdc SHA512 699e4f8f58d1cb0b1df36fa9216bab5e4f9c9790ac4b7928c3388b2d56e47c1a803918ad148d2715a45671a878196d68d2babc5a877affd458ac8071f437acff +MISC metadata.xml 424 BLAKE2B 809444d92a63d99a23c18612cc9559138cdecad99b2af61370141f18e2d0acc0518f1bcee47cd435e26f096b49269b92a3c864e871ef7ae3e15de15f0bc09d6d SHA512 7dfdbb7a4be3022622e15bb263f493f0fdb17ea00c9f6b3711be4877993aaaabe05334dac14e290e602a663fd40dc3ac2f6697e979f0f4b8f9866befb7ac5ae3 diff --git a/media-libs/roc-toolkit/files/roc-toolkit-0.2.5-dont-force-O3.patch b/media-libs/roc-toolkit/files/roc-toolkit-0.2.5-dont-force-O3.patch new file mode 100644 index 000000000000..ac943f3fa82e --- /dev/null +++ b/media-libs/roc-toolkit/files/roc-toolkit-0.2.5-dont-force-O3.patch @@ -0,0 +1,22 @@ +--- a/SConstruct ++++ b/SConstruct +@@ -930,7 +930,6 @@ if meta.compiler in ['gcc', 'clang']: + for var in ['CXXFLAGS', 'CFLAGS']: + env.Append(**{var: [ + '-fvisibility=hidden', +- '-O3', + ]}) + + if meta.compiler == 'gcc' and meta.compiler_ver[:2] < (4, 6): +@@ -948,10 +947,7 @@ if meta.compiler in ['cc']: + '-g', + ]}) + else: +- for var in ['CXXFLAGS', 'CFLAGS']: +- env.Append(**{var: [ +- '-O3', +- ]}) ++ pass + + if meta.fpic_support: + for var in ['CXXFLAGS', 'CFLAGS']: diff --git a/media-libs/roc-toolkit/metadata.xml b/media-libs/roc-toolkit/metadata.xml new file mode 100644 index 000000000000..3f336a9ed386 --- /dev/null +++ b/media-libs/roc-toolkit/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>sam@gentoo.org</email> + <name>Sam James</name> + </maintainer> + <upstream> + <remote-id type="github">roc-streaming/openfec</remote-id> + </upstream> + <use> + <flag name="tools">Install helper tools like roc-conv, roc-recv, roc-send</flag> + </use> +</pkgmetadata> diff --git a/media-libs/roc-toolkit/roc-toolkit-0.2.5.ebuild b/media-libs/roc-toolkit/roc-toolkit-0.2.5.ebuild new file mode 100644 index 000000000000..66c59f8ecbbf --- /dev/null +++ b/media-libs/roc-toolkit/roc-toolkit-0.2.5.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..11} ) +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 +} |