From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 82DC6158041 for ; Tue, 5 Mar 2024 11:26:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C33B3E29D4; Tue, 5 Mar 2024 11:26:40 +0000 (UTC) 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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A1EE9E29D4 for ; Tue, 5 Mar 2024 11:26:40 +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 96950343007 for ; Tue, 5 Mar 2024 11:26:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2CC74118C for ; Tue, 5 Mar 2024 11:26:38 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1709637995.8fb2cabb56f09d08be29dc24e07ac3ddfc86f885.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/opus/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/opus/Manifest media-libs/opus/opus-1.5.1.ebuild X-VCS-Directories: media-libs/opus/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: 8fb2cabb56f09d08be29dc24e07ac3ddfc86f885 X-VCS-Branch: master Date: Tue, 5 Mar 2024 11:26:38 +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: 3f54337c-12b4-41eb-bd05-e2e50f664d8d X-Archives-Hash: dbd6641828d0dfd93ed31a53b106bd05 commit: 8fb2cabb56f09d08be29dc24e07ac3ddfc86f885 Author: Miroslav Šulc gentoo org> AuthorDate: Tue Mar 5 11:26:25 2024 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Tue Mar 5 11:26:35 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fb2cabb media-libs/opus: bump to 1.5.1 Signed-off-by: Miroslav Šulc gentoo.org> media-libs/opus/Manifest | 1 + media-libs/opus/opus-1.5.1.ebuild | 65 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/media-libs/opus/Manifest b/media-libs/opus/Manifest index 123ae96c678a..5a6cbf3839e0 100644 --- a/media-libs/opus/Manifest +++ b/media-libs/opus/Manifest @@ -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 diff --git a/media-libs/opus/opus-1.5.1.ebuild b/media-libs/opus/opus-1.5.1.ebuild new file mode 100644 index 000000000000..61ed18829372 --- /dev/null +++ b/media-libs/opus/opus-1.5.1.ebuild @@ -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 +}