summaryrefslogtreecommitdiff
path: root/media-sound/liblc3
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-21 00:11:18 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-21 00:11:18 +0100
commitbed3b604e16fc6075e29f1af8d47507a07035bd3 (patch)
tree1f5d57fd86e90db37f62afb463f4b4c08a2b6eda /media-sound/liblc3
parentd6ca4e4f90cb75c323b5988eefa96a04c0d36908 (diff)
gentoo auto-resync : 21:06:2024 - 00:11:18
Diffstat (limited to 'media-sound/liblc3')
-rw-r--r--media-sound/liblc3/Manifest1
-rw-r--r--media-sound/liblc3/liblc3-1.1.1-r1.ebuild58
2 files changed, 59 insertions, 0 deletions
diff --git a/media-sound/liblc3/Manifest b/media-sound/liblc3/Manifest
index 15c599b33565..ec95552ebb60 100644
--- a/media-sound/liblc3/Manifest
+++ b/media-sound/liblc3/Manifest
@@ -4,5 +4,6 @@ DIST liblc3-1.1.1.tar.gz 1658742 BLAKE2B a38f1bede375fb57ee64b6e8ee7b639b01a5804
EBUILD liblc3-1.0.3.ebuild 511 BLAKE2B 5934cd357b3990813956b31ca1cc28e29eec0efc36ac0569ea6423cbadccbd10c745c0ba86f89b3daf10cd52505cee46830d237e4745095e248472000d92c852 SHA512 41e7ef32836f33e36ef9dde9da282d42a55fd7262de4ce39b772171f7640434aca5a7b681d3a1184d8a07fbb5a90e1b1f3043381cfe5b42e5088b5726a477dd4
EBUILD liblc3-1.0.4-r1.ebuild 1224 BLAKE2B ccc34829d78d9016deed81bfc811d88dfd616611cf71de83d5af727c690069c56dc84e6561942d3150a61399dd3b071c4a6a2355f5b588078475c8bc6fa3be67 SHA512 5fca4594fa740224f1df199a013314b770d5e846bdf2915667cdef343357fa63897c0f207289cdc53151574ff3958dcc5159474cc0e868dff9bb06e284ca0223
EBUILD liblc3-1.0.4.ebuild 565 BLAKE2B 88ac4c6f4ac5315c90c1b23f19f279f38107d6aafb4146bc108519d2ab57ff3c38d8e853c08d0935eaa6c3fb2cae82c0e72e92152f4e623fb1195204823d5db6 SHA512 6c7b3c34ae7c80d9c0aecada7c0d3bed518803305375542fbe5beafdffc2687f253898ec54c47253a9a829fd285ee6c20fa3a706079d12731093825fb25197ec
+EBUILD liblc3-1.1.1-r1.ebuild 1378 BLAKE2B 9c829e53ed59352d36a071e3de67a3b759b38c9412a4a6f450ddfc5d6eff1f216556c38576210e342657b2d0e3b6bc3b2a91312d0938faff5c5aa9c2037f3a94 SHA512 df49fd067d54d0658a020c2aa51161bce89e98ec23871e19d64c459be1f327c5062ca06637386f81f9c12b6d954aa02671e4f87a1b0c64c2ba97620073ef1efc
EBUILD liblc3-1.1.1.ebuild 1187 BLAKE2B eb65036327d8328fac8e94fa688b0ef2e57252670597abe86f88e9b2bea7245a7508be5db8e59cafa4f29f81827cb8582ea1fad82ede93522659073ec25610b6 SHA512 6a82fd43c2ae506b0240239739df1ad3610ab9e1e72f032374a62f8935eedd33a6a2ccf2211dd0635afe5195545aef4a719abe76bc27974023b5617d49153e85
MISC metadata.xml 683 BLAKE2B 22a4df555d0a41a1ca34a0467e853f7e2db471b807f7fdc3d31abc9de7aeeba665ef87dc3f9ab470d37aca5ba404df58e8c3e048367e1ceb50683c66b7486854 SHA512 2a6f52b2d8e9769e19c33c3fb59d0b9cfe0bb414b03c181074707503cfd60995465a325d9f09b864e248c5121044421e351635a4ec650e42d423e84165d2b81c
diff --git a/media-sound/liblc3/liblc3-1.1.1-r1.ebuild b/media-sound/liblc3/liblc3-1.1.1-r1.ebuild
new file mode 100644
index 000000000000..2d0966b78592
--- /dev/null
+++ b/media-sound/liblc3/liblc3-1.1.1-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
+inherit python-any-r1 toolchain-funcs meson-multilib
+
+DESCRIPTION="LC3 is an efficient low latency audio codec"
+HOMEPAGE="https://github.com/google/liblc3"
+SRC_URI="https://github.com/google/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="test tools"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+ test? (
+ $(python_gen_any_dep '
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/scipy[${PYTHON_USEDEP}]
+ ')
+ )
+"
+
+python_check_deps() {
+ python_has_version "dev-python/numpy[${PYTHON_USEDEP}]" &&
+ python_has_version "dev-python/scipy[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
+multilib_src_prepare() {
+ use arm || rm -rf "test/arm" || die
+ use arm64 || rm -rf "test/neon" || die
+ default
+}
+
+multilib_src_configure() {
+ local emesonargs=(
+ -Dpython=false
+ $(meson_native_use_bool tools)
+ )
+ meson_src_configure
+}
+
+multilib_src_test() {
+ if multilib_is_native_abi; then
+ V= emake -C "${S}" test CC="$(tc-getCC)" \
+ CFLAGS:="${CPPFLAGS} ${CFLAGS} -I"$("${EPYTHON}" -c "import numpy;print(numpy.get_include())")""
+ else
+ ewarn "Skipping test for non-native ABI: ${ABI}"
+ fi
+}