From 40d8bc05c536b6c3fa0bd58c50480dc79c6b9e92 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 22 Nov 2023 23:21:15 +0000 Subject: gentoo auto-resync : 22:11:2023 - 23:21:15 --- media-sound/liblc3/Manifest | 1 + media-sound/liblc3/liblc3-1.0.4-r1.ebuild | 54 +++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 media-sound/liblc3/liblc3-1.0.4-r1.ebuild (limited to 'media-sound/liblc3') diff --git a/media-sound/liblc3/Manifest b/media-sound/liblc3/Manifest index d446ccd1bd6f..88a8fae87cad 100644 --- a/media-sound/liblc3/Manifest +++ b/media-sound/liblc3/Manifest @@ -1,5 +1,6 @@ DIST liblc3-1.0.3.tar.gz 261702 BLAKE2B 5b4f6961eb0990e746c9659c18f8a5daf1841cf3035d78f15414dfd631c18d0a61d8fbffb602130cae42d4ad3d87cee2bf311cb7065c217b79cc25637f2337c6 SHA512 ba8e2515b88bdc2db5c6fca0189d0f03720af1e2c33c91ade586efbd6f402a4ff9af33b5235716cac8dce7c17a5a432471f9572c17641fbc7877855aa0c2c2b4 DIST liblc3-1.0.4.tar.gz 263276 BLAKE2B 8c4b5e23b3dafe2fa22812c688f1f57167369cebe565b097e554be693d49b0c196fb5e454f3db8e724410f8c04d4bb66bd7594ab46b2a1b91c277300e5c48dc2 SHA512 bc047aa26059f2b2a7f5275b580f39a9237ffdd6da03645c7e95957447ba7410768ae5c08fcf1e0ac16fac873be4cbf62695b2298ef72f54f09e577664c27255 EBUILD liblc3-1.0.3.ebuild 511 BLAKE2B 5934cd357b3990813956b31ca1cc28e29eec0efc36ac0569ea6423cbadccbd10c745c0ba86f89b3daf10cd52505cee46830d237e4745095e248472000d92c852 SHA512 41e7ef32836f33e36ef9dde9da282d42a55fd7262de4ce39b772171f7640434aca5a7b681d3a1184d8a07fbb5a90e1b1f3043381cfe5b42e5088b5726a477dd4 +EBUILD liblc3-1.0.4-r1.ebuild 1218 BLAKE2B 2edc0cf99e3688c8e1d7d19f40593d2ee55681fa08e6f74ffb09121695eb633122dd56ecf8ea137f4555d2217a447176a9aa59d83c81a85be70a573a31ef5640 SHA512 32347b9dce3836f6926d554dbfb9bc8af18907721d109e4d5404beac3a5f562a5d8b9a3fab9870be6ab0ab7586a48ec8cb9c70b7b3ba97c91ef5e00e716e952e EBUILD liblc3-1.0.4.ebuild 566 BLAKE2B 0546842c13502b43acce47eb851b8f8d6a7ee24bb84ee09d76eb5e110e704fe7093eeed8c6c2462025709bd69a0757a153885f8dd77d296b56f593b350fcb187 SHA512 06f4096c2e2e4b11e12d0291492d8aaad2c134a6888e473147306f705fd3e6c5ebed9e654621dfb443fdbf3a52969ef44231407701abfbae0ea20a46412b0d70 MISC metadata.xml 683 BLAKE2B 22a4df555d0a41a1ca34a0467e853f7e2db471b807f7fdc3d31abc9de7aeeba665ef87dc3f9ab470d37aca5ba404df58e8c3e048367e1ceb50683c66b7486854 SHA512 2a6f52b2d8e9769e19c33c3fb59d0b9cfe0bb414b03c181074707503cfd60995465a325d9f09b864e248c5121044421e351635a4ec650e42d423e84165d2b81c diff --git a/media-sound/liblc3/liblc3-1.0.4-r1.ebuild b/media-sound/liblc3/liblc3-1.0.4-r1.ebuild new file mode 100644 index 000000000000..4d4ee40bc106 --- /dev/null +++ b/media-sound/liblc3/liblc3-1.0.4-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} pypy3 ) +inherit meson python-any-r1 + +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" +IUSE="test tools" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +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 +} + +src_prepare() { + use arm || rm -rf "test/arm" || die + use arm64 || rm -rf "test/neon" || die + default +} + +src_configure() { + local emesonargs=( + # We let users choose to enable LTO + -Db_lto=false + $(meson_use tools) + ) + meson_src_configure +} + +src_test() { + V= emake test CFLAGS:="${CPPFLAGS} ${CFLAGS} -I"$("${EPYTHON}" -c "import numpy;print(numpy.get_include())")"" +} -- cgit v1.2.3