public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/liblc3/
Date: Thu, 20 Jun 2024 17:16:01 +0000 (UTC)	[thread overview]
Message-ID: <1718903742.5be154aba71347ffb00820773828ff48925bda90.sam@gentoo> (raw)

commit:     5be154aba71347ffb00820773828ff48925bda90
Author:     Leonardo Hernández Hernández <leohdz172 <AT> proton <DOT> me>
AuthorDate: Sat Jun 15 04:10:36 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 20 17:15:42 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5be154ab

media-sound/liblc3: add multilib

It's going to be required by ffmpeg-9999

Signed-off-by: Leonardo Hernández Hernández <leohdz172 <AT> proton.me>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-sound/liblc3/liblc3-1.1.1-r1.ebuild | 57 +++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

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..0a29e622ec90
--- /dev/null
+++ b/media-sound/liblc3/liblc3-1.1.1-r1.ebuild
@@ -0,0 +1,57 @@
+# 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 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 CFLAGS:="${CPPFLAGS} ${CFLAGS} -I"$("${EPYTHON}" -c "import numpy;print(numpy.get_include())")""
+	else
+		ewarn "Skipping test for non-native ABI: ${ABI}"
+	fi
+}


             reply	other threads:[~2024-06-20 17:16 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-20 17:16 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-17  6:14 [gentoo-commits] repo/gentoo:master commit in: media-sound/liblc3/ Sam James
2024-06-20 17:16 Sam James
2024-04-29  1:01 Sam James
2023-11-24  9:31 Sam James
2023-11-22 18:29 Sam James
2023-11-22 18:29 Sam James
2023-09-27  7:21 Sam James
2023-09-27  6:34 Sam James
2023-09-27  5:09 Sam James
2023-09-27  4:49 Sam James
2023-09-27  4:46 Sam James
2023-08-13  6:49 Sam James
2023-07-28 12:02 Arthur Zamarin
2023-07-28 12:02 Arthur Zamarin
2023-07-28 12:01 Arthur Zamarin
2023-07-28  9:37 Sam James
2023-07-28  7:56 Sam James
2023-07-04  5:46 WANG Xuerui
2023-06-27  5:20 Jakov Smolić
2023-06-26 18:39 Arthur Zamarin
2023-06-26 18:39 Arthur Zamarin
2023-06-26 18:39 Arthur Zamarin
2023-06-26 18:39 Arthur Zamarin
2023-06-26 18:26 Arthur Zamarin
2023-06-26 16:47 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1718903742.5be154aba71347ffb00820773828ff48925bda90.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox