media-libs/opus: bump to 1.5.1

Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
Miroslav Šulc
2024-03-05 12:26:35 +01:00
parent 56b6320b05
commit 8fb2cabb56
2 changed files with 66 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
DIST opus-1.4.tar.gz 1063408 BLAKE2B 21f11df745cb868f4da1586d678901045fd9bd0c0590628015f3adc2522c88b0660df88096abe975051fec3188b76b93762c4a01907c2ab2b23c40fde79cf6ad SHA512 1ecd39e0add24de12823bf7c936bb67441228721e2cdae0edbfcf3cee0894bcc6edf2a1d0ca5cdfdad1565803bf39cc4c985ad32710c2a9582f850adeb5ca631
DIST opus-1.5.1.tar.gz 7834540 BLAKE2B 5ba1d6f28594f366b545507bafb22751e15a0e78e152e7cdef456dccb0bc9fc512faa18c90fb4ea5455a9535de89df987dea8a0fabce9a25c285d0c410d4b482 SHA512 fa66c5d753f5deb5d61d068ff8f633d8cb5f454c94aeee9c404023ebc483f9b350586cdd98b7013faf4df3193e170a1708aaa598914275f7bc8be07587cc4dc6
+65
View File
@@ -0,0 +1,65 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..12} )
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 ~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}"
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_native_use_feature doc docs)
-Ddocdir="${EPREFIX}"/usr/share/doc/${PF}
)
local i
# We want to disable intrinsics if no flags are enabled
# (This is a fun Bash construct to do that!)
# bug #752069
# TODO: What is -Dasm for?
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
}