commit:     91b823735d88d72f8018af0dfdac6665bdf896e1
Author:     Alibek Omarov <a1ba.omarov <AT> gmail <DOT> com>
AuthorDate: Sun Jan 25 18:08:59 2026 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Mon Jan 26 19:29:07 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91b82373

media-libs/opus: add 1.6.1

Signed-off-by: Alibek Omarov <a1ba.omarov <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/45507
Closes: https://github.com/gentoo/gentoo/pull/45507
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 media-libs/opus/Manifest          |  1 +
 media-libs/opus/opus-1.6.1.ebuild | 71 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/media-libs/opus/Manifest b/media-libs/opus/Manifest
index da0b0591c123..d32d84b5a0e8 100644
--- a/media-libs/opus/Manifest
+++ b/media-libs/opus/Manifest
@@ -1 +1,2 @@
 DIST opus-1.5.2.tar.gz 7839412 BLAKE2B 
1c54de8171df1da69b64a2eca4ce97a0280cfceafb387f40ef1186add366030a397fabc19b18cf1e50d6dbaccb027697d1e2b3da4fa6ab73d70c2b4e723e87f7
 SHA512 
78d963cd56d5504611f111e2b3606e236189a3585d65fae1ecdbec9bf4545632b1956f11824328279a2d1ea2ecf441ebc11e455fb598d20a458df15185e95da4
+DIST opus-1.6.1.tar.gz 10472813 BLAKE2B 
dda8fb4e30e5f22d2b37616902892dcc715a2886150ab54f67d61a90c60a03afee05fb7b56a0d88355db007bb4d72c8bd6de3d874a49767318a5bba115b1a613
 SHA512 
93742e86b2eb222808a5055e62627d142e6e7347b3d5aebb4d39b45df78ed7d437746c51eb24d724a7c865d064e9d16f4541a4ce6a82fcf7dcc23427d2252e16

diff --git a/media-libs/opus/opus-1.6.1.ebuild 
b/media-libs/opus/opus-1.6.1.ebuild
new file mode 100644
index 000000000000..4aa0a8f436f8
--- /dev/null
+++ b/media-libs/opus/opus-1.6.1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..14} )
+inherit flag-o-matic meson-multilib python-any-r1
+
+DESCRIPTION="Open codec for interactive speech and music transmission over the 
Internet"
+HOMEPAGE="https://opus-codec.org/";
+SRC_URI="https://downloads.xiph.org/releases/opus/${P}.tar.gz";
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~sparc ~x86"
+INTRINSIC_FLAGS="cpu_flags_x86_sse cpu_flags_arm_neon"
+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="
+       ${PYTHON_DEPS}
+       doc? (
+               app-text/doxygen
+               media-gfx/graphviz
+       )
+"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.3.1-libdir-macro.patch
+       "${FILESDIR}"/${PN}-1.4-arm64-neon.patch
+)
+
+multilib_src_configure() {
+       local emesonargs=(
+               -Ddefault_library=$(multilib_native_usex static-libs both 
shared)
+
+               $(meson_use custom-modes)
+               $(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)
+
+               -Ddocdir="${EPREFIX}"/usr/share/doc/${PF}
+       )
+
+       # Disable intrinsics if no flags are enabled (bug #752069)
+       # bug #752069
+       # TODO: What is -Dasm for?
+       local i
+       for i in ${INTRINSIC_FLAGS} ; do
+               use ${i} && emesonargs+=( -Dintrinsics=enabled ) && break
+       done || emesonargs+=( -Dintrinsics=disabled )
+
+       if is-flagq -ffast-math || is-flagq -Ofast ; then
+               emesonargs+=( -Dfloat-approx=true )
+       fi
+
+       meson_src_configure
+}
+
+multilib_src_test() {
+       meson_src_test --timeout-multiplier=2
+}

Reply via email to