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 279C615806E for ; Mon, 29 May 2023 09:12:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3D492E0845; Mon, 29 May 2023 09:12:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 pigeon.gentoo.org (Postfix) with ESMTPS id 1E64BE0845 for ; Mon, 29 May 2023 09:12:29 +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 37F3E340EA6 for ; Mon, 29 May 2023 09:12:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 569DCA72 for ; Mon, 29 May 2023 09:12:26 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1685351537.340115d0c52eecd278390ed57607f9e8a07dbacb.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libao/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/libao/libao-1.2.2-r3.ebuild X-VCS-Directories: media-libs/libao/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 340115d0c52eecd278390ed57607f9e8a07dbacb X-VCS-Branch: master Date: Mon, 29 May 2023 09:12:26 +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: 64dffbf2-e0ca-4524-b0c7-628f6331f24d X-Archives-Hash: cf01d854c8eecc915cf7401a8213ec2b commit: 340115d0c52eecd278390ed57607f9e8a07dbacb Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun May 28 19:40:43 2023 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon May 29 09:12:17 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=340115d0 media-libs/libao: update EAPI 7 -> 8, unused multilib, use libpulse Closes: https://bugs.gentoo.org/881997 Signed-off-by: Andreas Sturmlechner gentoo.org> media-libs/libao/libao-1.2.2-r3.ebuild | 61 ++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/media-libs/libao/libao-1.2.2-r3.ebuild b/media-libs/libao/libao-1.2.2-r3.ebuild new file mode 100644 index 000000000000..9256d9dd01d7 --- /dev/null +++ b/media-libs/libao/libao-1.2.2-r3.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools multilib-minimal + +DESCRIPTION="The Audio Output library" +HOMEPAGE="https://www.xiph.org/ao/" +#SRC_URI="https://downloads.xiph.org/releases/ao/${P}.tar.gz" +#SRC_URI="https://git.xiph.org/?p=libao.git;a=snapshot;h=refs/tags/${PV};sf=tgz -> ${P}.tar.gz" +SRC_URI="https://github.com/xiph/libao/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos" +IUSE="alsa nas mmap pulseaudio sndio" + +RDEPEND=" + alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) + nas? ( >=media-libs/nas-1.9.4[${MULTILIB_USEDEP}] ) + pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] ) + sndio? ( media-sound/sndio:= ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-implicit.patch + "${FILESDIR}"/${P}-automagic_sndio_oss.patch +) + +src_prepare() { + default + sed -i "s:/lib:/$(get_libdir):g" ao.m4 || die + eautoreconf +} + +multilib_src_configure() { + local myeconfargs=( + --disable-arts + --disable-esd + $(use_enable alsa alsa) + $(use_enable mmap alsa-mmap) + $(use_enable nas) + $(use_enable pulseaudio pulse) + $(use_enable sndio) + --disable-oss # present only in overlays + ) + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_install() { + emake DESTDIR="${D}" docdir="${EPREFIX}/usr/share/doc/${PF}/html" install +} + +multilib_src_install_all() { + dodoc AUTHORS CHANGES README TODO + + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die +}