commit:     3a0dbdbc36a5a9b1e644bd2239143cdcbf3a3a3c
Author:     Violet Purcell <vimproved <AT> inventati <DOT> org>
AuthorDate: Tue Jul 30 01:08:37 2024 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Tue Jul 30 09:39:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a0dbdbc

media-libs/opus: add USE flags for deep-plc, dred, and osce

Closes: https://bugs.gentoo.org/936909
See-Also: https://opus-codec.org/demo/opus-1.5/
Signed-off-by: Violet Purcell <vimproved <AT> inventati.org>
Closes: https://github.com/gentoo/gentoo/pull/37791
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 media-libs/opus/metadata.xml      | 3 +++
 media-libs/opus/opus-1.5.2.ebuild | 9 ++++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/media-libs/opus/metadata.xml b/media-libs/opus/metadata.xml
index ead8947401fe..233bcf4e3835 100644
--- a/media-libs/opus/metadata.xml
+++ b/media-libs/opus/metadata.xml
@@ -11,6 +11,9 @@
        </maintainer>
        <use>
                <flag name="custom-modes">Enable non-Opus modes, e.g. 44.1 kHz 
and 2^n frames</flag>
+               <flag name="deep-plc">Enable Deep Packet Loss Concealment 
(PLC)</flag>
+               <flag name="dred">Enable Deep REDundancy (DRED)</flag>
+               <flag name="osce">Enable Opus Speech Coding Enhancement 
(OSCE)</flag>
        </use>
        <upstream>
                <remote-id type="github">xiph/opus</remote-id>

diff --git a/media-libs/opus/opus-1.5.2.ebuild 
b/media-libs/opus/opus-1.5.2.ebuild
index 571ca9f768dc..ca812443aac4 100644
--- a/media-libs/opus/opus-1.5.2.ebuild
+++ b/media-libs/opus/opus-1.5.2.ebuild
@@ -14,7 +14,11 @@ LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv sparc x86"
 INTRINSIC_FLAGS="cpu_flags_x86_sse cpu_flags_arm_neon"
-IUSE="custom-modes debug doc hardened static-libs test ${INTRINSIC_FLAGS}"
+IUSE="custom-modes debug deep-plc dred doc hardened osce static-libs test 
${INTRINSIC_FLAGS}"
+REQUIRED_USE="
+       dred? ( deep-plc )
+       osce? ( deep-plc )
+"
 RESTRICT="!test? ( test )"
 
 BDEPEND="
@@ -38,6 +42,9 @@ multilib_src_configure() {
                $(meson_feature test tests)
                $(meson_use debug assertions)
                $(meson_use hardened hardening)
+               $(meson_feature deep-plc)
+               $(meson_feature dred)
+               $(meson_feature osce)
 
                $(meson_native_use_feature doc docs)
 

Reply via email to