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 3056E15817D for ; Fri, 7 Jun 2024 13:15:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 53F83E2A11; Fri, 7 Jun 2024 13:15:14 +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 pigeon.gentoo.org (Postfix) with ESMTPS id 378D8E2A11 for ; Fri, 7 Jun 2024 13:15:14 +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 7DFFC335DCD for ; Fri, 7 Jun 2024 13:15:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B09F91C7F for ; Fri, 7 Jun 2024 13:15:10 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1717766106.4021c7a0d13adccf9df582e57c82b76dc2da6808.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/apulse/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/apulse/apulse-0.1.13-r3.ebuild X-VCS-Directories: media-sound/apulse/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 4021c7a0d13adccf9df582e57c82b76dc2da6808 X-VCS-Branch: master Date: Fri, 7 Jun 2024 13:15:10 +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: 406bd126-5a2f-4b7c-b792-6f8a00e93306 X-Archives-Hash: 6c7b59b63915da40a168789eaddd51d6 commit: 4021c7a0d13adccf9df582e57c82b76dc2da6808 Author: Alexey Sokolov asokolov org> AuthorDate: Wed Apr 3 22:21:57 2024 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Fri Jun 7 13:15:06 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4021c7a0 media-sound/apulse: update EAPI 7 -> 8 Signed-off-by: Alexey Sokolov asokolov.org> Signed-off-by: Joonas Niilola gentoo.org> media-sound/apulse/apulse-0.1.13-r3.ebuild | 71 ++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/media-sound/apulse/apulse-0.1.13-r3.ebuild b/media-sound/apulse/apulse-0.1.13-r3.ebuild new file mode 100644 index 000000000000..8a3640b8115d --- /dev/null +++ b/media-sound/apulse/apulse-0.1.13-r3.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib multiprocessing + +DESCRIPTION="PulseAudio emulation for ALSA" +HOMEPAGE="https://github.com/i-rinat/apulse" +SRC_URI="https://github.com/i-rinat/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" + +IUSE="debug sdk test" +RESTRICT="!test? ( test )" + +DEPEND="dev-libs/glib:2[${MULTILIB_USEDEP}] + media-libs/alsa-lib[${MULTILIB_USEDEP}] + sdk? ( !media-libs/libpulse !media-sound/pulseaudio ) " +RDEPEND="${DEPEND} + !media-plugins/alsa-plugins[pulseaudio]" + +PATCHES=( + "${FILESDIR}/sdk.patch" + "${FILESDIR}/check-key-before-remove.patch" + "${FILESDIR}/man.patch" +) + +src_prepare() { + cmake_src_prepare + + if ! use sdk; then + # Ensure all relevant libdirs are added, to support all ABIs + DIRS= + _add_dir() { DIRS="${EPREFIX}/usr/$(get_libdir)/apulse${DIRS:+:${DIRS}}"; } + multilib_foreach_abi _add_dir + sed -e "s#@@DIRS@@#${DIRS}#g" "${FILESDIR}"/apulse > "${T}"/apulse || die + fi +} + +multilib_src_configure() { + local mycmakeargs=( + "-DINSTALL_SDK=$(usex sdk)" + "-DLOG_TO_STDERR=$(usex debug)" + "-DWITH_TRACE=$(usex debug)" + ) + cmake_src_configure +} + +multilib_src_test() { + _test() { + pushd tests || die + cmake -S "${S}/tests" -B . || die + emake test_ringbuffer + ctest -j "$(makeopts_jobs "${MAKEOPTS}" 999)" \ + --test-load "$(makeopts_loadavg)" || die + popd || die + } + multilib_foreach_abi _test +} + +multilib_src_install_all() { + if ! use sdk; then + _install_wrapper() { newbin "${BUILD_DIR}/apulse" "${CHOST}-apulse"; } + multilib_foreach_abi _install_wrapper + dobin "${T}/apulse" + fi + einstalldocs +}