From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 60E881582EF for ; Sun, 23 Feb 2025 18:38:52 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 489E03431CB for ; Sun, 23 Feb 2025 18:38:52 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 440891102B7; Sun, 23 Feb 2025 18:38:51 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 366D81102B7 for ; Sun, 23 Feb 2025 18:38:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DEAC33431CB for ; Sun, 23 Feb 2025 18:38:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6A56E2741 for ; Sun, 23 Feb 2025 18:38:49 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1740335912.7fc1c9a14210fd85c04a487110a3d4281a3afba3.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/liblc3/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/liblc3/Manifest media-sound/liblc3/liblc3-1.1.3.ebuild X-VCS-Directories: media-sound/liblc3/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7fc1c9a14210fd85c04a487110a3d4281a3afba3 X-VCS-Branch: master Date: Sun, 23 Feb 2025 18:38:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4821f680-ef4d-4e15-87c5-7cbf5d26ccaf X-Archives-Hash: e7c78576311bd41527802af77e99fa8b commit: 7fc1c9a14210fd85c04a487110a3d4281a3afba3 Author: Sam James gentoo org> AuthorDate: Sun Feb 23 18:28:31 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sun Feb 23 18:38:32 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fc1c9a1 media-sound/liblc3: add 1.1.3 Signed-off-by: Sam James gentoo.org> media-sound/liblc3/Manifest | 1 + media-sound/liblc3/liblc3-1.1.3.ebuild | 65 ++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/media-sound/liblc3/Manifest b/media-sound/liblc3/Manifest index ee47fe1ad77b..d91be7faea6e 100644 --- a/media-sound/liblc3/Manifest +++ b/media-sound/liblc3/Manifest @@ -1,2 +1,3 @@ DIST liblc3-1.0.4.tar.gz 263276 BLAKE2B 8c4b5e23b3dafe2fa22812c688f1f57167369cebe565b097e554be693d49b0c196fb5e454f3db8e724410f8c04d4bb66bd7594ab46b2a1b91c277300e5c48dc2 SHA512 bc047aa26059f2b2a7f5275b580f39a9237ffdd6da03645c7e95957447ba7410768ae5c08fcf1e0ac16fac873be4cbf62695b2298ef72f54f09e577664c27255 DIST liblc3-1.1.1.tar.gz 1658742 BLAKE2B a38f1bede375fb57ee64b6e8ee7b639b01a58049815585a4528b2d0dfd5bf118455708f90e964b4a7b0599eb72dd6ba21b98a8c80588e64111ad9669f2c7fc3d SHA512 cd424a46fe8bad3cd2d633ef957305538afeb86f211d8824cf21e5c47c7ed174674a33a4e1906b73ab478cac7ed747c730f2d71d0021a7027c1c28b63ba3e588 +DIST liblc3-1.1.3.tar.gz 1659909 BLAKE2B 83bc34c360fda5f8f7d518e9dd1f9e6a4e019168e76265e0b66712a4c081cd31a37c72c35d7de26c607484ab541b99d37c47990ecbb37857762c8bab5460bad7 SHA512 0f06367651b2ebd5e5e8f8e6256fd818646f6674e5bd278ba224c2fdbce7e4b6985d8ef1c5e69aee2fdbeeb4f790fb1e80529d3f8da9fc2dff98e9b8f90d4bdb diff --git a/media-sound/liblc3/liblc3-1.1.3.ebuild b/media-sound/liblc3/liblc3-1.1.3.ebuild new file mode 100644 index 000000000000..c4def90a0a47 --- /dev/null +++ b/media-sound/liblc3/liblc3-1.1.3.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} 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() { + if ! use arm ; then + rm -r "test/arm" || die + fi + + if ! use arm64 ; then + rm -r "test/neon" || die + fi + + 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 + # Makefile misuses V=, so V=1 fails (e.g. "1cd ...") + emake V= -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 +}