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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E82201584AD for ; Mon, 28 Apr 2025 20:42:54 +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) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id CFBDB340836 for ; Mon, 28 Apr 2025 20:42:54 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id C3B371102BE; Mon, 28 Apr 2025 20:42:53 +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) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id B9E111102BE for ; Mon, 28 Apr 2025 20:42:53 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6DC2F340836 for ; Mon, 28 Apr 2025 20:42:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9D122C3A for ; Mon, 28 Apr 2025 20:42:51 +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: <1745872914.2b5e30d7e5acbf75a2a803dbb2f4cd262a627b53.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/flac-compat/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/flac-compat/Manifest media-libs/flac-compat/flac-compat-1.4.3.ebuild X-VCS-Directories: media-libs/flac-compat/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 2b5e30d7e5acbf75a2a803dbb2f4cd262a627b53 X-VCS-Branch: master Date: Mon, 28 Apr 2025 20:42:51 +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: 87d57b87-2dc7-49bf-973b-d779ad1a8d07 X-Archives-Hash: 5f6f5c06f4da2db61613b3dddae9340d commit: 2b5e30d7e5acbf75a2a803dbb2f4cd262a627b53 Author: Sam James gentoo org> AuthorDate: Mon Apr 28 20:39:39 2025 +0000 Commit: Sam James gentoo org> CommitDate: Mon Apr 28 20:41:54 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b5e30d7 media-libs/flac-compat: add 1.4.3 See https://forums.gentoo.org/viewtopic-t-1173854.html. Bug: https://bugs.gentoo.org/954608 Signed-off-by: Sam James gentoo.org> media-libs/flac-compat/Manifest | 1 + media-libs/flac-compat/flac-compat-1.4.3.ebuild | 76 +++++++++++++++++++++++++ 2 files changed, 77 insertions(+) diff --git a/media-libs/flac-compat/Manifest b/media-libs/flac-compat/Manifest index b8a23c4d2cbe..ec1914cb1563 100644 --- a/media-libs/flac-compat/Manifest +++ b/media-libs/flac-compat/Manifest @@ -1 +1,2 @@ DIST flac-1.3.4.tar.xz 1038356 BLAKE2B 0553cd42705f31d6a98d10e8b73953265e97c6b1e46bb59c7d97d12ec1b4aae4c3d6f5e85b9e5d1513f7efac82a65ea9dc59d89d8df0254ff3ab1188039c55c5 SHA512 4a626e8a1bd126e234c0e5061e3b46f3a27c2065fdfa228fd8cf00d3c7fa2c05fafb5cec36acce7bfce4914bfd7db0b2a27ee15decf2d8c4caad630f62d44ec9 +DIST flac-1.4.3.tar.xz 1006728 BLAKE2B c4f441aeaa0493433347b8a110ca01865fd40d5b21150174372af2fee4fa5c3397a67add31138e92999eab9d9abe6c46a5ac29e13cbac60093fbff6d7a672ad3 SHA512 3cf095720bd590a588be8ccbe187d22e7a1c60ab85b1d510ce5e8a22ab0a51827b9acfeaad59bbd645a17d1f200f559255a640101b0330709a164306c0e9709e diff --git a/media-libs/flac-compat/flac-compat-1.4.3.ebuild b/media-libs/flac-compat/flac-compat-1.4.3.ebuild new file mode 100644 index 000000000000..b6853702077c --- /dev/null +++ b/media-libs/flac-compat/flac-compat-1.4.3.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic multilib-minimal + +DESCRIPTION="Free lossless audio encoder and decoder" +HOMEPAGE="https://xiph.org/flac/" +SRC_URI="https://downloads.xiph.org/releases/${PN/-compat}/${P/-compat}.tar.xz" +S="${WORKDIR}/${P/-compat}" + +LICENSE="BSD FDL-1.2 GPL-2 LGPL-2.1" +SLOT="12.1.0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="+cxx ogg cpu_flags_x86_avx" + +RDEPEND=" + !media-libs/flac:0/10-12 + ogg? ( media-libs/libogg[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + app-arch/xz-utils + sys-devel/gettext + virtual/pkgconfig + abi_x86_32? ( dev-lang/nasm ) +" + +multilib_src_configure() { + # -fipa-pta exposes a test failure in replaygain_analysis (https://gcc.gnu.org/PR115533) + # TODO: Replace with some -ffp-contract= option? + append-flags $(test-flags-CC -fno-ipa-pta) + + local myeconfargs=( + --disable-doxygen-docs + --disable-examples + --disable-valgrind-testing + --disable-version-from-git + + $(use_enable cpu_flags_x86_avx avx) + $(use_enable cxx cpplibs) + --disable-debug + $(use_enable ogg) + + --disable-programs + + # cross-compile fix (bug #521446) + # no effect if ogg support is disabled + --with-ogg + ) + + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_test() { + # configure has --enable-exhaustive-tests we could pass... + # there's also --disable-thorough-test. + if [[ ${UID} != 0 ]]; then + # Parallel tests work for CMake but don't for autotools as of 1.4.3 + # https://github.com/xiph/flac/commit/aaffdcaa969c19aee9dc89be420eae470b55e405 + emake -j1 check + else + ewarn "Tests will fail if ran as root, skipping." + fi +} + +multilib_src_install_all() { + rm -r "${ED}"/usr/bin || die + rm -r "${ED}"/usr/include || die + rm -r "${ED}"/usr/share || die + rm -r "${ED}"/usr/lib*/pkgconfig || die + rm -r "${ED}"/usr/lib*/*.so || die + + find "${ED}" -type f -name '*.la' -delete || die +}