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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D4800158042 for ; Sun, 10 Nov 2024 09:31:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D550DE08F3; Sun, 10 Nov 2024 09:31:02 +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 BA1D6E08F3 for ; Sun, 10 Nov 2024 09:31:02 +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 B834933BF41 for ; Sun, 10 Nov 2024 09:31:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 171F1AED for ; Sun, 10 Nov 2024 09:31:00 +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: <1731231044.be1082bc270174ccb35c57cab48076a7bac57b9e.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/soxr/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/soxr/soxr-0.1.3-r2.ebuild X-VCS-Directories: media-libs/soxr/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: be1082bc270174ccb35c57cab48076a7bac57b9e X-VCS-Branch: master Date: Sun, 10 Nov 2024 09:31:00 +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: 18497a6d-6f3b-45c7-bdf3-df10c0b8b08b X-Archives-Hash: 0152aa36834bcc229e3421cbc9c3444b commit: be1082bc270174ccb35c57cab48076a7bac57b9e Author: Andreas Sturmlechner gentoo org> AuthorDate: Sat Nov 9 19:51:15 2024 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Nov 10 09:30:44 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be1082bc media-libs/soxr: update EAPI 7 -> 8 Signed-off-by: Andreas Sturmlechner gentoo.org> media-libs/soxr/soxr-0.1.3-r2.ebuild | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/media-libs/soxr/soxr-0.1.3-r2.ebuild b/media-libs/soxr/soxr-0.1.3-r2.ebuild new file mode 100644 index 000000000000..68d93c60de26 --- /dev/null +++ b/media-libs/soxr/soxr-0.1.3-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_P="${P}-Source" +inherit cmake-multilib + +DESCRIPTION="SoX Resampler library" +HOMEPAGE="https://sourceforge.net/p/soxr/wiki/Home/" +SRC_URI="https://downloads.sourceforge.net/soxr/${MY_P}.tar.xz" +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv sparc x86" +IUSE="examples test" + +# CMakeLists.txt builds examples if either test or examples USE flag is enabled. +REQUIRED_USE="test? ( examples )" +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}/${PN}-0.1.1-nodoc.patch" + "${FILESDIR}/${P}-fix-pkgconfig.patch" +) + +src_configure() { + local mycmakeargs=( + -DBUILD_EXAMPLES="$(usex examples)" + -DBUILD_TESTS="$(usex test)" + ) + if use examples ; then + mycmakeargs+=( + -DDOC_INSTALL_DIR="/usr/share/doc/${PF}" + ) + fi + cmake-multilib_src_configure +} + +src_install() { + cmake-multilib_src_install + if use examples ; then + docompress -x /usr/share/doc/${PF}/examples + fi +}